From 5c38bc12a8bd54ee79441ad7857e8c157dde272a Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Thu, 1 Dec 2022 18:38:56 -0500 Subject: [PATCH] Didn't think about actually re-checking faults after the timeout #60 --- packages/security.yaml | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/packages/security.yaml b/packages/security.yaml index 606cdaf..7c8815b 100644 --- a/packages/security.yaml +++ b/packages/security.yaml @@ -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: