Skip to content

Commit

Permalink
meters-modbus-tcp: Add missing frequency values for Shelly Pro [3]EM
Browse files Browse the repository at this point in the history
  • Loading branch information
photron committed Jan 10, 2025
1 parent 750146a commit 1d38be9
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions software/src/modules/meters_modbus_tcp/shelly.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@
'start_address': 2011,
'value_type': 'F32LE',
},
{
'name': 'Channel 1 frequency [Hz]',
'value_id': 'FrequencyL1',
'start_address': 2016,
'value_type': 'F32LE',
},
{
'name': 'Channel 1 total active energy - perpetual count [Wh]',
'value_id': 'EnergyActiveL1ImportResettable',
Expand Down Expand Up @@ -137,6 +143,12 @@ def make_monophase_values(channel, phase, start_address_offset):
'start_address': 1028,
'value_type': 'F32LE',
},
{
'name': 'Phase A frequency [Hz]',
'value_id': 'FrequencyL1',
'start_address': 1033,
'value_type': 'F32LE',
},
{
'name': 'Phase B voltage [V]',
'value_id': 'VoltageL2N',
Expand Down Expand Up @@ -167,6 +179,12 @@ def make_monophase_values(channel, phase, start_address_offset):
'start_address': 1048,
'value_type': 'F32LE',
},
{
'name': 'Phase B frequency [Hz]',
'value_id': 'FrequencyL2',
'start_address': 1053,
'value_type': 'F32LE',
},
{
'name': 'Phase C voltage [V]',
'value_id': 'VoltageL3N',
Expand Down Expand Up @@ -197,6 +215,12 @@ def make_monophase_values(channel, phase, start_address_offset):
'start_address': 1068,
'value_type': 'F32LE',
},
{
'name': 'Phase C frequency [Hz]',
'value_id': 'FrequencyL3',
'start_address': 1073,
'value_type': 'F32LE',
},
{
'name': 'Total active energy accumulated for all phases - perpetual count [Wh]',
'value_id': 'EnergyActiveLSumImportResettable',
Expand Down

0 comments on commit 1d38be9

Please sign in to comment.