Gotta actually CALL an entity to run a service on it...fix #216

This commit is contained in:
2025-04-18 17:49:48 -04:00
parent b4f4d06d6c
commit 41228c1304

View File

@@ -2481,25 +2481,26 @@ kallen_morning_meds:
kallen_night_meds: kallen_night_meds:
alias: Kallen Night Meds alias: Kallen Night Meds
sequence: sequence:
- service: counter.increment - alias: Increment night reminder counter
metadata: {} metadata: {}
data: {} data: {}
alias: Increment night reminder counter action: counter.increment
- service: script.text_notify target:
data: entity_id: counter.kallen_night_meds_reminder_count
- data:
type: alert type: alert
who: all who: all
message: clear_notification message: clear_notification
tag: kallen-night-meds tag: kallen-night-meds
alias: Clear previous night notification alias: Clear previous night notification
action: script.text_notify
- delay: - delay:
hours: 0 hours: 0
minutes: 0 minutes: 0
seconds: 5 seconds: 5
milliseconds: 0 milliseconds: 0
- parallel: - parallel:
- service: script.text_notify - data:
data:
who: "{% if states('person.christina_stork') in ['Bob Evans','BobEvans'] %}\n who: "{% if states('person.christina_stork') in ['Bob Evans','BobEvans'] %}\n
\ tony\n{% else %}\n parents\n{% endif %}\n" \ tony\n{% else %}\n parents\n{% endif %}\n"
type: alert type: alert
@@ -2512,8 +2513,8 @@ kallen_night_meds:
- action: KALLEN_NIGHT_MEDS_SKIPPED - action: KALLEN_NIGHT_MEDS_SKIPPED
title: Skip title: Skip
alias: Send to parents alias: Send to parents
action: script.text_notify
- alias: Send to Kallen - alias: Send to Kallen
service: script.text_notify
data: data:
who: kallen who: kallen
type: alert type: alert
@@ -2525,6 +2526,7 @@ kallen_night_meds:
title: Taken title: Taken
- action: KALLEN_NIGHT_MEDS_SKIPPED - action: KALLEN_NIGHT_MEDS_SKIPPED
title: Skip title: Skip
action: script.text_notify
alias: Send text notifications alias: Send text notifications
icon: mdi:medication icon: mdi:medication
mode: restart mode: restart