Add notify_events step to cat notification automations
Mirror existing message/title to notify.notify_events for all litter level, wastebin-full, cat medication, and litter box monitor alerts. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -54,6 +54,10 @@ automation:
|
||||
data:
|
||||
title: "Cat meds done"
|
||||
message: "Penelope and Tess have both been marked medicated today."
|
||||
- service: notify.notify_events
|
||||
data:
|
||||
title: "Cat meds done"
|
||||
message: "Penelope and Tess have both been marked medicated today."
|
||||
|
||||
- id: cat_medication_tracker_cat_medicated_notify
|
||||
alias: "Cat Medication Tracker - Cat medicated notification"
|
||||
@@ -81,6 +85,10 @@ automation:
|
||||
data:
|
||||
title: "Cat medication given"
|
||||
message: "{{ cat_name }} has been marked medicated."
|
||||
- service: notify.notify_events
|
||||
data:
|
||||
title: "Cat medication given"
|
||||
message: "{{ cat_name }} has been marked medicated."
|
||||
|
||||
- id: cat_medication_tracker_evening_reminder
|
||||
alias: "Cat Medication Tracker - 6PM medication reminder"
|
||||
@@ -116,3 +124,15 @@ automation:
|
||||
{% set ns.cats = ns.cats + ['Tess'] %}
|
||||
{% endif %}
|
||||
{{ ns.cats | join(' and ') }} still need medication.
|
||||
- service: notify.notify_events
|
||||
data:
|
||||
title: "Cat meds still needed"
|
||||
message: >
|
||||
{% set ns = namespace(cats=[]) %}
|
||||
{% if is_state('switch.cat_medication_tracker_penelope_medicated', 'off') %}
|
||||
{% set ns.cats = ns.cats + ['Penelope'] %}
|
||||
{% endif %}
|
||||
{% if is_state('switch.cat_medication_tracker_tess_medicated', 'off') %}
|
||||
{% set ns.cats = ns.cats + ['Tess'] %}
|
||||
{% endif %}
|
||||
{{ ns.cats | join(' and ') }} still need medication.
|
||||
|
||||
Reference in New Issue
Block a user