The purpose of this installation has been to enable charging of an electric vehicle using surplus solar production controlled through Home Assistant without unnecessary import from the power grid. At another property I have previously used a similar solution with Zaptec Go, but this installation uses Zaptec Go 2, where the possibility of software-controlled switching between one and three phases made it possible to test a somewhat different approach to solar-based charging.
The Zaptec charger used in this setup is configured for the European market. Connector types, phase configurations, and certification requirements vary significantly between regions. Readers outside continental Europe should verify compatibility with their local standards before ordering.
The installation consists of a Growatt hybrid system with battery storage, a Zaptec Go 2 charger, and Home Assistant as the central control platform. The available charging capacity for the electric vehicle is calculated in Home Assistant based on current solar production and the household’s remaining power consumption. The vehicle’s current charging load is added back into the calculation, while battery discharge is subtracted. This allows the system to primarily use genuine solar surplus for EV charging while avoiding the use of energy from the house battery for charging the vehicle. The available charging capacity is measured through SunMate Pulse, which provides Home Assistant with data about solar production, household consumption, battery status, and net power flow. Alternatively, surplus production can be measured using an external three-phase Shelly energy meter.
In Home Assistant the user can choose between three different charging modes: normal charging, night charging, and solar-based charging. During normal charging the car immediately starts charging on three phases at maximum current. Night charging is typically used during winter in the cheapest nighttime hours and also operates in three-phase mode.
During solar-based charging, the system switches to single-phase operation and continuously adjusts the charging current according to the calculated available charging capacity.
The phase switching functionality is available through the unofficial Zaptec integration installed via HACS. The most important function of the integration in this installation is control of the maximum charging current together with the entity number.dit_installationsnavn_3_to_1_phase_switch_current.
The entity is used as follows:
0 = fixed three-phase charging
32 = fixed single-phase charging
1-31 = automatic phase switching
In practice, fixed three-phase charging is used for normal charging and night charging, while solar-based charging runs in fixed single-phase mode. Zaptec Go 2 supports automatic phase switching, but Zaptec also limits the number of phase switches during a charging session. The default setting is five phase switches, while the maximum is twenty. Therefore, automatic phase switching has not yet been enabled in this installation. More information about phase switching can be found on Zaptec’s official page docs.zaptec.com/docs/3-to-1-phase-switching-with-zaptec-go-2.
When solar-based charging is selected, Home Assistant sets the charger to single-phase operation and then regulates the charger’s maximum current according to the available charging capacity for the EV. Regulation takes place through the entity number.dit_ladernavn_charger_max_current.
Charging is still regulated in whole amperes. Zaptec Go 2 requires at least 6 A to start charging, corresponding to approximately 1.4 kW in single-phase operation. In practice, it quickly became clear that direct start and stop around this threshold resulted in too many short charging cycles during fluctuating solar production.
The solution therefore became a simple hysteresis. In this installation charging only starts at approximately 1.5 kW of available power and stops again below approximately 0.9 kW. Once charging has started, the current is gradually adjusted up and down depending on the current solar production.
Home Assistant adjusts the charging current approximately every 30 seconds. If charging was previously stopped due to insufficient solar surplus, the system automatically attempts to resume charging once the surplus again exceeds the start threshold. During new cable sessions, it may also be necessary to authorize charging again via the Zaptec integration, depending on the current status of the vehicle and charger.
An interesting observation was that the vehicle in practice could charge at almost 20 A on a single phase when using a three-phase 32 A cable. This allowed charging to reach approximately 4.5 kW on one phase, which is higher than the approximately 3.7 kW typically seen with 16 A single-phase charging. At the same time, this made the solution more flexible in daily use because the same cable could be used both for single-phase solar charging and ordinary three-phase charging.
In the previous installation with Zaptec Go, phase selection was in practice handled by switching between different charging cables. With Zaptec Go 2, phase selection could instead be controlled directly from Home Assistant through software. In practice, this turned out to be the most significant difference between the two solutions.
The solution still depends on Zaptec’s cloud integration and the vehicle’s own charging logic. There were also differences in which entities were exposed through the integration across different installations and integration versions.
As with most forms of solar-based charging, the solution is most interesting during periods with actual solar production. During winter, traditional night charging still makes the most sense. However, during the summer period the solution works as a relatively simple way to use surplus solar production directly for EV charging.
About coding
This case describes the architecture and control principles, but not specific Home Assistant automations. The code will depend on the individual installation. Automations can be generated using AI, provided the AI is given the necessary technical prerequisites as described above.

