feat: Add automations for armed_night
This commit is contained in:
@@ -39,12 +39,6 @@ input_text:
|
||||
# -----------------------------------------------------------------------------
|
||||
# Alarm Settings
|
||||
input_boolean:
|
||||
auto_arm_alarm_presence:
|
||||
name: Automatically Arm Alarm on Presence Change
|
||||
auto_disarm_alarm_presence:
|
||||
name: Automatically Disarm Alarm on Presence Change
|
||||
auto_arm_alarm_night:
|
||||
name: Automatically Arm/Disarm Alarm at Night
|
||||
disable_camera_events:
|
||||
name: Disable Camera Events
|
||||
guest_mode:
|
||||
@@ -243,7 +237,6 @@ automation:
|
||||
- platform: state
|
||||
entity_id: sensor.house_presence_status
|
||||
to: Away
|
||||
condition: "{{ is_state('input_boolean.auto_arm_alarm_presence', 'on') }}"
|
||||
action:
|
||||
- service: alarm_control_panel.alarm_arm_away
|
||||
target:
|
||||
@@ -256,7 +249,47 @@ automation:
|
||||
- platform: state
|
||||
entity_id: sensor.house_presence_status
|
||||
to: Just Arrived
|
||||
condition: "{{ is_state('input_boolean.auto_disarm_alarm_presence', 'on') }}"
|
||||
action:
|
||||
- service: alarm_control_panel.alarm_disarm
|
||||
target:
|
||||
entity_id: alarm_control_panel.ha_alarm
|
||||
data:
|
||||
code: !secret alarm_code
|
||||
|
||||
- alias: Auto-Arm Alarm (Night - After Arrival)
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: sensor.house_presence_status
|
||||
to: Home
|
||||
condition:
|
||||
- "{{ is_state('binary_sensor.security_night', 'on') }}"
|
||||
- "{{ is_state('alarm_control_panel.ha_alarm', 'disarmed' )}}"
|
||||
action:
|
||||
- service: alarm_control_panel.alarm_arm_away
|
||||
target:
|
||||
entity_id: alarm_control_panel.ha_alarm
|
||||
data:
|
||||
code: !secret alarm_code
|
||||
|
||||
- alias: Auto-Arm Alarm (Night - Default)
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.security_night
|
||||
to: 'on'
|
||||
condition: "{{ is_state('alarm_control_panel.ha_alarm', 'disarmed' )}}"
|
||||
action:
|
||||
- service: alarm_control_panel.alarm_arm_away
|
||||
target:
|
||||
entity_id: alarm_control_panel.ha_alarm
|
||||
data:
|
||||
code: !secret alarm_code
|
||||
|
||||
- alias: Auto-Disarm Alarm (Night)
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.security_night
|
||||
to: 'off'
|
||||
condition: "{{ is_state('alarm_control_panel.ha_alarm', 'armed_night' )}}"
|
||||
action:
|
||||
- service: alarm_control_panel.alarm_disarm
|
||||
target:
|
||||
|
||||
Reference in New Issue
Block a user