I’ve been driving an electric car for over two years now and I absolutely love it. The driving experience is great, charging at home is convenient, and combining it with solar power makes it even better.
When I got my first EV, I immediately installed a home charger. I also have a dynamic energy contract, but I mostly charged at work or during the night when electricity prices were low.
Then we replaced our second ICE car with another EV. At the same time, changes in Dutch regulations, such as the introduction of ERE certificates and the phase-out of the Salderingsregeling, made me rethink our charging strategy. With two EVs, solar panels and dynamic pricing, I wanted to optimize charging as much as possible.
Being an IT and automation enthusiast, this was the perfect weekend project. Enter evcc.
The Goal
My requirements were straightforward:
- Prioritize solar: Use as much PV surplus as possible for charging.
- Smart pricing: Factor in the dynamic energy prices, which in the Netherlands now change every 15 minutes.
- Reliability: Make sure both cars are ready for the morning commute.
- Safety: Never blow the main fuse, thanks to load management.
What You’ll Need
- A place to run evcc. I run it in an LXC container on Proxmox, but Docker, a Home Assistant add-on or bare metal work just as well.
- A charger evcc can control. Mine is an Alfen Eve Single Pro-line.
- Your solar production. My GoodWe inverter is read through Home Assistant.
- A real-time reading of your smart meter, including the current per phase. I use the WaterP1MeterKit on the P1 port.
- A dynamic tariff source. I use the free API of
epexprijzen.nl.
How It Works
- evcc reads the solar production, the grid meter and the energy prices for the coming day.
- In the default mode, Smart, it charges on solar surplus.
- For each car there’s a plan that guarantees a minimum charge by a set time in the morning, using the cheapest moments to get there.
- When prices drop below a limit, evcc charges at full speed anyway.
- Load management keeps the whole house within the 3x25A connection.
Step 1: Install evcc
The installation itself is outside the scope of this post, but the official documentation is excellent. Once the service is up, the real fun begins: the configuration.
Step 2: Connect the Charger
To allow evcc to control my Alfen, I enabled Modbus communication via the MyEve app:
Advanced→Smart Charging→Active Load Balancing: set the protocol to Energy Management System.Advanced→Smart Charging→Energy Management: set the mode to Socket and ValidityTime to 300 s.
Using a different charger? Check the evcc charger documentation.
In the evcc interface, I then applied the following settings to the loadpoint:
Default mode: Smart
By default I only want to charge on solar power. In recent evcc versions this mode is called Smart (it used to be Solar). If I need a certain State of Charge (SOC) in the morning, the plan takes care of that.
Smart mode: custom thresholds
My solar panels don’t always produce enough power for stable charging. Single-phase charging needs about 1.4 kW to start, so I configured:
- Enable grid power at: -700 W
- Disable grid power at: 1000 W
This means charging starts when at least 700 W of solar surplus is available, and evcc may supplement with a bit of grid power to keep charging at the minimum level.
Vehicle detection
evcc can detect which car is plugged in, but with two cars that rely on the Kia and Hyundai cloud, that wasn’t reliable for me. Home Assistant now selects the right car using GPS and the driveway camera. I wrote about that in Which Car Is Charging?
Step 3: Add the Vehicles
I have a Kia EV6 and a Hyundai Inster. Setting them up in the evcc interface is straightforward: select the brand and model, fill in the actual battery capacity (77 kWh and 49 kWh) and enable three-phase charging, so both can take full advantage of the cheapest charging windows.
Vehicle documentation: docs.evcc.io/en/docs/devices/vehicles
Step 4: Connect the Solar Panels
My GoodWe inverter doesn’t integrate directly with evcc. Since it was already in Home Assistant, I simply pointed evcc to the Home Assistant pv_power sensor.
Using a different inverter? Check docs.evcc.io/en/docs/devices/meters
Step 5: Connect the Grid Meter
For accurate load balancing, evcc needs real-time grid data: power import and export, and the current per phase. That’s essential for keeping the household within the 3x25A limit.
I read the smart meter with the WaterP1MeterKit. It’s connected to the P1 port, runs ESPHome and provides everything evcc needs, including power and current per phase.
The kit is already in Home Assistant, so evcc simply reads it from there. In the evcc interface, I added a meter with Home Assistant as the manufacturer. evcc finds the Home Assistant instance on the network and asks you to log in once to authorise it, after which you pick the entities for each field:
- Power:
sensor.waterp1meterkit_net_power, the net power (consumption minus production) - Current L1 to L3:
sensor.waterp1meterkit_current_phase_1to_3
The same meter in YAML looks like this:
meters:
- name: grid
type: template
template: homeassistant
usage: grid
uri: http://homeassistant.local:8123
power: sensor.waterp1meterkit_net_power
currentL1: sensor.waterp1meterkit_current_phase_1
currentL2: sensor.waterp1meterkit_current_phase_2
currentL3: sensor.waterp1meterkit_current_phase_3The kit reports power in kW. That’s no problem: evcc looks at the unit of the Home Assistant sensor and converts it automatically. If your sensor reports the opposite sign, put a - in front of the entity name.
Step 6: Add Dynamic Prices and Forecasts
This is where evcc outshines standard smart chargers. Using the epexprijzen.nl API, evcc knows the price for every 15 minutes of the coming day. I configured:
- Grid price and feed-in forecasts: to know when it’s cheaper to charge than to sell back to the grid.
- Solar forecast: using
forecast-solarto predict how much free energy is coming tomorrow.
With this data, evcc doesn’t just react, it plans. It knows whether to wait for a sunny afternoon or a cheap window at 3:00 AM.
currency: EUR
grid:
type: custom
forecast:
source: http
uri: https://epexprijzen.nl/api/v1/prices/zonneplan/quarterly
jq: '.today + .tomorrow | map({"start": .t, "end": (.t | fromdateiso8601 + 900 | todateiso8601), "value": .price}) | tostring'
feedin:
type: custom
forecast:
source: http
uri: https://epexprijzen.nl/api/v1/prices/zonneplan/quarterly
jq: '.today + .tomorrow | map({"start": .t, "end": (.t | fromdateiso8601 + 900 | todateiso8601), "value": .price}) | tostring'
co2:
type: template
template: ned
apiKey: YOUR_API_KEY
solar:
type: template
template: forecast-solar
lat: YOUR_LAT
lon: YOUR_LON
az: 184
dec: 25
kwp: 2.16Since October 2025, the Dutch day-ahead market works with 15-minute prices instead of hourly ones. The quarterly endpoint gives evcc those prices directly. Each entry only has a start time, so the jq filter adds 900 seconds to get the end of each quarter.
Tariff documentation: docs.evcc.io/en/docs/tariffs
Step 7: Set Up Load Management
In the Netherlands, a standard residential connection is 3x25A. If you’re charging an EV at 11 kW while the heat pump and oven are running, you might blow the main fuse. evcc handles this with a circuit. I defined my main circuit with maxCurrent: 25:
- name: main
title: Hoofdcircuit
maxCurrent: 25
meter: db:20If the house consumption spikes, evcc throttles the charger within seconds. This active load balancing is the only practical way to safely run a multi-EV household on a standard Dutch grid connection.
Step 8: Create a Charging Plan
This is where the “smart” in smart charging actually happens. Solar comes first, but I do have hard requirements for the next morning. Each car has its own repeating plan on weekdays:
- EV6: 100% by 06:30
- Inster: 60% by 07:00
For each plan, evcc looks at:
- Required energy: how many kWh are needed to reach the target?
- Solar forecast: is there a burst of sun expected before the deadline?
- Dynamic prices: when are the cheapest quarters, or even negative prices, between now and the deadline?
It then schedules charging into those cheapest moments, which means it can stop and start in between. If you’d rather have one uninterrupted block, set the plan to continuous, and evcc plans a single charging window instead.
Charging When Prices Are Low
In the evcc interface you can also set a price limit. Whenever the electricity price drops below it, evcc charges at full speed, no matter what the plan says. This is especially useful during periods of very low or negative prices.
Final Thoughts
The results have been fantastic. The setup has a high WAF (Wife Acceptance Factor): my wife just plugs in the car, and the system handles the rest.
We’ve maximized our solar investment, kept costs low under a dynamic contract, and have two cars ready every morning without thinking about it. If you’re into smart homes and energy management, evcc is the missing piece.



One response
[…] In our household we have two electric cars: a Kia EV6 and a Hyundai Inster. Both of them charge on the same Alfen charger in the driveway, and evcc decides when and how fast they charge. I wrote about that setup in Smart Charging My EVs with EVCC. […]