Repository navigation
Coming in 2.0.0: one grid import limit instead of two — and peak shaving that works all day #506
Replies: 9 comments 5 replies
|
|
This not pure "contracted power" or "capacity peak shaving": Don't know how good your dutch is, but look at #523. In short: peak shaving can be used (with the help of automations) to make sure the battery loads / unloads at high power (above eg 2000W) only. |
|
This feature will be a game changer for me. I can't wait to get version 2.0.0. As for the feedback you asked: Does the automatic migration (keeping the lower of your two numbers) do the right thing for your setup? Yes. Anyone relying on peak shaving's limit being different from their contracted power for a reason I haven't thought of? No. For those on a capacity tariff: is instantaneous-vs-15-minute a real cost for you, or academic? Instantaneous is close to the perfect solution. If you want a 15 minute solution, I do not see how you would decide when exactly to let the battery discharge or not within a 15 minute interval. And the risk that the battery kicks in too late is real (especially if grid consumption increases towards the end of the interval). I prefer to be on the safe side with the instantaneous approach. |
|
@ffunes hope you had a great vacation. Regarding the peak limit or maximum grid power (whatever the name of the one single limit will be then in future): I would have one request on the configuration. Sounds a bit strange at first, but I have a setup in place where my defined grid meter for Omnibattery is a virtual (calculated) one which is different to the actual physical grid meter. So far it wasn't a problem, but with the new law in Austria in the future it will be charged on physical limit of course. I fully understand that this is a very special case and probably not too many people will have this issue but any chance this could be made optional? I'd like to avoid making a fork for my own usage only for this one functionality. |
|
In Belgium, the minimum capacity limit one will be charged for is 2,5kW. So even if the monthly peak stays below 2,5kW, we are still charged for the 2.5kW. |
You can update this with a automation and template sensors with a minimum value and if clause. I could show you if needed |
Feedback on "Instantaneous vs 15-Minute Billing Window" (Discussion #506)To answer your question directly: Yes, for users subject to the Flemish Capacity Tariff (capaciteitstarief), the difference between instantaneous capping and a 15-minute billing-window controller is extremely real, economically significant, and critical for battery health. Since grid pricing models vary widely across Europe (e.g., Spain's hard breaker limit vs. Belgium's rolling quarter-hour average), here is a brief breakdown of how the Flemish capacity tariff works, why instantaneous capping is suboptimal here, and how Home Assistant can easily leverage native P1 DSMR data to solve this. How the Flemish Capacity Tariff (capaciteitstarief) Works
Why Instantaneous Capping is Suboptimal for Capacity TariffsIf Omnibattery caps purely on instantaneous power (e.g., triggering a discharge the millisecond grid power touches 2500 W):
How P1 DSMR Meters Expose This (Visible in Attached Screenshots)Modern P1 meter integrations in Home Assistant (such as the HomeWizard P1 meter) natively output official DSMR telegram sensors:
(As shown in my attached Home Assistant screenshots, these sensors provide the exact live window metrics required to make billing-aware decisions). Proposed Billing-Window Control Logic & Important CaveatInstead of slamming the battery immediately when instantaneous power breaches the target threshold:
Adding an optional 15-minute billing-window mode (while respecting hardware power limits) would completely eliminate micro-discharges, prolong battery lifespan, and provide flawless protection against the Flemish capacity tariff! |
|
Follow-up to the 15-min window (2.0.0, #506 step 4): optional spike allowance Thanks for the window: it already lets a kettle through after a few quiet minutes. One opt-in addition, off by default. Problem Proposal: Spike allowance (% of the quarter budget; 0 % = today's behaviour)
When any of them fails, today's window logic takes over unchanged, on the budget that is left. Worst case, a quarter ends about Why bounded instead of "wait until the battery is really needed"
Deferring to the last moment spends exactly the slack that absorbs a second appliance, induction pulses and battery lag, so your "never bet" rule is right for that version. The bounded version kept the same worst quarter (within 3 W with a 10 s dead time) and took the 1-minute kettle above to 0 kWh and 0 battery starts. The gain is modest, hence opt-in; your replay harness would give the real numbers. Setup for context: 6× Marstek Venus E v3, P1 meter, Flanders capacity tariff, target ≤ 2.5 kW all year. |




Uh oh!
There was an error while loading. Please reload this page.
The short version
Today Omnibattery has two separate settings that mean the same thing, and a peak shaving feature that only works when your battery is nearly empty. In 2.0.0 these become one setting that works all day.
This is a breaking change for some setups. Here's what to expect and what you'll need to do.
What's wrong today
Two settings, one meaning. "Max contracted power" and "Peak limit" both answer the same question — how much power am I willing to see on my meter? — but they're configured in different places, have different defaults (7000 W vs 2500 W), and do different things. One only slows down battery charging. The other only forces a discharge, and only under a condition most people don't realise they've set.
The cap only applies when the battery is nearly empty. Peak shaving today only kicks in below your SOC threshold. Above it, there is no limit on grid import at all. Most of the time that doesn't matter — the battery covers the house anyway — but it fails exactly when you need it: when the house pulls more than the battery can deliver, or when the battery is deliberately idle (price too low to discharge, outside a time slot window, EV charger pause).
This is what's behind #483: peak limit set to 4.5 kW, SOC threshold 20%, and peaks of 5.7 kW going through, because the battery was above 20% and the limit simply wasn't being applied. It isn't an occasional glitch — it's how it currently works.
What changes in 2.0.0
One limit, always on. A single "maximum grid import" setting. It caps battery charging and forces a discharge when your house goes over it — all day, at any state of charge, whether or not you've turned peak shaving on.
Peak shaving becomes what its name suggests: a reserve. The switch and the SOC threshold stay, but they now control only one thing — when the battery gets low, stop spending it on ordinary consumption and save what's left for a real peak. It no longer has a limit of its own; it uses the global one.
The limit wins over economics and scheduling. If your house is over the limit, the battery discharges even if the price says don't, even outside a time slot window, even during an EV charger pause. Physical limits still win: minimum SOC, temperature, a battery that's offline. It will never violate those.
Why one number is enough
The two markets this feature serves want the same thing, just with different consequences:
Both want a continuous ceiling on metered import. And in practice you're already doing this — the monthly-peak sync blueprint writes your billed peak into the peak limit field. In a capacity-tariff market, that setting already is the ceiling. This change just admits it.
One thing worth saying plainly: if you set the reserve limit low (say 2500 W) to "shave meaningful peaks", you were actually burning the battery on every moderate 2.6 kW moment and arriving at the real 6 kW peak with nothing left. Reserving against the actual ceiling is the behaviour you probably wanted.
What breaks, and what you need to do
1. The "Peak limit" setting disappears. On upgrade, your limit is migrated automatically: if you had peak shaving enabled, you keep the lower of your two numbers. If you didn't, you keep your contracted power. Please check the resulting value after upgrading — the migration errs on the safe side, so some of you will end up with a lower ceiling than you expect, which means more battery use.
2. The monthly peak sync blueprint needs re-importing. If you use the automation that writes your monthly peak into Omnibattery, it points at a setting that no longer exists. An updated version ships with 2.0.0 — re-import it and re-select your peak sensor.
3. The limit becomes always-on. If you never enabled peak shaving and never thought about your contracted power setting, the battery will now start covering peaks it previously let through. For most people that's the point. If your contracted power was left at the 7000 W default and that's wrong for your home, set it correctly before upgrading.
What this does not do
It can't protect you from a peak bigger than your battery. If your house pulls 8 kW, your ceiling is 5.75 kW, and your battery can only deliver 2.5 kW, you will still go over. This is best-effort mitigation, not a guarantee. 2.0.0 will at least tell you when it couldn't cover a peak, instead of failing silently.
It works on instantaneous power, not a 15-minute average. Belgian capacity tariffs are billed on the 15-minute mean, so a flat instantaneous ceiling is conservative: it will discharge for short spikes that would never have been billed. It's safe, just not optimal. A billing-window mode is a candidate for later — tell me if it matters to you.
Feedback wanted
Timing: this lands in 2.0.0, not in the 1.5.0 line currently in beta. That release stays as it is.
All reactions