HTML5 Push Notification error: Saving config file failed

Hi,
I’m running HASS 0.30.2 on Win 10.
I’ve managed to receive notifications on the first android phone but when I try to get notifications on the second one, I never receive them on the second phone.

I tried to unregister/register the second phone.
In this case, file html5_push_registrations.conf becomes empty and I get this error in log:

16-10-15 23:13:50 homeassistant.components.notify.html5: Saving config file failed: b'BKFXXXXXXXXXXXXX_XX-c=' is not JSON serializable

And I continue to receive push notifications on the first phone.

I’ve tried this:

  1. Shutdown Home Assistant
  2. pip uninstall pywebpush
  3. pip install “https://github.com/web-push-libs/pywebpush/archive/e743dc92558fc62178d255c0018920d74fa778ed.zip#pywebpush==0.5.0
  4. Start up Home Assistant
  5. Attempt to send a notification over HTML5

But it doesn’t help.

I’d like to add that there were several same issues #3154, #3028 and #3382. All of them are closed as fixed.
However, someone mentioned that the issue might be due to registration/unregistration problem or due to that one identifier contains a single quote < ’ >.
Could someone look at this issue again since it seems not solved?

1 Like

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

The issue has partly been solved, however, the notifications still do not work for “problematic” clients. Some update for those who might be interested: