Let Node-RED handle sleep switch climate stuff

This commit is contained in:
2023-05-08 17:16:44 -04:00
parent 13e24ae4c0
commit 4a4e80c256
2 changed files with 5 additions and 12 deletions

Submodule node-red/projects/NerdFlows updated: 41f60d83b3...daa39a8159

View File

@ -152,19 +152,12 @@ script:
alias: 'Master Bedroom Sleep'
mode: restart
sequence:
- if:
- condition: state
entity_id: climate.master_bedroom_aircon
state: 'cool'
then:
- service: climate.set_preset_mode
target:
entity_id: climate.master_bedroom_aircon
data:
preset_mode: 'none'
- service: button.press
target:
entity_id: button.master_bedroom_night_mode
- wait_template: "{{ is_state('light.master_bedroom_lights','off') }}"
timeout:
minutes: 30
minutes: 60
continue_on_timeout: true
- service: switch.turn_on
target: