FreshlyBrewedCode / hacs-homee

a Home Assistant custom component to integrate the homee smart home platform
MIT License
18 stars 6 forks source link

Error messages from Websockets #25

Closed Taraman17 closed 1 year ago

Taraman17 commented 1 year ago

Type of problem

Version

2.1.0

Detailed description

After a while of running hacs-homee, I get lots of errors from websockets in the log and the integration stops working. Reloading it gets it back to work for a while, but errors persist. Disabling Integration makes errors disappear, so I'm pretty sure it's this one, although the logs don't say it directly.

I'm not sure if it is related to the last change or not. I can't test without it, since I only have devices that depend on that change.

Error log

2023-02-23 23:26:41.232 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [1476499464] Client unable to keep up with pending messages. Stayed over 512 for 5 seconds. The system's load is too high or an integration is misbehaving

2023-02-23 16:53:42.928 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved
websockets.exceptions.ConnectionClosedError: received 4404 (private use) TOKEN_INVALID; then sent 4404 (private use) TOKEN_INVALID
FreshlyBrewedCode commented 1 year ago

Looks like the logs are not coming directly from the homee integration. See the related issue in HA core: https://github.com/home-assistant/core/issues/82562

Taraman17 commented 1 year ago

Can that be because I run the devcontainer in my network and two HA Instances connect to the Homee Cube?

Taraman17 commented 1 year ago

This was indeed caused by concurrent logins to homee from my devcontainer.