Skip to content
mobilewhatelsePublic

About

EV charge planning for Home Assistant: learns your trips, plans with sun and cheap hours, works with evcc. / Ladeplanung fürs E-Auto in Home Assistant: lernt deine Fahrten, plant mit Sonne und günstigen Stunden, arbeitet mit evcc.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Plugwhen

Plugwhen

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

What is this for?

  • 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.

How it works

  1. 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.
  2. Plan. First the expected solar surplus, then the rest spread evenly, never above your peak limit.
  3. Warn. In the evening, once per departure: please plug in, otherwise the car will not be ready.
  4. 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.

How it plans, in detail

What you need

  • 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

Installation

  1. Settings → Marketplace (HACS before Home Assistant 2026.11): search for Plugwhen and download it, or install it with one click.
  2. Restart Home Assistant, then Settings → Devices & services → Add integration → Plugwhen.
  3. The set-up finds evcc and the Viertelstunden-Wächter by itself and proposes your car. Check it and save.
  4. Leave the car in Learn for about two weeks and look at the plans.

The action plugwhen.create_dashboard builds a ready-made dashboard.

Works together with

Anonymous data (voluntary)

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

Support

Bug reports and questions go to the issues. This is a spare-time project: answers can take a few days.

Safety and liability

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.

Licence

Dual licence: AGPL-3.0 and a commercial licence, see LICENSING.md.

About

EV charge planning for Home Assistant: learns your trips, plans with sun and cheap hours, works with evcc. / Ladeplanung fürs E-Auto in Home Assistant: lernt deine Fahrten, plant mit Sonne und günstigen Stunden, arbeitet mit evcc.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages