-
-
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
[mecmeter] Initial contribution of mecmeter binding #9075
Conversation
@openhab/add-ons-maintainers This binding is finally ready for review. Should be a fairly simple one, not that much code altogether. |
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 migrating the code to OH3. 👍 I placed a few review comments for my findings below.
...binding.mecmeter/src/main/java/org/openhab/binding/mecmeter/MecMeterDeviceConfiguration.java
Show resolved
Hide resolved
...binding.mecmeter/src/main/java/org/openhab/binding/mecmeter/MecMeterDeviceConfiguration.java
Show resolved
Hide resolved
...binding.mecmeter/src/main/java/org/openhab/binding/mecmeter/MecMeterDeviceConfiguration.java
Outdated
Show resolved
Hide resolved
...binding.mecmeter/src/main/java/org/openhab/binding/mecmeter/MecMeterDeviceConfiguration.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.mecmeter/src/main/resources/OH-INF/thing/thing-types.xml
Show resolved
Hide resolved
...hab.binding.mecmeter/src/main/java/org/openhab/binding/mecmeter/handler/MecMeterHandler.java
Outdated
Show resolved
Hide resolved
...hab.binding.mecmeter/src/main/java/org/openhab/binding/mecmeter/handler/MecMeterHandler.java
Outdated
Show resolved
Hide resolved
...hab.binding.mecmeter/src/main/java/org/openhab/binding/mecmeter/handler/MecMeterHandler.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.mecmeter/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
Also-by: Klaus Berger <klaus.berger@verbund.com> Also-by: Florian Pazour <florian.pazour@verbund.com> Signed-off-by: Kai Kreuzer <kai@openhab.org>
@wborn Thanks for your review! All comments are addressed now. |
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 quickly fixing all my review comments!
After going through the code I have 2 more comments:
...hab.binding.mecmeter/src/main/java/org/openhab/binding/mecmeter/handler/MecMeterHandler.java
Show resolved
Hide resolved
Signed-off-by: Kai Kreuzer <kai@openhab.org>
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 now! If another @openhab/add-ons-maintainers also approves the PR then we can merge this. 🚀
While we wait for the second review, can you also add the binding dir to the CODEOWNERS file @kaikreuzer? |
Signed-off-by: Kai Kreuzer <kai@openhab.org>
Sure, done! |
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.
There are two compiler warnings left:
[WARNING] MecMeterHandler.java:[101,13] Potential null pointer access: this expression has a '@Nullable' type
[WARNING] MecMeterHandler.java:[117,13] Potential null pointer access: this expression has a '@Nullable' type
...hab.binding.mecmeter/src/main/java/org/openhab/binding/mecmeter/handler/MecMeterHandler.java
Show resolved
Hide resolved
...hab.binding.mecmeter/src/main/java/org/openhab/binding/mecmeter/handler/MecMeterHandler.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.mecmeter/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
Signed-off-by: Kai Kreuzer <kai@openhab.org>
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
* Initial contribution of mecmeter binding Also-by: Klaus Berger <klaus.berger@verbund.com> Also-by: Florian Pazour <florian.pazour@verbund.com> Signed-off-by: Kai Kreuzer <kai@openhab.org> * addressed review feedback Signed-off-by: Kai Kreuzer <kai@openhab.org> * added codeowners entry Signed-off-by: Kai Kreuzer <kai@openhab.org> * addressed review comments Signed-off-by: Kai Kreuzer <kai@openhab.org> Signed-off-by: John Marshall <john.marshall.au@gmail.com>
* Initial contribution of mecmeter binding Also-by: Klaus Berger <klaus.berger@verbund.com> Also-by: Florian Pazour <florian.pazour@verbund.com> Signed-off-by: Kai Kreuzer <kai@openhab.org> * addressed review feedback Signed-off-by: Kai Kreuzer <kai@openhab.org> * added codeowners entry Signed-off-by: Kai Kreuzer <kai@openhab.org> * addressed review comments Signed-off-by: Kai Kreuzer <kai@openhab.org>
* Initial contribution of mecmeter binding Also-by: Klaus Berger <klaus.berger@verbund.com> Also-by: Florian Pazour <florian.pazour@verbund.com> Signed-off-by: Kai Kreuzer <kai@openhab.org> * addressed review feedback Signed-off-by: Kai Kreuzer <kai@openhab.org> * added codeowners entry Signed-off-by: Kai Kreuzer <kai@openhab.org> * addressed review comments Signed-off-by: Kai Kreuzer <kai@openhab.org>
* Initial contribution of mecmeter binding Also-by: Klaus Berger <klaus.berger@verbund.com> Also-by: Florian Pazour <florian.pazour@verbund.com> Signed-off-by: Kai Kreuzer <kai@openhab.org> * addressed review feedback Signed-off-by: Kai Kreuzer <kai@openhab.org> * added codeowners entry Signed-off-by: Kai Kreuzer <kai@openhab.org> * addressed review comments Signed-off-by: Kai Kreuzer <kai@openhab.org>
This is a new binding for the din-rail power meter from MEC, see https://www.mec.at/produkte/#mecMeter.
Signed-off-by: Kai Kreuzer kai@openhab.org