Push Notifications now available!

Awesome! Was just telling myself last night that I was going to work on getting alerts setup as soon as the app has notification support. Guess I have some work to do now

No joy on OnePlus 7 Pro - Android 10

tried sending {title: “title”, message “message”} and just message.

Getting error: “Requested entity was not found.”

Fixed:
found duplicate entry in core.config_entries, deleted the first and now working

:man_shrugging:

3 Likes

Works great!

I’m not seeing the new service notify.mobile_app in Hass.io > Developer Tools > Services.
Does this require HA 0.103?

Did not follow instructions. Service now shows after HA restart.

1 Like

Seems to be pretty quick at home with both devices on wifi. Will have to setup something for when I’m out and see how that works.
Is there some way to choose the notification sound on my phone?
I’m assuming not yet as I couldn’t find it, but thought I’d ask. I may have missed it.
Great work everyone involved.

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.