From 1c06fbfba645ff67fb758a378b28bae33100baf1 Mon Sep 17 00:00:00 2001 From: mle Date: Thu, 23 May 2024 23:43:32 +0200 Subject: [PATCH] Add meter_target_power_offset --- goodwe/et.py | 2 ++ tests/test_et.py | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/goodwe/et.py b/goodwe/et.py index 2facf3f..6fec20d 100644 --- a/goodwe/et.py +++ b/goodwe/et.py @@ -357,6 +357,8 @@ class ET(Inverter): Integer("work_mode", 47000, "Work Mode", "", Kind.AC), Integer("dred", 47010, "DRED/Remote Shutdown", "", Kind.AC), + Integer("meter_target_power_offset", 47120, "Meter Target Power Offset", "W", Kind.AC), + Integer("battery_soc_protection", 47500, "Battery SoC Protection", "", Kind.BAT), Integer("grid_export", 47509, "Grid Export Enabled", "", Kind.GRID), diff --git a/tests/test_et.py b/tests/test_et.py index 5c1e0ae..fa2abde 100644 --- a/tests/test_et.py +++ b/tests/test_et.py @@ -240,7 +240,7 @@ def test_GW10K_ET_runtime_data(self): self.assertFalse(self.sensor_map, f"Some sensors were not tested {self.sensor_map}") def test_GW10K_ET_setting(self): - self.assertEqual(65, len(self.settings())) + self.assertEqual(66, len(self.settings())) settings = {s.id_: s for s in self.settings()} self.assertEqual('Timestamp', type(settings.get("time")).__name__) self.assertEqual('EcoModeV1', type(settings.get("eco_mode_1")).__name__) @@ -338,7 +338,7 @@ def test_GW10K_ET_fw819_device_info(self): self.assertEqual('02041-19-S00', self.arm_firmware) def test_GW10K_ET_settings_fw819(self): - self.assertEqual(72, len(self.settings())) + self.assertEqual(73, len(self.settings())) settings = {s.id_: s for s in self.settings()} self.assertEqual('EcoModeV2', type(settings.get("eco_mode_1")).__name__) self.assertEqual(None, settings.get("peak_shaving_mode")) @@ -379,7 +379,7 @@ def test_GW10K_ET_fw1023_device_info(self): self.assertEqual('02041-23-S00', self.arm_firmware) def test_GW10K_ET_setting_fw1023(self): - self.assertEqual(80, len(self.settings())) + self.assertEqual(81, len(self.settings())) settings = {s.id_: s for s in self.settings()} self.assertEqual('PeakShavingMode', type(settings.get("peak_shaving_mode")).__name__)