CoolKit-Technologies / ha-addon

Apache License 2.0
253 stars 117 forks source link

Could not connect to HA-WS #111

Open azarpaman opened 1 year ago

azarpaman commented 1 year ago

I have 1 container running HA core and another one running ewelink container. I run it using the HA_URL and a long life token, generated by my HA. This is the error I am getting.

2022-12-12T10:42:00.859Z [INFO] Start init lib-ha... 2022-12-12T10:42:00.866Z [ERROR] WebSocket2Ha error: Error: getaddrinfo EAI_AGAIN supervisor 2022-12-12T10:42:00.866Z [INFO] WebSocket2Ha will close

glowfishDE commented 1 year ago

I have something similiar:

WebSocket2Ha error: Error: getaddrinfo ENOTFOUND supervisor

I am clueless.

I set the HA_URL and SUPERVISOR_TOKEN in the docker environment as expected but its not working.

azarpaman commented 1 year ago

@glowfishDE I solved the problem by installing HACS inside my home assistant container. After doing that you can install sonoff integration from HACS, it works great!!

glowfishDE commented 1 year ago

@azarpaman hey friend that sounds phenomenal. Do you have some link or howto about installing "HACS" ? Can i install that inside my current "HomeAssistant Docker Container" ?

Update: I found a good one how to install HACS in the existing HA Docker here: https://www.wundertech.net/how-to-install-hacs-on-home-assistant/

After that i´ve installed the SONOFF LAN Integration in HACS and after that i was able to click on "Devices -> Add Device -> SONOFF" in my Home Assistant and it asked for the Ewelink credentials. Now i can see my device :)

Many thanks! You saved my day!

azarpaman commented 1 year ago

@glowfishDE I'm glad I could help you! I recommend that you take a look at HACS since you have installed it, there are a lot of cool integrations made by the community!!