Didn't think about actually re-checking faults after the timeout #60

This commit is contained in:
2022-12-01 18:38:56 -05:00
parent 5635836b00
commit 5c38bc12a8

View File

@ -218,16 +218,26 @@ automation:
seconds: 3
- if:
- condition: state
entity_id: binary_sensor.people_present
state: 'off'
entity_id: sensor.total_faults
state: '0'
then:
- service: script.security_arm_away
- if:
- condition: state
entity_id: binary_sensor.people_present
state: 'off'
then:
- service: script.security_arm_away
else:
- service: script.security_arm_home
- service: script.status_annc
data_template:
who: common
call_security_armed: 1
else:
- service: script.security_arm_home
- service: script.status_annc
data_template:
- service: script.speech_engine
data:
who: common
call_security_armed: 1
message: 'I am unable to resolve the security issue, so I am giving up. Please report the issue to Tony if applicable.'
script:
security_arm_home: