From dda88736fa3178a823a01019061b5ba8aa803a18 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Thu, 10 Feb 2022 14:14:06 -0500 Subject: [PATCH] Created scene selection dropdown for living room --- automations.yaml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ input_select.yaml | 9 +++++++++ 2 files changed, 55 insertions(+) diff --git a/automations.yaml b/automations.yaml index 5f8579b..1f632c9 100644 --- a/automations.yaml +++ b/automations.yaml @@ -251,3 +251,49 @@ - service: device_tracker.icloud3_restart data: {} mode: single +- id: '1644520312792' + alias: Living Room Scenes + description: '' + trigger: + - platform: state + entity_id: input_select.living_room_scenes + condition: [] + action: + - choose: + - conditions: + - condition: state + entity_id: input_select.living_room_scenes + state: Bright + sequence: + - service: scene.turn_on + data: {} + target: + entity_id: scene.living_room_bright + - conditions: + - condition: state + entity_id: input_select.living_room_scenes + state: Dimmed + sequence: + - service: scene.turn_on + data: {} + target: + entity_id: scene.living_room_dimmed + - conditions: + - condition: state + entity_id: input_select.living_room_scenes + state: Nightlight + sequence: + - service: scene.turn_on + data: {} + target: + entity_id: scene.living_room_nightlight + - conditions: + - condition: state + entity_id: input_select.living_room_scenes + state: Adaptive + sequence: + - service: adaptive_lighting.apply + data: + entity_id: switch.adaptive_lighting_living_room + default: [] + mode: single diff --git a/input_select.yaml b/input_select.yaml index e69de29..b26dece 100644 --- a/input_select.yaml +++ b/input_select.yaml @@ -0,0 +1,9 @@ +living_room_scenes: + name: Living Room Scenes + options: + - Adaptive + - Bright + - Dimmed + - Nightlight + initial: Adaptive + icon: hue:room-living