From 827abcb5138375cc843e62033328512af2283866 Mon Sep 17 00:00:00 2001 From: DarkerCz Date: Wed, 5 Jun 2024 13:04:16 +0200 Subject: [PATCH] Added inverter temperature for X1 Hybrid G4 (#157) * Update x1_hybrid_gen4.py Added temperature for X1 Hybrid G4 * Update expected_values.py --- solax/inverters/x1_hybrid_gen4.py | 1 + tests/samples/expected_values.py | 1 + 2 files changed, 2 insertions(+) diff --git a/solax/inverters/x1_hybrid_gen4.py b/solax/inverters/x1_hybrid_gen4.py index bc046de..ed74a9a 100644 --- a/solax/inverters/x1_hybrid_gen4.py +++ b/solax/inverters/x1_hybrid_gen4.py @@ -52,6 +52,7 @@ def response_decoder(cls): "Battery power": (16, Units.W), "Battery temperature": (17, Units.C), "Battery SoC": (18, Units.PERCENT), + "Inverter Temperature": (26, Units.C), "Grid power": (32, Units.W, to_signed), "Total feed-in energy": (pack_u16(34, 35), Total(Units.KWH), div100), "Total consumption": (pack_u16(36, 37), Total(Units.KWH), div100), diff --git a/tests/samples/expected_values.py b/tests/samples/expected_values.py index 95f8924..d57f613 100644 --- a/tests/samples/expected_values.py +++ b/tests/samples/expected_values.py @@ -517,6 +517,7 @@ "Battery power": 541.0, "Battery temperature": 26.0, "Battery SoC": 82.0, + "Inverter Temperature": 30.0, "Grid power": 1.0, "Total feed-in energy": 286.7, "Total consumption": 6.2,