HTML5 Notifications broken?

Just configured HTML5 notifications with the Google/Firebase account, when I attempt to send a notification I get this exception:

Config:

notify:

  • platform: html5
    name: html5notify
    gcm_api_key: !secret html5_serverkey
    gcm_sender_id: !secret html5_senderid

After calling the service with the example message:

Error handling message: {‘type’: ‘call_service’, ‘domain’: ‘notify’, ‘service’: ‘html5notify’, ‘service_data’: {‘message’: ‘hello world’}, ‘id’: 14}
Traceback (most recent call last):
File “/usr/src/app/homeassistant/components/websocket_api/decorators.py”, line 17, in _handle_async_response
await func(hass, connection, msg)
File “/usr/src/app/homeassistant/components/websocket_api/commands.py”, line 148, in handle_call_service
connection.context(msg))
File “/usr/src/app/homeassistant/core.py”, line 1130, in async_call
self._execute_service(handler, service_call))
File “/usr/src/app/homeassistant/core.py”, line 1152, in _execute_service
await handler.func(service_call)
File “/usr/src/app/homeassistant/components/notify/init.py”, line 117, in async_notify_message
await notify_service.async_send_message(**kwargs)
File “/usr/local/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/src/app/homeassistant/components/notify/html5.py”, line 451, in send_message
self._push_message(payload, **kwargs)
File “/usr/src/app/homeassistant/components/notify/html5.py”, line 498, in _push_message
json.dumps(payload), gcm_key=gcm_key, ttl=‘86400’
File “/usr/local/lib/python3.6/site-packages/pywebpush/init.py”, line 256, in send
encoded = self.encode(data)
File “/usr/local/lib/python3.6/site-packages/pywebpush/init.py”, line 184, in encode
version=content_encoding)
File “/usr/local/lib/python3.6/site-packages/http_ece/init.py”, line 375, in encrypt
keyid=keyid, keylabel=keylabel)
File “/usr/local/lib/python3.6/site-packages/http_ece/init.py”, line 113, in derive_key
keylabel=keylabel)

  • List item

File “/usr/local/lib/python3.6/site-packages/http_ece/init.py”, line 78, in derive_dh
pubkey = ec.EllipticCurvePublicKey.from_encoded_point(
AttributeError: type object ‘EllipticCurvePublicKey’ has no attribute ‘from_encoded_point’

I’m getting the same error! Cannot find a way to get rid of it either.

https://github.com/home-assistant/home-assistant/issues/21001

I have manually updated cryptography to 2.5 and rebooted my pi but am getting the same error, I’m afraid.

I am not using Docker and the link above only refers to Docker.

Did you manage to fix this error, @thastealth?

I have updated cryptography to 2.5 and still getting the same error. Tried removing and re-installing pywebpush and cryptography too, but no luck.

Same error guys on 82.1 lets hope it gets fixed by next release. I need the notifications.

Did you report this on the official page for bugs/issues? I’m having the same problem, just want to make sure we’re going down the right road to get it fixed.

There is an issue logged. See the third post of this thread.

I upgraded today to 0.88.0 and I had to reconfigure the api keys using VAPID (which will supersede GCM after April 2019) Now it seems to work again.