Fix security not rescheduling when manually rearmed

This commit is contained in:
2023-04-11 13:28:25 -04:00
parent d809b0ddd2
commit 09b64f1971

View File

@ -218,9 +218,6 @@ automation:
{% set wake = state_attr('input_datetime.master_bedroom_wakeup','timestamp') %} {% set wake = state_attr('input_datetime.master_bedroom_wakeup','timestamp') %}
{% set diff = wake - rearm %} {% set diff = wake - rearm %}
{{ diff > 1800 }} {{ diff > 1800 }}
- condition: state
entity_id: alarm_control_panel.stratton_ave_alarm
state: disarmed
action: action:
- if: - if:
- condition: state - condition: state
@ -245,7 +242,12 @@ automation:
state: "on" state: "on"
then: then:
- stop: School early release - stop: School early release
- service: script.security_arm_home - if:
- condition: state
entity_id: alarm_control_panel.stratton_ave_alarm
state: disarmed
then:
- service: script.security_arm_home
- id: c7927c59-e0fe-48b9-b308-dd90fb774920 - id: c7927c59-e0fe-48b9-b308-dd90fb774920
alias: Lockdown Issue alias: Lockdown Issue