mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Allow configuring the delay in the motion light blueprint (#43737)
This commit is contained in:
parent
1162d9a752
commit
e406a47293
@ -15,8 +15,16 @@ blueprint:
|
||||
target:
|
||||
entity:
|
||||
domain: light
|
||||
no_motion_wait:
|
||||
name: Wait time
|
||||
description: Time to wait until the light should be turned off.
|
||||
default: 120
|
||||
selector:
|
||||
number:
|
||||
min: 0
|
||||
max: 3600
|
||||
|
||||
# If motion is detected within the 120s delay,
|
||||
# If motion is detected within the delay,
|
||||
# we restart the script.
|
||||
mode: restart
|
||||
max_exceeded: silent
|
||||
@ -35,6 +43,6 @@ action:
|
||||
entity_id: !placeholder motion_entity
|
||||
from: "on"
|
||||
to: "off"
|
||||
- delay: 120
|
||||
- delay: !placeholder no_motion_wait
|
||||
- service: homeassistant.turn_off
|
||||
target: !placeholder light_target
|
||||
|
Loading…
x
Reference in New Issue
Block a user