From 345932ad623e8f120a01a48f0a81363ce14fb0f2 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Tue, 22 Feb 2022 18:07:02 -0500 Subject: [PATCH] Modified scenes and logic for the dining room lamp --- automations.yaml | 38 +++++++++++++++++++++++++++++++++++++- input_select.yaml | 2 ++ 2 files changed, 39 insertions(+), 1 deletion(-) diff --git a/automations.yaml b/automations.yaml index 76c8351..4d6861e 100644 --- a/automations.yaml +++ b/automations.yaml @@ -383,10 +383,22 @@ entity_id: input_select.dining_room_lamp_modes state: All Bulbs sequence: + - service: switch.turn_off + data: {} + target: + entity_id: switch.adaptive_lighting_sleep_mode_dining_room - service: scene.turn_on data: {} target: entity_id: scene.dining_room_lamp_full + - delay: + hours: 0 + minutes: 0 + seconds: 0 + milliseconds: 500 + - service: adaptive_lighting.apply + data: + entity_id: switch.adaptive_lighting_dining_room - conditions: - condition: state entity_id: input_select.dining_room_lamp_modes @@ -405,8 +417,32 @@ data: {} target: entity_id: scene.dining_room_lamp_wall + - conditions: + - condition: state + entity_id: input_select.dining_room_lamp_modes + state: Nightlight + sequence: + - service: switch.turn_on + data: {} + target: + entity_id: switch.adaptive_lighting_sleep_mode_dining_room + - service: scene.turn_on + data: {} + target: + entity_id: scene.dining_room_lamp_nightlight + - conditions: + - condition: state + entity_id: input_select.dining_room_lamp_modes + state: Reset + sequence: + - service: input_select.select_option + data: + option: All Bulbs + target: + entity_id: input_select.dining_room_lamp_modes default: [] - mode: single + mode: queued + max: 2 - id: '1644529151295' alias: Upstairs Hallway Scenes description: '' diff --git a/input_select.yaml b/input_select.yaml index b225e4b..e09f465 100644 --- a/input_select.yaml +++ b/input_select.yaml @@ -24,6 +24,8 @@ dining_room_lamp_modes: - All Bulbs - 3 Bulb - Dining Room - 2 Bulb - Wall + - Nightlight + - Reset initial: All Bulbs icon: mdi:floor-lamp-dual upstairs_hallway_scenes: