A Home Assistant integration that works out when your electric car should charge, so it is ready when you leave, with as little grid power as possible and without a load peak.
Deutsch: docs/ANLEITUNG.md · Full manual (English): docs/MANUAL.md
- Purpose: Charging usually starts when you get home, at full power. Plugwhen turns that into a plan: the sun first, the rest spread over the parking time at low power.
- For whom: anyone with an electric car and Home Assistant, with or without solar, with any wallbox and any car that Home Assistant can read.
- What you get: per car a charge plan until the next departure, a warning on the phone if the car will not be ready, and a ready-made dashboard. Plugwhen learns from the car when it leaves and how far it drives.
- What it is not: no replacement for evcc, no driver for wallboxes or cars, no tariff comparison.
- Learn. From the history of the odometer and the state of charge: when the car leaves on which weekday and how far it drives. Special trips come from a calendar.
- Plan. First the expected solar surplus, then the rest spread evenly, never above your peak limit.
- Warn. In the evening, once per departure: please plug in, otherwise the car will not be ready.
- Control, if you want. Each car has a mode:
| Mode | What happens |
|---|---|
| Learn (default) | Plans and compares with what really happened. Switches nothing. |
| Via evcc | Writes the plan into evcc, evcc charges. A plan you set in evcc yourself is never touched. |
| Direct | Plugwhen sets the wallbox itself. Offered once the learn mode shows that its decisions would have been right. |
| Off | Nothing. |
- Home Assistant 2026.3 or newer.
- Two sensors of your car: the odometer and the state of charge.
- Recommended: a plug sensor and the energy counter of the wallbox.
A solar plant is optional. All entities
- Settings → Marketplace (HACS before Home Assistant 2026.11): search for Plugwhen and download it, or install it with one click.
- Restart Home Assistant, then Settings → Devices & services → Add integration → Plugwhen.
- The set-up finds evcc and the Viertelstunden-Wächter by itself and proposes your car. Check it and save.
- Leave the car in Learn for about two weeks and look at the plans.
The action plugwhen.create_dashboard builds a ready-made dashboard.
- evcc: Plugwhen writes its plan into evcc, evcc charges. Details
- Viertelstunden-Wächter (quarter-hour peak guard, free in the Marketplace, install it with one click): the guard keeps the quarter-hour peak below your limit, Plugwhen plans below it and the guard no longer counts the car as load. Details
Off unless you switch it on. Then a weekly usage statistic and, once a day, the trip days: car model, kilometres, consumption, outdoor temperature and odometer (only to the nearest 10,000 km), and for days charged only at home the wallbox energy per full charge; without date, place or id. In return Plugwhen uses the consumption of many cars of the same model while your car is still learning. Never names, places or passwords. What exactly is sent
Bug reports and questions go to the issues. This is a spare-time project: answers can take a few days.
In the modes Via evcc and Direct Plugwhen decides by itself when the car charges. It is a free hobby project and comes without any warranty, as stated in sections 15 and 16 of the AGPL-3.0. It can be wrong, charge late or not at all. The car may then have less charge at departure than planned.
- Start in Learn and choose a controlling mode only when the plans look right to you.
- Check during the first days that it charges as intended, and charge yourself when it is urgent.
- Your installation and your car stay your responsibility. Liability that the law does not allow to be excluded (for example for intent or gross negligence) is not affected.
Dual licence: AGPL-3.0 and a commercial licence, see LICENSING.md.
