Android Companion 2022.2: Local Push Notifications!

Unfortunately I can neither remind nor check that, I’m sorry.

Thx, I know that Troubleshooting | Home Assistant Companion Docs section very well :wink:

A shorter path worked too:

  1. Log out of the app
  2. Log in again
  3. Use same device name
  4. Ignore “Firebase warning” message (I have the full version of the app installed)
  5. Show all sensors, filter for “only active”
  6. Tap every sensor once to trigger transmission to HA
  7. Optional: rename entity names in HA

The service notify.mobile_app_my_device_name has been created. Tested and: phenomenal, it’s working! On a Fire OS device, great. Awesome, really. Finally :smiley: Thank you so much.

The one who chose Local Push Always, what is the battery consumption?

Personally I did not have to change my charging habits. Others also have a similar experience, yours may be different. Its all about the device and battery.

Haven’t seen any difference. Same battery life on a Samsung Note 10+ …

1 Like

Pixel 6 here, and had to turn it off, doubled my battery drain, was seeing battery down to 40% on a 12 hour day. Normally it wouldn’t break 60%. HA was at the top of the list for battery drain, and it was something like 32%.

Same experience S10 5G

Strange thing happend… :slightly_smiling_face:
Since core-2022.3.0 no LOCAL notifications are sent to my device…
Anyone else with same experience?

any errors in HA core or the app logs?

Just did some testing… Local Push do actually work fine… It’s the MQTT events witch is not working.
Have to do some debugging here… :slight_smile:

In other words… All is gut! :wink:

1 Like

Local Push doesn’t work for me…

It appears that…
If I have it set to Always then I don’t get the notifications,
If I have it set to Only when the screen is on then whenever I send a notification it crashes the app
If I have it set to Off then I get normal service.

Is there anything I can give you to help troubleshoot this?

Open an issue on GitHub and make sure to get the requested logs for the issue template.

So far I have not configured remote access and in my Double NAT infrastructure (Cable Modem/router, WLAN router/ Raspberry / Container) seems I need to investigate on port forwarding, reverse proxy etc…
Nor do I use HA Cloud.

But, how could it be that I am receiving notifications on my HA companion app, even after I left home wifi?? Opening the app itself fails for sure because I configured the local HA address only.

Not unsatisfied about the behaviour, but would like to understand…

If you are on the full version of the Home Assistant app such as from the Play store notifications will also be sent over FCM (Firebase Cloud Messaging) when notifications can’t be sent locally

3 Likes

The Telegram messenger also has its own implementation of push notifications, it would be great if you take a piece of code from there, combine your work and distribute your library for bypassing push notifications from Google. And you would make such an open source library and use it yourself