Icon templates for presence sensors
This commit is contained in:
@ -60,6 +60,13 @@ sensor:
|
|||||||
{{ states('person.tony_stork') }}
|
{{ states('person.tony_stork') }}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
icon_template: >-
|
||||||
|
{% set person = states.person.tony_stork.state %}
|
||||||
|
{% if person in ['Home','home'] %}
|
||||||
|
mdi:home
|
||||||
|
{% else %}
|
||||||
|
mdi:car
|
||||||
|
{% endif %}
|
||||||
- platform: template
|
- platform: template
|
||||||
sensors:
|
sensors:
|
||||||
tina_location:
|
tina_location:
|
||||||
@ -80,6 +87,13 @@ sensor:
|
|||||||
{{ states('person.christina_stork') }}
|
{{ states('person.christina_stork') }}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
icon_template: >-
|
||||||
|
{% set person = states.person.christina_stork.state %}
|
||||||
|
{% if person in ['Home','home'] %}
|
||||||
|
mdi:home
|
||||||
|
{% else %}
|
||||||
|
mdi:car
|
||||||
|
{% endif %}
|
||||||
- platform: template
|
- platform: template
|
||||||
sensors:
|
sensors:
|
||||||
kallen_location:
|
kallen_location:
|
||||||
|
Reference in New Issue
Block a user