Hi all,
How can I add the yellow for this sensor when it is opened like the other sensors?
- platform: template
sensors:
roof:
friendly_name: "Roof"
value_template: "{% if is_state('input_boolean.roof_open', 'on') %}
Open
{% elif is_state('input_boolean.roof_open', 'off') %}
Closed
{% endif %}"
icon_template: "{% if states.input_boolean.roof_open.state == 'on' %}
mdi:door-open
{% elif states.input_boolean.roof_open.state == 'off' %}
mdi:door-closed
{% endif %}"