From 2a0c04252958bc96c54a621893d6f368c65d9d35 Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Thu, 21 Nov 2019 21:35:51 -0500 Subject: [PATCH] Added audible notification when arlo motion sensor tripped --- config/packages/security.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/config/packages/security.yaml b/config/packages/security.yaml index 628b62a..3e7c477 100755 --- a/config/packages/security.yaml +++ b/config/packages/security.yaml @@ -162,6 +162,27 @@ automation: call_interuption: 1 initial_state: true + + - id: motion_detected + alias: motion_detected + trigger: + - platform: state + entity_id: + - binary_sensor.aarlo_motion_front_door + - binary_sensor.aarlo_motion_driveway + from: 'off' + to: 'on' + condition: + - condition: state + entity_id: input_boolean.audible_notifications + state: 'on' + action: + - service: script.ah_report + data_template: + speech_message: "I have detected motion at the {{ trigger.to_state.attributes.friendly_name }}." + call_interuption: 1 + initial_state: true + - id: garage_opened_night alias: Garage Opened at Night trigger: