Hello everyone,
I am searching for a way to change the icon of a view based on a device state.
I tried this:
views:
- title: Home
icon: |
{% if is_state('cover.WohnzimmerJalKueche', 'closed') %}
mdi:home
{% else %}
mdi:home-account
{% endif %}
But unfortunately it is a blank space instead of an icon.
Can anybody help, please?