From 767e1c5ee99df3ed5e55bf46152dec731856b300 Mon Sep 17 00:00:00 2001 From: Thomas Basler Date: Sat, 7 May 2022 10:31:17 +0100 Subject: [PATCH 1/2] Fixed Power assignment for DC Port 1 --- tools/rpi/hoymiles/decoders/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/rpi/hoymiles/decoders/__init__.py b/tools/rpi/hoymiles/decoders/__init__.py index c58c6b4e..917679ca 100644 --- a/tools/rpi/hoymiles/decoders/__init__.py +++ b/tools/rpi/hoymiles/decoders/__init__.py @@ -155,7 +155,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] From 31aba4d7225fcdbb0626a334d9da3b0eb7858297 Mon Sep 17 00:00:00 2001 From: Thomas Basler Date: Sat, 7 May 2022 10:45:07 +0100 Subject: [PATCH 2/2] Fixed divider for AC Current --- tools/rpi/hoymiles/decoders/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/rpi/hoymiles/decoders/__init__.py b/tools/rpi/hoymiles/decoders/__init__.py index 0af2d353..2d6b63cc 100644 --- a/tools/rpi/hoymiles/decoders/__init__.py +++ b/tools/rpi/hoymiles/decoders/__init__.py @@ -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