From 576857a310d013bf27204bef85d183652447ab57 Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sun, 15 Feb 2026 10:08:14 +0100 Subject: [PATCH] Add configurable delay before lights turn off --- alarm_clock.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/alarm_clock.yaml b/alarm_clock.yaml index 3f6095b..0626cea 100644 --- a/alarm_clock.yaml +++ b/alarm_clock.yaml @@ -18,6 +18,14 @@ blueprint: number: min: 0 max: 30 + turn_off_delay: + name: Lights turn off delay + description: Belay before the lights turn off after waking up + default: 10 + selector: + number: + min: 0 + max: 30 binary_condition: name: Alarm today description: Trigger the alarm today ? @@ -128,7 +136,7 @@ action: to: "on" # - wait_template: "{{ is_state(has_woken_up, 'on') }}" - delay: - minutes: 10 + minutes: !input turn_off_delay - service: light.turn_off entity_id: !input 'target_light' data: