Zagal
January 24, 2025, 8:58pm
1
Hi
How can I receive a message in my mobile device when a persistent notification is received in HA?
One like this:
I tried this:
Thanks! Took me a little bit to figure out the indentation as I’m not that fluent in YAML. For anyone else that wants this. Create a new automation, go into YAML mode, remove everything and paste this in, change the service to your device and save.
alias: Notification Push Persistant Notifications
description: ""
trigger:
- event_data:
domain: notify
service: persistent_notification
event_type: call_service
platform: event
condition: []
action:
- service: notify.mobile_…
But It doesn’t work and I can figure out why.
Please help!
Thanks.
nickrout
(Nick Rout)
January 24, 2025, 11:21pm
2
Does the automation trigger?
If so, what does the trace tell you?
1 Like
Zagal
January 25, 2025, 8:22am
3
No, the automation doesn’t trigger.
I made it some days ago and yesterday I had the first notification since and I realised that wasn’t triggered, thats why I’m asking for help.
I replied to the other topic with the solution. They changed the trigger a while back.
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 yo…