mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +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:
|
target:
|
||||||
entity:
|
entity:
|
||||||
domain: light
|
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.
|
# we restart the script.
|
||||||
mode: restart
|
mode: restart
|
||||||
max_exceeded: silent
|
max_exceeded: silent
|
||||||
@ -35,6 +43,6 @@ action:
|
|||||||
entity_id: !placeholder motion_entity
|
entity_id: !placeholder motion_entity
|
||||||
from: "on"
|
from: "on"
|
||||||
to: "off"
|
to: "off"
|
||||||
- delay: 120
|
- delay: !placeholder no_motion_wait
|
||||||
- service: homeassistant.turn_off
|
- service: homeassistant.turn_off
|
||||||
target: !placeholder light_target
|
target: !placeholder light_target
|
||||||
|
Loading…
x
Reference in New Issue
Block a user