From 955bf32e810a523b700eb8422c3d1537c46dbcad Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Sun, 4 Aug 2024 14:38:46 -0400 Subject: [PATCH] Change template condition to "or" condition for wife meds cleanup #205 --- automations.yaml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/automations.yaml b/automations.yaml index 5554641..efb3636 100644 --- a/automations.yaml +++ b/automations.yaml @@ -5794,11 +5794,17 @@ sequence: - alias: Send critical TTS notification if any meds aren't taken if: - - alias: If any med reminders are currently active - condition: template - value_template: "{% set med_reminders = is_state('input_boolean.tina_morning_meds_reminder','on') - or\n is_state('input_boolean.tina_night_meds_reminder','on') - %}\n{{ med_reminders == true }}" + - alias: Check if any reminders are active + condition: or + conditions: + - condition: state + entity_id: input_boolean.tina_morning_meds_reminder + state: 'on' + alias: Morning meds reminder active + - condition: state + entity_id: input_boolean.tina_night_meds_reminder + state: 'on' + alias: Night meds reminder active then: - alias: Send critical TTS notification service: script.text_notify