From bade798c10b76ac899c9b8a543d8a5d89bcc155d Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Tue, 13 Dec 2022 20:22:08 -0500 Subject: [PATCH] Added baby wakeup script, renamed file --- ...lighting.yaml => lighting_and_scenes.yaml} | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) rename packages/{lighting.yaml => lighting_and_scenes.yaml} (94%) diff --git a/packages/lighting.yaml b/packages/lighting_and_scenes.yaml similarity index 94% rename from packages/lighting.yaml rename to packages/lighting_and_scenes.yaml index fe2d3d4..ebb8888 100644 --- a/packages/lighting.yaml +++ b/packages/lighting_and_scenes.yaml @@ -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