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:
|
data:
|
||||||
message: Garage floodlight batteries low
|
message: Garage floodlight batteries low
|
||||||
title: Garage floodlight batteries low
|
title: Garage floodlight batteries low
|
||||||
|
token: !secret notify_event_alerts_token
|
||||||
mode: single
|
mode: single
|
||||||
|
|
||||||
- id: '1742841280696'
|
- id: '1742841280696'
|
||||||
|
|||||||
@@ -60,3 +60,4 @@
|
|||||||
data:
|
data:
|
||||||
title: Dehumidifier tank is full
|
title: Dehumidifier tank is full
|
||||||
message: Dehumidifier tank is full — Parents Window Fan outlet has been turned off.
|
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
|
- 10.60.1.1
|
||||||
|
|
||||||
### notify_events ###
|
### notify_events ###
|
||||||
notify_events_cats:
|
notify_events:
|
||||||
token: !secret notify_event_cats_token
|
token: !secret notify_event_cats_token
|
||||||
notify_events_alerts:
|
|
||||||
token: !secret notify_event_alerts_token
|
|
||||||
### SMTP ###
|
### SMTP ###
|
||||||
notify:
|
notify:
|
||||||
- name: "mailgun_smtp"
|
- name: "mailgun_smtp"
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ automation:
|
|||||||
entity_id: binary_sensor.cat_medication_tracker_all_cats_medicated
|
entity_id: binary_sensor.cat_medication_tracker_all_cats_medicated
|
||||||
to: "on"
|
to: "on"
|
||||||
action:
|
action:
|
||||||
- service: notify.notify_events
|
- service: notify.notify_events_cats
|
||||||
data:
|
data:
|
||||||
title: "Cat meds done"
|
title: "Cat meds done"
|
||||||
message: "Penelope and Tess have both been marked medicated today."
|
message: "Penelope and Tess have both been marked medicated today."
|
||||||
@@ -73,7 +73,7 @@ automation:
|
|||||||
cat_name: >
|
cat_name: >
|
||||||
{% if trigger.id == 'penelope' %}Penelope
|
{% if trigger.id == 'penelope' %}Penelope
|
||||||
{% else %}Tess{% endif %}
|
{% else %}Tess{% endif %}
|
||||||
- service: notify.notify_events
|
- service: notify.notify_events_cats
|
||||||
data:
|
data:
|
||||||
title: "Cat medication given"
|
title: "Cat medication given"
|
||||||
message: "{{ cat_name }} has been marked medicated."
|
message: "{{ cat_name }} has been marked medicated."
|
||||||
@@ -88,7 +88,7 @@ automation:
|
|||||||
entity_id: binary_sensor.cat_medication_tracker_all_cats_medicated
|
entity_id: binary_sensor.cat_medication_tracker_all_cats_medicated
|
||||||
state: "off"
|
state: "off"
|
||||||
action:
|
action:
|
||||||
- service: notify.notify_events
|
- service: notify.notify_events_cats
|
||||||
data:
|
data:
|
||||||
title: "Cat meds still needed"
|
title: "Cat meds still needed"
|
||||||
message: >
|
message: >
|
||||||
|
|||||||
@@ -200,7 +200,7 @@ automation:
|
|||||||
- action: timer.start
|
- action: timer.start
|
||||||
target:
|
target:
|
||||||
entity_id: timer.litter_box_cat_cooldown
|
entity_id: timer.litter_box_cat_cooldown
|
||||||
- action: notify.notify_events
|
- action: notify.notify_events_cats
|
||||||
data:
|
data:
|
||||||
message: "🐱 A cat is using the litter box right now!"
|
message: "🐱 A cat is using the litter box right now!"
|
||||||
title: "Litter Box Activity"
|
title: "Litter Box Activity"
|
||||||
@@ -239,7 +239,7 @@ automation:
|
|||||||
- action: input_boolean.turn_on
|
- action: input_boolean.turn_on
|
||||||
target:
|
target:
|
||||||
entity_id: input_boolean.litter_box_stuck_notified
|
entity_id: input_boolean.litter_box_stuck_notified
|
||||||
- action: notify.notify_events
|
- action: notify.notify_events_cats
|
||||||
data:
|
data:
|
||||||
message: "⚠️ The litter box is STUCK ROTATED CLOSED! Visual state is 'closed' — check the mechanism."
|
message: "⚠️ The litter box is STUCK ROTATED CLOSED! Visual state is 'closed' — check the mechanism."
|
||||||
title: "Litter Box STUCK CLOSED!"
|
title: "Litter Box STUCK CLOSED!"
|
||||||
@@ -285,7 +285,7 @@ automation:
|
|||||||
- action: timer.start
|
- action: timer.start
|
||||||
target:
|
target:
|
||||||
entity_id: timer.litter_box_scoop_cooldown
|
entity_id: timer.litter_box_scoop_cooldown
|
||||||
- action: notify.notify_events
|
- action: notify.notify_events_cats
|
||||||
data:
|
data:
|
||||||
message: "🧹 The litter box could use a scoop! Cleanliness: {{ states('sensor.litter_box_camera_cleanliness_score') }}%"
|
message: "🧹 The litter box could use a scoop! Cleanliness: {{ states('sensor.litter_box_camera_cleanliness_score') }}%"
|
||||||
title: "Litter Box Needs Scooping"
|
title: "Litter Box Needs Scooping"
|
||||||
|
|||||||
Reference in New Issue
Block a user