From 5cbf7f56ae52bf19781b4e699357284fc20d0b96 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Tue, 15 Mar 2022 20:22:00 -0400 Subject: [PATCH] Added 3rd bulb upstairs bathroom, 2 bulbs downstairs bathroom --- automations.yaml | 57 ++++++++++++++++++++++++++++++++++++++++++++++ configuration.yaml | 6 +++++ groups.yaml | 1 + input_select.yaml | 10 ++++++++ 4 files changed, 74 insertions(+) diff --git a/automations.yaml b/automations.yaml index 2d1328c..3080984 100644 --- a/automations.yaml +++ b/automations.yaml @@ -939,3 +939,60 @@ default: [] mode: queued max: 2 +- id: '1647389966311' + alias: Downstairs Bathroom Scenes + description: '' + trigger: + - platform: state + entity_id: input_select.downstairs_bathroom_scenes + condition: [] + action: + - choose: + - conditions: + - condition: state + entity_id: input_select.downstairs_bathroom_scenes + state: Bright + sequence: + - service: scene.turn_on + data: {} + target: + entity_id: scene.downstairs_bathroom_bright + - conditions: + - condition: state + entity_id: input_select.downstairs_bathroom_scenes + state: Dimmed + sequence: + - service: scene.turn_on + data: {} + target: + entity_id: scene.downstairs_bathroom_dimmed + - conditions: + - condition: state + entity_id: input_select.downstairs_bathroom_scenes + state: Nightlight + sequence: + - service: scene.turn_on + data: {} + target: + entity_id: scene.downstairs_bathroom_nightlight + - conditions: + - condition: state + entity_id: input_select.downstairs_bathroom_scenes + state: Adaptive + sequence: + - service: adaptive_lighting.apply + data: + entity_id: switch.adaptive_lighting_downstairs_bathroom + - conditions: + - condition: state + entity_id: input_select.downstairs_bathroom_scenes + state: Reset + sequence: + - service: input_select.select_option + data: + option: Adaptive + target: + entity_id: input_select.downstairs_bathroom_scenes + default: [] + mode: queued + max: 2 diff --git a/configuration.yaml b/configuration.yaml index a2c91e6..78ac86c 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -81,6 +81,12 @@ light: entities: - light.upstairs_bathroom_left - light.upstairs_bathroom_right + - light.upstairs_bathroom_wall + - platform: group + name: Downstairs Bathroom Lights + entities: + - light.downstairs_bathroom_left + - light.downstairs_bathroom_right frontend: themes: !include_dir_merge_named themes diff --git a/groups.yaml b/groups.yaml index 2b71d93..1e00e9f 100644 --- a/groups.yaml +++ b/groups.yaml @@ -16,3 +16,4 @@ Presence Simulation: - light.nursery_light - light.dining_room_lamp - light.upstairs_bathroom_lights + - light.downstairs_bathroom_lights diff --git a/input_select.yaml b/input_select.yaml index 839e0d6..d992244 100644 --- a/input_select.yaml +++ b/input_select.yaml @@ -99,3 +99,13 @@ upstairs_bathroom_scenes: - Reset initial: Adaptive icon: mdi:toilet +downstairs_bathroom_scenes: + name: Downstairs Bathroom Scenes + options: + - Adaptive + - Bright + - Dimmed + - Nightlight + - Reset + initial: Adaptive + icon: mdi:toilet