From eb414c60b3fe3e19f04f6fcc9e43225b3d08af36 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Sat, 1 Oct 2022 20:16:52 -0400 Subject: [PATCH] Notifications to 'parents' group now respects if wife is at work --- packages/notify.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/notify.yaml b/packages/notify.yaml index 1a257fe..22500b6 100644 --- a/packages/notify.yaml +++ b/packages/notify.yaml @@ -314,7 +314,12 @@ script: entity_id: input_boolean.text_notify_parents state: 'on' then: - - service: notify.ios_parents + - service: > + {% if is_state('input_boolean.text_notify_tina','off') %} + notify.ios_tony + {% else %} + notify.ios_parents + {% endif %} data: title: '{{ title }}' message: '{{ message }}'