Add configurable delay before lights turn off

This commit is contained in:
TheThomaas 2026-02-15 10:08:14 +01:00
parent ece9eb5685
commit 576857a310

View file

@ -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: