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 seconds: 3
- if: - if:
- condition: state - condition: state
entity_id: binary_sensor.people_present entity_id: sensor.total_faults
state: 'off' state: '0'
then: 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: else:
- service: script.security_arm_home - service: script.speech_engine
- service: script.status_annc data:
data_template:
who: common 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: script:
security_arm_home: security_arm_home: