Update Security Package
This commit is contained in:
@@ -85,9 +85,25 @@ template:
|
|||||||
| list | join(', ')
|
| list | join(', ')
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
# -----------------------------------------------------------------------------
|
||||||
|
# Garage Door Button
|
||||||
|
input_button:
|
||||||
|
garage_door:
|
||||||
|
name: Garage Door
|
||||||
|
icon: mdi:garage
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
# Security Automations
|
# Security Automations
|
||||||
automation:
|
automation:
|
||||||
|
- alias: Run Garage Door
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: input_button.garage_door
|
||||||
|
action:
|
||||||
|
- service: switch.turn_on
|
||||||
|
target:
|
||||||
|
entity_id: switch.garage_door_relay_1
|
||||||
|
|
||||||
- alias: Auto-Arm Alarm
|
- alias: Auto-Arm Alarm
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
@@ -191,3 +207,25 @@ automation:
|
|||||||
- service: alarm_control_panel.alarm_trigger
|
- service: alarm_control_panel.alarm_trigger
|
||||||
target:
|
target:
|
||||||
entity_id: alarm_control_panel.ha_alarm
|
entity_id: alarm_control_panel.ha_alarm
|
||||||
|
|
||||||
|
- alias: Trigger Alarm on Garage Door Open
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: binary_sensor.garage_door
|
||||||
|
to: 'on'
|
||||||
|
condition:
|
||||||
|
condition: state
|
||||||
|
entity_id: alarm_control_panel.ha_alarm
|
||||||
|
state:
|
||||||
|
- 'armed_away'
|
||||||
|
- 'armed_vacation'
|
||||||
|
action:
|
||||||
|
- service: input_text.set_value
|
||||||
|
target:
|
||||||
|
entity_id: input_text.ha_alarm_trigger
|
||||||
|
data:
|
||||||
|
value: Garage Door
|
||||||
|
|
||||||
|
- service: alarm_control_panel.alarm_trigger
|
||||||
|
target:
|
||||||
|
entity_id: alarm_control_panel.ha_alarm
|
||||||
|
|||||||
Reference in New Issue
Block a user