Fix window suggestion template

This commit is contained in:
2020-03-13 16:52:50 +02:00
parent b1934744c6
commit 655817a942
2 changed files with 5 additions and 3 deletions

View File

@@ -37,6 +37,8 @@ updater:
# https://www.home-assistant.io/components/logger
logger:
default: warning
logs:
homeassistant.components.amcrest: error
#
# ─── INTEGRATIONS ───────────────────────────────────────────────────────────────

View File

@@ -14,15 +14,15 @@
", or you're gonna ice up!"
] -%}
{%- if states('sensor.dark_sky_temperature') < states('sensor.bedroom_weather_temperature') -%}
{%- if (states('sensor.dark_sky_temperature') | int) < (states('sensor.bedroom_weather_temperature') | int) -%}
{%- if is_state('binary_sensor.bedroom_right_window_on_off', 'off')
and states('sensor.bedroom_weather_temperature') > 22 -%}
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')
and states('sensor.bedroom_weather_temperature') < 18 -%}
and (states('sensor.bedroom_weather_temperature') | int) < 18 -%}
You should probably close the master bedroom window{{ getting_cold | random }}
{%- endif -%}