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: number:
min: 0 min: 0
max: 30 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: binary_condition:
name: Alarm today name: Alarm today
description: Trigger the alarm today ? description: Trigger the alarm today ?
@ -128,7 +136,7 @@ action:
to: "on" to: "on"
# - wait_template: "{{ is_state(has_woken_up, 'on') }}" # - wait_template: "{{ is_state(has_woken_up, 'on') }}"
- delay: - delay:
minutes: 10 minutes: !input turn_off_delay
- service: light.turn_off - service: light.turn_off
entity_id: !input 'target_light' entity_id: !input 'target_light'
data: data: