From c630c2e7772ebf10b3aefe3b73304589966b2396 Mon Sep 17 00:00:00 2001 From: Ben Charlton Date: Sat, 17 Feb 2018 20:41:55 +0000 Subject: [PATCH] PIR activation automations --- automations.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/automations.yaml b/automations.yaml index 83008ad..4713080 100644 --- a/automations.yaml +++ b/automations.yaml @@ -75,3 +75,28 @@ action: service: switch.turn_on entity_id: switch.aeotec_zw096_smart_switch_6_switch + +- alias: PIR Arm + trigger: + platform: state + entity_id: group.presence + condition: + condition: state + entity_id: group.presence + state: 'not_home' + action: + service: switch.turn_on + entity_id: switch.hall_camera_motion_detection + +- alias: PIR Disarm + trigger: + platform: state + entity_id: group.presence + condition: + condition: state + entity_id: group.presence + state: 'home' + action: + service: switch.turn_off + entity_id: switch.hall_camera_motion_detection +