Added baby wakeup script, renamed file

This commit is contained in:
2022-12-13 20:22:08 -05:00
parent 7c67c69451
commit bade798c10

View File

@ -404,6 +404,48 @@ automation:
target:
entity_id: light.first_floor_lights
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