Closed Mr-jreeves closed 3 years ago
Unfortunately, that's a limit of the websocket, it won't run indefinitely. Basically, you'll need to re-open a connection whenever you run into this. Please see the gehome HA component repository for an example of the retry logic I implemented to handle this situation (it's in the update_coordinatory.py file).
I hacked up a client to continuously poll for updates ... it runs fine for many hours but then I start getting errors:
Here's the main loop, I'm trying to avoid completely resetting the GeWebsocketClient but perhaps that is the issue? (GE_REFRESH is set to 30 minutes)
Any ideas would be appreciated.