Skip to content
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

Merged
merged 9 commits into from
Feb 22, 2022

Conversation

lsiepel
Copy link
Contributor

@lsiepel lsiepel commented Feb 22, 2022

This PR fixes two issues with the current way the binding interacts with the Plugwise API (Adam).

  1. 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.

  2. 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.

@lsiepel
Copy link
Contributor Author

lsiepel commented Feb 22, 2022

One second i thought this was some kind of demo github page, but for real i have PR #12345 :-)

@lolodomo lolodomo added the enhancement An enhancement or new feature for an existing add-on label Feb 22, 2022
Signed-off-by: Leo Siepel <[email protected]>
Copy link
Contributor

@lolodomo lolodomo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lolodomo lolodomo merged commit 2e1ea32 into openhab:main Feb 22, 2022
@lolodomo lolodomo added this to the 3.3 milestone Feb 22, 2022
@lsiepel lsiepel deleted the plugwiseha-connectivity branch February 22, 2022 20:27
@openhab-bot
Copy link
Collaborator

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

NickWaterton pushed a commit to NickWaterton/openhab-addons that referenced this pull request Apr 27, 2022
* Rework caching and timeout handling
* Fix another caching related issue

Signed-off-by: Leo Siepel <[email protected]>
Signed-off-by: Nick Waterton <[email protected]>
nemerdaud pushed a commit to nemerdaud/openhab-addons that referenced this pull request Jun 29, 2022
* Rework caching and timeout handling
* Fix another caching related issue

Signed-off-by: Leo Siepel <[email protected]>
andan67 pushed a commit to andan67/openhab-addons that referenced this pull request Nov 6, 2022
* Rework caching and timeout handling
* Fix another caching related issue

Signed-off-by: Leo Siepel <[email protected]>
andrasU pushed a commit to andrasU/openhab-addons that referenced this pull request Nov 12, 2022
* Rework caching and timeout handling
* Fix another caching related issue

Signed-off-by: Leo Siepel <[email protected]>
Signed-off-by: Andras Uhrin <[email protected]>
psmedley pushed a commit to psmedley/openhab-addons that referenced this pull request Feb 23, 2023
* Rework caching and timeout handling
* Fix another caching related issue

Signed-off-by: Leo Siepel <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants