Skip to content

Commit

Permalink
meters-modbus-tcp: Expose Sungrow MPPT values
Browse files Browse the repository at this point in the history
  • Loading branch information
photron committed Apr 25, 2024
1 parent 4976f30 commit ea87226
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions software/src/modules/meters_modbus_tcp/prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,34 @@ def create_software_module():
'value_type': 'S16',
'scale_factor': 0.1,
},
{
'name': 'MPPT 1 Voltage [0.1 V]',
'value_id': 'VoltageDC',
'start_address': 5011,
'value_type': 'U16',
'scale_factor': 0.1,
},
{
'name': 'MPPT 1 Current [0.1 A]',
'value_id': 'CurrentDC',
'start_address': 5012,
'value_type': 'U16',
'scale_factor': 0.1,
},
{
'name': 'MPPT 2 Voltage [0.1 V]',
'value_id': None, # FIXME: merge with MPPT 1?
'start_address': 5013,
'value_type': 'U16',
'scale_factor': 0.1,
},
{
'name': 'MPPT 2 Current [0.1 A]',
'value_id': None, # FIXME: merge with MPPT 1?
'start_address': 5014,
'value_type': 'U16',
'scale_factor': 0.1,
},
{
'name': 'Total DC Power [W]',
'value_id': 'PowerDC',
Expand Down

0 comments on commit ea87226

Please sign in to comment.