-
-
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
[Easee] Initial contribution #12954
[Easee] Initial contribution #12954
Conversation
Does not build. |
I do not understand the error. I builds successfully both on my local machine and on my Jenkins CI. |
9a7ed27
to
19a290a
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.
Thanks for your contribution, the code already looks really good! I have reviewed it, and provided some feedback.
There are some checkstyle warnings left. You could take a look at target/code-analysis/report.html.
The I18N properties file must be regenerated. For reference: https://www.openhab.org/docs/developer/utils/i18n.html#generating-i18n-properties-file
The DCO is not passing, this needs to be fixed.
bundles/org.openhab.binding.easee/src/main/java/org/openhab/binding/easee/internal/Utils.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.easee/src/main/java/org/openhab/binding/easee/internal/Utils.java
Outdated
Show resolved
Hide resolved
.../main/java/org/openhab/binding/easee/internal/command/circuit/SetDynamicCircuitCurrents.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.easee/src/main/resources/OH-INF/i18n/easee.properties
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.easee/src/main/resources/OH-INF/thing/charger-channel-groups.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.easee/src/main/resources/OH-INF/thing/circuit-channel-groups.xml
Outdated
Show resolved
Hide resolved
...s/org.openhab.binding.easee/src/main/resources/OH-INF/thing/easee-readonly-channel-types.xml
Outdated
Show resolved
Hide resolved
.../org.openhab.binding.easee/src/main/resources/OH-INF/thing/easee-readwrite-channel-types.xml
Outdated
Show resolved
Hide resolved
777d9a1
to
7efa8a1
Compare
...b.binding.easee/src/main/java/org/openhab/binding/easee/internal/connector/WebInterface.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Alexander Friese <af944580@gmail.com>
98181b4
to
0e0e4a4
Compare
bundles/org.openhab.binding.easee/src/main/resources/OH-INF/i18n/easee.properties
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.easee/src/main/resources/OH-INF/thing/circuit-channel-groups.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.
I have now been through all previous comments and should be up-to-date. I have reopened a few and also provided some additional feedback. I would like to go through all changed files, but didn't find time for all of it today, so please consider as partial for now.
There are still some checkstyle warnings left. You could take a look at target/code-analysis/report.html.
...ing.easee/src/main/java/org/openhab/binding/easee/internal/command/AbstractWriteCommand.java
Outdated
Show resolved
Hide resolved
.../main/java/org/openhab/binding/easee/internal/command/circuit/SetDynamicCircuitCurrents.java
Outdated
Show resolved
Hide resolved
...see/src/main/java/org/openhab/binding/easee/internal/command/circuit/SetCircuitSettings.java
Outdated
Show resolved
Hide resolved
.../src/main/java/org/openhab/binding/easee/internal/command/circuit/DynamicCircuitCurrent.java
Outdated
Show resolved
Hide resolved
.../src/main/java/org/openhab/binding/easee/internal/command/circuit/SetMaxCircuitCurrents.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.easee/src/main/resources/OH-INF/thing/things.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.easee/src/main/resources/OH-INF/thing/things.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.easee/src/main/resources/OH-INF/thing/things.xml
Outdated
Show resolved
Hide resolved
.../org.openhab.binding.easee/src/main/resources/OH-INF/thing/easee-readwrite-channel-types.xml
Outdated
Show resolved
Hide resolved
...ab.binding.easee/src/main/java/org/openhab/binding/easee/internal/handler/StatusHandler.java
Outdated
Show resolved
Hide resolved
c826c06
to
8f4c975
Compare
Signed-off-by: Alexander Friese <af944580@gmail.com> Signed-off-by: Alexander Friese <af944580@googlemail.com>
Signed-off-by: Alexander Friese <af944580@gmail.com> Signed-off-by: Alexander Friese <af944580@googlemail.com>
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.
Added inline comment for the SAT findings.
bundles/org.openhab.binding.easee/src/main/resources/OH-INF/thing/things.xml
Show resolved
Hide resolved
bundles/org.openhab.binding.easee/src/main/resources/OH-INF/thing/things.xml
Show resolved
Hide resolved
...inding.easee/src/main/java/org/openhab/binding/easee/internal/handler/EaseeThingHandler.java
Outdated
Show resolved
Hide resolved
I randomly found this commit that at least documents that it was changed from static to non-static in 2017, but I don't think it's possible to find the related issue anymore in the old repo: openhab/openhab2-addons@4bb37ad |
The use of non-static loggers is part of the coding guidelines: https://www.openhab.org/docs/developer/guidelines.html#f-logging |
You can find the OH2 issues in this repo: #2109 |
These findings are generated by a plugin so the section never existed in any findbugs/spotbugs documentation. We should update SAT to link to the correct documentation for these findings, e.g.: https://www.kengo-toda.jp/findbugs-slf4j/#slf4j_logger_should_be_non_static |
Signed-off-by: Alexander Friese <af944580@googlemail.com>
I changed my code but I am in doubt that this is better style... |
Signed-off-by: Alexander Friese <af944580@googlemail.com>
Signed-off-by: Alexander Friese <af944580@googlemail.com>
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 the latest README updates I went over the formatted version, so provided some formatting and proof-reading comments. These are my last comments for this PR, so we should be ready to merge soon.
Signed-off-by: Alexander Friese <af944580@googlemail.com>
Signed-off-by: Alexander Friese <af944580@googlemail.com>
@alexf2015 - there are two more open comments above. I see that they are the ones GitHub has chosen to hide, so wondering if you might have missed them for this reason? You might also simply still be considering them, just wanted to give you a heads up to not prolong the review. |
I was just about to change it. Meanwhile you commited the changes already. I need to signoff. Then it's done. |
Signed-off-by: Alexander Friese <af944580@googlemail.com>
7d8b81c
to
94fa726
Compare
Yes, sorry for that, I committed at the same time of your comment reply. Don't worry about the DCO, I can fix that when merging. Do you want to separate into two columns or not? |
It is ok now. I had just separated it but I am totally fine with it as it is. If you use textual configuration it is more convenient as it is 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 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
@alexf2015 : you forgot to update the CODEOWNERS file. Please create a PR to add a line in that file with you as code maintainer for this new binding. |
* initial binding version Signed-off-by: Alexander Friese <af944580@gmail.com>
* initial binding version Signed-off-by: Alexander Friese <af944580@gmail.com>
* initial binding version Signed-off-by: Alexander Friese <af944580@gmail.com> Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
* initial binding version Signed-off-by: Alexander Friese <af944580@gmail.com>
* initial binding version Signed-off-by: Alexander Friese <af944580@gmail.com>
* initial binding version Signed-off-by: Alexander Friese <af944580@gmail.com>
The Easee binding can be used to retrieve data from the Easee Cloud API and also to control your wallbox via the Cloud API. This allows you to dynamically adjust the charge current for your car depending on production of your solar plant.
Further details can be found in the corresponding README.