diff --git a/packages/modules/devices/mtec/mtec/counter.py b/packages/modules/devices/mtec/mtec/counter.py index 87049381e7..c0b08d3bdd 100644 --- a/packages/modules/devices/mtec/mtec/counter.py +++ b/packages/modules/devices/mtec/mtec/counter.py @@ -31,8 +31,9 @@ def initialize(self) -> None: def update(self) -> None: unit = self.component_config.configuration.modbus_id - power = self.client.read_holding_registers(11000, ModbusDataType.INT_32, unit=unit) + power = self.client.read_holding_registers(11000, ModbusDataType.INT_32, unit=unit) * -1 powers = self.client.read_holding_registers(10994, [ModbusDataType.INT_32]*3, unit=unit) + powers = [value * -1 for value in powers] imported, exported = self.sim_counter.sim_count(power) counter_state = CounterState(