On hot days, leave upstairs climate devices on when we leave

This commit is contained in:
2023-06-18 16:15:34 -04:00
parent af4fecc2c7
commit c34d3a7e63

View File

@ -579,13 +579,30 @@ script:
entity_id: entity_id:
- input_boolean.white_noise_kallen_bedroom - input_boolean.white_noise_kallen_bedroom
- input_boolean.white_noise_emma_bedroom - input_boolean.white_noise_emma_bedroom
- service: fan.turn_off - if:
target: - condition: not
area_id: conditions:
- basement_studio - condition: state
- kallen_bedroom entity_id:
- master_bedroom - input_boolean.hot_day
- emma_bedroom - binary_sensor.heat_warning
- binary_sensor.heat_threshold
- binary_sensor.heat_index_threshold
state: 'on'
then:
- service: fan.turn_off
target:
area_id:
- basement_studio
- kallen_bedroom
- master_bedroom
- emma_bedroom
else:
- service: fan.turn_off
target:
area_id:
- basement_studio
- master_bedroom
- delay: - delay:
seconds: 5 seconds: 5
- service: switch.turn_on - service: switch.turn_on