File tree Expand file tree Collapse file tree
packages/modules/devices/huawei/huawei_smartlogger Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,12 +31,11 @@ def initialize(self) -> None:
3131 def update (self ) -> None :
3232 modbus_id = self .component_config .configuration .modbus_id
3333 power = self .client .read_holding_registers (32278 , ModbusDataType .INT_32 , unit = modbus_id )
34- currents = [val / 100 for val in self .client .read_holding_registers (
34+ currents = [val / 10 for val in self .client .read_holding_registers (
3535 32272 , [ModbusDataType .INT_32 ] * 3 , unit = modbus_id )]
3636 voltages = [val / 100 for val in self .client .read_holding_registers (
3737 32260 , [ModbusDataType .INT_32 ] * 3 , unit = modbus_id )]
38- powers = [val / 1000 for val in self .client .read_holding_registers (
39- 32335 , [ModbusDataType .INT_32 ] * 3 , unit = modbus_id )]
38+ powers = self .client .read_holding_registers (32335 , [ModbusDataType .INT_32 ] * 3 , unit = modbus_id )
4039 imported , exported = self .sim_counter .sim_count (power )
4140 counter_state = CounterState (
4241 currents = currents ,
You can’t perform that action at this time.
0 commit comments