Yeah, they changed the persistant notification trigger a while back I think.
Just revisited this and am now able to make it work with the correct data, so thank you for the reminder!
alias: Persistent Notification to phone
description: ""
triggers:
- trigger: persistent_notification
update_type:
- added # You can add removed, current and/or updated here as well
conditions: []
actions:
- action: notify.mobile_app_xxx # Mobile device here
data_template:
# This allows you to see the full trigger dict
# Trigger the automation once and then go to traces and see the data
message: "{{ trigger }}"
title: "P: Notification"
mode: single
For me the data looks something like this:
So I can make the data like this:
data_template:
message: "{{ trigger.notification.message }}"
title: "P: {{ trigger.notification.title }}"