Hi folks,
I’ve been tinkering with HTML5 push notifications as I think it would be a great way to get notifications both on desktop and mobile without the need for additional apps. Unfortunately I can’t get the flipping thing to work. I thoroughly followed the instructions under https://www.home-assistant.io/components/html5/ to set up the Google project and verify the domain etc. I’m using the nabu.casa cloud service for external access and therefore verified the domain ownership via putting the verification html file into my /local folder. The domain verification worked fine and I activated the integration in my configuration.yaml via the vapid pub and priv key configuration:
notify:
- platform: html5
name: html5notify
vapid_pub_key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
vapid_priv_key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
vapid_email: [email protected]
After restarting HA I was able to activate the HTML5 notification slider in my user profile and Chrome prompted me for confirmation of the notification settings, which I confirmed.
Unfortunately, when I try to run a service call to notify.html5notify
with {"message": "test notification"}
as payload, I don’t get any notifications at all. I tried it on 2 different computers, on Chrome and Firefox as well as my Android phone without any luck.
Unfortunately I don’t get any error messages in the logs, therefore I assume the function call works as intended.
Any pointers for further troubleshooting of this issue?
Cheers,
Alex