Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to connect to HA websocket #4

Open
tmarquespt opened this issue Aug 18, 2023 · 1 comment
Open

unable to connect to HA websocket #4

tmarquespt opened this issue Aug 18, 2023 · 1 comment

Comments

@tmarquespt
Copy link

Hi Kirankumbhar,

I'm trying to use your websocketclient to connect to an HomeAssistant instace to get some data.

I've setup websocketclient host:port and path, auth_header = auth (as per documentation at https://developers.home-assistant.io/docs/api/websocket/) the token and the token_scheme = bearer but I'm unable to authenticate and stay in an authentication loop


Connecting to Websocket Server at ws://172.16.192.202:8123/api/websocket
Successfully connected to Websocket Server
{"type":"auth_required","ha_version":"2023.6.3"}
Successfully connected to Websocket Server
{"type":"auth_required","ha_version":"2023.6.3"}
Successfully connected to Websocket Server
{"type":"auth_required","ha_version":"2023.6.3"}

it seams I'm not sending response to auth_required or the response I'm sending is incorrect.

can you provide some help on this?

best regards,
Tiago

@kirankumbhar
Copy link
Owner

Hey @tmarquespt Did you figure this out? I missed the notification for the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants