-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[sunsynk] Initial contribution #16753
base: main
Are you sure you want to change the base?
Conversation
Please combine #16752 into this PR |
Now combined (#16752) into this PR |
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 have seen some nice parts while performing a quick scan of this PR. It also has some places to improve, i left comments on those area's. Consider this as a first basic check of the PR.
For a quick review proces without many review rounds, it would help to perform some kind of self review with this checklist in mind
Edit: And a succesfull DCO is needed, better to fix that first.
bundles/org.openhab.binding.sunsynk/src/main/resources/OH-INF/addon/addon.xml
Outdated
Show resolved
Hide resolved
@@ -31,3 +31,4 @@ pom.xml.versionsBackup | |||
.vim |
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.
Remove this file from the PR
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.
This was a struggle (git quite new to me) hope it worked.
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.
File is still here.
bundles/org.openhab.binding.sunsynk/src/main/feature/feature.xml
Outdated
Show resolved
Hide resolved
...ding.sunsynk/src/main/java/org/openhab/binding/sunsynk/internal/SunSynkBindingConstants.java
Outdated
Show resolved
Hide resolved
Hi All changes made , thanks for the review |
Can someone give a bit more guidance to solve the DCO, new to Git, I thought I had signed. Thanks for the help. |
If you click details next to the DCO you get to this page and that explains hopw to fix this. It seems like none of the commits are signed off. More generic info here: |
0dc190d
to
9e37baf
Compare
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.
Left some comments that can be applied to multiple classes and situations, please try to check if each comment can be applied eelsewhere.
Similar comments for the classes packages, remove commented code, change folder/package name.
- while revieweing, i see some commits are added that also add code from other bindings. Hope you manage to fix that too. Ping me if you need any help
...nhab.binding.sunsynk/src/main/java/org/openhab/binding/sunsynk/internal/classes/APIdata.java
Outdated
Show resolved
Hide resolved
...nhab.binding.sunsynk/src/main/java/org/openhab/binding/sunsynk/internal/classes/APIdata.java
Outdated
Show resolved
Hide resolved
...nhab.binding.sunsynk/src/main/java/org/openhab/binding/sunsynk/internal/classes/Battery.java
Outdated
Show resolved
Hide resolved
...enhab.binding.sunsynk/src/main/java/org/openhab/binding/sunsynk/internal/classes/Client.java
Outdated
Show resolved
Hide resolved
...enhab.binding.sunsynk/src/main/java/org/openhab/binding/sunsynk/internal/classes/Client.java
Outdated
Show resolved
Hide resolved
...main/java/org/openhab/binding/sunsynk/internal/discovery/SunSynkAccountDiscoveryService.java
Outdated
Show resolved
Hide resolved
...main/java/org/openhab/binding/sunsynk/internal/discovery/SunSynkAccountDiscoveryService.java
Outdated
Show resolved
Hide resolved
...main/java/org/openhab/binding/sunsynk/internal/discovery/SunSynkAccountDiscoveryService.java
Show resolved
Hide resolved
...sunsynk/src/main/java/org/openhab/binding/sunsynk/internal/config/SunSynkInverterConfig.java
Show resolved
Hide resolved
....sunsynk/src/main/java/org/openhab/binding/sunsynk/internal/config/SunSynkAccountConfig.java
Show resolved
Hide resolved
Thanks @lsiepel, have now signed off all commits as request, DCO looks to have completed. Followed guidance given. In your local branch, run: git rebase HEAD~31 --signoff
Force push your changes to overwrite the branch: git push --force-with-lease origin sunsynk Hope that has not caused problems for other contributors |
Signed-off-by: LeeC77 <lee.charlton00@gmail.com>
Signed-off-by: LeeC77 <lee.charlton00@gmail.com>
Signed-off-by: LeeC77 <lee.charlton00@gmail.com>
Signed-off-by: LeeC77 <lee.charlton00@gmail.com>
Signed-off-by: LeeC77 <lee.charlton00@gmail.com>
Signed-off-by: LeeC77 <lee.charlton00@gmail.com>
…bustness improvements. Signed-off-by: LeeC77 <lee.charlton00@gmail.com>
… some warnings+ reduced lines of cade + completed Commands Signed-off-by: LeeC77 <lee.charlton00@gmail.com>
Signed-off-by: LeeC77 <lee.charlton00@gmail.com>
…updated Signed-off-by: LeeC77 <lee.charlton00@gmail.com>
Signed-off-by: LeeC77 <lee.charlton00@gmail.com>
Please rebase. You've got some other merged PRs in here that need to be resolved. |
Signed-off-by: LeeC77 <lee.charlton00@gmail.com>
Signed-off-by: LeeC77 <lee.charlton00@gmail.com>
Signed-off-by: LeeC77 <lee.charlton00@gmail.com>
Signed-off-by: LeeC77 <lee.charlton00@gmail.com>
@lsiepel, Just the one open comment left. If you really need it I can do it. Regards [ i would propose to create an ApiController class that is responsible for all calls to the remove service, these can be extracted from the ThiongHandlers ] Can I thank you for your support so far on this my very first contribution; while I am a Java and Git novice you have been patient and have encouraged me to grow. I have learnt a lot. |
Signed-off-by: LeeC77 <lee.charlton00@gmail.com>
Seems still an issue, le tme know if you need any guidance on fixing this. Please rebase.
We have all been there, happy to help. Regarding the |
Sorry I'm a novice, not sure it was not necessary. Not sure what to do about it. Signed-off-by: Lee Charlton <lee.charlton00@gmail.com>
Signed-off-by: LeeC77 <lee.charlton00@gmail.com>
Signed-off-by: LeeC77 <lee.charlton00@gmail.com>
Signed-off-by: LeeC77 <lee.charlton00@gmail.com>
Signed-off-by: LeeC77 <lee.charlton00@gmail.com>
Signed-off-by: LeeC77 <lee.charlton00@gmail.com>
Signed-off-by: LeeC77 <lee.charlton00@gmail.com>
Signed-off-by: LeeC77 <lee.charlton00@gmail.com>
…to sunsynk Signed-off-by: LeeC77 <lee.charlton00@gmail.com>
Signed-off-by: LeeC77 <lee.charlton00@gmail.com>
Signed-off-by: LeeC77 <lee.charlton00@gmail.com>
Signed-off-by: LeeC77 <lee.charlton00@gmail.com>
Signed-off-by: LeeC77 <lee.charlton00@gmail.com>
Signed-off-by: LeeC77 <lee.charlton00@gmail.com>
Signed-off-by: LeeC77 <lee.charlton00@gmail.com>
@lsiepel git checkout main
git pull
checkout sunsynk
rebase main
checkout main
rebase sunsynk Think I'm going to need some guidance on the proposed Also I'm going to have to look up custom exceptions, I think that was one of the other things you requested. |
Yep, that worked. Multiple methods to check, but you can always see the result in this PR: https://github.com/openhab/openhab-addons/pull/16753/files (if it doesnt contain files from other commits your good. The
Each step can be inline or modelled as private method. These method should throw custom exceptions (e.g Many bindings use this pattern, maybe inspect PlugwiseHA that uses both apicontroller and custom exceptions. Did you see the build fails due to spotless issues? |
Title
New binding for Sun Synk Connect
Initial contribution
This is the first time I have contributed and am a novice at using git and developing bindings, your understanding and patients would be appreciated.
Description
Adding binding.sunsynk to bunbles directory.
Separate pull request to cover POMS and Code Owners Here
Adds a new binding that communicated with the Sun Synk Web services in order to automate Electrical Power Inverter control
Testing
Built against 4.2.0-SNAPSHOT - Build #3989
Built JAR can be found [here] (https://github.com/LeeC77/sunsynk)
See Community [thread] (https://community.openhab.org/t/new-sun-synk-connect-account-and-inverter-binding/155680)