mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-09 10:14:41 +00:00
Fix window sensor names
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
>-
|
||||
|
||||
{%- if is_state('group.all_windows', 'on') -%}
|
||||
{%- if is_state('binary_sensor.living_room_right_window_on_off', 'on') -%} The living room window is opened. {% endif %}
|
||||
{%- if is_state('binary_sensor.bedroom_right_window_on_off', 'on') -%} The master bedroom window is opened. {%- endif -%}
|
||||
{%- 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 -%}
|
||||
|
||||
@@ -16,12 +16,12 @@
|
||||
|
||||
{%- if (states('sensor.dark_sky_temperature') | int) < (states('sensor.bedroom_weather_temperature') | int) -%}
|
||||
|
||||
{%- if is_state('binary_sensor.bedroom_right_window_on_off', 'off')
|
||||
{%- if is_state('binary_sensor.bedroom_right_window', 'off')
|
||||
and (states('sensor.bedroom_weather_temperature') | int) > 22 -%}
|
||||
You should probably open the master bedroom window{{ getting_hot | random }}
|
||||
{%- endif -%}
|
||||
|
||||
{%- if is_state('binary_sensor.bedroom_right_window_on_off', 'on')
|
||||
{%- if is_state('binary_sensor.bedroom_right_window', 'on')
|
||||
and (states('sensor.bedroom_weather_temperature') | int) < 18 -%}
|
||||
You should probably close the master bedroom window{{ getting_cold | random }}
|
||||
{%- endif -%}
|
||||
|
||||
Reference in New Issue
Block a user