-
-
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
[meater] Initial contribution #13400
Conversation
Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>
Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>
Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>
Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>
Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>
Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>
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.
Please adjust your changes in the bom/pom.xml file. You have more changes than expected. You should just add one line for your new binding.
For your information, I recently created a new binding using the skeleton script and I faced the same issue. I will open an issue.
Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>
I guess you meant the bundle/pom.xml, I've removed a lot of empty lines in it. |
Please take the file from the main branch and just add one line for your new binding. |
Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>
Now your PR is compiling and its number of lines has been reduced significantly. The review should be not too difficult. |
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.
Reivew part 1 of 3
bundles/org.openhab.binding.meater/src/main/feature/feature.xml
Outdated
Show resolved
Hide resolved
...ding.meater/src/main/java/org/openhab/binding/meater/internal/MeaterBridgeConfiguration.java
Outdated
Show resolved
Hide resolved
...penhab.binding.meater/src/main/java/org/openhab/binding/meater/internal/MeaterException.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.meater/src/main/resources/OH-INF/i18n/meater_xx.properties
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.meater/src/main/resources/OH-INF/thing/thing-types.xml
Show resolved
Hide resolved
I still use text files for my config. Here's what worked for me. It was kinda a pain to get the device ID's and determine what probe it belonged to. In order to get the device ID's I had to add the probes from the mailbox, and copy the device ID from the thing for the probe, then delete the thing. The only way I could determine the device was to configure an item for each probe and then see what value it returned. For example, I set the target cook temp differently for each probe. .things file:
.items file:
|
....binding.meater/src/main/java/org/openhab/binding/meater/internal/handler/MeaterHandler.java
Outdated
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.
Review part 2 of 3
...nhab.binding.meater/src/main/java/org/openhab/binding/meater/internal/api/MeaterRestAPI.java
Outdated
Show resolved
Hide resolved
...nhab.binding.meater/src/main/java/org/openhab/binding/meater/internal/api/MeaterRestAPI.java
Outdated
Show resolved
Hide resolved
...nhab.binding.meater/src/main/java/org/openhab/binding/meater/internal/api/MeaterRestAPI.java
Outdated
Show resolved
Hide resolved
...nhab.binding.meater/src/main/java/org/openhab/binding/meater/internal/api/MeaterRestAPI.java
Outdated
Show resolved
Hide resolved
...nhab.binding.meater/src/main/java/org/openhab/binding/meater/internal/api/MeaterRestAPI.java
Outdated
Show resolved
Hide resolved
...nhab.binding.meater/src/main/java/org/openhab/binding/meater/internal/api/MeaterRestAPI.java
Outdated
Show resolved
Hide resolved
...ater/src/main/java/org/openhab/binding/meater/internal/discovery/MeaterDiscoveryService.java
Outdated
Show resolved
Hide resolved
...ater/src/main/java/org/openhab/binding/meater/internal/discovery/MeaterDiscoveryService.java
Outdated
Show resolved
Hide resolved
...hab.binding.meater/src/main/java/org/openhab/binding/meater/internal/dto/MeaterProbeDTO.java
Outdated
Show resolved
Hide resolved
Note for myself: remains the 2 handlers to review. |
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.
I took the descriptions from https://github.com/apption-labs/meater-cloud-public-rest-api. I might have missed some of them.
Thanks! :-) I will use this as examples in the README. |
...nhab.binding.meater/src/main/java/org/openhab/binding/meater/internal/api/MeaterRestAPI.java
Show resolved
Hide resolved
Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>
...ng.meater/src/main/java/org/openhab/binding/meater/internal/handler/MeaterBridgeHandler.java
Outdated
Show resolved
Hide resolved
...nhab.binding.meater/src/main/java/org/openhab/binding/meater/internal/api/MeaterRestAPI.java
Show resolved
Hide resolved
...nhab.binding.meater/src/main/java/org/openhab/binding/meater/internal/api/MeaterRestAPI.java
Outdated
Show resolved
Hide resolved
...nhab.binding.meater/src/main/java/org/openhab/binding/meater/internal/api/MeaterRestAPI.java
Outdated
Show resolved
Hide resolved
...nhab.binding.meater/src/main/java/org/openhab/binding/meater/internal/api/MeaterRestAPI.java
Show resolved
Hide resolved
Updated after latest review comments, binding jar-file updated on community thread. |
...nhab.binding.meater/src/main/java/org/openhab/binding/meater/internal/api/MeaterRestAPI.java
Outdated
Show resolved
Hide resolved
...nhab.binding.meater/src/main/java/org/openhab/binding/meater/internal/api/MeaterRestAPI.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.meater/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>
Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>
Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>
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.
Minor new comments for last commit.
bundles/org.openhab.binding.meater/src/main/resources/OH-INF/i18n/meater.properties
Show resolved
Hide resolved
Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>
Updated after latest review comments, binding jar-file updated on community thread. |
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 for your contribution! @lolodomo - my review part is completed, please feel free to merge when you are done with your part.
Thanks for your review! 👍 |
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.
Here are my very final review comments, minor for most of them.
...nhab.binding.meater/src/main/java/org/openhab/binding/meater/internal/api/MeaterRestAPI.java
Outdated
Show resolved
Hide resolved
...g.meater/src/main/java/org/openhab/binding/meater/internal/handler/MeaterHandlerFactory.java
Outdated
Show resolved
Hide resolved
...ng.meater/src/main/java/org/openhab/binding/meater/internal/handler/MeaterBridgeHandler.java
Outdated
Show resolved
Hide resolved
...ng.meater/src/main/java/org/openhab/binding/meater/internal/handler/MeaterBridgeHandler.java
Show resolved
Hide resolved
...ng.meater/src/main/java/org/openhab/binding/meater/internal/handler/MeaterBridgeHandler.java
Outdated
Show resolved
Hide resolved
....binding.meater/src/main/java/org/openhab/binding/meater/internal/handler/MeaterHandler.java
Outdated
Show resolved
Hide resolved
....binding.meater/src/main/java/org/openhab/binding/meater/internal/handler/MeaterHandler.java
Show resolved
Hide resolved
...ng.meater/src/main/java/org/openhab/binding/meater/internal/handler/MeaterBridgeHandler.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>
Updated after latest review comments, binding jar-file updated on community thread. |
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.
Thank you for your patience and your quickness to answer to all our comments.
A very last one for the road.
...ng.meater/src/main/java/org/openhab/binding/meater/internal/handler/MeaterBridgeHandler.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>
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.
Thank you
It is me who should thank you guys doing these reviews on your spare time and helping me to learn more about openHAB and Java :-) |
Updated after latest review comments, binding jar-file updated on community thread. |
Now, you could add your binding's logo to the openHAB website. See https://www.openhab.org/docs/developer/bindings/#add-your-binding-s-logo-to-the-openhab-website |
* First version. Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>
* First version. Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com> Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
* First version. Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>
* First version. Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>
* First version. Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>
This is the initial commit for the meater binding.
The binding gives the end user the possibility to monitor Meater probes.
It uses the public Meater REST API
Link to community thread.
Link to published jar-file.
This PR will close #11998.