wasilukm / hoymiles_modbus

MIT License
12 stars 4 forks source link

DTU Pro wrong current value #16

Open ttlappalainen opened 1 year ago

ttlappalainen commented 1 year ago

Description

Reading full microinverter data.

What I Did

Fixed datatypes.py: pv_current: Decimal = member(fmt=_udec16p2, doc='PV current [A].')

plant_data = HoymilesModbusTCP('192.168.59.98').plant_data microinverter_data = plant_data.microinverter_data print(microinverter_data)

pv_voltage=Decimal('39.3'), pv_current=Decimal('1.13'), grid_voltage=Decimal('235.9'), grid_frequency=Decimal('49.98'), pv_power=Decimal('44.8')

Is data content on modbas different with different DTU ow is modbas definition for current just wrong.

wasilukm commented 1 year ago

I guess you have HM inverters, therefore check https://wasilukm.github.io/hoymiles_modbus/usage/ how to change the microinverter type.