From f65940698690643220351318efa683500f2a432a Mon Sep 17 00:00:00 2001 From: "J.P. Krauss" Date: Sat, 4 Mar 2023 11:55:56 -0800 Subject: [PATCH] Update Security Package --- packages/security/security.yaml | 41 ++++++++++++++++++++++++++++++--- 1 file changed, 38 insertions(+), 3 deletions(-) diff --git a/packages/security/security.yaml b/packages/security/security.yaml index ee0c4d3..5a925f7 100644 --- a/packages/security/security.yaml +++ b/packages/security/security.yaml @@ -42,6 +42,8 @@ input_boolean: name: Automatically Arm Alarm on Presence Change auto_disarm_alarm: name: Automatically Disarm Alarm on Presence Change + disable_camera_events: + name: Disable Camera Events binary_sensor: @@ -302,6 +304,36 @@ automation: target: entity_id: alarm_control_panel.ha_alarm + - alias: Pause Camera Event Detection + trigger: + - platform: state + entity_id: input_binary.disable_camera_events + to: 'on' + action: + - service: mqtt.publish + data: + topic: frigate/backyard/detect/set + payload: 'OFF' + - service: mqtt.publish + data: + topic: frigate/doorbell/detect/set + payload: 'OFF' + + - alias: Resume Camera Event Detection + trigger: + - platform: state + entity_id: input_binary.disable_camera_events + to: 'off' + action: + - service: mqtt.publish + data: + topic: frigate/backyard/detect/set + payload: 'ON' + - service: mqtt.publish + data: + topic: frigate/doorbell/detect/set + payload: 'ON' + - alias: Pause Doorbell Event Detection on Arrival or Departure trigger: - platform: state @@ -314,10 +346,9 @@ automation: entity_id: binary_sensor.front_door to: 'on' condition: - # TODO: Fix Entity ID Here condition: state - entity_id: switch.detect_2 - state: 'on' + entity_id: input_binary.disable_camera_events + state: 'off' action: - service: mqtt.publish data: @@ -352,6 +383,10 @@ automation: - platform: state entity_id: alarm_control_panel.ha_alarm not_to: disarmed + condition: + condition: state + entity_id: input_binary.disable_camera_events + state: 'off' action: - delay: 60 - service: mqtt.publish