Implement notify_events_alerts script and update automation actions to utilize it for event notifications. This enhances consistency and maintainability in alert handling across the configuration files.

This commit is contained in:
Joshua King
2026-07-14 14:03:26 -04:00
parent 6545afbff3
commit 7034889d59
3 changed files with 20 additions and 4 deletions
+18
View File
@@ -24,3 +24,21 @@ check_day_camp:
Message={{ state_attr('calendar.family_events', 'message')
| default('') }}
level: debug
notify_events_alerts:
alias: Notify.Events Alerts
fields:
message:
required: true
selector:
text:
title:
selector:
text:
sequence:
- action: notify.notify_events_alerts
data:
message: "{{ message }}"
title: "{{ title | default('Home Assistant') }}"
data:
token: !secret notify_event_alerts_token