From 41228c13045f763f5f44c2fdab1d1d3b107f8d04 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Fri, 18 Apr 2025 17:49:48 -0400 Subject: [PATCH] Gotta actually CALL an entity to run a service on it...fix #216 --- scripts.yaml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/scripts.yaml b/scripts.yaml index beb8388..f9e245b 100644 --- a/scripts.yaml +++ b/scripts.yaml @@ -2481,25 +2481,26 @@ kallen_morning_meds: kallen_night_meds: alias: Kallen Night Meds sequence: - - service: counter.increment + - alias: Increment night reminder counter metadata: {} data: {} - alias: Increment night reminder counter - - service: script.text_notify - data: + action: counter.increment + target: + entity_id: counter.kallen_night_meds_reminder_count + - data: type: alert who: all message: clear_notification tag: kallen-night-meds alias: Clear previous night notification + action: script.text_notify - delay: hours: 0 minutes: 0 seconds: 5 milliseconds: 0 - parallel: - - service: script.text_notify - data: + - data: who: "{% if states('person.christina_stork') in ['Bob Evans','BobEvans'] %}\n \ tony\n{% else %}\n parents\n{% endif %}\n" type: alert @@ -2512,8 +2513,8 @@ kallen_night_meds: - action: KALLEN_NIGHT_MEDS_SKIPPED title: Skip alias: Send to parents + action: script.text_notify - alias: Send to Kallen - service: script.text_notify data: who: kallen type: alert @@ -2525,6 +2526,7 @@ kallen_night_meds: title: Taken - action: KALLEN_NIGHT_MEDS_SKIPPED title: Skip + action: script.text_notify alias: Send text notifications icon: mdi:medication mode: restart