Add cold day handling

This commit is contained in:
2023-01-16 16:58:41 -05:00
parent 7e95b1695b
commit 00204bdfd3
3 changed files with 41 additions and 3 deletions

View File

@ -327,6 +327,22 @@ script:
- service: input_boolean.turn_off
target:
entity_id: input_boolean.hot_day
- if:
- condition: template
value_template: >
{% if state_attr('sensor.current_forecast','high_temp') >= states('input_number.cold_day_threshold') %}
true
{% else %}
false
{% endif %}
then:
- service: input_boolean.turn_on
target:
entity_id: input_boolean.cold_day
else:
- service: input_boolean.turn_off
target:
entity_id: input_boolean.cold_day
house_scheduling_evening:
sequence: