From 8f707c71bbb7de38cf867a45ce9e18f33b21a5f7 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Thu, 27 Feb 2025 00:50:53 -0500 Subject: [PATCH] Make it easier to activate nightlight in master bedroom --- automations.yaml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/automations.yaml b/automations.yaml index 2880ca4..c72f258 100644 --- a/automations.yaml +++ b/automations.yaml @@ -1149,10 +1149,23 @@ entity_id: switch.adaptive_lighting_master_bedroom action: switch.turn_off brightness_down_short_action: - - data: {} - target: - entity_id: switch.adaptive_lighting_master_bedroom - action: switch.turn_off + - if: + - condition: state + entity_id: light.master_bedroom_lights + state: 'off' + then: + - action: input_select.select_option + metadata: {} + data: + option: Nightlight + target: + entity_id: input_select.master_bedroom_scenes + else: + - data: {} + target: + entity_id: switch.adaptive_lighting_master_bedroom + action: switch.turn_off + alias: Activate nightlight if lights are off, otherwise act normal brightness_down_long_action: - data: {} target: