Hi, Any idea why this isnt working? I’ve tried plenty of itterations but cant get it to work. I’ve searched an cant find an answer. I’m just trying to get the icon to change colour when ‘stove_enabled’ boolean in on, then back to white when off
Thanks in advance
type: glance
entities:
- entity: sensor.stove_sensors_stove_flow_2
card_mod:
style: |
:host {
--card-mod-icon: mdi:thermometer-chevron-up;
--card-mod-icon-color: {% if states ('input_boolean.stove_enabled', "on") -%} indianred
{% elif states ('input_boolean.stove_enabled', "off") -%} white
{% else %} white
{% endif %};