Master Bedroom AC now uses eco mode until someone is actually sleeping

This commit is contained in:
2023-04-05 00:09:30 -04:00
parent 8571ddae60
commit 54a3bda13a
2 changed files with 14 additions and 1 deletions

Submodule node-red/projects/NerdFlows updated: d85f662da8...2d1b77e899

View File

@ -82,6 +82,9 @@ script:
alias: 'Master Bedroom Wakeup'
mode: restart
sequence:
- service: button.press
target:
entity_id: button.master_bedroom_day_mode
- service: switch.turn_off
target:
entity_id: switch.master_bedroom_echo_dot_do_not_disturb_switch
@ -112,6 +115,16 @@ 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'
- wait_template: "{{ is_state('light.master_bedroom_lights','off') }}"
timeout:
minutes: 1