Open Mariusthvdb opened 2 years ago
using:
filter:
template: >
{%- for s in states.binary_sensor -%}
{%- if s.object_id.endswith("firmware_update") and states(s.entity_id) == 'on' -%}
{{
{ 'type': 'custom:template-entity-row',
'entity': "button." + s.object_id.replace("firmware_update", "ota_update"),
'state': 'BUTTON',
'secondary': state_attr(s.entity_id, 'installed_version')
}
}},
{%- endif -%}
{%- endfor -%}
in an auto-entities card
Please consider adding support for the Button entity and showing the Button Press as state, just like is done with the toggle for switch. Currently we see
when using:
and since we dont have a HA core way to use the
secondary_info:
line for last-triggered one a button (because the button entity doesnt have a last_triggered attribute), this would be the only way to combine both the secondary_info, And the button?the current more-info shows the last-changed time, but that really is useless info, as it merely shows what the last restart of the system was in this case, and doesn't not survive restart/get restored:
Thanks!