Solar + EV + Home Assistant

Charge your EV with solar surplus, and still be ready when you leave

In short: in Home Assistant, Plugwhen learns when your car leaves and how far it drives. What the solar forecast promises while the car is at home is left to the sun, only the rest comes from the grid, placed after the sun hours. The Viertelstunden-Wächter makes sure charging never drives up the quarter-hour peak of the house. Both are free and open source, with or without evcc.
any wallbox, with or without evcc solar forecast from the Energy dashboard charges for several days at once stays local
How it works

Pure surplus charging is not enough

Classic surplus charging only starts when the sun shines right now. On a grey week the car is empty, and on the evening before a long trip it charges at full power from the grid, often at the same time as the oven and the heat pump. Planning fixes both.

1 · The sun first

Plugwhen reads the solar forecast of the Energy dashboard (Forecast.Solar, Solcast …). What it promises while the car is at home and plugged in is left to the sun.

2 · Only the rest from the grid

What the sun cannot deliver in time is charged from the grid, after the sun hours and spread over the night, so the car is ready at the learned departure.

3 · Plug in less often

Plugwhen charges for several days at once up to an everyday limit. Replayed with 255 real days of one car: 3.2 charges a week instead of 5.6.

4 · No grid peak

With power-based grid tariffs the highest quarter hour counts. The Viertelstunden-Wächter keeps it below your limit, and Plugwhen plans below it.

Plugwhen: the plan of a charge, solar first and the rest from the grid
What you need

Four things, most of which you already have

Questions

Charging with solar: short answers

How do I charge my EV with solar surplus in Home Assistant?

With Plugwhen: it leaves to the sun what the solar forecast promises while the car is at home and charges only the rest from the grid, so the car is ready at departure.

What is the difference to plain surplus charging?

Plain surplus charging only reacts to the sun of this moment. Plugwhen plans ahead: it knows the next trips and the forecast and decides how much the sun can still do and what has to come from the grid.

Do I need evcc?

No. Plugwhen works with any wallbox Home Assistant can switch. With evcc, Plugwhen hands its plan to evcc.

Which solar forecast works?

The one in the Energy dashboard of Home Assistant, for example Forecast.Solar or Solcast.

How do I avoid a grid peak while charging?

With the Viertelstunden-Wächter: it keeps every quarter hour of the house below your limit by throttling the wallbox and pausing loads, and gives everything back afterwards.

What does it cost?

Nothing for your own home. Both integrations are open source.

Questions about your set-up?

Write to me. Feedback helps me improve both integrations.