From e406a47293e9b0c6fafe372dd755d532cd96bcb6 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sat, 28 Nov 2020 23:56:15 +0100 Subject: [PATCH] Allow configuring the delay in the motion light blueprint (#43737) --- .../automation/blueprints/motion_light.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/automation/blueprints/motion_light.yaml b/homeassistant/components/automation/blueprints/motion_light.yaml index c923778156d..6cf368f9c0d 100644 --- a/homeassistant/components/automation/blueprints/motion_light.yaml +++ b/homeassistant/components/automation/blueprints/motion_light.yaml @@ -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