Skip to content

Commit 9298459

Browse files
ndrsnhsbenderl
authored andcommitted
invert power sign (openWB#2215)
1 parent b961dcb commit 9298459

File tree

1 file changed

+2
-2
lines changed
  • packages/modules/devices/growatt/growatt

1 file changed

+2
-2
lines changed

packages/modules/devices/growatt/growatt/bat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ def __init__(self,
2626
def update(self, client: ModbusTcpClient_) -> None:
2727
if self.version == GrowattVersion.max_series:
2828
power_in = client.read_input_registers(
29-
1011, ModbusDataType.UINT_32, unit=self.__modbus_id) * -0.1
29+
1011, ModbusDataType.UINT_32, unit=self.__modbus_id) * 0.1
3030
power_out = client.read_input_registers(
31-
1009, ModbusDataType.UINT_32, unit=self.__modbus_id) * 0.1
31+
1009, ModbusDataType.UINT_32, unit=self.__modbus_id) * -0.1
3232
power = power_in + power_out
3333

3434
soc = client.read_input_registers(1014, ModbusDataType.UINT_16, unit=self.__modbus_id)

0 commit comments

Comments
 (0)