Skip to content

Commit

Permalink
Merge pull request #1460 from MartinRinas/SMA_hybrid
Browse files Browse the repository at this point in the history
SMA hybrid Inverter: read import/export, remove simcount
  • Loading branch information
LKuemmel authored Apr 3, 2024
2 parents d8a859f + 9db43b9 commit edb17e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/modules/devices/sma_sunny_boy/bat_smart_energy.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ def read(self) -> BatState:
power = 0
else:
power = current*voltage
imported, exported = self.sim_counter.sim_count(power)
exported = self.__tcp_client.read_holding_registers(31401, ModbusDataType.UINT_64, unit=3)
imported = self.__tcp_client.read_holding_registers(31397, ModbusDataType.UINT_64, unit=3)

return BatState(
power=power,
Expand Down

0 comments on commit edb17e1

Please sign in to comment.