Skip to content

Commit

Permalink
read energy counter from inverter, remove simcount (#1758)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinRinas authored Jul 17, 2024
1 parent ea7aac7 commit d8b9b87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/modules/devices/sma_sunny_boy/counter.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ def update(self):
else:
power = exp * -1

imported, exported = self.sim_counter.sim_count(power)
imported = self.__tcp_client.read_holding_registers(30581, ModbusDataType.UINT_32, unit=unit)
exported = self.__tcp_client.read_holding_registers(30583, ModbusDataType.UINT_32, unit=unit)

counter_state = CounterState(
imported=imported,
Expand Down

0 comments on commit d8b9b87

Please sign in to comment.