Gleanvolt

Gleanvolt charges your electric car from your own solar power. It talks directly to your hybrid
inverter and your EV charger on your home network, decides how much current the car should take from
moment to moment, and keeps the home battery out of it when you want it to. No cloud account, no
vendor app, nothing leaving your network.
It runs on a Raspberry Pi, a NAS, any 64-bit Linux machine or Windows, and you use it from its own
web UI. An HTTP API and Home Assistant integration are there if you want them.
The user manual takes you through installing, setting up and using it, step by step,
with screenshots. It is in English, and a Czech translation is under way.
What it does
Charge modes — pick one from the web UI, Home Assistant or the API:
| Mode | What you get |
|---|
| Solar | The car takes whatever the house doesn't use, once the home battery is full. |
| Forecasted | The car starts earlier, on the day's solar forecast, while the home battery is still planned to be full by evening. |
| Solar + grid | The sun, with a little grid to make a weak sun usable; it stops by itself when the day's sun is over. |
| Fast (no battery) | "I leave in an hour": maximum current from sun and grid, the home battery left alone. Optionally an amount, and a departure time to finish just in time. |
| Targeted | "22 kWh — or 80% — by 07:00, with as little grid as possible": paced to use the most sun. You see the plan before it starts. |
Every mode stops by itself when the car is full or unplugged. The service always starts with charging
off and writes nothing until you press a button.
And around them:
- Battery discharge hold — the home battery stops serving the house, so the
car charges from sun and grid, while the battery can still charge from surplus.
- Grid tariff — enter your low-tariff
hours (Czech HDO) and let
Fast and Solar + grid wait for them.
- Web UI — live figures, the charging plan, the forecast, every control, and the
history of every charge and every 15 minutes of your site. On by default, behind a password.
- The car's own battery level — from volkswagen.de, MyŠkoda, the VW Group EU
Data Act portal, or any car Home Assistant can see, so a target can be a percentage.
- HTTP API — everything the web UI can do, described by OpenAPI, for scripts
and for an MCP server that lets an AI assistant read and drive it.
- Home Assistant (optional) — a device with a button per mode and a
sensor for every figure, over MQTT discovery.
- Local — it keeps working through an internet outage. The only outside services are the
optional solar forecast (Solcast), weather and the car's manufacturer.
Supported hardware
Inverters — over Modbus TCP:
| Manufacturer | Models | Driver | Tier |
|---|
| SolaX | X3-HYB-G4 PRO; X3/X1-Hybrid G4, X1/X3-IES, X3-Ultra, X3-Aelio, X1-VAST; G2/G3 hybrids | solax | Verified (G4 PRO); Expected; readings and charging only (G2/G3) |
| Huawei | SUN2000 KTL-M1, K-MAP0, KTL-L1, K-LC0, also behind an EMMA | huawei | Expected — not yet run on a device |
| Tigo, Qcells | TSI X3, Q.VOLT HYB-G3-3P — SolaX inside | solax | Expected |
| Dražice | IN.HYBRID COMPACT, COMPACT PRO, COMPACT S, COMPACT M — SolaX models by datasheet | solax | Expected, if the unit is SolaX hardware |
| Others | — | — | Not supported yet (GoodWe is planned) |
EV chargers — each through its plugin, from gleanvolt-chargers:
| Manufacturer | Models | Plugin | Tier |
|---|
| SolaX | X1/X3-HAC; the other HAC variants; X1/X3-EVC | solax | Verified (X1/X3-HAC); Expected |
| Huawei | SCharger-7KS-S0, SCharger-22KT-S0 | huawei | Expected |
| go-e | Gemini, Gemini flex, HOMEfix, HOME+ (hardware V3 or later) | goe | Expected |
| Shelly | TopAC Portable EV Charger (EVE01-11R) | shelly | Expected |
| Others | — | a plugin someone writes | Not supported yet |
The plugin's name is its compose profile, its name in GLEANVOLT_PLUGINS and its image,
ghcr.io/mpospisil/gleanvolt-plugin-. Each README in gleanvolt-chargers has the models, the setup and the
hardware's caveats.
Verified means run on the reference installation (SolaX X3-HYB-G4 PRO, SolaX X1/X3-HAC, VW ID.4);
Expected means the same registers per the manufacturer's or the community's documentation, not yet
run. Every model, its caveats and the tiers are in
Supported PV systems.
- Home battery — whatever your inverter manages; Gleanvolt reaches it through the inverter.
- Car — any car with a Type 2 AC inlet. See Supported electric vehicles.
- Host — any 64-bit Linux (x86-64 or arm64), a Raspberry Pi with Raspberry Pi OS 64-bit, a
64-bit NAS, or Windows. Not 32-bit ARM.
Get started
1. Install
Install Gleanvolt on the machine that will run it, then finish in the browser (step 2). The manual's
Installation chapter has each of these step by step, including how to
prepare your inverter and charger.
Raspberry Pi, Debian or Ubuntu (64-bit) — recommended. On the device itself, one command installs
Gleanvolt as a system service, with no Docker and no .NET to install:
curl -fsSL https://github.com/mpospisil/gleanvolt/releases/latest/download/install.sh | sudo sh
Running it again upgrades; settings and data are kept. More in
Install on Linux.
Docker on any 64-bit Linux host — one docker run; see Running in Docker.
A NAS (Synology, QNAP, Unraid, TrueNAS SCALE) — add
deploy/docker-compose.nas.yml in the NAS's container UI. See
Running on a NAS.
Windows — every release is published to winget,
the Windows Package Manager:
winget install MartinPospisil.Gleanvolt
gleanvolt
Then open http://localhost:8090. Gleanvolt runs in that terminal window for as long as it is open; it
is not installed as a Windows service. Its settings, history and logs are kept in data\ and logs\
beside the program, in winget's package folder under %LOCALAPPDATA%\Microsoft\WinGet\Packages\.
Upgrade with winget upgrade MartinPospisil.Gleanvolt, after copying data\ somewhere safe. Without
winget, download gleanvolt--win-x64.zip from
Releases, unzip it and run Gleanvolt.Worker.exe.
With an AI agent. If you use Claude Code, Codex CLI, Cursor, Gemini CLI or another agent that
reads SKILL.md skills, the two agent skills install Gleanvolt and walk you through the
setup, following the manual: gleanvolt-install and gleanvolt-setup.
Advanced: Docker on a Pi, managed from another computer. The scripts in deploy/ deploy, update
and roll back a Docker container on a Raspberry Pi over ssh, from a checkout of this repository — and
can run Home Assistant and an MQTT broker beside it. See
Deploying to a Raspberry Pi from your computer.
> Home Assistant on the same device? Don't run the Home Assistant container on a low-powered Pi
> (less than 2 GB of RAM). See Gleanvolt with Home Assistant.
2. Set it up
Open http://gleanvolt.local:8090 from any device on the same network, or
http://:8090 where .local names don't work. Choose a password, then the
setup wizard searches your network for the inverter and asks for the site. The charger is a plugin,
started with the provider token the wizard's last step makes; the solar forecast, the car and the grid
tariff are on Settings. See
The setup wizard in the manual. Prefer a terminal? The setup command
does the same (command line).
3. Check, then charge
Gleanvolt now reads the devices and shows them on the Overview, but writes nothing: charging is
off and the battery hold is disabled. Check the figures against your inverter's and charger's own
displays first. Then pick a mode on Charging plan: see
Which mode should I choose?.
Use at your own risk
Gleanvolt writes to your hardware: it starts, stops and throttles the EV charger, and the battery
hold changes the inverter's battery behaviour. A wrong register address, a firmware that behaves
differently, a bug or a configuration mistake can leave the home battery drained or held at the wrong
charge, exceed a grid-export limit, leave the car uncharged when you need it, or put a device into a
state you have to reset by hand. Changing a device's settings outside the manufacturer's own tools may
also affect its warranty.
You run it at your own risk. The software is provided as is, without any warranty, and to the
extent the law allows the author is not liable for any damage to inverters, batteries, chargers,
vehicles or other equipment, or for any loss arising from its use — see the No Liability section of
the LICENSE. Start with the write features off or in dry-run, check the readings against
your own devices, and watch the first runs.
Documentation
For using Gleanvolt, read the user manual. It is versioned with the releases, and the web
UI's Manual link opens the one for the version you run.
The pages below are the reference: every setting and configuration key, the reasoning behind the
modes, and the integrations the manual leaves out.
| Page | What it covers |
|---|
| Web UI | Every page, the password, setup mode and the setup wizard |
| Configuration | Where settings live, secrets, the PV system, the solar forecast, weather, the grid tariff |
| Finding your devices | The wizard's search and gleanvolt-discover |
| EV charge control | How the charger is driven: surplus, smoothing, the 6 A floor, how modes end |
Forecasted, Solar + grid, Fast, Targeted | One page per charge mode |
| Battery discharge hold | Keeping the home battery out of the car's charge |
| The car and its telemetry | The car's limits, and the feeds that report its battery |
| Charging session and energy history | What is recorded, and how to query it |
| HTTP API | The OpenAPI-described API, for programs and MCP servers |
| Gleanvolt with Home Assistant | Connecting it, running Home Assistant beside it, and every entity |
| Install on Linux | The one-line install: settings, files, upgrade and uninstall |
| Running in Docker | One container on any Docker host |
| Running on a NAS | Synology, QNAP, Unraid, TrueNAS SCALE and OpenMediaVault |
| Deploying to a Raspberry Pi from your computer | Advanced: Docker on a Pi, managed over ssh; updates, logs, backup, troubleshooting |
| Supported PV systems, electric vehicles | Every model, how well it is supported, and what Gleanvolt needs from it |
| Troubleshooting | Symptoms, their causes and the fixes |
| Privacy | What leaves your network, and when |
Building from source or contributing? See CONTRIBUTING.md.
License
Licensed under the PolyForm Noncommercial License 1.0.0. It comes without any warranty
and without liability for damage — see Use at your own risk.
Free for any noncommercial purpose, which includes running it on your own home installation,
hobby and amateur use, and use by charities, schools, public research bodies and government
institutions. No registration, no key, no telemetry — clone it, build it, run it.
Commercial use requires a separate licence from the copyright holder. If you install, operate or
resell this for clients, bundle it with hardware, or run it as part of a business, please
open an issue or email m.pospisil76@gmail.com
— it is usually a short conversation.
This applies to the published container images too: they carry the licence at /app/LICENSE and the
org.opencontainers.image.licenses label, and pulling one is not a commercial licence.
Source code up to and including commit 00de500 (tag mit-final) was published under the MIT License
and remains available under it (LICENSE-MIT) — a licence change cannot withdraw
permissions already granted. The new terms apply to everything released after that commit.
The provider SDK is MIT. Gleanvolt.Providers.Contracts, Gleanvolt.Providers.Client,
Gleanvolt.Providers.Testing, Gleanvolt.Chargers.Hosting and Gleanvolt.Modbus
(src/Gleanvolt.Providers.Contracts,
src/Gleanvolt.Providers.Client,
src/Gleanvolt.Providers.Testing,
src/Gleanvolt.Chargers.Hosting and src/Gleanvolt.Modbus)
are under the MIT License, in the LICENSE file in each directory, so that a plugin can be under any
licence its author chooses. They are published on nuget.org. See docs/PROVIDERS.md.
Third-party components keep their own licences, and nothing here restricts them — every dependency is
permissive (MIT or Apache-2.0), with the versions, copyright holders and full licence texts listed in
THIRD-PARTY-NOTICES.md. That file ships inside the container images and the
packages too.
Contributions are welcome and need a sign-off; see CONTRIBUTING.md and
CLA.md for what that means and why this project asks for it.