@RvdHNL wrote:
Ok, I’m quite lost after reading like 4355 topics, browsing through loads of yaml’s on Github and still cannot get it to work…
Issue: I want to display a different image based on
home
ornot_home
state.The view I want it in (names obviously removed):
defaut.yamlcards: - type: glance show_header_toggle: false show_name: false show_state: true entities: - entity: person.name - entity: person.name - entity: person.name - entity: person.name
Config:
configuration.yaml:homeassistant: customize: !include family.yaml
In family.yaml i tried many options:
1:person.name: device_trackers: - device_tracker.name entity_picture: '/local/img/name_home.png' state_filter: not_home: grayscale(90%)
2:
person.name: device_trackers: - device_tracker.name entity_picture: '/local/img/name_home.png' state_image: home: '/local/img/name_home.png' not_home: '/local/img/name_not_home.png'
3:
person.name: device_trackers: - device_tracker.name entity_picture: > {% if is_state(config.entity, 'home' %} '/local/img/name_home.png' {% else %} '/local/img/name_not_home.png' {% endif %};
Can anyone point me in the right direction?
Posts: 12
Participants: 3