Recently I configured HTML5 Push Notifications and it worked fine. Now the are working anymore. My configuration.yaml was not changed
In the logs I read: Missing ‘sub’ from claims. ‘sub’ is your admin email as a mailto: link.
Any suggestion?
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/automation/__init__.py", line 500, in async_trigger
await self.action_script.async_run(
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1195, in async_run
await asyncio.shield(run.async_run())
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 341, in async_run
await self._async_step(log_exceptions=False)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 359, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 559, in _async_call_service_step
await service_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1480, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1515, in _execute_service
await handler.job.target(service_call)
File "/usr/src/homeassistant/homeassistant/components/notify/__init__.py", line 160, in _async_notify_message_service
await self.async_send_message(**kwargs)
File "/usr/src/homeassistant/homeassistant/components/notify/__init__.py", line 137, in async_send_message
await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/html5/notify.py", line 489, in send_message
self._push_message(payload, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/html5/notify.py", line 522, in _push_message
vapid_headers = create_vapid_headers(
File "/usr/src/homeassistant/homeassistant/components/html5/notify.py", line 573, in create_vapid_headers
return vapid.sign(vapid_claims)
File "/usr/local/lib/python3.8/site-packages/py_vapid/__init__.py", line 320, in sign
sig = sign(self._base_sign(claims), self.private_key)
File "/usr/local/lib/python3.8/site-packages/py_vapid/__init__.py", line 270, in _base_sign
raise VapidException(
py_vapid.VapidException: Missing 'sub' from claims. 'sub' is your admin email as a mailto: link.