Update Security Package

This commit is contained in:
2023-03-04 11:55:56 -08:00
parent 0795ee10f7
commit f659406986

View File

@@ -42,6 +42,8 @@ input_boolean:
name: Automatically Arm Alarm on Presence Change name: Automatically Arm Alarm on Presence Change
auto_disarm_alarm: auto_disarm_alarm:
name: Automatically Disarm Alarm on Presence Change name: Automatically Disarm Alarm on Presence Change
disable_camera_events:
name: Disable Camera Events
binary_sensor: binary_sensor:
@@ -302,6 +304,36 @@ automation:
target: target:
entity_id: alarm_control_panel.ha_alarm 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 - alias: Pause Doorbell Event Detection on Arrival or Departure
trigger: trigger:
- platform: state - platform: state
@@ -314,10 +346,9 @@ automation:
entity_id: binary_sensor.front_door entity_id: binary_sensor.front_door
to: 'on' to: 'on'
condition: condition:
# TODO: Fix Entity ID Here
condition: state condition: state
entity_id: switch.detect_2 entity_id: input_binary.disable_camera_events
state: 'on' state: 'off'
action: action:
- service: mqtt.publish - service: mqtt.publish
data: data:
@@ -352,6 +383,10 @@ automation:
- platform: state - platform: state
entity_id: alarm_control_panel.ha_alarm entity_id: alarm_control_panel.ha_alarm
not_to: disarmed not_to: disarmed
condition:
condition: state
entity_id: input_binary.disable_camera_events
state: 'off'
action: action:
- delay: 60 - delay: 60
- service: mqtt.publish - service: mqtt.publish