@@ -110,8 +110,8 @@ def from_buffer(cls, data):
110
110
status .inverter_current = Value (values [0 ] * imul , units = 'A' , resolution = 1 )
111
111
status .chg_current = Value (values [1 ] * imul , units = 'A' , resolution = 1 )
112
112
status .buy_current = Value (values [2 ] * imul , units = 'A' , resolution = 1 )
113
- status .input_voltage = Value (values [3 ] * vmul , units = 'V' , resolution = 1 )
114
- status .output_voltage = Value (values [4 ] * vmul , units = 'V' , resolution = 1 )
113
+ status .input_voltage = Value (values [3 ] * vmul , units = 'V' , resolution = 0 )
114
+ status .output_voltage = Value (values [4 ] * vmul , units = 'V' , resolution = 0 )
115
115
status .sell_current = Value (values [5 ] * imul , units = 'A' , resolution = 1 )
116
116
status .operational_mode = values [6 ]
117
117
status .error_mode = values [7 ]
@@ -340,28 +340,28 @@ def inverter_current(self):
340
340
x = self .query (0x006D )
341
341
if self .is_230v :
342
342
x /= 2.0
343
- return Value (x , units = 'A' , resolution = 0 )
343
+ return Value (x , units = 'A' , resolution = 1 )
344
344
345
345
@property
346
346
def charger_current (self ):
347
347
x = self .query (0x006A )
348
348
if self .is_230v :
349
349
x /= 2.0
350
- return Value (x , units = 'A' , resolution = 0 )
350
+ return Value (x , units = 'A' , resolution = 1 )
351
351
352
352
@property
353
353
def input_current (self ):
354
354
x = self .query (0x006C )
355
355
if self .is_230v :
356
356
x /= 2.0
357
- return Value (x , units = 'A' , resolution = 0 )
357
+ return Value (x , units = 'A' , resolution = 1 )
358
358
359
359
@property
360
360
def sell_current (self ):
361
361
x = self .query (0x006B )
362
362
if self .is_230v :
363
363
x /= 2.0
364
- return Value (x , units = 'A' , resolution = 0 )
364
+ return Value (x , units = 'A' , resolution = 1 )
365
365
366
366
@property
367
367
def battery_actual (self ):
0 commit comments