From ce6602287f9632809aa0d2d7366df154222c9750 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Tue, 11 Apr 2023 17:31:25 -0400 Subject: [PATCH] Don't send critical notification to wife while she's at work --- packages/security.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/security.yaml b/packages/security.yaml index 685caea..d30eebc 100644 --- a/packages/security.yaml +++ b/packages/security.yaml @@ -271,7 +271,12 @@ automation: - service: script.text_notify data: type: critical - who: 'parents' + who: >- + {% if states('person.christina_stork') in ['Bob Evans','BobEvans'] %} + tony + {% else %} + parents + {% endif %} title: 'Security Not Armed!' tag: lockdown-issue message: >-