Skip to content

EV Charger Solar Charging

Automatically adjust your EV charge current based on real-time solar surplus, so the car charges from free energy instead of the grid.


Without Hanergy, an EV charger draws power at a fixed rate regardless of what the solar panels are producing. Surplus energy that could charge the car is exported to the grid at a low feed-in tariff, while the car charges from expensive grid power overnight or whenever it is plugged in.

Hanergy configures the EV charger as a dynamic load. On every evaluation cycle, the engine reads the available surplus and adjusts the charger’s current setpoint to match. When the sun comes out, charge amps go up. When a cloud passes, amps go down. The car absorbs exactly as much solar energy as is available, minimizing grid import.


Add the EV charger as a dynamic load in Settings > Devices.

FieldValueNotes
NameEV ChargerDisplay name
TypeDynamicAdjustable setpoint
Switch entityswitch.ev_chargerOn/off control in HA
Parameter entitynumber.ev_charger_ampsCharge current setpoint in HA
Parameter min6IEC 61851 minimum (6 A)
Parameter max32Maximum amps your charger supports
Parameter unitAAmperes
Watts per unit230Approximately 230 W per amp (single-phase)
Rated power7360Maximum draw at 32 A
Minimum power1380Draw at 6 A
Ramp time5Seconds for charger-to-car negotiation
Feedback entitysensor.ev_battery_socCar battery state of charge (optional)

Create a priority entry in Settings > Priorities.

FieldValueNotes
LoadEV ChargerSelect the device created above
Minimum surplus1500Watts required before charging starts
Threshold80Stop charging at 80% SOC
EnabledYes

With a minimum surplus of 1500 W and a surplus buffer of 100 W (default), the engine requires at least 1600 W of raw surplus before activating the charger. This ensures the car starts charging at a stable rate rather than flickering on and off at the edge of viability.


The watts_per_unit value depends on the number of phases:

PhasesVoltageWatts per ampMax power at 32 A
1~230 V~230 W/A~7,360 W
3~400 V~690 W/A~22,080 W

For a three-phase charger, set watts_per_unit to approximately 690, rated_power_w to 22080, and min_power_w to 4140 (6 A x 690 W/A).


  • Minimum charge amps. Most EVs refuse to charge below 6 A (IEC 61851 standard). Setting param_min below 6 will cause the car to reject the charge session. Some vehicles require 8 A minimum — check your car’s documentation.

  • Ramp time. The charger and car negotiate via a pilot signal when the session starts. A ramp_time_sec of 5-10 seconds gives them time to agree before Hanergy begins adjusting the current.

  • Feedback entity. If your EV integration exposes a battery SOC sensor, use it as the feedback entity. This lets Hanergy stop charging at a target percentage (e.g., 80%) and free up surplus for other loads.

  • Multiple priority levels. For advanced use, place the same charger at two priority positions: a high-priority entry to charge to 60% at moderate amps, and a lower-priority entry to top up to 80% only when surplus is abundant. See the Multi-Level Priorities guide.


Hanergy works with any EV charger that exposes a controllable current setpoint in Home Assistant:

  • OpenEVSE — native HA integration with number entity for amps
  • Wallbox — via Wallbox integration
  • go-e Charger — via go-e integration
  • Easee — via Easee integration
  • Any OCPP charger — via OCPP integration

If your charger appears as a switch and a number entity in Home Assistant, it will work with Hanergy.