-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[plugwiseha] Improve cache and timeout handling #12345
Conversation
Signed-off-by: Leo Siepel <[email protected]>
…openhab-addons into plugwiseha-connectivity
One second i thought this was some kind of demo github page, but for real i have PR #12345 :-) |
...main/java/org/openhab/binding/plugwiseha/internal/api/model/PlugwiseHAControllerRequest.java
Show resolved
Hide resolved
Signed-off-by: Leo Siepel <[email protected]>
Signed-off-by: Leo Siepel <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/plugwise-home-automation-binding-for-openhab/81299/136 |
* Rework caching and timeout handling * Fix another caching related issue Signed-off-by: Leo Siepel <[email protected]> Signed-off-by: Nick Waterton <[email protected]>
* Rework caching and timeout handling * Fix another caching related issue Signed-off-by: Leo Siepel <[email protected]>
* Rework caching and timeout handling * Fix another caching related issue Signed-off-by: Leo Siepel <[email protected]>
* Rework caching and timeout handling * Fix another caching related issue Signed-off-by: Leo Siepel <[email protected]> Signed-off-by: Andras Uhrin <[email protected]>
* Rework caching and timeout handling * Fix another caching related issue Signed-off-by: Leo Siepel <[email protected]>
This PR fixes two issues with the current way the binding interacts with the Plugwise API (Adam).
Previously it fired Location_count + Appliance_count +1 times a http request to the api every 5 seconds. With this change it is 1 request per 5 seconds.
Somehow the Adam is a bit slow every 15 minutes and requests take longer then 5 seconds. I also added a better timeouthandling with 3 retries.
No documentation, configuration or other changes needed for the end-user.