Skip to content

Commit

Permalink
Add meter_target_power_offset
Browse files Browse the repository at this point in the history
  • Loading branch information
mletenay committed May 24, 2024
1 parent 9289cde commit 1c06fbf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions goodwe/et.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
6 changes: 3 additions & 3 deletions tests/test_et.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down Expand Up @@ -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"))
Expand Down Expand Up @@ -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__)

Expand Down

0 comments on commit 1c06fbf

Please sign in to comment.