-
-
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
[growatt] Enhance support for SPF inverters #17795
Conversation
Signed-off-by: AndrewFG <software@whitebear.ch>
Signed-off-by: AndrewFG <software@whitebear.ch>
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/growatt-solar-inverter-binding-4-0-0-4-2-0/150600/27 |
The Jar file for testing is here.. |
Signed-off-by: AndrewFG <software@whitebear.ch>
Signed-off-by: AndrewFG <software@whitebear.ch>
Signed-off-by: AndrewFG <software@whitebear.ch>
Signed-off-by: AndrewFG <software@whitebear.ch>
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! I have added a few comments after a quick read-through.
...nhab.binding.growatt/src/main/java/org/openhab/binding/growatt/internal/dto/GrottDevice.java
Outdated
Show resolved
Hide resolved
...nhab.binding.growatt/src/main/java/org/openhab/binding/growatt/internal/dto/GrottDevice.java
Outdated
Show resolved
Hide resolved
.../org.openhab.binding.growatt/src/test/java/org/openhab/binding/growatt/test/GrowattTest.java
Outdated
Show resolved
Hide resolved
.../org.openhab.binding.growatt/src/test/java/org/openhab/binding/growatt/test/GrowattTest.java
Outdated
Show resolved
Hide resolved
.../org.openhab.binding.growatt/src/test/java/org/openhab/binding/growatt/test/GrowattTest.java
Outdated
Show resolved
Hide resolved
.../org.openhab.binding.growatt/src/test/java/org/openhab/binding/growatt/test/GrowattTest.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.growatt/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
Signed-off-by: AndrewFG <software@whitebear.ch>
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.
Since new channels were added, update instructions are needed. Otherwise LGTM now.
Hmm. I am not sure if that is necessary -- for the following reasons -- please advise.
|
So it didn't make sense at all to have a Thing for an SPF device before this PR, because it was not supported at all? In that case I agree. But if you could already create the Thing for such device and use it just without the newly added channels, update instructions are needed, because the user will otherwise have to delete and recreate the Thing in order to have those new channels added. |
Signed-off-by: AndrewFG <software@whitebear.ch>
@jlaur I did the update instructions. And as they contain labels and descriptions I also ran |
The update instructions don't support I18N directly, so for overridden labels and descriptions on channel level, there are only two possibilities:
See openhab/openhab-core#3569 for further details. |
Understood. In this PR I have included the English texts. (However I am really surprised that nobody is working on a solution for adding i18n to the update instruction semantics in OH core). |
The right solution is for the update to use the already provided channel labels/descriptions, like it does for channel types, but it seems it's hard to do. There is also openhab/openhab-core#3660 related to this topic. |
Perhaps I am missing something .. but it seems to me that in the |
Can you put that comment in the linked issue? |
Signed-off-by: AndrewFG <software@whitebear.ch>
I meant to put that comment into openhab/openhab-core#3569, so that the relevant people will see it. |
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, but commented a few places as you may have misunderstood my last comment? Also looks a bit unusual to document date of changes in the code. But really minor, so just consider, I will merge anyway.
...nhab.binding.growatt/src/main/java/org/openhab/binding/growatt/internal/GrowattChannels.java
Show resolved
Hide resolved
...nhab.binding.growatt/src/main/java/org/openhab/binding/growatt/internal/dto/GrottValues.java
Show resolved
Hide resolved
bundles/org.openhab.binding.growatt/src/main/resources/OH-INF/update/instructions.xml
Show resolved
Hide resolved
Done. |
* [growatt] tweak channel aliases; add missing channels Signed-off-by: AndrewFG <software@whitebear.ch>
This PR enhances the support for SPF inverters as follows:
Signed-off-by: AndrewFG software@whitebear.ch