Skip to content

Commit

Permalink
Merge pull request #1145 from stopcoder/main
Browse files Browse the repository at this point in the history
Adapt the check of Solax EVC type using the SN number
  • Loading branch information
wills106 authored Dec 4, 2024
2 parents eb9038e + f2f0fc4 commit 9b36960
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 9b36960

Please # to comment.