Add window suggestions

This commit is contained in:
2020-03-11 23:14:49 +02:00
parent 45d4923320
commit 75c5a7b565
2 changed files with 17 additions and 2 deletions

View File

@@ -29,8 +29,8 @@ script:
partials:
- !include ../../templates/partials/greeting.yaml
- !include ../../templates/partials/time.yaml
- "Here's the current status:"
- !include ../../templates/partials/window_check.yaml
# - "Here's the current status:" // TODO: figure out if there will be anything to say?
- !include ../../templates/partials/window_suggestions.yaml
- wait_template: "{{ is_state('input_boolean.sarah_talking', 'off') }}"
timeout: 00:02:00
- delay: 00:00:01

View File

@@ -0,0 +1,15 @@
>-
{%- if states('sensor.dark_sky_temperature') < states('sensor.bedroom_weather_temperature') -%}
{%- 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 to cool down a bit.
{%- 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, it's getting chilly.
{%- endif -%}
{% -endif -%}