In case anyone else runs into issues installing it, you’ll need to install libpython-dev, libffi-dev, and libssl-dev. Be prepared for a rather long wait after a restart as well on the raspi…
For about 30 minutes it looked like it worked for me, I could see the “notify/html5” service in the services tab. However, when I restarted my hass instance I got this error:
ValueError: Multibackend cannot be initialized with no backends. If you are seeing this error when trying to use default_backend() please try uninstalling and reinstalling cryptography.
Is that because I didn’t install what you are suggesting? or is this a whole different problem all together?
I can’t say for sure, but it doesn’t look related to my issue. So far it’s working for me tho.
Saw your reference on the other thread about BT LE; so are you saying this is working for you for HTML5, cause that’s what I am mostly interested in?
It is, at least it’s loading and allows me to enable notifications in the browser. Haven’t had a chance to actual push anything yet but it looks like things are working. Keep in mind tho that compile time for the required Python libs is rather long (several minutes).
I really appreciate that as I don’t run into compiling source very often and it would make me worry not knowing this.
I think I still may hold off a bit and see if this solves the issue when you get a notification to work. Please keep us posted and again, my thanks!
Seems the actual notifications are borked, getting the same error as @nshak when I try and trigger one manually.
Thanks Matt - saved me a long wait. LOL I see a hot fix in our future…
Hopefully so, opened a bug here.
Even with the suggested libs, it never installs on my box (and gives no useful error message besides failing to install).
16-08-29 10:29:58 ERROR (MainThread) [homeassistant.bootstrap] Not initializing notify.html5 because could not install dependency https://github.com/web-push-libs/pywebpush/archive/e743dc92558fc62178d255c0018920d74fa778ed.zip#pywebpush==0.5.0
I am also having this issue. Any progress on this for either of you guys?
Nope. I’ve submitted the traceback as an issue but so far no movement on it.
Follow @robbiet480 instructions here:
https://github.com/home-assistant/home-assistant/issues/3028#issuecomment-244215004
Did this work for you?
My home network connection is down right now so I can’t test, but looks it’s working for other folks.
@sgauche That worked like a charm! turns out I didn’t even have pywebpush installed in the first place. Now both Android and PC push notifications working.
Awesome news - I’m glad @robbiet480 got this figured out; I know he was excited to get this feature in the release.
Thanks to @sgauche for pointing us to it; can’t wait to get this set up!!
Well I followed the instructions to the letter, three separate times and I am still getting the multibackend error, despite @robbiet480 saying that the issue is now closed. I wonder if anyone else can help me?
I did the following:
- Shutdown Home Assistant
- Activated my venv as follows: source /srv/hass/hass_venv/bin/activate
- Ran sudo apt-get install libpython-dev libffi-dev libssl-dev
- Ran sudo pip uninstall pywebpush
- Ran sudo pip install “https://github.com/web-push-libs/pywebpush/archive/e743dc92558fc62178d255c0018920d74fa778ed.zip#pywebpush==0.5.0”
- Started up Home Assistant
- Turned off and then turned on Push Notifications in Chrome on my android
- Checked to see if the html5_push_registrations.conf file was created
- Attempt to send a notification over HTML5.
Since no message was received, checked logs and found the multibackend error exactly the same as was reported in the original issue here:
https://github.com/home-assistant/home-assistant/issues/3028
I’ve run through this 3 times but nothing seems to change. I still have the error. Anybody have an idea on what I may have missed? I can see from my logs that the notify.html5 component loads properly, so I don’t think it’s a dependency issue with pywebpush.
Hey @rpitera,
I apologize for closing that issue. I wasn’t trying to shut you down, I was just trying to communicate to others it seems the problem is fixed and I didn’t want to keep notifying everyone as I worked through the issues with you.
What OS and version are you on? I believe you said you used the all in one installer?
I understand @robbiet480; it’s got to be overwhelming managing all those messages. I appreciated the offer of help on Gitter, but I feel kind of overwhelmed there with multiple messages going on and I get lost because I don’t know how to use it - that’s the main reason I came back to the forums for help. I hope my words weren’t misinterpreted as criticism; if they were please accept my apologies.
I’m running Raspian 8 (jessie) on a RPi3. I used the AIO installer and am up to the latest version of HA 27.1.
I ran the steps and the last two times, I got no error messages to indicate anything went wrong in the install. HTML5 Push seems to be initializing and loading properly; the error only appears when I try to push a message. I’ve been using the examples and pasting them into the service panel.
Thanks again for taking the time to help; I really want to use this and I know how proud you were of the release.