mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-07 10:18:44 +00:00
Improve window suggestions
This commit is contained in:
@@ -1,15 +1,29 @@
|
|||||||
>-
|
>-
|
||||||
|
|
||||||
{%- if states('sensor.dark_sky_temperature') < states('sensor.bedroom_weather_temperature') -%}
|
{%- set getting_hot = [
|
||||||
|
" to cool down a bit.",
|
||||||
|
". It's getting hot!",
|
||||||
|
", or you're probably gonna boil!",
|
||||||
|
", or you're gonna simmer!"
|
||||||
|
] -%}
|
||||||
|
|
||||||
{%- if is_state('binary_sensor.bedroom_right_window_on_off', 'off')
|
{%- set getting_cold = [
|
||||||
and states('sensor.bedroom_weather_temperature') > 22
|
" to warm up a bit.",
|
||||||
You should probably open the master bedroom window to cool down a bit.
|
". It's getting chilly!",
|
||||||
{%- endif -%}
|
", or you're probably gonna freeze!",
|
||||||
|
", or you're gonna ice up!"
|
||||||
|
] -%}
|
||||||
|
|
||||||
{%- if is_state('binary_sensor.bedroom_right_window_on_off', 'on')
|
{%- if states('sensor.dark_sky_temperature') < states('sensor.bedroom_weather_temperature') -%}
|
||||||
and states('sensor.bedroom_weather_temperature') < 18
|
|
||||||
You should probably close the master bedroom window, it's getting chilly.
|
|
||||||
{%- endif -%}
|
|
||||||
|
|
||||||
{% -endif -%}
|
{%- if is_state('binary_sensor.bedroom_right_window_on_off', 'off')
|
||||||
|
and states('sensor.bedroom_weather_temperature') > 22 -%}
|
||||||
|
You should probably open the master bedroom window{{ getting_hot | random }}
|
||||||
|
{%- endif -%}
|
||||||
|
|
||||||
|
{%- if is_state('binary_sensor.bedroom_right_window_on_off', 'on')
|
||||||
|
and states('sensor.bedroom_weather_temperature') < 18 -%}
|
||||||
|
You should probably close the master bedroom window{{ getting_cold | random }}
|
||||||
|
{%- endif -%}
|
||||||
|
|
||||||
|
{%- endif -%}
|
||||||
|
|||||||
Reference in New Issue
Block a user