-
-
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
[nobohub] Initial contribution #12937
Conversation
This pull request has been mentioned on openHAB Community. There might be relevant details there: |
Signed-off-by: Espen Fossen <espenaf@junta.no>
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! And sorry for the delay. I've added some feedback for you. There might be some inconsistency as I started the review some time ago and picked it up again today. Please also run:
mvn org.openhab.core.tools:i18n-maven-plugin:3.2.0:generate-default-translations
to generate default translations.
...hab.binding.nobohub/src/main/java/org/openhab/binding/nobohub/internal/ComponentHandler.java
Outdated
Show resolved
Hide resolved
...hab.binding.nobohub/src/main/java/org/openhab/binding/nobohub/internal/ComponentHandler.java
Outdated
Show resolved
Hide resolved
...hab.binding.nobohub/src/main/java/org/openhab/binding/nobohub/internal/ComponentHandler.java
Outdated
Show resolved
Hide resolved
...hab.binding.nobohub/src/main/java/org/openhab/binding/nobohub/internal/ComponentHandler.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.nobohub/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.nobohub/src/main/resources/OH-INF/thing/thing-types.xml
Show resolved
Hide resolved
bundles/org.openhab.binding.nobohub/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.nobohub/src/main/resources/OH-INF/thing/thing-types.xml
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.
Some minor comments. Posted from my phone - I'll be fully back sometime next week. :)
...ding.nobohub/src/main/java/org/openhab/binding/nobohub/internal/NoboHubBindingConstants.java
Outdated
Show resolved
Hide resolved
...hab.binding.nobohub/src/main/java/org/openhab/binding/nobohub/internal/ComponentHandler.java
Outdated
Show resolved
Hide resolved
7abaf37
to
0aeda8a
Compare
* Added English and Norwegian translation for error messages * Added support for QuantityType for temperatures * Added consistent usage of property constants * Changed most logging to DEBUG or TRACE to avoid spamming logs * Changed Override to OverridePlan to avoid import clash with java.lang.Import * Lots of other small changes Signed-off-by: Espen Fossen <espenaf@junta.no>
Signed-off-by: Espen Fossen <espenaf@junta.no>
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 hope you don't mind incremental review? It allows me to push some comments sooner.
...hab.binding.nobohub/src/main/java/org/openhab/binding/nobohub/internal/ComponentHandler.java
Outdated
Show resolved
Hide resolved
...hab.binding.nobohub/src/main/java/org/openhab/binding/nobohub/internal/ComponentHandler.java
Outdated
Show resolved
Hide resolved
...hab.binding.nobohub/src/main/java/org/openhab/binding/nobohub/internal/ComponentHandler.java
Outdated
Show resolved
Hide resolved
...ding.nobohub/src/main/java/org/openhab/binding/nobohub/internal/NoboHubBindingConstants.java
Outdated
Show resolved
Hide resolved
...ding.nobohub/src/main/java/org/openhab/binding/nobohub/internal/NoboHubBindingConstants.java
Outdated
Show resolved
Hide resolved
No problem. I love this attention to detail, and I am learning a few tricks as we iterate on the changes. |
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.
Commenting on null annotation issue as the castToNonNull
pattern is used in many places and could be avoided.
...binding.nobohub/src/main/java/org/openhab/binding/nobohub/internal/NoboHubBridgeHandler.java
Outdated
Show resolved
Hide resolved
...hab.binding.nobohub/src/main/java/org/openhab/binding/nobohub/internal/ComponentHandler.java
Outdated
Show resolved
Hide resolved
...hab.binding.nobohub/src/main/java/org/openhab/binding/nobohub/internal/ComponentHandler.java
Outdated
Show resolved
Hide resolved
Glad to hear. Please feel free to resolve all comments which you have provided fixes for, so we can easily track any pending issues/discussions. I will make sure to verify and reopen if needed. |
...binding.nobohub/src/main/java/org/openhab/binding/nobohub/internal/NoboHubBridgeHandler.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.nobohub/src/main/resources/OH-INF/i18n/nobohub_no.properties
Outdated
Show resolved
Hide resolved
Signed-off-by: Espen Fossen <espenaf@junta.no>
@jlaur: I believe Espen has addressed all comments. What are the next steps here? |
@austvik: From my perspective there are two comments I have not addressed:
I already have code for issue 1, this is running locally, but I wanted to test it a bit before pushing. Can do that shortly to get some feedback. I have not done any changes for issue 2 yet, but hopefully this might actually improve some of the disconnects it get once or twice a month. |
Thanks @espenaf! Looked to me like everything had been closed for a good while. Just me itching after using it. Retries in NoboHubBridgeHandler.initialize: Do you mean like running the scheduler that creates the connection and thread with a rate? Any stack traces or logs? I tried to hide networking issues and reconnections in the HubCommunicationThread. |
Signed-off-by: Espen Fossen <espenaf@junta.no>
Strange, just tested with installation of the last version from marketplace, and no similar issue. |
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.
After recent activity I went through the changed files again, and added some additional findings. It looks good, and we should be ready to merge soon. :)
...binding.nobohub/src/main/java/org/openhab/binding/nobohub/internal/NoboHubBridgeHandler.java
Outdated
Show resolved
Hide resolved
...binding.nobohub/src/main/java/org/openhab/binding/nobohub/internal/NoboHubBridgeHandler.java
Outdated
Show resolved
Hide resolved
...binding.nobohub/src/main/java/org/openhab/binding/nobohub/internal/NoboHubBridgeHandler.java
Outdated
Show resolved
Hide resolved
...binding.nobohub/src/main/java/org/openhab/binding/nobohub/internal/NoboHubBridgeHandler.java
Outdated
Show resolved
Hide resolved
...binding.nobohub/src/main/java/org/openhab/binding/nobohub/internal/NoboHubBridgeHandler.java
Show resolved
Hide resolved
...b.binding.nobohub/src/main/java/org/openhab/binding/nobohub/internal/model/OverridePlan.java
Outdated
Show resolved
Hide resolved
...b.binding.nobohub/src/main/java/org/openhab/binding/nobohub/internal/model/OverridePlan.java
Outdated
Show resolved
Hide resolved
...b.binding.nobohub/src/main/java/org/openhab/binding/nobohub/internal/model/OverridePlan.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.nobohub/src/main/resources/OH-INF/i18n/nobohub_no.properties
Outdated
Show resolved
Hide resolved
Signed-off-by: Espen Fossen <espenaf@junta.no>
Signed-off-by: Espen Fossen <espenaf@junta.no>
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.
Just a few comments after looking through latest iteration of changed files. Some previously unnoticed, sorry for that.
...inding.nobohub/src/main/java/org/openhab/binding/nobohub/internal/NoboHubHandlerFactory.java
Show resolved
Hide resolved
...ing.nobohub/src/main/java/org/openhab/binding/nobohub/internal/connection/HubConnection.java
Outdated
Show resolved
Hide resolved
...ub/src/main/java/org/openhab/binding/nobohub/internal/discovery/NoboHubDiscoveryService.java
Outdated
Show resolved
Hide resolved
...binding.nobohub/src/main/java/org/openhab/binding/nobohub/internal/NoboHubBridgeHandler.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Espen Fossen <espenaf@junta.no>
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.
Quick feedback on new code.
...ub/src/main/java/org/openhab/binding/nobohub/internal/connection/HubCommunicationThread.java
Outdated
Show resolved
Hide resolved
...ub/src/main/java/org/openhab/binding/nobohub/internal/connection/HubCommunicationThread.java
Outdated
Show resolved
Hide resolved
...ub/src/main/java/org/openhab/binding/nobohub/internal/connection/HubCommunicationThread.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Espen Fossen <espenaf@junta.no>
...ub/src/main/java/org/openhab/binding/nobohub/internal/connection/HubCommunicationThread.java
Outdated
Show resolved
Hide resolved
...ub/src/main/java/org/openhab/binding/nobohub/internal/connection/HubCommunicationThread.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Espen Fossen <espenaf@junta.no>
...ub/src/main/java/org/openhab/binding/nobohub/internal/connection/HubCommunicationThread.java
Outdated
Show resolved
Hide resolved
...ub/src/main/java/org/openhab/binding/nobohub/internal/connection/HubCommunicationThread.java
Outdated
Show resolved
Hide resolved
...ub/src/main/java/org/openhab/binding/nobohub/internal/connection/HubCommunicationThread.java
Show resolved
Hide resolved
Me and @austvik have done some more testing for the last couple of days so I think we are getting there pretty soon. Take a look at the last commit, and see if there are anything more to discuss. |
...binding.nobohub/src/main/java/org/openhab/binding/nobohub/internal/NoboHubBridgeHandler.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Espen Fossen <espenaf@junta.no>
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 your contribution!
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
* Added NoboHub binding. Signed-off-by: Espen Fossen <espenaf@junta.no>
* Added NoboHub binding. Signed-off-by: Espen Fossen <espenaf@junta.no>
* Added NoboHub binding. Signed-off-by: Espen Fossen <espenaf@junta.no> Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
* Added NoboHub binding. Signed-off-by: Espen Fossen <espenaf@junta.no>
* Added NoboHub binding. Signed-off-by: Espen Fossen <espenaf@junta.no>
* Added NoboHub binding. Signed-off-by: Espen Fossen <espenaf@junta.no>
[nobohub] Initial contribution
This binding adds support for the Glen Dimplex Nobø Hub (also know as Nobø ecoHub). Nobø Hub supports a range of electrical panel heaters, thermostats and switches from Glen Dimplex and Nobø.
README.md has information about configuration and usage.
The code should both be using the code guidelines and have run spotless on it.
Pre-built jar
Nobø Hub API Documentation 1.1
Community Discussion @ community.openhab.org
Community Discussion @ hjemmeautomasjon.no
Supported Devices