Let Node-RED handle sleep switch climate stuff
This commit is contained in:
Submodule node-red/projects/NerdFlows updated: 41f60d83b3...daa39a8159
@ -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:
|
||||
|
Reference in New Issue
Block a user