-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Integration loses connection to Digitalstrom server (DSS) #12
Comments
Hi, does this only happen once or on every request afterwards? The authentication works with session tokens which become invalid after Home Assistant makes no requests to DS for 60 seconds (i think). This timeout is tracked by my integration and a new token is requested if needed (if there were no requests made in the last 50 seconds). To try and fix the issue I'm now saving the timestamp only after a request is completed. This should have two effects: If a request fails then no timestamp is saved and the duration of the request is not counted towards the 50 seconds. To test if the fix works, please install the 'main' version of this integration until v0.0.8 is released. Best Regards |
Hi, With every request. My light buttons are then grayed out because they can not be operated due to lack of connection. Sounds like it could work. :) Sorry, probably a rookie question: The current version is still running, how do I update the main version? Denke wir können auch auf deutsch wechseln... :) LG |
In HACS kann die Integration über die 3 Punkte oben rechts mit "Erneut herunterladen" neu installiert werden. Dabei einfach als Version 'main' auswählen und anschließend HA neu starten :) |
Ah... wieder was gelernt... :) Erledigt, beobachte es mal. Danke für den ad-hoc Einsatz. :) |
Hi @tmycgn , MfG |
Hi, sorry, meine Antwort stand noch auf der Todo. :) Ja, die Änderung hat tatsächlich bewirkt dass es nicht mehr zu Verbindungsproblemen kommt. Ich musste seit dem Update den Adapter kein einziges Mal mehr neu laden, vielen Dank Dir!! Issue kann somit geschlossen werden. |
Sehr gut! |
Bin für alles zu haben, fänd ich super!! :) Hätte auch noch Ideen und kleinere Sachen, wollte ich nochmal in Ruhe zusammenfassen. Main Version installiere ich gleich! |
Hier der Link zum Discord: https://discord.gg/uTDweuNnHq |
Hi,
The integration often loses the connection after a few days, I suspect an authentication timeout according to the log. Does anyone have an idea or can confirm this? The solution is always to reload the integration, then it works again for a few days.
BR Thomas
The text was updated successfully, but these errors were encountered: