Revamp how morning/night works in E's bedroom

This commit is contained in:
2023-01-03 16:23:32 -05:00
parent 414cbe30f7
commit 1c3e2f189e
2 changed files with 101 additions and 75 deletions

View File

@ -561,48 +561,6 @@ automation:
seconds: 2
# The delay is to prevent the boolean from re-running the automation if the lights were turned on manually
script:
emma_wakeup:
alias: "Emma Wakeup"
mode: restart
sequence:
- if:
- condition: state
entity_id: input_boolean.early_night_mode
state: 'on'
then:
- service: input_select.select_option
target:
entity_id: input_select.emma_bedroom_scenes
data:
option: Nightlight
- service: light.turn_on
target:
entity_id: light.hallway_overhead
- delay:
seconds: 2
- service: input_select.select_option
target:
entity_id:
- input_select.upstairs_hallway_scenes
- input_select.master_bedroom_scenes
data:
option: Adaptive
else:
- service: light.turn_on
target:
entity_id: light.emma_bedroom_light
- service: input_select.select_option
target:
entity_id: input_select.emma_bedroom_scenes
data:
option: Adaptive
- delay:
minutes: 5
- service: input_boolean.turn_off
target:
entity_id: input_boolean.white_noise_emma_bedroom
scene:
- name: Adaptive in Living Room
icon: mdi:palette