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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user