Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Adapt the check of Solax EVC type using the SN number #1145

Merged
merged 1 commit into from
Dec 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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