Extensible EV charge controller and home energy management system
open coreMITself-hostablefreeMCP
evcc is a self-hosted EV charge controller and home energy management system that charges an electric car from solar surplus, or in the cheapest or greenest hours of a dynamic tariff, while coordinating the wallbox with the home battery, heat pump and switchable sockets. It runs locally on a Raspberry Pi, NAS or server with no cloud required, and talks to hundreds of chargers (including OCPP and EEBus ones), inverters, batteries, energy meters and car makers' APIs, with plugins over Modbus, HTTP, MQTT and scripts for anything else. Charging plans reach a target charge by a departure time, load management keeps several chargers within a circuit's limit, and REST and MQTT APIs, an experimental MCP server and add-ons for Home Assistant and openHAB connect it to the rest of the house. The code is MIT, but the integrations for many commercial chargers and heat pumps are excluded from it and need a sponsor token ($4 a month or $150 once through GitHub Sponsors, or €50 a year), which also unlocks remote access through evcc.cloud and the optimizer service.
Ways to install
On your own server
Problems it solves
- charge my electric car only from the excess power my solar panels produce
- stop selling solar to the grid for almost nothing when I could put it in my EV
- charge the car in the cheapest hours of my Tibber or other dynamic electricity tariff
- have the car at 80% by 7am tomorrow at the lowest possible cost
- decide whether the home battery or the car gets the solar surplus first
- keep the house battery from emptying into the car while it charges
- my wallbox only works through the maker's cloud app and I want local control of charging
- one app for my wallbox, inverter, battery and car instead of four vendor apps
- run the heat pump harder when there's solar surplus
- two EVs and two chargers on one house connection without tripping the main fuse
- my grid operator can throttle my wallbox and heat pump under §14a EnWG and I need that handled automatically
- switch a smart plug on to charge an e-bike or a portable EV charger only from solar
- see how much of each charging session came from solar and what it cost
- open source home energy management for a house with PV, a battery and an electric car
- read the car's state of charge from the manufacturer's API so charging stops at my limit
- control an OCPP wallbox locally without a charge point operator's backend
- charge when grid electricity is greenest using a CO2 intensity forecast
- solar surplus EV charging that works with Home Assistant
- electrician installing wallboxes who wants to ship a branded energy manager to customers
- ask an AI assistant whether I'll be able to fill my car with solar today
- add a charger or meter that isn't supported yet through Modbus, MQTT or an HTTP API
- check my charging from my phone when I'm away without port forwarding or a VPN
Features
- modes Off, Smart and Fast for each charging point, heat pump or switchable socket
- solar surplus charging that follows the available surplus
- grid charging below a price or CO2 limit with fixed, time-based or dynamic tariffs such as Tibber and awattar
- charging plans with a departure time and target charge
- home battery priority, battery boost and active battery control
- heat pump and electric heater control
- load management with hierarchical circuits limited by current or power (experimental)
- time-based grid fees and automatic power reduction on a grid operator signal (§14a EnWG)
- hundreds of supported chargers, including OCPP and EEBus chargers and build-your-own EVSE
- solar inverters, home batteries and energy meters, including SunSpec and mbmd-compatible devices
View 14 more
- vehicle integrations for state of charge, remote charge and preconditioning for dozens of car makes, plus OVMS, TeslaMate and other services
- smart switches: AVM FRITZ!, Home Assistant, Homematic IP, HomeWizard, myStrom, Shelly, Tasmota, TP-Link
- plugins over Modbus, HTTP, MQTT, JavaScript, WebSocket, Go and shell scripts
- charging session history and statistics
- status notifications through Telegram, Pushover and other Shoutrrr services
- logging to InfluxDB and Grafana
- REST and MQTT APIs
- experimental MCP server for AI assistants
- companion app for iOS, Android and macOS that finds instances on the network
- Remote Access for sponsors: a personal evcc.cloud domain with per-device credentials
- experimental optimizer cloud service for cost-optimal charging and battery decisions (sponsors)
- white-label branding with your own logo, colours and contact details
- ready-made Raspberry Pi image; Docker, Home Assistant app, Proxmox, Linux, macOS (Homebrew), FreeBSD and Windows installs
- command-line tools to detect devices, check config and query chargers, meters and vehicles
Ways to run it
evcc
Not included
- integrations for many commercial EV chargers and heat pumps, which need a sponsor token57
- Remote Access through evcc.cloud and the optimizer service, which need an active sponsorship789
You arrange
- a Raspberry Pi, NAS, server or Home Assistant install to run it
- local network access to the charger, inverter, battery and meters
- the trial token to test devices that need a sponsor token
evcc with sponsor token
GitHub Sponsors $4/month or $150 one-time; direct EUR 50/year or EUR 150 one-time; installer bundles571011
Only in this edition
- all EV charger and heat pump integrations
- advanced features such as the Modbus proxy
- Remote Access: a personal evcc.cloud domain for the app and browser
- the optimizer cloud service (experimental, informational for now)
You arrange
- one token per instance, usable on up to three instances in the same home
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
| Has an MCP server | plan not known |
| Takes plugins | plan not known |
Alternatives
The same job
These do what evcc does.
- OpenEMS The open source energy management system
- EMHASS Energy Management for Home Assistant: optimize your home energy usage automatically
- OpenEVSE WiFi firmware OpenEVSE WiFi gateway firmware for ESP32
