-
-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug - Send Web UI persistent notifications to Mobile Devices doesn't work #288
Comments
Hi @ElVit, thank you for reaching out here, I'm sorry for my huge delay. Thank you for your patience! |
Hello, I have the exact same error message, and my notification ID is set to http-login, see the details below: Blueprint nameSend Web UI persistent notifications to Mobile Devices Home Assistant Core Version2022.3.9 Home Assistant Installation TypeHome Assistant Core DescriptionBlueprint doesn't work with the Android Home Assistant App. The persistent notifications are not forwarded to my Android. But I can send a notification to my Android by sending notify.mobile_app_pixel_5. Automation YAML configid: '1631811045862'
alias: Invalid login attempts notifications to Mobile Devices
description: ''
use_blueprint:
path: EPMatt/persistent_notification_to_mobile.yaml
input:
mobile_notify_service: notify.mobile_app_pixel_5
notification_id: http-login To Reproduce
Expected behaviorAll persistent notifications with the ID="http-login" shall be forwarded to my Android. Actual BehaviourI don't get any notifications to my Android. I get the follwing error in trace step details: Error: Error rendering data template: UndefinedError: 'dict object' has no attribute 'event' Additional Details
ScreenshotsNo response Additional contextNo response |
Hi any update on this? Thanks |
Hello i have the same mistake. |
I've noticed the same issue in my setup 😞 |
I was able to create a dummy automation with the following action and it worked: service: notify.mobile_app_xxx
data:
message: "{{ trigger.notification.message }}"
title: "{{ trigger.notification.title }}" |
Hi, could you please elaborate how you get this to work? |
Sure, I created a new automation that is triggered on "When persistent notification is updated" and set the above as a call service action. So the automation looks like so: alias: Notification Forward
description: ""
trigger:
- platform: persistent_notification
update_type:
- added
- updated
- current
notification_id: ""
condition: []
action:
- service: notify.mobile_app_jakubs_iphone_15
data:
message: "{{ trigger.notification.message }}"
title: "{{ trigger.notification.title }}"
mode: single
|
@Fruitsmart it won't work in developer tools this way because |
@niemtec Thank you very much, it's working perfectly. I thought I could test it in the developer tool. Thanks for that! |
@Fruitsmart glad it's working for you! Sorry, I could have been clearer with my initial comment... and maybe not type it out on a phone 😅 |
@niemtec "Hi, does this automation still work for you? I'm getting the following error." Error rendering data template: UndefinedError: 'dict object' has no attribute 'notification' |
Yeah still works |
Blueprint name
Send Web UI persistent notifications to Mobile Devices
Home Assistant Core Version
2022.3.5
Home Assistant Installation Type
Home Assistant Operating System
Description
Blueprint doesn't work with the iOS Home Assistant App.
The persistent notifications are not forwarded to my iPhone.
But I can send a notification to my iPhone by sending notify.mobile_app_myiphone.
Automation YAML config
To Reproduce
Expected behavior
All persistent notifications with the ID="1234" shall be forwarded to my iPhone.
Actual Behaviour
I don't get any notifications to my iPhone.
I get the follwing error in trace step details:
Error: Error rendering data template: UndefinedError: 'dict object' has no attribute 'event'
Additional Details
Screenshots
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: