mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-21 02:47:44 +00:00
26 lines
837 B
YAML
26 lines
837 B
YAML
>-
|
|
|
|
{%- set getting_hot = [
|
|
" to cool down a bit.",
|
|
". It's getting hot!",
|
|
] -%}
|
|
|
|
{%- set getting_cold = [
|
|
" to warm up a bit.",
|
|
". It's getting chilly!",
|
|
] -%}
|
|
|
|
{%- if (states('sensor.dark_sky_temperature') | int) < (states('sensor.bedroom_weather_temperature') | int) -%}
|
|
|
|
{%- if is_state('binary_sensor.bedroom_right_window_contact', '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_contact', 'on')
|
|
and (states('sensor.bedroom_weather_temperature') | int) < 18 -%}
|
|
You should probably close the master bedroom window{{ getting_cold | random }}
|
|
{%- endif -%}
|
|
|
|
{%- endif -%}
|