hassio-conf/templates/kitchen.yaml

14 lines
461 B
YAML
Raw Normal View History

2024-10-18 10:08:04 +00:00
---
binary_sensor:
- name: ki_fridge_door_sensor_contact_state
state: "{{ states('binary_sensor.ki_fridge_door_sensor_contact') }}"
device_class: door
icon: >
{% if states.binary_sensor.ki_fridge_door_sensor_contact.state is defined %}
{% if is_state('binary_sensor.ki_fridge_door_sensor_contact', 'off') %}
mdi:fridge-industrial
{% else %}
mdi:fridge-industrial-alert-outline
{% endif %}
{% endif %}