Browse Source

Merge pull request #3 from tbnobody/pypackage

Fixes StatusResponse byte assignment for 1161-Series inverters
pull/25/head
Jan-Jonas Sämann 3 years ago
committed by GitHub
parent
commit
664e846767
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      tools/rpi/hoymiles/decoders/__init__.py

4
tools/rpi/hoymiles/decoders/__init__.py

@ -197,7 +197,7 @@ class HM1500_Decode0B(StatusResponse):
return self.unpack('>H', 4)[0]/100
@property
def dc_power_0(self):
return self.unpack('>H', 9)[0]/10
return self.unpack('>H', 8)[0]/10
@property
def dc_energy_total_0(self):
return self.unpack('>L', 12)[0]
@ -258,7 +258,7 @@ class HM1500_Decode0B(StatusResponse):
return self.unpack('>H', 46)[0]/10
@property
def ac_current_0(self):
return self.unpack('>H', 54)[0]/10
return self.unpack('>H', 54)[0]/100
@property
def ac_power_0(self):
return self.unpack('>H', 50)[0]/10

Loading…
Cancel
Save