-
-
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
[anel] Initial contribution of the Anel NET-PwrCtrl binding for OH3 #10952
Conversation
e541598
to
ea62d11
Compare
This comment has been minimized.
This comment has been minimized.
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/anel-net-pwrctrl-binding-for-oh3/123378/1 |
Do I have to do anything else now? |
Signed-off-by: Patrick Koenemann <[email protected]>
@fwolter could you maybe tell me what needs to be done so that this PR is reviewed and merged? |
You simply need to wait. There are some other new binding PRs in the queue before yours is at the tip. |
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! I reviewed your code and here is my feedback.
There are some checkstyle warnings left. You could take a look at target/code-analysis/report.html
after building it with mvn clean install
.
....openhab.binding.anel/src/main/java/org/openhab/binding/anel/internal/AnelConfiguration.java
Outdated
Show resolved
Hide resolved
....openhab.binding.anel/src/main/java/org/openhab/binding/anel/internal/AnelConfiguration.java
Outdated
Show resolved
Hide resolved
...es/org.openhab.binding.anel/src/main/java/org/openhab/binding/anel/internal/AnelHandler.java
Outdated
Show resolved
Hide resolved
...es/org.openhab.binding.anel/src/main/java/org/openhab/binding/anel/internal/AnelHandler.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.anel/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.anel/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
...enhab.binding.anel/src/test/java/org/openhab/binding/anel/internal/AnelUdpConnectorTest.java
Show resolved
Hide resolved
...enhab.binding.anel/src/test/java/org/openhab/binding/anel/internal/AnelUdpConnectorTest.java
Show resolved
Hide resolved
...hab.binding.anel/src/main/java/org/openhab/binding/anel/internal/state/AnelStateUpdater.java
Outdated
Show resolved
Hide resolved
Thank you @fwolter for the code review!
|
Signed-off-by: Patrick Koenemann <[email protected]>
You can use |
...es/org.openhab.binding.anel/src/main/java/org/openhab/binding/anel/internal/AnelHandler.java
Outdated
Show resolved
Hide resolved
...es/org.openhab.binding.anel/src/main/java/org/openhab/binding/anel/internal/AnelHandler.java
Show resolved
Hide resolved
...es/org.openhab.binding.anel/src/main/java/org/openhab/binding/anel/internal/AnelHandler.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Patrick Koenemann <[email protected]>
@fwolter FYI, I fixed your remaining remarks 😃 |
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 some checkstyle warnings left. You could take a look at target/code-analysis/report.html
after building it with mvn clean install
.
Signed-off-by: Patrick Koenemann <[email protected]>
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, you could add your binding's logo to the openHAB website. See https://next.openhab.org/docs/developer/bindings/#add-your-binding-s-logo-to-the-openhab-website
…penhab#10952) * Initial contribution of the Anel NET-PwrCtrl binding for OH3. Signed-off-by: Patrick Koenemann <[email protected]> * Adjustments based on code review. Signed-off-by: Patrick Koenemann <[email protected]> * Further adjustments according to second review. Signed-off-by: Patrick Koenemann <[email protected]> * Checkstyle warnings revmoed. Signed-off-by: Patrick Koenemann <[email protected]> Signed-off-by: Nick Waterton <[email protected]>
…penhab#10952) * Initial contribution of the Anel NET-PwrCtrl binding for OH3. Signed-off-by: Patrick Koenemann <[email protected]> * Adjustments based on code review. Signed-off-by: Patrick Koenemann <[email protected]> * Further adjustments according to second review. Signed-off-by: Patrick Koenemann <[email protected]> * Checkstyle warnings revmoed. Signed-off-by: Patrick Koenemann <[email protected]> Signed-off-by: Michael Schmidt <[email protected]>
…penhab#10952) * Initial contribution of the Anel NET-PwrCtrl binding for OH3. Signed-off-by: Patrick Koenemann <[email protected]> * Adjustments based on code review. Signed-off-by: Patrick Koenemann <[email protected]> * Further adjustments according to second review. Signed-off-by: Patrick Koenemann <[email protected]> * Checkstyle warnings revmoed. Signed-off-by: Patrick Koenemann <[email protected]>
…penhab#10952) * Initial contribution of the Anel NET-PwrCtrl binding for OH3. Signed-off-by: Patrick Koenemann <[email protected]> * Adjustments based on code review. Signed-off-by: Patrick Koenemann <[email protected]> * Further adjustments according to second review. Signed-off-by: Patrick Koenemann <[email protected]> * Checkstyle warnings revmoed. Signed-off-by: Patrick Koenemann <[email protected]>
…penhab#10952) * Initial contribution of the Anel NET-PwrCtrl binding for OH3. Signed-off-by: Patrick Koenemann <[email protected]> * Adjustments based on code review. Signed-off-by: Patrick Koenemann <[email protected]> * Further adjustments according to second review. Signed-off-by: Patrick Koenemann <[email protected]> * Checkstyle warnings revmoed. Signed-off-by: Patrick Koenemann <[email protected]>
I re-wrote the binding for Anel NET-PwrCtrl devices which only exists for OH1 so far.
It is already tested by some users, see: https://community.openhab.org/t/anel-net-pwrctrl-binding-for-oh3/123378
There are also some unit tests for the core functionality.
The readme explains the usage and gives examples.