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
[solax] Add support for Solax X3MIC / G2 inverter and workmode channel #16248
Conversation
…xisting X1, X3 also Signed-off-by: Henrik Tóth <realthk@gmail.com>
Hi, Unfortunately additional review maybe needed by some of the openhab-addon maintainers because I don't have a merge permissions. Cheers, |
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/solax-local-direct-and-cloud-connect-binding/146326/97 |
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.
Hi.
Things look pretty much OK to me. I added some comments.
What is missing is an update instructions for the added channels.
See how it's done in the local_connect_inverter_type_update.xml
I don't request changes as I'm not an official reviewer so I added only a comments :)
Cheers,
Konstantin
...ab.binding.solax/src/main/java/org/openhab/binding/solax/internal/SolaxBindingConstants.java
Show resolved
Hide resolved
...ab.binding.solax/src/main/java/org/openhab/binding/solax/internal/SolaxBindingConstants.java
Outdated
Show resolved
Hide resolved
....binding.solax/src/main/java/org/openhab/binding/solax/internal/SolaxLocalAccessHandler.java
Outdated
Show resolved
Hide resolved
...enhab.binding.solax/src/main/java/org/openhab/binding/solax/internal/model/InverterData.java
Show resolved
Hide resolved
...enhab.binding.solax/src/main/java/org/openhab/binding/solax/internal/model/InverterData.java
Outdated
Show resolved
Hide resolved
...enhab.binding.solax/src/main/java/org/openhab/binding/solax/internal/model/InverterData.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.solax/src/main/resources/OH-INF/thing/channel_types.xml
Show resolved
Hide resolved
bundles/org.openhab.binding.solax/src/main/resources/OH-INF/thing/localConnectInverter.xml
Show resolved
Hide resolved
bundles/org.openhab.binding.solax/src/main/resources/OH-INF/thing/localConnectInverter.xml
Show resolved
Hide resolved
Thanks Konstantin! |
For a non-Java developer you did really well. :) I guess some programming experience you still have :) |
Btw if you don't have the capacity to do the requested changes, maybe you could give me permissions for this branch and I can do them for you. I expect that the reviewer will also request changes but it's up to you... |
Thanks, I’d appreciate that! |
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
@realthk I've added two commits with the refactoring I was talking about and also added the update instructions. |
@theater Just did a rebuild on your changes, and it works fine, thank you very much! |
OK. Great then the PR is ready for a review. Please tag me if someone requests some changes, so I can have a look and implement them... |
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.
About the two channels inverter-workmode
and inverter-workmode-code
what is the benefit of seperating these? They seem to be allways in sync.
I guess it would be fine to drop the non-code variant and supply a option list with value/label pair: https://www.openhab.org/docs/developer/addons/config-xml.html#xml-structure-for-configuration-descriptions
bundles/org.openhab.binding.solax/src/main/resources/OH-INF/thing/localConnectInverter.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.solax/src/main/resources/OH-INF/i18n/solax.properties
Outdated
Show resolved
Hide resolved
....binding.solax/src/main/java/org/openhab/binding/solax/internal/SolaxLocalAccessHandler.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
The reason why I thought it might be useful to have a text sensor, if not all Solax inverters use the same workmode codes for the same status, then it is possible to translate these. |
Actually I have added all the statuses that I know about (from the cloud API document). Hopefully they're documented well enough... |
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
@jlaur, when you have the capacity and your schedule permits it, could we proceed as I think I have covered most if not all the concerns. Cheers, |
Apologies, mate! Not sure why I messed that up. Excuse me. |
@lsiepel could we continue the review when you have some time? |
Sure! Hopefully this weekend, might be later. Have some busy days. |
I travel for the weekend so I will be able to react around Sunday. No
worries. No rush. Just wanted to check that it's not forgotten :)
…On Fri, Feb 9, 2024 at 12:07 AM lsiepel ***@***.***> wrote:
@lsiepel <https://github.com/lsiepel> could we continue the review when
you have some time?
Sure! Hopefully this weekend, might be later. Have some busy days.
—
Reply to this email directly, view it on GitHub
<#16248 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB7Q3LTAIABNBZGZZE64WCLYSVECVAVCNFSM6AAAAABBTQKUWSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZVGAYDSMZWHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
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, LGTM
openhab#16248) * Support for Solax X3MIC / G2 inverter, and workmode channel for the existing X1, X3 also * Add update instructions and make raise the target version to 1 * Refactor the workmode to be enum instead of string constants Signed-off-by: Henrik Tóth <realthk@gmail.com> Signed-off-by: Konstantin Polihronov <polychronov@gmail.com> Signed-off-by: Leo Siepel <leosiepel@gmail.com> Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
Support for my Solax X3MIC / G2 inverter, and include workmode which is useful if the inverter cannot work continuously (for example our area very often has over-voltage problem)