Html5 vapid 403 forbidden

Do you have this in your log in the beginning?

2019-05-02 23:02:05 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for html5 which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.

Just wanna make sure that the custom component was recognized.

Hi all, I found the problem. See https://github.com/web-push-libs/pywebpush/issues/100#issuecomment-490428162

It will fails after 12h because the exp field is not updated (set only once by webpush)

2 Likes

Reporting back with a solution ( for now), I found this fix :

And applied it to my HA ( Hassio, on a raspberry pi 3) and now after 24 hours still working!

Cheers,

Reading the documentation I see that you have to add a new one rule to solve it, but I have no idea where to add the code: location /api/notify.html5/callback {ā€¦

Did you find where or how to implement this code? Iā€™m having the same problem, I canā€™t seem to find where to add it.

By the looks of it hassioā€™s ā€˜configā€™ area for the Nginx proxy addon uses another formatting. Iā€™m not certain how to translate the code to that format.

[edit] I tried looking around in the /etc/nginx/ folder. Editing /etc/nginx/conf.d/default.conf looked promising, doesnā€™t matter for html5 messages throwing me a 403 though.

1 Like