-
Notifications
You must be signed in to change notification settings - Fork 9
Description
Thank you for writing this library, it really helped getting started on reading inverter I have.
I'll preface that I might missing something due of lack of skill.
Issue: HoldingRegisters.GRIDTotalPower reports wrong value when using python library when grid power is greater than 16 bit value or ~64kW.
Grid total power consists of two registers 625 for low word and 690 for high word. Looking at protocol.py and testing, it seems that HoldingRegisters.GRIDTotalPower reads only the low word and I cannot find the counterpart for 690.
The same is likely true for HoldingRegisters.LoadTotalPower and probably others.
While the correct value can be read reading registers directly and probably impacts few users of library, so maybe not worth changing, it might be good idea to note the >64kW issue somewhere in case someone else runs into this.