Files
sarah/templates/partials/window_check.yaml
2022-12-01 16:01:59 +02:00

9 lines
349 B
YAML

>-
{%- if is_state('group.all_windows', 'on') -%}
{%- if is_state('binary_sensor.living_room_right_window', 'on') -%} The living room window is opened. {% endif %}
{%- if is_state('binary_sensor.bedroom_right_window', 'on') -%} The master bedroom window is opened. {%- endif -%}
{%- else -%}
All windows are closed.
{%- endif -%}