Skip to content

Commit

Permalink
Adapt the check of the EVC type
Browse files Browse the repository at this point in the history
- because my EVC SN starts with "C3111"
  • Loading branch information
stopcoder committed Nov 22, 2024
1 parent a445360 commit f2f0fc4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/solax_modbus/plugin_solax_ev_charger.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f2f0fc4

Please sign in to comment.