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:
@@ -13,6 +13,7 @@
|
||||
data:
|
||||
message: Garage floodlight batteries low
|
||||
title: Garage floodlight batteries low
|
||||
token: !secret notify_event_alerts_token
|
||||
mode: single
|
||||
|
||||
- id: '1742841280696'
|
||||
|
||||
@@ -60,3 +60,4 @@
|
||||
data:
|
||||
title: Dehumidifier tank is full
|
||||
message: Dehumidifier tank is full — Parents Window Fan outlet has been turned off.
|
||||
token: !secret notify_event_alerts_token
|
||||
|
||||
+2
-4
@@ -30,10 +30,8 @@ http:
|
||||
- 10.60.1.1
|
||||
|
||||
### notify_events ###
|
||||
notify_events_cats:
|
||||
token: !secret notify_event_cats_token
|
||||
notify_events_alerts:
|
||||
token: !secret notify_event_alerts_token
|
||||
notify_events:
|
||||
token: !secret notify_event_cats_token
|
||||
### SMTP ###
|
||||
notify:
|
||||
- name: "mailgun_smtp"
|
||||
|
||||
@@ -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: >
|
||||
|
||||
@@ -200,7 +200,7 @@ automation:
|
||||
- action: timer.start
|
||||
target:
|
||||
entity_id: timer.litter_box_cat_cooldown
|
||||
- action: notify.notify_events
|
||||
- action: notify.notify_events_cats
|
||||
data:
|
||||
message: "🐱 A cat is using the litter box right now!"
|
||||
title: "Litter Box Activity"
|
||||
@@ -239,7 +239,7 @@ automation:
|
||||
- action: input_boolean.turn_on
|
||||
target:
|
||||
entity_id: input_boolean.litter_box_stuck_notified
|
||||
- action: notify.notify_events
|
||||
- action: notify.notify_events_cats
|
||||
data:
|
||||
message: "⚠️ The litter box is STUCK ROTATED CLOSED! Visual state is 'closed' — check the mechanism."
|
||||
title: "Litter Box STUCK CLOSED!"
|
||||
@@ -285,7 +285,7 @@ automation:
|
||||
- action: timer.start
|
||||
target:
|
||||
entity_id: timer.litter_box_scoop_cooldown
|
||||
- action: notify.notify_events
|
||||
- action: notify.notify_events_cats
|
||||
data:
|
||||
message: "🧹 The litter box could use a scoop! Cleanliness: {{ states('sensor.litter_box_camera_cleanliness_score') }}%"
|
||||
title: "Litter Box Needs Scooping"
|
||||
|
||||
Reference in New Issue
Block a user