Skip to content

Commit

Permalink
Add Start/Stop/Restart settings to DT inverters.
Browse files Browse the repository at this point in the history
  • Loading branch information
mletenay committed May 25, 2024
1 parent 1f8f942 commit 11db632
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions goodwe/dt.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ class DT(Inverter):
Integer("shadow_scan", 40326, "Shadow Scan", "", Kind.PV),
Integer("grid_export", 40327, "Grid Export Enabled", "", Kind.GRID),
Integer("grid_export_limit", 40328, "Grid Export Limit", "%", Kind.GRID),
Integer("start", 40330, "Start / Power On", "", Kind.GRID),
Integer("stop", 40331, "Stop / Power Off", "", Kind.GRID),
Integer("restart", 40332, "Restart", "", Kind.GRID),
Integer("grid_export_hw", 40345, "Grid Export Enabled (HW)", "", Kind.GRID),
)

# Settings for single phase inverters
Expand Down
2 changes: 1 addition & 1 deletion tests/test_dt.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def test_GW6000_DT_runtime_data(self):
self.assertFalse(self.sensor_map, f"Some sensors were not tested {self.sensor_map}")

def test_GW6000_DT_setting(self):
self.assertEqual(4, len(self.settings()))
self.assertEqual(8, len(self.settings()))
settings = {s.id_: s for s in self.settings()}
self.assertEqual('Timestamp', type(settings.get("time")).__name__)
self.assertEqual('Integer', type(settings.get("grid_export")).__name__)
Expand Down

0 comments on commit 11db632

Please sign in to comment.