olivergregorius / sun2000_modbus

Library for reading Huawei Sun2000 inverter metrics via Modbus TCP
MIT License
23 stars 9 forks source link

Wrong gain values for all Unit_BatteryPack_ChargeDischargePower? #31

Closed hchiper closed 3 months ago

hchiper commented 3 months ago

Hi,

I've been facing a problem with the reported powers: if I add each reported battery pack power, I get a value merely 10 times greater than the corresponding reported unit power.

In the documentation from Huawei, I see that the gain given for all "UnitBatteryPackChargeDischargePower" is 1000, with kW as unit. So, in the file registers.py, where the unit is W, I believe all those gains should be 1 instead of 0.1 as included in the file.

Regards, Laurent