Closed dooz127 closed 4 years ago
Here's my yaml:
entities: - icon: '{{ state_attr(''person.john_smith'',''icon'') }}' name: '{{ state_attr(''person.john_smith'',''friendly_name'') }}' state: |- {% if is_state('person.john_smith','home') %} Home {% else %} Away {% endif %} secondary: |- {% if states('person.john_smith') != 'home' and states('sensor.john_smith_proximity') != 'unknown' %} {{ states('sensor.john_smith_proximity') }} minutes from home {% else %} {% endif %} type: 'custom:template-entity-row' - icon: '{{ state_attr(''person.jane_smith'',''icon'') }}' name: '{{ state_attr(''person.jane_smith'',''friendly_name'') }}' state: |- {% if is_state('person.jane_smith','home') %} Home {% else %} Away {% endif %} secondary: |- {% if states('person.jane_smith') != 'home' and states('sensor.jane_smith_proximity'') != 'unknown' %} {{ states('sensor.jane_smith_proximity') }} minutes from home {% else %} {% endif %} type: 'custom:template-entity-row' - entity: person.joe_smith - entity: person.jen_smith show_header_toggle: false title: Family type: entities
And the lovelace card:
Here's my yaml:
And the lovelace card: