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 #34

Open
jmggs opened this issue Dec 18, 2023 · 2 comments
Open

Unable to connect #34

jmggs opened this issue Dec 18, 2023 · 2 comments

Comments

@jmggs
Copy link

jmggs commented Dec 18, 2023

Hi,
i'm running Companion and Home assistant on docker. Everything works fine on Companion and also on Home Assistant (can acess from url on network, can add and control devices) but unable to connect from Companion to Home Assistant.

Error: Instance/Wrapper/homeassistant-server: Connect failed: ERR_CANNOT_CONNECT

using Ip address and port and also log live token

homeassistant-server configuration
Label
homeassistant-server
Home Assistant Url
http://10.0.34.203:8123/
Ignore Certificate Signing
Access Token

Whats wrong?

@vaghelajigs
Copy link

Hi, i'm running Companion and Home assistant on docker. Everything works fine on Companion and also on Home Assistant (can acess from url on network, can add and control devices) but unable to connect from Companion to Home Assistant.

Error: Instance/Wrapper/homeassistant-server: Connect failed: ERR_CANNOT_CONNECT

using Ip address and port and also log live token

homeassistant-server configuration Label homeassistant-server Home Assistant Url http://10.0.34.203:8123/ Ignore Certificate Signing Access Token

Whats wrong?

Hello Brother Pls update if you got any solution
TIA

@a1454
Copy link

a1454 commented Feb 28, 2025

I just started having this issue, it was working just fine 2 days ago. My home assistant is a dedicated hardware (Home Assistant Green) and have fixed IP. the UI is reacheable from the computer that's running Companion. Not sure why this is happening.

In the log its stuck at trying to establish a web socket connection, but is unable to
system: Starting log. Only lines generated since opening the page are shown here system: Status: unknown_error - Disconnected with a WebSocket error with message: connect ETIMEDOUT fe80::5ffd:eb4:54ef:d7d6:8123 debug: Connection closed: Disconnected with a WebSocket error with message: connect ETIMEDOUT fe80::5ffd:eb4:54ef:d7d6:8123 debug: [Auth Phase] Connecting to Home Assistant...: ws://homeassistant.local:8123/api/websocket system: Status: connecting - null system: Status: unknown_error - Disconnected with a WebSocket error with message: connect ETIMEDOUT fe80::5ffd:eb4:54ef:d7d6:8123 debug: Connection closed: Disconnected with a WebSocket error with message: connect ETIMEDOUT fe80::5ffd:eb4:54ef:d7d6:8123 debug: [Auth Phase] Connecting to Home Assistant...: ws://homeassistant.local:8123/api/websocket system: Status: connecting - null

Looking at the log, it looks like the address homeassistant.local is somehow getting resolved to an IPv6 address. So I used http://192.168.10.8:8123 (the actual fixed IP home assistant is on) and restarted the plugin and it is working!

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

3 participants