I’m based in Melbourne AU also, just had my system installed - Sungrow SH5.0RS with SBR096 battery.
I tried your integration but the script is having issues connecting to the inverter via MODBUS it seems:
Modbus connection failed, connection could not be made or register range failed to be read.
Does MODBUS work over WiFi? Or ethernet connection is required?
I’ve also seen some forums which suggest Sungrow started encrypting the MODBUS traffic, not sure if this was the cause.
Edit:
Yep that definitely looks to be the case, there are different WiFi modules and some are encrypted. Someone on Whirlpool has written a script to read from the Websocket via its local access web portal instead, I may look to integrate this when I get some time. https://forums.whirlpool.net.au/thread/3vxm5jy3?p=11#r214
This should be compatible with the SungrowInverter client that you wrote @mvandersteen