Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
- name: Tuer_status
unique_id: t_status
state: >
{% if states('binary_sensor.balkontuer_window_door_is_open') == 'on' %}
{% if states('binary_sensor.balkontuer_window_door_is_open_in_tilt_position') == 'off' %}
{{ 'Geöffnet' }}
{% endif %}
{% endif %}
{% if states('binary_sensor.balkontuer_window_door_is_open') == 'on' %}
{% if states('binary_sensor.balkontuer_window_door_is_open_in_tilt_position') == 'on' %}
{{ 'Gekippt' }}
{% endif %}
{% endif %}
{% if states('binary_sensor.balkontuer_window_door_is_open') == 'off' %}
{% if states('binary_sensor.balkontuer_window_door_is_open_in_tilt_position') == 'off' %}
{{ 'Geschlossen' }}
{% endif %}
{% endif %}
unit_of_measurement: Status
Gerne! Tut mir leid wenn es etwas gedauert hat. Aber Hauptsache es funktioniert jetzt wie gewünscht.vielen Dank für die Mühe
{% set door_open = states('binary_sensor.balkontuer_window_door_is_open') %}
{% set door_tilted = states('binary_sensor.balkontuer_window_door_is_open_in_tilt_position') %}
{% if door_open == 'off' and door_tilted == 'off' %}
{{ 'Geschlossen' }}
{% else %}
{{ 'Gekippt' if door_tilted == 'on' else 'Geöffnet' }}
{% endif %}