hassio-conf/templates/kitchen.yaml
Robert Kaussow fd89469dfa
Some checks failed
ci/woodpecker/push/test Pipeline failed
ci/woodpecker/push/notify Pipeline was successful
ci: fix yamllint issues
2024-10-18 12:08:04 +02:00

14 lines
461 B
YAML

---
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 %}