I need to send a URL from my NVR to my phone via a push notification so that when I tap the notification, it takes me to the NVR’s recording that generated the alert. I’ve been testing this in the Services dev tool.
This works. I get the notification with the image.
message: 'test message'
data:
android:
notification:
image: https://i.pinimg.com/originals/0f/7b/fa/0f7bfa4e6775b5977694a6036fc85b48.png
This does not work.
message: 'test message'
data:
android:
notification:
url: https://i.pinimg.com/originals/0f/7b/fa/0f7bfa4e6775b5977694a6036fc85b48.png
It generates this log message.
“Invalid JSON payload received. Unknown name “url” at ‘message.android.notification’: Cannot find field.”
So obviously I’m going about this the wrong way. Can someone point me in the right direction?
Thanks!
Probably not supported yet
1 Like
Adorem
(aka Christophe)
February 2, 2020, 7:46pm
3
Yep seems not yet supported.
Only basic fields like title
and message
are supported for now. Obviously we hope to gain parity with iOS at some point.
Push Notifications have just gone live in version 1.2.0. Here’s how to get started:
Update app to 1.2.0
Open app once
Restart HA
A new notify service prefixed with notify.mobile_app_ will appear
Send a notification there
…
Profit
Only basic fields like title and message are supported for now. Obviously we hope to gain parity with iOS at some point.
Enjoy!
[android]
opened 10:43AM - 16 Dec 19 UTC
closed 11:18PM - 30 Aug 20 UTC
enhancement
notifications
<!-- READ THIS FIRST:
- Make sure you run the latest versino of the Android app…
- Make sure you run the latest versino of Home Assistant
-->
**Home Assistant Android version:**
1.2.0 (42)
**Android version:**
9
**Phone model:**
OnePlus 5t
**Home Assistant version:**
0.103
**Description of problem:**
Missing possibilities to add custom notification icon and pictures in notifications.
Like this service call, which I used to use in Ariela
```
{
"title": "Doorbell",
"message": "Someone at the door!",
"data": {
"tag": "866050",
"image": "https://MY_URL/local/frontdoor.jpg",
"color": "#FFFF00",
"icon": "https://MY_URL/local/notification-icons/doorbell.png"
}
}
```
1 Like
I suspected that was the case. Thanks for confirming. I added a feature request on Github.
https://github.com/home-assistant/home-assistant-android/issues/335
1 Like