Im trying to create an automation that records all persistent notifications to a .txt file, but i get the following error:
Triggers: required key not provided @ data[0]['trigger']
and i have no idea what it means.
code:
alias: Record every persistent notification to .txt file
triggers:
- update_type: null
update_typ: added
actions:
- data:
entity_id: notify.save_persistent_to_txt
data_template:
message: >-
{{ now().strftime('%Y-%m-%d %H:%M:%S') }} {{ trigger.notification.title
}} / {{ trigger.notification.message }}
action: notify.send_message