Hi,
I am using a tile card, but I would like to have the icon itself (not just the color) changed based on the status of that entity.
I tried the YAML below, but was not succesfull. I’m seeing a lot of posts to change the icon colour based on the status, but not the icon itself.
type: tile
entity: sensor.sauna_status
name: Status
vertical: false
hide_state: false
show_entity_picture: false
icon: |-
{% if is_state(entity, '0') %}
mdi:power-off
{% else %}
mdi:power-standby
{% endif %}
Can anyone help?