From 28303fa0fd0657ece1aeabd5f78dfdb7b548fce4 Mon Sep 17 00:00:00 2001 From: "J.P. Krauss" Date: Mon, 15 Aug 2022 18:11:54 -0700 Subject: [PATCH] Update Security Package --- packages/security/security.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/packages/security/security.yaml b/packages/security/security.yaml index fe1f495..e8aa218 100644 --- a/packages/security/security.yaml +++ b/packages/security/security.yaml @@ -241,3 +241,25 @@ automation: - service: alarm_control_panel.alarm_trigger target: entity_id: alarm_control_panel.ha_alarm + + - alias: Pause Doorbell Event Detection on Arrival or Departure + trigger: + - platform: state + entity_id: person.jpk + to: 'home' + - platform: state + entity_id: person.jen + to: 'home' + - platform: state + entity_id: binary_sensor.front_door + to: 'on' + action: + - service: mqtt.publish + data: + topic: frigate/doorbell/detect/set + payload: 'OFF' + - delay: 60 + - service: mqtt.publish + data: + topic: frigate/doorbell/detect/set + payload: 'ON'