-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[ondilo] Handle command REFRESH #19455
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
Conversation
Signed-off-by: Michael Weger <weger.michael@gmx.net>
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.
Pull Request Overview
This PR implements support for the REFRESH command in the Ondilo binding by introducing caching for measures and recommendations. The implementation allows users to refresh channel values on demand using cached data.
Key changes:
- Added caching mechanism for measures and recommendations to support REFRESH command
- Updated display precision for numeric channels (ORP and pH trend channels changed from 1 decimal to 0 decimal places)
- Improved code structure by consolidating measure processing logic
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| thing-types.xml | Updated display patterns for ORP and trend channels to show whole numbers |
| OndiloHandler.java | Added caching fields and implemented REFRESH command handling logic |
| OndiloBridge.java | Refactored measure processing to use new consolidated method |
| README.md | Updated example configurations and corrected formatting issues |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
....openhab.binding.ondilo/src/main/java/org/openhab/binding/ondilo/internal/OndiloHandler.java
Show resolved
Hide resolved
....openhab.binding.ondilo/src/main/java/org/openhab/binding/ondilo/internal/OndiloHandler.java
Show resolved
Hide resolved
....openhab.binding.ondilo/src/main/java/org/openhab/binding/ondilo/internal/OndiloHandler.java
Outdated
Show resolved
Hide resolved
....openhab.binding.ondilo/src/main/java/org/openhab/binding/ondilo/internal/OndiloHandler.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Michael Weger <weger.michael@gmx.net>
Signed-off-by: Michael Weger <weger.michael@gmx.net>
Signed-off-by: Michael Weger <weger.michael@gmx.net>
Signed-off-by: Michael Weger <weger.michael@gmx.net>
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.
Thanks, LGTM
You need additional test time?
|
please merge this one as well as #19268. here is a openHAB 5.0.2 version of the change, if someone wants to do additional testing: |
* handle command REFRESH Signed-off-by: Michael Weger <weger.michael@gmx.net>
Handle command REFRESH
Description
Measures and Recommendations are now cached in order to implement REFRESH command
Smaller improvements in state description and README.