Fix security not rescheduling when manually rearmed
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user