Update Security Package
This commit is contained in:
@@ -85,9 +85,25 @@ template:
|
||||
| list | join(', ')
|
||||
}}
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Garage Door Button
|
||||
input_button:
|
||||
garage_door:
|
||||
name: Garage Door
|
||||
icon: mdi:garage
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Security Automations
|
||||
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
|
||||
trigger:
|
||||
- platform: state
|
||||
@@ -191,3 +207,25 @@ automation:
|
||||
- service: alarm_control_panel.alarm_trigger
|
||||
target:
|
||||
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