-
-
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
[flume] Initial contribution #17152
[flume] Initial contribution #17152
Conversation
ee05c4d
to
2ed6c2c
Compare
Thank you for this contribution. As there are many PR’s to review, it would nice if you can do some self review upfront. A checklist is here https://github.com/openhab/openhab-addons/wiki/Review-Checklist I noticed that the channel id’s and maybe more do not match the naming convention. For reference https://www.openhab.org/docs/developer/guidelines.html#naming-convention Please ping me when you are ready. |
b27fda9
to
c6cfa23
Compare
@lsiepel - I addressed the naming convention in this commit and I did go back through the checklist/code guidelines and "believe" everything is in a good state. |
Thanks for the binding @jsjames , my flume2 comes today so very excited to hook it up to openHAB and tie it in with my sprinkler monitoring (Hydrawsie binding) . I'll let you know how it goes ! |
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 again for this contribution. Just finish this partial review, looked at 25/32 files. Looks pretty good, some comments and questions for now. Hope to finish this review later this week.
...nding.flume/src/main/java/org/openhab/binding/flume/internal/handler/FlumeBridgeHandler.java
Show resolved
Hide resolved
...nding.flume/src/main/java/org/openhab/binding/flume/internal/handler/FlumeBridgeHandler.java
Outdated
Show resolved
Hide resolved
...nding.flume/src/main/java/org/openhab/binding/flume/internal/handler/FlumeBridgeHandler.java
Outdated
Show resolved
Hide resolved
...nding.flume/src/main/java/org/openhab/binding/flume/internal/handler/FlumeBridgeHandler.java
Outdated
Show resolved
Hide resolved
...nding.flume/src/main/java/org/openhab/binding/flume/internal/handler/FlumeBridgeHandler.java
Outdated
Show resolved
Hide resolved
@digitaldan, it will be good to know how you end up linking them. I am using the rachio binding which notified when a zone is turned on/off. I persist both that and the cumulative water usage into influx. Then, I use a "very complex" flux query to retrieve the data. Its somewhat error prone and influxdb is deprecating the flux language - so i'm planning to use a different method. Hope the binding will work well for you. |
39712d7
to
e364faa
Compare
04b964b
to
c9d8ae8
Compare
...nding.flume/src/main/java/org/openhab/binding/flume/internal/actions/FlumeDeviceActions.java
Outdated
Show resolved
Hide resolved
...nding.flume/src/main/java/org/openhab/binding/flume/internal/actions/FlumeDeviceActions.java
Outdated
Show resolved
Hide resolved
...nding.flume/src/main/java/org/openhab/binding/flume/internal/actions/FlumeDeviceActions.java
Outdated
Show resolved
Hide resolved
...nding.flume/src/main/java/org/openhab/binding/flume/internal/actions/FlumeDeviceActions.java
Outdated
Show resolved
Hide resolved
...nding.flume/src/main/java/org/openhab/binding/flume/internal/actions/FlumeDeviceActions.java
Outdated
Show resolved
Hide resolved
...org.openhab.binding.flume/src/main/java/org/openhab/binding/flume/internal/api/FlumeApi.java
Outdated
Show resolved
Hide resolved
...org.openhab.binding.flume/src/main/java/org/openhab/binding/flume/internal/api/FlumeApi.java
Outdated
Show resolved
Hide resolved
...org.openhab.binding.flume/src/main/java/org/openhab/binding/flume/internal/api/FlumeApi.java
Outdated
Show resolved
Hide resolved
...org.openhab.binding.flume/src/main/java/org/openhab/binding/flume/internal/api/FlumeApi.java
Outdated
Show resolved
Hide resolved
...org.openhab.binding.flume/src/main/java/org/openhab/binding/flume/internal/api/FlumeApi.java
Outdated
Show resolved
Hide resolved
...org.openhab.binding.flume/src/main/java/org/openhab/binding/flume/internal/api/FlumeApi.java
Outdated
Show resolved
Hide resolved
...org.openhab.binding.flume/src/main/java/org/openhab/binding/flume/internal/api/FlumeApi.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Jeff James <[email protected]>
Signed-off-by: Jeff James <[email protected]>
Signed-off-by: Jeff James <[email protected]>
fixed issue with multiple notifications Signed-off-by: Jeff James <[email protected]>
Signed-off-by: Jeff James <[email protected]>
Streamlined some iterations to use stream Signed-off-by: Jeff James <[email protected]>
Signed-off-by: Jeff James <[email protected]>
Signed-off-by: Jeff James <[email protected]>
addressed issues in design review Signed-off-by: Jeff James <[email protected]>
Sounds good, i just saw you marked as approved. Should be good to go now. I streamlined/refactored some of the API calls, so there are quite a few changes to that file - but it is better structured. |
...org.openhab.binding.flume/src/main/java/org/openhab/binding/flume/internal/api/FlumeApi.java
Show resolved
Hide resolved
bundles/org.openhab.binding.flume/src/main/resources/OH-INF/i18n/flume.properties
Show resolved
Hide resolved
bundles/org.openhab.binding.flume/src/main/resources/OH-INF/i18n/flume.properties
Show resolved
Hide resolved
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.
Very minor comment and the i18n plugin has to be re-run. Otherwise LGTM.
...nding.flume/src/main/java/org/openhab/binding/flume/internal/handler/FlumeBridgeHandler.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Jeff James <[email protected]>
Now, you could add your binding's logo to the openHAB website. See https://next.openhab.org/docs/developer/addons/#add-your-add-on-s-logo-to-the-openhab-website-and-the-ui |
@lsiepel - Thanks for all you do to make us all better coders!! |
* Initial submission Signed-off-by: Jeff James <[email protected]>
* Initial submission Signed-off-by: Jeff James <[email protected]> Signed-off-by: Patrik Gfeller <[email protected]>
* Initial submission Signed-off-by: Jeff James <[email protected]>
* Initial submission Signed-off-by: Jeff James <[email protected]>
This is a new binding to read water usage when using a flume water meter device (https://flumewater.com/). It utilizes the Flume cloud API (https://flumetech.readme.io/reference/introduction).
A built version of the binding is at this location: https://drive.google.com/file/d/13lnVOnUnVKCdudOXF7crdGdTNEL_ACW6/view?usp=drive_link