From f2f0fc4926c49ccabd04bc9d878cf964b260ccae Mon Sep 17 00:00:00 2001 From: Jiawei Cao Date: Fri, 22 Nov 2024 11:38:23 +0100 Subject: [PATCH] Adapt the check of the EVC type - because my EVC SN starts with "C3111" --- custom_components/solax_modbus/plugin_solax_ev_charger.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_components/solax_modbus/plugin_solax_ev_charger.py b/custom_components/solax_modbus/plugin_solax_ev_charger.py index 24b02dfc..6f7ac390 100644 --- a/custom_components/solax_modbus/plugin_solax_ev_charger.py +++ b/custom_components/solax_modbus/plugin_solax_ev_charger.py @@ -791,9 +791,9 @@ async def async_determineInverterType(self, hub, configdict): seriesnumber = "unknown" # derive invertertupe from seriiesnumber - if seriesnumber.startswith('C1070'): invertertype = X1 | POW7 # 7kW EV Single Phase - elif seriesnumber.startswith('C3110'): invertertype = X3 | POW11 # 11kW EV Three Phase - elif seriesnumber.startswith('C3220'): invertertype = X3 | POW22 # 22kW EV Three Phase + if seriesnumber.startswith('C107'): invertertype = X1 | POW7 # 7kW EV Single Phase + elif seriesnumber.startswith('C311'): invertertype = X3 | POW11 # 11kW EV Three Phase + elif seriesnumber.startswith('C322'): invertertype = X3 | POW22 # 22kW EV Three Phase # add cases here else: invertertype = 0