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

@@ -23,6 +23,11 @@
after: '07:30' after: '07:30'
before: '09:00' before: '09:00'
- platform: tod
name: Late Morning
after: '09:00'
before: '12:00'
- platform: tod - platform: tod
name: Midday name: Midday
after: '09:00' after: '09:00'

View File

@@ -242,11 +242,12 @@ script:
alias: "Emma Wakeup" alias: "Emma Wakeup"
mode: restart mode: restart
sequence: sequence:
- if: - choose:
- conditions:
- condition: state - condition: state
entity_id: input_boolean.early_night_mode entity_id: input_boolean.early_night_mode
state: 'on' state: 'on'
then: sequence:
- service: input_select.select_option - service: input_select.select_option
target: target:
entity_id: input_select.emma_bedroom_scenes entity_id: input_select.emma_bedroom_scenes
@@ -264,7 +265,16 @@ script:
- input_select.master_bedroom_scenes - input_select.master_bedroom_scenes
data: data:
option: Adaptive option: Adaptive
else: - 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 - service: light.turn_on
target: target:
entity_id: light.emma_bedroom_light entity_id: light.emma_bedroom_light