From 02d553838b3f9a059cd87d1f095bd7bd7bad56d2 Mon Sep 17 00:00:00 2001 From: maslyankov Date: Mon, 6 Jan 2025 22:43:13 +0200 Subject: [PATCH] Add new battery manufacturers for high and low voltage definitions --- src/sunsynk/definitions/three_phase_hv.py | 19 ++++++++++++++++ src/sunsynk/definitions/three_phase_lv.py | 27 +++++++++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/src/sunsynk/definitions/three_phase_hv.py b/src/sunsynk/definitions/three_phase_hv.py index 65e406ed..27cd423a 100644 --- a/src/sunsynk/definitions/three_phase_hv.py +++ b/src/sunsynk/definitions/three_phase_hv.py @@ -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( diff --git a/src/sunsynk/definitions/three_phase_lv.py b/src/sunsynk/definitions/three_phase_lv.py index 9412144c..be663414 100644 --- a/src/sunsynk/definitions/three_phase_lv.py +++ b/src/sunsynk/definitions/three_phase_lv.py @@ -6,6 +6,7 @@ Sensor, TempSensor, ) +from sunsynk.rwsensors import SelectRWSensor SENSORS = SENSORS.copy() @@ -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), +)