From a8933db940f7c41ec8753223dcde714d0c0cc6be Mon Sep 17 00:00:00 2001 From: ReinvdZee Date: Fri, 20 Dec 2024 11:33:31 +0100 Subject: [PATCH] Sunwoda battery settings https://github.com/victronenergy/venus/issues/1402 --- delegates/batterysettings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/delegates/batterysettings.py b/delegates/batterysettings.py index 65c9aef..4a4d23c 100644 --- a/delegates/batterysettings.py +++ b/delegates/batterysettings.py @@ -28,6 +28,7 @@ BATTERY_PYTES = 0xB01B BATTERY_LEOCH = 0xB01D BATTERY_LBSA = 0xB01E +BATTERY_SUNWODA = 0xB01F BATTERY_BATRIUM_D = 0xB038 class BatterySettings(SystemCalcDelegate): @@ -48,7 +49,7 @@ def apply_battery_settings(self, service): # for some batteries. if pid in (BATTERY_PYLONTECH, BATTERY_BYD, BATTERY_BYD_L, BATTERY_BYD_PREMIUM, BATTERY_DISCOVER_AES, BATTERY_BLUENOVA, BATTERY_PYTES, BATTERY_LEOCH, BATTERY_LBSA, - BATTERY_BSLBATT, BATTERY_BMZ, BATTERY_CEGASA, BATTERY_PELIO_L, BATTERY_ZYC): + BATTERY_BSLBATT, BATTERY_BMZ, BATTERY_CEGASA, BATTERY_PELIO_L, BATTERY_ZYC, BATTERY_SUNWODA): self._settings['vsense'] = 2 # Forced Off self._settings['tsense'] = 2 # Forced Off self._settings['bol'] = 3 # Forced on