kirankumbhar / django-websocketclient

A persisting WebSocket client for Django
MIT License
12 stars 3 forks source link

unable to connect to HA websocket #4

Open tmarquespt opened 1 year ago

tmarquespt commented 1 year ago

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 commented 1 year ago

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