Uppdatera 'motion_light_mod.yaml'

This commit is contained in:
Peter Wickenberg 2022-09-04 20:32:47 +00:00
parent 21cc4582b3
commit 0005fc22dc
1 changed files with 8 additions and 8 deletions

View File

@ -1,15 +1,15 @@
blueprint: blueprint:
name: Motion-activated Light Modified name: Motion-activated Light by occupancy
description: Turn on a light when motion/occupancy is detected. description: Turn on a light when occupancy is detected.
domain: automation domain: automation
source_url: https://gitea.rockhost.se/Piteball/ha-blueprints/_edit/master/motion_light_mod.yaml source_url: https://gitea.rockhost.se/Piteball/ha-blueprints/_edit/master/motion_light_mod.yaml
input: input:
motion_entity: motion_entity:
name: Motion Sensor name: Occupancy Sensor
selector: selector:
entity: entity:
domain: binary_sensor domain: binary_sensor
device_class: motion device_class: occupancy
light_target: light_target:
name: Light name: Light
selector: selector:
@ -34,8 +34,8 @@ max_exceeded: silent
trigger: trigger:
platform: state platform: state
entity_id: !input motion_entity entity_id: !input motion_entity
from: "off" from: "empty"
to: "on" to: "detected"
action: action:
- service: light.turn_on - service: light.turn_on
@ -43,8 +43,8 @@ action:
- wait_for_trigger: - wait_for_trigger:
platform: state platform: state
entity_id: !input motion_entity entity_id: !input motion_entity
from: "on" from: "detected"
to: "off" to: "empty"
- delay: !input no_motion_wait - delay: !input no_motion_wait
- service: light.turn_off - service: light.turn_off
target: !input light_target target: !input light_target