From 01720f02f99b624c9242b6cb66776fc3e523b083 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Mon, 14 Mar 2022 20:25:55 -0400 Subject: [PATCH] Further automation adjustments RE: upstairs bathroom lighting --- automations.yaml | 57 ++++++++++++++++++++++++++++++++++++++++++++++ configuration.yaml | 2 ++ groups.yaml | 1 + input_select.yaml | 10 ++++++++ 4 files changed, 70 insertions(+) diff --git a/automations.yaml b/automations.yaml index 2538075..2d1328c 100644 --- a/automations.yaml +++ b/automations.yaml @@ -882,3 +882,60 @@ dashboard: lovelace player: media_player.basement_tv_chromecast view: chromecast +- id: '1647303056500' + alias: Upstairs Bathroom Scenes + description: '' + trigger: + - platform: state + entity_id: input_select.upstairs_bathroom_scenes + condition: [] + action: + - choose: + - conditions: + - condition: state + entity_id: input_select.upstairs_bathroom_scenes + state: Bright + sequence: + - service: scene.turn_on + data: {} + target: + entity_id: scene.upstairs_bathroom_bright + - conditions: + - condition: state + entity_id: input_select.upstairs_bathroom_scenes + state: Dimmed + sequence: + - service: scene.turn_on + data: {} + target: + entity_id: scene.upstairs_bathroom_dimmed + - conditions: + - condition: state + entity_id: input_select.upstairs_bathroom_scenes + state: Nightlight + sequence: + - service: scene.turn_on + data: {} + target: + entity_id: scene.upstairs_bathroom_nightlight + - conditions: + - condition: state + entity_id: input_select.upstairs_bathroom_scenes + state: Adaptive + sequence: + - service: adaptive_lighting.apply + data: + entity_id: switch.adaptive_lighting_upstairs_bathroom + - conditions: + - condition: state + entity_id: input_select.upstairs_bathroom_scenes + state: Reset + sequence: + - service: input_select.select_option + data: + option: Adaptive + target: + entity_id: input_select.upstairs_bathroom_scenes + default: [] + mode: queued + max: 2 diff --git a/configuration.yaml b/configuration.yaml index 28f46d0..a2c91e6 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -67,6 +67,8 @@ light: - light.hallway_overhead - light.kallen_bedroom_light - light.nursery_light + - light.upstairs_bathroom_left + - light.upstairs_bathroom_right - platform: group name: Basement Studio Lights entities: diff --git a/groups.yaml b/groups.yaml index 9c0c461..2b71d93 100644 --- a/groups.yaml +++ b/groups.yaml @@ -15,3 +15,4 @@ Presence Simulation: - light.mud_room_overhead - light.nursery_light - light.dining_room_lamp + - light.upstairs_bathroom_lights diff --git a/input_select.yaml b/input_select.yaml index 187c9aa..839e0d6 100644 --- a/input_select.yaml +++ b/input_select.yaml @@ -89,3 +89,13 @@ master_bedroom_scenes: - Reset initial: Adaptive icon: mdi:bed +upstairs_bathroom_scenes: + name: Upstairs Bathroom Scenes + options: + - Adaptive + - Bright + - Dimmed + - Nightlight + - Reset + initial: Adaptive + icon: mdi:toilet