zerohop/blog

$ cat peak-shaving-home-battery.md · 04 Dec 2026 · 4 min read

Peak shaving at home: two batteries, a charger and Home Assistant

#home-assistant#energy#modbus#homelab

Since 2023, electricity bills in Flanders include a capacity tariff: you pay for the average of your highest quarter-hour per month, about 60 euro per kW per year. A heat pump, an induction hob and a car charger running at the same moment make that number expensive.

The digital meter's P1 port gives the data for free. My monthly peaks over the past year: between 8 and 12 kW, almost always between 17:00 and 22:00.

The highest quarter-hour per month. November 2026 is the first month with the batteries.
The highest quarter-hour per month. November 2026 is the first month with the batteries.

The idea

Peaks are short. A typical bad evening is one or two hours above the limit, not the whole day. So you don't need a huge battery, you need enough power at the right moment, and a charger that knows when to back off.

The parts:

Batteries: from app to Modbus

Out of the box the batteries follow their own CT meter: charge on solar surplus, discharge to keep the grid at zero. Fine for self-consumption, but they don't know about peaks: by the evening they're often empty.

I moved both units to wired Ethernet, opened Modbus TCP, and let Omnibattery (a Home Assistant integration) drive them. It has a capacity protection mode: below a state of charge threshold the batteries stop doing self-consumption and only shave what goes above the limit. Above it, they work as normal.

On top of that, two small automations:

The charger: slow down instead of stop

The car is the biggest single load I can actually move. The rule: the car may never cause a peak, and the batteries never charge the car.

Every minute Home Assistant computes the room for the car:

textroom = peak limit - 500 W - (grid + battery discharge - car)

That's the house without the car and without the batteries. The current follows that room in steps of 6, 8, 10, 13 and 16 A. Down within 15 seconds when the house load jumps, up at most once a minute. If even 6 A doesn't fit, the charger pauses and resumes when there's room again.

The first version forgot the batteries in that formula. The result: the batteries covered the house, the grid looked quiet, and the car happily took 13 A. Without the batteries that would have been a peak. Count what your batteries deliver as grid load when you decide how much else may run.

What I ran into

Results so far

November 2026: 5.7 kW, against 9.4 kW a year earlier. And that 5.7 was set on the 6th, before peak shaving was even switched on; the rest of the month stayed under 5 kW. Early December sits at 4.8 kW with the limit at 4.8.

One month is not a year, and winter evenings are the real test. But the approach works: measure first, find what actually causes the peaks, and only then decide what to buy and what to automate.

← all posts