-
Notifications
You must be signed in to change notification settings - Fork 15
Dashboard examples
ufodone edited this page Apr 6, 2025
·
1 revision
By installing the auto-entities card, you can create cards to dynamically display the status of all of your zones.
type: custom:auto-entities
card:
type: entities
title: All zones
filter:
include:
- attributes:
zone: $$*
options:
state_color: true
sort:
method: attribute
attribute: zone
numeric: truetype: custom:auto-entities
card:
type: entities
title: Open zones
filter:
include:
- attributes:
zone: $$*
state: on
options:
state_color: true
secondary_info: last-updated
sort:
method: attribute
attribute: zone
numeric: truetype: custom:auto-entities
card:
type: entities
title: Recent zones
filter:
include:
- attributes:
zone: $$*
last_tripped_time: '< 1h ago'
options:
state_color: true
secondary_info: last-updated
sort:
method: last_changed
reverse: trueAdding in the custom multi entity row allows us to display additional information with each zone, like adding in the zone number underneath the friendly name or additional information, like bypassed, low battery, and tamper in the same line.
type: custom:auto-entities
card:
type: entities
title: Recent zones
filter:
template: |
{% for s in states.binary_sensor | selectattr('attributes.zone', 'defined') -%}
{{-
{
'type': 'custom:multiple-entity-row',
'entity': s.entity_id,
'name': s.name,
'secondary_info': {'name':'Zone','attribute':'zone'},
'entities': [
{'attribute':'bypassed','name':'Bypassed'},
{'attribute':'low_battery','name':'Low battery'},
{'attribute':'tamper','name':'Tamper'}
],
'show_state': false,
'state_color': true
}
-}},
{%- endfor %}
sort:
method: attribute
attribute: zone
numeric: truetype: custom:auto-entities
card:
type: entities
title: Recent zones
filter:
template: |
{% for s in states.binary_sensor | selectattr('attributes.zone', 'defined') -%}
{{-
{
'type': 'custom:multiple-entity-row',
'entity': s.entity_id,
'name': s.name,
'secondary_info': {'name':'Zone','attribute':'zone'},
'state_color': true
}
-}},
{%- endfor %}
sort:
method: attribute
attribute: zone
numeric: true