openhab-addons
openhab-addons copied to clipboard
[modbus] [WIP] Add support for Sungrow Hybrid Inverters
This PR adds support for Sungrow Hybrid Inverters connected via Modbus TCP. I tested the binding with a Sungrow SH10RT device, but, acccording to the register definition it should work for all devices of SHRT series and for devices of SHRS and SHK series.
As this is my first contribution to openHAB I'm happy on any feedback.
@ferdisdot Did you address @ssalonen comments?
Hi @fwolter, I started to work on it, but last month were quite busy. So the last few month I couldn't work on it. I hope I may get back to this until end of January. If you would like to contribute in the meantime feel free to do so. As this is my first work in java I'm not sure about the type questions that @ssalonen raised (int vs. Integer). I would appreciate any help here.
If you use Integer
instead of int
you're consuming a bit more resources and Integer
can also be null
, which needs to be handled correctly. So, using int
makes things simpler and consumes less resources.
You made some changes to the code. Please raise your hand if you're read for another review round.
@ferdisdot what is the current state of this PR? Are there still things to address before another (hopefully last) review round can take place?
Unfortunately it looks like we cannot bring this PR to the finish line. After two years of inactivity i close this PR. If there is a need to restart, feel free to re-open or start a new PR.