Update Kallen morning meds script, he can now mark morning meds himself
This commit is contained in:
63
scripts.yaml
63
scripts.yaml
@@ -2308,56 +2308,37 @@ tony_tylenol:
|
|||||||
kallen_morning_meds:
|
kallen_morning_meds:
|
||||||
alias: Kallen Morning Meds
|
alias: Kallen Morning Meds
|
||||||
sequence:
|
sequence:
|
||||||
- service: counter.increment
|
- metadata: {}
|
||||||
metadata: {}
|
|
||||||
data: {}
|
data: {}
|
||||||
target:
|
target:
|
||||||
entity_id: counter.kallen_morning_meds_reminder_count
|
entity_id: counter.kallen_morning_meds_reminder_count
|
||||||
alias: Increment morning reminder counter
|
alias: Increment morning reminder counter
|
||||||
- alias: Clear previous morning notifications
|
action: counter.increment
|
||||||
parallel:
|
- alias: Clear previous text notifications
|
||||||
- service: script.text_notify
|
data:
|
||||||
data:
|
type: alert
|
||||||
type: alert
|
who: all
|
||||||
who: parents
|
message: clear_notification
|
||||||
message: clear_notification
|
tag: kallen-morning-meds
|
||||||
tag: kallen-morning-meds-parents
|
action: script.text_notify
|
||||||
alias: Clear for parents
|
|
||||||
- service: script.text_notify
|
|
||||||
data:
|
|
||||||
type: alert
|
|
||||||
who: kallen
|
|
||||||
message: clear_notification
|
|
||||||
tag: kallen-morning-meds-self
|
|
||||||
alias: Clear for Kallen
|
|
||||||
- delay:
|
- delay:
|
||||||
hours: 0
|
hours: 0
|
||||||
minutes: 0
|
minutes: 0
|
||||||
seconds: 5
|
seconds: 5
|
||||||
milliseconds: 0
|
milliseconds: 0
|
||||||
- alias: Send text notifications
|
- alias: Send text notification
|
||||||
parallel:
|
data:
|
||||||
- alias: Send to parents
|
who: all
|
||||||
service: script.text_notify
|
type: alert
|
||||||
data:
|
title: Morning Meds
|
||||||
who: parents
|
message: Kallen needs to take his morning meds
|
||||||
type: alert
|
tag: kallen-morning-meds
|
||||||
title: Morning Meds
|
actions:
|
||||||
message: Kallen needs to take his morning meds
|
- action: KALLEN_MORNING_MEDS_TAKEN
|
||||||
tag: kallen-morning-meds-parents
|
title: Taken
|
||||||
actions:
|
- action: KALLEN_MORNING_MEDS_SKIPPED
|
||||||
- action: KALLEN_MORNING_MEDS_TAKEN
|
title: Skip
|
||||||
title: Taken
|
action: script.text_notify
|
||||||
- action: KALLEN_MORNING_MEDS_SKIPPED
|
|
||||||
title: Skip
|
|
||||||
- service: script.text_notify
|
|
||||||
data:
|
|
||||||
who: kallen
|
|
||||||
type: alert
|
|
||||||
title: Morning Meds
|
|
||||||
message: You need to take your morning meds. Go to mom or dad to confirm.
|
|
||||||
tag: kallen-morning-meds-self
|
|
||||||
alias: Send to Kallen
|
|
||||||
icon: mdi:medication
|
icon: mdi:medication
|
||||||
mode: restart
|
mode: restart
|
||||||
kallen_night_meds:
|
kallen_night_meds:
|
||||||
|
|||||||
Reference in New Issue
Block a user