From c288744b1a89290e38e03b9bde40725d0053f700 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Thu, 10 Feb 2022 16:35:15 -0500 Subject: [PATCH] Created mode selection dropdown for dining room lamp --- automations.yaml | 38 ++++++++++++++++++++++++++++++++++++++ input_select.yaml | 8 ++++++++ 2 files changed, 46 insertions(+) diff --git a/automations.yaml b/automations.yaml index 98d719b..f5deaaa 100644 --- a/automations.yaml +++ b/automations.yaml @@ -343,3 +343,41 @@ entity_id: switch.adaptive_lighting_mud_room default: [] mode: single +- id: '1644528841392' + alias: Dining Room Lamp Modes + description: '' + trigger: + - platform: state + entity_id: input_select.dining_room_lamp_modes + condition: [] + action: + - choose: + - conditions: + - condition: state + entity_id: input_select.dining_room_lamp_modes + state: All Bulbs + sequence: + - service: scene.turn_on + data: {} + target: + entity_id: scene.dining_room_lamp_full + - conditions: + - condition: state + entity_id: input_select.dining_room_lamp_modes + state: 3 Bulb - Dining Room + sequence: + - service: scene.turn_on + data: {} + target: + entity_id: scene.dining_room_lamp_dining_side + - conditions: + - condition: state + entity_id: input_select.dining_room_lamp_modes + state: 2 Bulb - Wall + sequence: + - service: scene.turn_on + data: {} + target: + entity_id: scene.dining_room_lamp_wall + default: [] + mode: single diff --git a/input_select.yaml b/input_select.yaml index 4c68ec4..1947807 100644 --- a/input_select.yaml +++ b/input_select.yaml @@ -16,3 +16,11 @@ mud_room_scenes: - Nightlight initial: Adaptive icon: hue:room-other +dining_room_lamp_modes: + name: Dining Room Lamp Modes + options: + - All Bulbs + - 3 Bulb - Dining Room + - 2 Bulb - Wall + initial: All Bulbs + icon: mdi:floor-lamp-dual