thanks. made my first tracker.
sensor:
- unique_id: track_marijn
state: >
{{'In huis' if is_state('device_tracker.life360_marijn','home') else 'Uit huis'}}
attributes:
friendly_name: Waar is Marijn
so thats promising no editing, no customizing.
otoh, this icon template wont stick, though it should?
icon: >
/local/images/family/marijn_bmj_{{'home' if
is_state('device_tracker.life360_marijn','home') else 'not_home'}}.png
returns a validation error on non whitespace, which I’ve never seen before:
Error validating template result '/local/images/family/marijn_bmj_home.png' from template 'Template("/local/images/family/marijn_bmj_{{'home' if is_state('device_tracker.life360_marijn','home') else 'not_home'}}.png")' for attribute '_icon' in entity sensor.track_marijn validation message 'contains non-whitespace: /local/images/family/marijn_bmj_home.png'
darn, beginners error, using icon: for an entity_picture…
sensor:
- unique_id: track_marijn
state: >
{{'In huis' if is_state('device_tracker.life360_marijn','home') else 'Uit huis'}}
picture: >
/local/images/family/marijn_bmj_{{'home' if
is_state('device_tracker.life360_marijn','home') else 'not_home'}}.png
attributes:
friendly_name: Waar is Marijn
it is then, using picture:
for entity_picture…
entity card doesnt show the picture, the entities card does:
never realized that tbh, same goes for the fact we can not edit the picture in the editor GUI
but that might be another matter? editing the template:
entities and showing them in the frontend