You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When authenticating to the websocket API via Javascript, providing a token obtained via the HASSIO_TOKEN environment variable (via an add-on) returns the error: Invalid access token or password.
The documentation here should be clearer in terms of what types of tokens can be used and what can't, if this is not supported.
If this is not a supported scenario, how is an addon running in Hass.io supposed to authenticate to the Websocket API if it only has its token from the HASSIO_TOKEN env variable?
The text was updated successfully, but these errors were encountered:
Hey there @home-assistant/core, mind taking a look at this issue as its been labeled with a integration (websocket_api) you are listed as a codeowner for? Thanks!
The problem
When authenticating to the websocket API via Javascript, providing a token obtained via the
HASSIO_TOKEN
environment variable (via an add-on) returns the error: Invalid access token or password.Environment
Home Assistant 0.103.5 and 0.105.2
Hass.io (HassOS v3.9)
Websocket API Documentation
Problem-relevant
configuration.yaml
You just need
frontend:
which enables the default websocket API.Traceback/Error logs
Log of Websocket communication:
Additional information
The documentation here should be clearer in terms of what types of tokens can be used and what can't, if this is not supported.
If this is not a supported scenario, how is an addon running in Hass.io supposed to authenticate to the Websocket API if it only has its token from the
HASSIO_TOKEN
env variable?The text was updated successfully, but these errors were encountered: