From 0005fc22dc72a7e2f821bb2d61320f9cb28004b3 Mon Sep 17 00:00:00 2001 From: Peter Wickenberg Date: Sun, 4 Sep 2022 20:32:47 +0000 Subject: [PATCH] Uppdatera 'motion_light_mod.yaml' --- motion_light_mod.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/motion_light_mod.yaml b/motion_light_mod.yaml index 3e986dc..c40fc27 100644 --- a/motion_light_mod.yaml +++ b/motion_light_mod.yaml @@ -1,15 +1,15 @@ blueprint: - name: Motion-activated Light Modified - description: Turn on a light when motion/occupancy is detected. + name: Motion-activated Light by occupancy + description: Turn on a light when occupancy is detected. domain: automation source_url: https://gitea.rockhost.se/Piteball/ha-blueprints/_edit/master/motion_light_mod.yaml input: motion_entity: - name: Motion Sensor + name: Occupancy Sensor selector: entity: domain: binary_sensor - device_class: motion + device_class: occupancy light_target: name: Light selector: @@ -34,8 +34,8 @@ max_exceeded: silent trigger: platform: state entity_id: !input motion_entity - from: "off" - to: "on" + from: "empty" + to: "detected" action: - service: light.turn_on @@ -43,8 +43,8 @@ action: - wait_for_trigger: platform: state entity_id: !input motion_entity - from: "on" - to: "off" + from: "detected" + to: "empty" - delay: !input no_motion_wait - service: light.turn_off target: !input light_target \ No newline at end of file