Consolidate notification tokens and update automation actions to consistently use notify_events. This improves clarity and maintainability across the configuration and automation files.
This commit is contained in:
@@ -50,7 +50,7 @@ automation:
|
||||
entity_id: binary_sensor.cat_medication_tracker_all_cats_medicated
|
||||
to: "on"
|
||||
action:
|
||||
- service: notify.notify_events
|
||||
- service: notify.notify_events_cats
|
||||
data:
|
||||
title: "Cat meds done"
|
||||
message: "Penelope and Tess have both been marked medicated today."
|
||||
@@ -73,7 +73,7 @@ automation:
|
||||
cat_name: >
|
||||
{% if trigger.id == 'penelope' %}Penelope
|
||||
{% else %}Tess{% endif %}
|
||||
- service: notify.notify_events
|
||||
- service: notify.notify_events_cats
|
||||
data:
|
||||
title: "Cat medication given"
|
||||
message: "{{ cat_name }} has been marked medicated."
|
||||
@@ -88,7 +88,7 @@ automation:
|
||||
entity_id: binary_sensor.cat_medication_tracker_all_cats_medicated
|
||||
state: "off"
|
||||
action:
|
||||
- service: notify.notify_events
|
||||
- service: notify.notify_events_cats
|
||||
data:
|
||||
title: "Cat meds still needed"
|
||||
message: >
|
||||
|
||||
Reference in New Issue
Block a user