Basically title, I have a template checking the temperature inside/outside and figuring out if I need to open windows when it evaluates true, Do I need to add a timer to check this periodically?
alias: Manage house temperature and windows
description: ""
triggers:
- id: office_open
trigger: template
value_template: |
{{
state_attr('weather.forecast_home', 'temperature') | float
<
(states('sensor.office_sensor_temperature') | float - 1)
}}
- id: downstairs_open
trigger: template
value_template: |
{{
state_attr('weather.forecast_home', 'temperature') | float
<
(states('sensor.downstairs_sensor_temperature') | float - 1)
}}
- id: office_close
trigger: template
value_template: |
{{
state_attr('weather.forecast_home', 'temperature') | float
>
(states('sensor.office_sensor_temperature') | float - 0.5)
}}
- id: downstairs_close
trigger: template
value_template: |
{{
state_attr('weather.forecast_home', 'temperature') | float
>
(states('sensor.downstairs_sensor_temperature') | float - 0.5)
}}