From 6e38e898044c43635ba51255e844b457fac310aa Mon Sep 17 00:00:00 2001 From: Nazar Mokrynskyi Date: Thu, 20 Jun 2024 13:37:28 +0300 Subject: [PATCH] Fix Battery Power using unsigned int (X1 Gen4) --- solax/inverters/x1_hybrid_gen4.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solax/inverters/x1_hybrid_gen4.py b/solax/inverters/x1_hybrid_gen4.py index ed74a9a..9a2bed7 100644 --- a/solax/inverters/x1_hybrid_gen4.py +++ b/solax/inverters/x1_hybrid_gen4.py @@ -49,7 +49,7 @@ def response_decoder(cls): "On-grid daily yield": (13, DailyTotal(Units.KWH), div10), "Battery voltage": (14, Units.V, div100), "Battery current": (15, Units.A, div100), - "Battery power": (16, Units.W), + "Battery power": (16, Units.W, to_signed), "Battery temperature": (17, Units.C), "Battery SoC": (18, Units.PERCENT), "Inverter Temperature": (26, Units.C),