-
-
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
[solarman] Initial contribution #16835
Conversation
The build is failing and I don't know why. |
add the binding to bom/openhab-addons/pom.xml and also add yourself to the codeowner file |
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. This is a partial review.
Besides these comments, you can also check that all SAT errors are fixed and no compilation warnings occur.
Edit: And fix DCO as that is mandatory.
bundles/org.openhab.binding.solarman/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.solarman/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.solarman/src/main/resources/OH-INF/thing/channels.xml
Show resolved
Hide resolved
bundles/org.openhab.binding.solarman/src/main/resources/OH-INF/addon/addon.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.solarman/src/main/resources/OH-INF/i18n/deyelogger.properties
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.
While checking if the commit fixed the issues, i concluded not all review comments are fixed yet. I also found some new issues.
bundles/org.openhab.binding.solarman/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.solarman/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.solarman/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.solarman/src/main/resources/OH-INF/i18n/solarman.properties
Outdated
Show resolved
Hide resolved
My bad @lsiepel. I'm adding commits to the PR as I get time to implement some of the changes. |
This pull request has been mentioned on openHAB Community. There might be relevant details there: |
0e87c38
to
6ae22f5
Compare
@lsiepel - can you please give it another go? There are still a few SAT warnings, let me know if any are blockers. |
ping @lsiepel |
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.
Unfortunately my time is limited today, but i will come back to this in the coming days. In the mean time it would be nice if you can fix these comments and also fix all SAT warnings. It is nice to see that there are no compile warnings. Merging is not far away.
...ding.solarman/src/main/java/org/openhab/binding/solarman/internal/SolarmanLoggerHandler.java
Outdated
Show resolved
Hide resolved
...ding.solarman/src/main/java/org/openhab/binding/solarman/internal/SolarmanLoggerHandler.java
Outdated
Show resolved
Hide resolved
...ding.solarman/src/main/java/org/openhab/binding/solarman/internal/SolarmanLoggerHandler.java
Outdated
Show resolved
Hide resolved
....solarman/src/main/java/org/openhab/binding/solarman/internal/typeprovider/ChannelUtils.java
Outdated
Show resolved
Hide resolved
...rman/src/main/java/org/openhab/binding/solarman/internal/updater/SolarmanChannelUpdater.java
Outdated
Show resolved
Hide resolved
35eb715
to
7723015
Compare
@lsiepel - fixed all SAT warnings and notices. Please give it another go. |
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.
Covered all files. Did not look a build warnings and SAT, please double check there are no build warnings and no SAT errors.
...b.binding.solarman/src/main/java/org/openhab/binding/solarman/internal/DefinitionParser.java
Outdated
Show resolved
Hide resolved
....solarman/src/main/java/org/openhab/binding/solarman/internal/modbus/SolarmanV5Protocol.java
Outdated
Show resolved
Hide resolved
....solarman/src/main/java/org/openhab/binding/solarman/internal/modbus/SolarmanV5Protocol.java
Outdated
Show resolved
Hide resolved
....solarman/src/main/java/org/openhab/binding/solarman/internal/modbus/SolarmanV5Protocol.java
Outdated
Show resolved
Hide resolved
....solarman/src/main/java/org/openhab/binding/solarman/internal/modbus/SolarmanV5Protocol.java
Outdated
Show resolved
Hide resolved
....solarman/src/main/java/org/openhab/binding/solarman/internal/modbus/SolarmanV5Protocol.java
Outdated
Show resolved
Hide resolved
@lsiepel - implemented CR suggestions. For some reason I can't comment inline on #16835 (comment), so I'm putting my answer here. I can't put the UoM in the channel definition/Item type because those channels are used for user defined requests, and the type of the value returned depends on the registers being read. Here is an example of such a usage:
|
ping @lsiepel - can you please have another look? |
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 addressing allmost all comments. There are 2 or 3 open ones from previous review rounds. This looks like the last review round before we can proceed to merge.
...ain/java/org/openhab/binding/solarman/internal/typeprovider/SolarmanChannelTypeProvider.java
Outdated
Show resolved
Hide resolved
...ain/java/org/openhab/binding/solarman/internal/typeprovider/SolarmanChannelTypeProvider.java
Outdated
Show resolved
Hide resolved
...ain/java/org/openhab/binding/solarman/internal/typeprovider/SolarmanChannelTypeProvider.java
Show resolved
Hide resolved
....solarman/src/main/java/org/openhab/binding/solarman/internal/typeprovider/ChannelUtils.java
Outdated
Show resolved
Hide resolved
...ab.binding.solarman/src/main/java/org/openhab/binding/solarman/internal/util/ClassUtils.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.solarman/src/main/resources/OH-INF/i18n/solarman.properties
Outdated
Show resolved
Hide resolved
...ding.solarman/src/main/java/org/openhab/binding/solarman/internal/SolarmanLoggerHandler.java
Outdated
Show resolved
Hide resolved
...ding.solarman/src/main/java/org/openhab/binding/solarman/internal/SolarmanLoggerHandler.java
Outdated
Show resolved
Hide resolved
...ding.solarman/src/main/java/org/openhab/binding/solarman/internal/SolarmanLoggerHandler.java
Outdated
Show resolved
Hide resolved
...ain/java/org/openhab/binding/solarman/internal/typeprovider/SolarmanChannelTypeProvider.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Catalin Sanda <catalin.sanda@gmail.com>
Signed-off-by: Catalin Sanda <catalin.sanda@gmail.com>
Signed-off-by: Catalin Sanda <catalin.sanda@gmail.com>
Co-authored-by: Wouter Born <github@maindrain.net> Signed-off-by: Catalin Sanda <catalin.sanda@gmail.com>
e17ccbf
to
fad80ad
Compare
Signed-off-by: Catalin Sanda <catalin.sanda@gmail.com>
fad80ad
to
cd8710d
Compare
@lsiepel - let's try again. |
I'll try to look at this next week. |
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/addons/#add-your-add-on-s-logo-to-the-openhab-website-and-the-ui
* Initial commit for the Solarman Binding. Signed-off-by: Catalin Sanda <catalin.sanda@gmail.com>
* Initial commit for the Solarman Binding. Signed-off-by: Catalin Sanda <catalin.sanda@gmail.com> Signed-off-by: Patrik Gfeller <patrik.gfeller@proton.me>
* Initial commit for the Solarman Binding. Signed-off-by: Catalin Sanda <catalin.sanda@gmail.com>
* Initial commit for the Solarman Binding. Signed-off-by: Catalin Sanda <catalin.sanda@gmail.com>
As asked by @mstormi on the forum (https://community.openhab.org/t/new-solarman-v5-binding-for-deye-sofar-and-other-type-of-solar-inverters/146112/49), I'm opening a PR for the Solarman Binding.
This is a binding used to communicate with Solarman (IGEN-Tech) v5 based solar inverter data loggers in direct-mode over the local network.