From ff5c6c9fa6794bafc5301963ab3bc475b0ed16f9 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Mon, 25 Sep 2023 12:52:13 -0400 Subject: [PATCH] Fix stairwell LED strip staying on in the morning --- packages/lighting_and_scenes.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/packages/lighting_and_scenes.yaml b/packages/lighting_and_scenes.yaml index e011068..37da387 100644 --- a/packages/lighting_and_scenes.yaml +++ b/packages/lighting_and_scenes.yaml @@ -653,7 +653,17 @@ automation: - service: script.stairwell_led_strip data: color_temp_kelvin: 2000 - brightness: 50 + brightness: "{{ 50 if is_state('binary_sensor.early_night_mode','on') else 255 }}" + - delay: + seconds: 5 + - if: + - condition: state + entity_id: binary_sensor.early_night_mode + state: 'off' + then: + - service: light.turn_off + target: + entity_id: light.stairwell_led_strip - id: b897d714-bbf2-44ce-afaf-63cf3694351c alias: Tina Desk Lights Handler