I’m trying to change the color of the icon when the input_boolean is changed using a variable. I know how to do it without using a variable, but trying to learn with variables. I’m sure it’s some simple syntax error.
{% set away = states('input_boolean.away') %}
{% if is_state('away', 'on' %}
green
{% endif %}
1 post - 1 participant