Evening All,
I’ve got my lovely Xiaomi door sensor integrated into my HASSIO frontend with the following:
- platform: template
sensors:
front_door:
friendly_name: "Front Door"
value_template: >-
{% if is_state('binary_sensor.door_window_sensor_158d0001f49c83', 'on') %}
Open
{% else %}
Closed
{% endif %}
icon_template: >
{% if is_state('binary_sensor.door_window_sensor_158d0001f49c83', 'on') %}
mdi:door-open
{% else %}
mdi:door-closed
{% endif %}
Is there any way to make the mdi:door-closed yellow ala the light switches? Would just be a quicker way to see if a door is open. If you could point me in the right direction it would be appreciated, thanks.