A minimalist card inspired by the reddit status UI to display binary sensors in a nice way.

:warning: Versions 0.x.x are not very stable and still have many bugs, please create an issue if you encounter a bug or have a feature request.
This card is available in HACS (Home Assistant Community Store).
uptime-card.js from the latest release into your config/www directory.configuration.yaml with URL /local/uptime-card.js and type module.Uptime card is highly customizable.
| Name | Type / Options | Default | Since | Description |
|---|---|---|---|---|
| entity (required) | string | v0.0.1 | Specify entity ID of the sensor | |
| attribute | string | v0.5.0 | Set the attribute name if the state to monitor isn't the default one. | |
| ok | string or string[] | v0.0.1 | Specify the on state(s) for the entity, either ok or ko should be set if entity isn't a binary sensor. More info. |
|
| ko | string or string[] | v0.0.1 | Specify the off state(s) for the entity, either ok or ko should be set if entity isn't a binary sensor. More info. |
|
| none | string or string[] | v0.14.0 | Specify the none state(s) for the entity. More info. |
|
| icon | string | icon attribute || mdi:heart |
v0.0.1 | Specify a custom icon from mdi icons or an image from /local path (since v0.4.0), e.g. mdi:home |
| ko_icon | string | icon option || icon attribute || mdi:heart |
v0.2.0 | Specify a custom icon for ko status, e.g. mdi:home |
| none_icon | string | icon option || icon attribute || mdi:heart |
v0.14.0 | Specify a custom icon for none status, e.g. mdi:home |
| hours_to_show | number | 24 |
v0.0.1 | Set the number of hours to show, you can go to the minute, you can go up to the minute (1 minute == 0.0167 hours_to_show). :warning: It is deprecated and should be replaced by duration. |
| update_interval | number | 30 | v0.0.1 | Set the minimum update interval for the card in seconds. |
| title_template | string | [[[ return entity.attributes.friendly_name; ]]] |
v0.8.0 | Set the template for the title. More info. |
| average_template | string | % |
v0.5.0 | Set the template for the average. More info. |
| severity | number | 100 |
v0.0.1 | Set a threshold in percentage to specify when a bar both ok and ko is red instead of yellow. |
| status_template | string | [[[ return variables.current ]]] |
v0.1.0 | Set the template for the status. More info. |
| title_adaptive_color | true/false |
false |
v0.0.2 | Make the title color adapt with the entity color. |
| status_adaptive_color | true/false |
false |
v0.0.2 | Make the name color adapt with the entity color. |
| icon_adaptive_color | true/false |
false |
v0.0.2 | Make the name color adapt with the entity color. |
| tooltip_adaptive_color | true/false |
false |
v0.1.0 | Make the name color adapt with the entity color. |
| color_thresholds | list of thresholds | v0.4.0 | Set the color thesholds. |
Parent key: bar
| Name | Type / Options | Default | Since | Description |
|---|---|---|---|---|
| height | number | 46 |
v0.0.1 | Set the height of the bars. |
| round | number | 1 |
v0.0.1 | Set the round radius for the bars. |
| spacing | number | 4 |
v0.0.1 | Set the spacing between the bars. |
| amount | number | 36 |
v0.0.1 | Set the number of bars. |
Parent key: color
| Name | Type / Options | Default | Since | Description |
|---|---|---|---|---|
| ok | color | #45C669 |
v0.0.1 | Set the ok color. |
| ko | color | #C66445 |
v0.0.1 | Set the ko color. |
| half | color | #C6B145 |
v0.0.1 | Set the half color. |
| none | color | #C9C9C9 |
v0.0.1 | Set the none color. |
| title | color | grey |
v0.0.2 | Set the title text color, title_adaptive_color must be false. |
| status | color | grey |
v0.0.2 | Set the status text color, status_adaptive_color must be false. |
| icon | color | var(--state-icon-color) |
v0.0.2 | Set the icon text color, icon_adaptive_color must be set to false. |
| ko_icon | color | same as icon | v0.15.0 | Set the ko icon text color, same as icon if not set, icon_adaptive_color must be set to false. |
| tooltip | color | grey |
v0.1.0 | Set the tooltip text color, tooltip_adaptive_color must be false. |
| footer | color | #AAAAAA |
v0.15.0 | Set the footer text color. |
Parent key: show
| Name | Type / Options | Default | Since | Description | | -------- | :------------: | :-----:
$ claude mcp add uptime-card \
-- python -m otcore.mcp_server <graph>