Skip to content

Commit

Permalink
fix bat power direction
Browse files Browse the repository at this point in the history
  • Loading branch information
benderl committed Jan 9, 2025
1 parent 332685d commit 395af28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/modules/devices/sungrow/sungrow/bat.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def update(self) -> None:
soc = int(self.__tcp_client.read_input_registers(13022, ModbusDataType.UINT_16, unit=unit) / 10)

if Firmware(self.device_config.configuration.firmware) == Firmware.v2:
bat_power = self.__tcp_client.read_input_registers(13021, ModbusDataType.INT_16, unit=unit)
bat_power = self.__tcp_client.read_input_registers(13021, ModbusDataType.INT_16, unit=unit) * -1
else:
bat_power = self.__tcp_client.read_input_registers(13021, ModbusDataType.UINT_16, unit=unit)

Expand Down

0 comments on commit 395af28

Please sign in to comment.