Another rebuild of E's wakeup script. One day I'll be happy...

This commit is contained in:
2023-01-16 14:04:09 -05:00
parent 7f662ab8d6
commit 6492edee5e
2 changed files with 46 additions and 31 deletions

View File

@ -242,37 +242,47 @@ script:
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
- choose:
- conditions:
- condition: state
entity_id: input_boolean.early_night_mode
state: 'on'
sequence:
- 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
- conditions:
- condition: or
conditions:
- condition: state
entity_id: binary_sensor.morning
state: 'on'
- condition: state
entity_id: binary_sensor.late_morning
state: 'on'
sequence:
- 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