Push Notifications now available!

I had to uninstall the app on my wife’s Pixel 3XL and reinstall for the service to show up in Hassio. Not sure what happened there, but it seems to be working great so far!

2 Likes

It’s amazing how quickly progress is being made on this app. Fantastic work, thank you very much!

I followed the steps described, but nothing shows up under services beginning with notify.
The App now reports 1.2.0 and my HA is 0.101.3
What am I missing here?

[{
	"id": "3c5fb6a7.e5f86a",
	"type": "api-call-service",
	"z": "299ef4ea.68dacc",
	"name": "",
	"server": "d86c8a3e.cc7138",
	"version": 1,
	"debugenabled": false,
	"service_domain": "notify",
	"service": "mobile_app_oneplus_a6003",
	"entityId": "",
	"data": "",
	"dataType": "json",
	"mergecontext": "",
	"output_location": "payload",
	"output_location_type": "msg",
	"mustacheAltTags": false,
	"x": 1080,
	"y": 320,
	"wires": [
		["b1635e8.ce748a"]
	]
}, {
	"id": "ba53ee9b.a80b5",
	"type": "change",
	"z": "299ef4ea.68dacc",
	"name": "",
	"rules": [{
		"t": "set",
		"p": "payload",
		"pt": "msg",
		"to": "{\"data\":{\"message\":\"test\",\"title\":\"Home Ass Alert\",\"data\":{\"android\":{\"notification\":{\"image\":\"https://i.pinimg.com/originals/0f/7b/fa/0f7bfa4e6775b5977694a6036fc85b48.png\"}}}}}",
		"tot": "json"
	}],
	"action": "",
	"property": "",
	"from": "",
	"to": "",
	"reg": false,
	"x": 820,
	"y": 320,
	"wires": [
		["3c5fb6a7.e5f86a"]
	]
}, {
	"id": "6090b989.0ae438",
	"type": "inject",
	"z": "299ef4ea.68dacc",
	"name": "",
	"topic": "",
	"payload": "",
	"payloadType": "date",
	"repeat": "",
	"crontab": "",
	"once": false,
	"onceDelay": 0.1,
	"x": 660,
	"y": 320,
	"wires": [
		["ba53ee9b.a80b5"]
	]
}, {
	"id": "b1635e8.ce748a",
	"type": "debug",
	"z": "299ef4ea.68dacc",
	"name": "Alert - APP",
	"active": true,
	"tosidebar": true,
	"console": false,
	"tostatus": false,
	"complete": "true",
	"targetType": "full",
	"x": 1330,
	"y": 320,
	"wires": []
}, {
	"id": "d86c8a3e.cc7138",
	"type": "server",
	"z": "",
	"name": "Home Assistant",
	"legacy": false,
	"hassio": false,
	"rejectUnauthorizedCerts": true
}]

Can you post an example of the data required for the service call. I can see the service after restart but cannot get a push notification when calling it with:

title: ‘Awesome’
message: ‘It works!’

Do we need to sign out and back in on the mobile app again. Or am I missing something else.

Oneplus 6 user…

@robbiet480 gave this example over on Reddit:

message: "text"
data:
  android:
    notification:
      image: https://i.pinimg.com/originals/0f/7b/fa/0f7bfa4e6775b5977694a6036fc85b48.png

For a simple message

title: "My Home Assistant"
message: "this works!"
3 Likes

I’m using the app through Nabu Casa, and the new service doesn’t show after following instructions. Should this work through Nabu Casa as well?

Mine seems to work through nabu casa

1 Like

I did all the above and the service still does not appear. I am running HA 0.103.0.

Update: Uninstalled and reinstalled, Cleared data/cache. Works now.

2 Likes

Turns out I used the app for a while without enabling mobile app component. I never had “default_config:” in my configuration.yaml. after adding this, restart, logging out and in in the app and another restart, everything is there, also through Nabu Casa. Great new features! No need for gmaps integration anymore :slight_smile:

2 Likes

Ok, so the service is there, but calling it with

title: "title"
message: "message"

I do not get any notification.

I discovered, that the app has no notifications registered in Android 10.

Could this be the problem?

Wow cool, nice feature, allthough still waiting for image/url options… Looking forward to it

1 Like

This is awesome. Been waiting to move off my HTML5 notifications into native app. Any chance we’ll be able to name our device in the future so the service name can be “notify.mobile_app_myownname” instead of “*phonemodel#”?

So I found this line in my log:

components/mobile_app/notify.py not found

This would explain the lack of notifications :sunglasses:

Why would this component be missing. I’m on hassio 0.103.

Yeah, same request here… My wife and I have the same phone model, and this change makes it so that only one of us can get notifications

Turns out, my phone is registered four times under “devices”. This is propably the reason for the previous log entry. Only, there is no way of deleting these device registrations.

Sorry for spamming this thread.

After also deleting the multiple integrations, the devices are gone as well and I have a clean slate.
Then after linking the app to HA again the notifications work.

The notification icon is VERY tiny and not recognizable =-O

1 Like

yes you can, at least in my mobile I can do it. Go to the settings, notification and choose the HA app. There you can setup the sound you prefer

This is fixed in the latest commit

1 Like