Skip to content

Commit

Permalink
Add new battery manufacturers for high and low voltage definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
maslyankov committed Jan 6, 2025
1 parent 2000f44 commit 02d5538
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/sunsynk/definitions/three_phase_hv.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,25 @@
5: "Deye_HV",
6: "BYD_HV",
7: "JINKOBSS_HV",
8: "Greenway_HV",
9: "WTS_HV",
10: "FNSPOWER_HV",
11: "SHOTOPOWER_HV",
12: "DOWELL_HV",
13: "WECO_HV",
14: "ZRGP_HV",
15: "CFE_HV",
16: "SUNWODA_HV",
17: "GENIX_HV",
18: "THANKSUN_HV",
19: "TURBO_HV",
20: "ENOVANCE_HV",
21: "MLS_HV",
22: "LDV_HV",
23: "VW_HV",
24: "CSE_HV",
25: "HUAFON_HV",
26: "OMLIKA_HV",
}
SENSORS += (
SelectRWSensor(
Expand Down
27 changes: 27 additions & 0 deletions src/sunsynk/definitions/three_phase_lv.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
Sensor,
TempSensor,
)
from sunsynk.rwsensors import SelectRWSensor

SENSORS = SENSORS.copy()

Expand All @@ -27,3 +28,29 @@
"grid_connected_status": "grid_status",
}
)

lv_battery_manufacturers = {
0: "HereYin",
1: "PYLON",
2: "SOLAX",
3: "DYNESS_L",
4: "CCGX",
5: "Alpha_ESS",
6: "SUNGO_CAN",
7: "VISION_CAN",
8: "WATTSONIC_CAN",
9: "KUNLAN",
10: "GSEnergy",
11: "GS_HUB",
12: "BYD_LV",
13: "AOBO",
14: "DEYE",
15: "CFE",
16: "DMEGC",
17: "UZENERGY",
18: "GROWATT",
}

SENSORS += (
SelectRWSensor(229, "Battery 1 Manufacturer", options=lv_battery_manufacturers),
)

0 comments on commit 02d5538

Please sign in to comment.