Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions packages/modules/devices/sungrow/sungrow_sh/counter.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,11 @@ def update(self):
self.fault_state.no_error(self.fault_text)

frequency = self.__tcp_client.read_input_registers(5035, ModbusDataType.UINT_16, unit=unit) / 10
if self.device_config.configuration.version == Version.SH_winet_dongle:
# On WiNet-S, the frequency accuracy is higher by one place
if self.device_config.configuration.version == Version.SH_winet_dongle and frequency >= 400:
# On WiNet-S, the frequency accuracy is sometimes higher by one place
# For some SDongle Firmware Versions it is not. Frequency should roughly
# range between 40 and 60. Therefore, if the value is above 400, we assume
# it is actually 10 times higher than it should be and adjust it accordingly.
frequency /= 10
Comment on lines 49 to 55

power_factor = self.__tcp_client.read_input_registers(5034, ModbusDataType.INT_16, unit=unit) / 1000
Expand Down
Loading