Send Notifications to mobile phone

Hi, I recently saw a youtube videoclip ( Home Assistant Actionable Notifications on Android and iOS - Everything You Need to Know! - YouTube explaining how you can send notifications to your mobile Phone.
I tried to do this in my own environment but unfortunately no notification appears om my Samsung phone.
I gave Home Assistanf full access to my phone so probably that isn’t the reason.

What strikes me is that If I look in the Logs after clicking on Call Service within the Development menu I receive 2 error messages saying:

websocket_api script: Error executing script. Invalid data for call_service at pos 1: required key not provided @ data[‘message’]

and

  • [2780751928] Error handling message: required key not provided @ data[‘message’]. Got None

Next If I click on documentation for more explanation then it brings me to the H.A. Websocket API page but I don’t have the faintest idea what to do!?
Which Key do I need to provide?

If I use the persistent notification within the Development page and click on Call Service then it’s reported without any problem in the Notification menu from H.A.

Apparently I’m missing something in the Set-up maybe one of you can help me out.

Please post your code and format it using the </> button

It will make it look like this so we can see if it is setup correctly

It sounds like you are trying to send the message without the parameter message, which is required. Maybe you are trying to send with only title?

Hello Barthem,

Since I’ve tried many things in the past week, it now seems to work!
I reinstalled the HA app a few times, not sure if that worked :slight_smile:

But still, I’m a little confused that sending a notification through the Developer Tools → Services menu and choosing “Notifications: Send notification via mobile_app_sm_a405fn”, I won’t receive a notification on my phone.

But this may have been an option included in the previous version of H.A. was applied.

Hello Isabella,

Thanks for your reply it seems to work now after reinstalling the HA app on my mobile Phone several times.

1 Like