1. The rule: average power over fifteen minutes
Fluvius describes a quarter-hour peak as the average offtake power during a fifteen-minute interval. The highest quarter in a calendar month becomes that month's peak. Billing then uses monthly and rolling values and a regulated minimum; the planner does not reproduce that billing pipeline, and neither does this page.
Quarters follow the clock: :00–:15, :15–:30, :30–:45 and :45–:00. The planner counts elapsed time the same way, with now().minute % 15 (line 104).
2. From kWh to kW: multiply by four
Average power is energy divided by time. A quarter is a quarter of an hour, so the quarter's average in kW is simply the kWh imported in that quarter × 4.
That is why a short heavy load counts for less than you might fear. A 2 kW kettle running for 3 minutes adds 2 × 3 ÷ 15 = 0.4 kW to that quarter's average, not 2 kW. What hurts is overlap: several loads that stay on together for most of the same quarter.
3. A sample evening, quarter by quarter
The sample household draws a steady 0.6 kW base load from 17:00 to 19:00. On top of that:
- microwave 0.9 kW, 17:20–17:30
- oven 2.0 kW, 17:39–18:24
- kettle 2.0 kW, 18:03–18:06
- dishwasher heating 2.0 kW, 18:06–18:21
Read the import register at every quarter boundary, take the difference and multiply by four. The register starts at 4,812.350 kWh at 17:00.
| Quarter | Register at end (kWh) | Imported (kWh) | × 4 = average (kW) |
|---|---|---|---|
| 17:00–17:15 | 4,812.500 | 0.150 | 0.600 |
| 17:15–17:30 | 4,812.800 | 0.300 | 1.200 |
| 17:30–17:45 | 4,813.150 | 0.350 | 1.400 |
| 17:45–18:00 | 4,813.800 | 0.650 | 2.600 |
| 18:00–18:15 | 4,814.850 | 1.050 | 4.200 |
| 18:15–18:30 | 4,815.500 | 0.650 | 2.600 |
| 18:30–18:45 | 4,815.650 | 0.150 | 0.600 |
| 18:45–19:00 | 4,815.800 | 0.150 | 0.600 |
The 18:00–18:15 quarter is the evening's highest at 4.200 kW: base, oven, kettle and dishwasher overlapped for most of it (0.150 + 0.500 + 0.100 + 0.300 = 1.050 kWh).
4. The monthly peak
Suppose the highest quarter so far this month was 3.4 kW (also sample data). When the 18:00–18:15 quarter closes at 4.200 kW, it becomes the new monthly peak. It stays there unless a higher quarter follows before the month ends; within a calendar month the value can only rise.
The planner does not calculate the monthly peak itself. sensor.swf_current_month_peak mirrors the value your meter integration reports, and is only available when that source reports W or kW and is not negative (lines 76–91). W is divided by 1,000, so HomeWizard, which reports W, works as is. That keeps the meter, not Home Assistant, as the source of truth: compare it with register 1.6.0 on the meter or with Mijn Fluvius.
5. What the planner shows while the quarter runs
Every 15 seconds (line 95) the planner keeps the energy already counted in this quarter and assumes the current import continues until the quarter ends:
{% set elapsed = (now().minute % 15) * 60 + now().second %}
{% set remaining = 900 - elapsed %}
{% set average = states('sensor.swf_current_quarter_average') | float(0) %}
{% set current = states('sensor.swf_grid_import_w') | float(0) / 1000 %}
{% if is_state('input_select.swf_peak_register_mode', 'cumulative_x4') %}
{# running value = energy so far x 4: it already holds the past #}
{{ (average + (current * remaining) / 900) | round(3) }}
{% else %}
{# running value = average over the elapsed part of the quarter #}
{{ (((average * elapsed) + (current * remaining)) / 900) | round(3) }}
{% endif %}
swf_flemish_peak_planner.yaml, lines 122–132. Live import comes from sensor.swf_grid_import_w, which is never negative: export counts as zero (swf_grid.yaml, line 46). The running average in the table below is an average over the elapsed part of the quarter (register mode elapsed_average, the default). If your meter reports energy so far × 4 instead (cumulative_x4, set with input_select.swf_peak_register_mode), that column reads lower, for example 1.44 kW instead of 3.6 kW at 18:06, and the projection comes out the same: 1.44 + 4.6 × 540 ÷ 900 = 4.2 kW. The guide's commissioning check tells you which kind your meter sends.
The status compares that projection with a threshold and warning margin you set yourself (lines 165–171):
{% if projected >= target %}high
{% elif projected >= target - margin %}watch
{% else %}comfortable
{% endif %}
The kit deliberately ships no recommended threshold. For this example we pick 4.0 kW with a 0.5 kW margin, so “watch” starts at 3.5 kW.
| Time | Elapsed | Quarter average so far (kW) | Live import (kW) | Projected (kW) | Status |
|---|---|---|---|---|---|
| 18:01 | 60 s | 2.600 | 2.600 | 2.600 | comfortable |
| 18:02 | 120 s | 2.600 | 2.600 | 2.600 | comfortable |
| 18:03 | 180 s | 2.600 | 4.600 | 4.200 | high |
| 18:04 | 240 s | 3.100 | 4.600 | 4.200 | high |
| 18:06 | 360 s | 3.600 | 4.600 | 4.200 | high |
| 18:10 | 600 s | 4.000 | 4.600 | 4.200 | high |
| 18:14 | 840 s | 4.171 | 4.600 | 4.200 | high |
At 18:03 the kettle switches on, live import jumps to 4.6 kW and the projection reaches 4.2 kW: high. Once the status has been high for one minute, the advisory automation raises a “Peak threshold forecast” notification with the projection, your threshold and the current monthly peak (advisory-alerts.yaml, lines 13–43). Headroom is 4.0 − 4.2 = −0.2 kW.
From 18:03 the load stays at 4.6 kW (the dishwasher takes over from the kettle at 18:06), so the projection holds at 4.2 kW and the quarter closes at exactly 4.200 kW. Note that this is a constant-load what-if. Early in a quarter it swings with whatever is running at that moment.
6. The what-if: start the dishwasher when the oven finishes
Same evening, same appliances, same energy, with one change: after the alert, the dishwasher is started at 18:24, when the oven switches off.
| Time | Elapsed | Quarter average so far (kW) | Live import (kW) | Projected (kW) | Status |
|---|---|---|---|---|---|
| 18:04 | 240 s | 3.100 | 4.600 | 4.200 | high |
| 18:06 | 360 s | 3.600 | 2.600 | 3.000 | comfortable |
| 18:10 | 600 s | 3.200 | 2.600 | 3.000 | comfortable |
| Quarter | As it happened (kW) | Dishwasher at 18:24 (kW) |
|---|---|---|
| 17:00–17:15 | 0.600 | 0.600 |
| 17:15–17:30 | 1.200 | 1.200 |
| 17:30–17:45 | 1.400 | 1.400 |
| 17:45–18:00 | 2.600 | 2.600 |
| 18:00–18:15 | 4.200 | 3.000 |
| 18:15–18:30 | 2.600 | 2.600 |
| 18:30–18:45 | 0.600 | 1.800 |
| 18:45–19:00 | 0.600 | 0.600 |
The kettle still triggers a short “high”, because the projection assumes the kettle keeps running. When it switches off at 18:06 without the dishwasher taking over, the projection drops to 3.000 kW: comfortable.
Total energy is the same in both versions: the register ends at 4,815.800 kWh either way. The evening's highest quarter falls from 4.200 to 3.000 kW, so the monthly peak stays at 3.4 kW. What that is worth on your bill depends on Fluvius' current rules and your other months. Check Fluvius; the planner makes no savings promise.
Check it against your own P1 data
- Note the import register (kWh) at two consecutive quarter boundaries, for example 18:00 and 18:15. If your meter splits import over two tariff registers, add both differences.
- Multiply the difference by four. That is the quarter's average offtake in kW.
- Compare it with your integration's quarter-average sensor at the end of that quarter, and the month's highest quarter with register 1.6.0 or Mijn Fluvius. Small timing and rounding differences can occur. A factor of 1,000 means a W/kW or kWh/kW mapping error.
- During a running quarter, plug the elapsed seconds, the quarter average and your live import into the formula above. The result should match
sensor.swf_projected_quarter_peak.
What the planner does, and what it does not
- Does: show the running quarter average, an end-of-quarter projection, headroom to your own threshold and the monthly peak; raise advisory alerts for your threshold and for missing data (after five minutes).
- Optional: pause one non-essential switch you explicitly choose. Off by default, and it needs two separate opt-ins.
- Does not: reproduce your Fluvius invoice, give tariff advice, guarantee savings, protect your main fuse or phases, or touch safety-critical or essential loads.
- Needs: a Flemish digital meter and a Home Assistant integration that reports live net-grid power plus the current quarter value and current month maximum in W or kW. Home Assistant's HomeWizard integration documents both demand values (in W); with DSMR the exact entities depend on your meter and integration version.
Want this for your own meter data? Request a peak diagnosis (part of the €99 setup review) →