From 93ae88fca20b4239625f3ca7f66926cfca2cd449 Mon Sep 17 00:00:00 2001 From: PaeserBastelstube <122045840+PaeserBastelstube@users.noreply.github.com> Date: Thu, 5 Jan 2023 18:50:44 +0100 Subject: [PATCH] change AC_CURRENT divider to 100 In line 514, ac_current dividor must be 100 not 10 There is a mismatch in AC output: power[Watt] = voltage[Volt] * current[Ampere] --- 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 0935110e..379a472a 100644 --- a/tools/rpi/hoymiles/decoders/__init__.py +++ b/tools/rpi/hoymiles/decoders/__init__.py @@ -511,7 +511,7 @@ class Hm600Decode0B(StatusResponse): @property def ac_current_0(self): """ Phase 1 ampere """ - return self.unpack('>H', 34)[0]/10 + return self.unpack('>H', 34)[0]/100 @property def ac_power_0(self): """ Phase 1 watts """