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' alias: 'Master Bedroom Sleep'
mode: restart mode: restart
sequence: sequence:
- if: - service: button.press
- condition: state target:
entity_id: climate.master_bedroom_aircon entity_id: button.master_bedroom_night_mode
state: 'cool'
then:
- service: climate.set_preset_mode
target:
entity_id: climate.master_bedroom_aircon
data:
preset_mode: 'none'
- wait_template: "{{ is_state('light.master_bedroom_lights','off') }}" - wait_template: "{{ is_state('light.master_bedroom_lights','off') }}"
timeout: timeout:
minutes: 30 minutes: 60
continue_on_timeout: true continue_on_timeout: true
- service: switch.turn_on - service: switch.turn_on
target: target: