Worked example · Flemish Peak Planner

One evening, eight quarter-hours, one monthly peak: a worked example

A capacity-tariff peak builds up over fifteen minutes, but most dashboards only show it afterwards. This page works through one evening, quarter by quarter, using the same formulas as the Flemish Peak Planner. You can repeat every step with your own meter's P1 data.

Sample data: the household and its readings below are a constructed example, not a customer's data. The appliance schedule is chosen so every number is exact.

Formulas: from config/swf_flemish_peak_planner.yaml (SWF-050 v1.2.0) and the public grid core swf_grid.yaml. Line numbers refer to those files.

Billing rules: as the planner's guide summarises them from Fluvius. For current tariffs and amounts, use Fluvius' own page; this page quotes no €/kW figure.

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:

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.

Import register → quarter-hour averages
QuarterRegister at end (kWh)Imported (kWh)× 4 = average (kW)
17:00–17:154,812.5000.1500.600
17:15–17:304,812.8000.3001.200
17:30–17:454,813.1500.3501.400
17:45–18:004,813.8000.6502.600
18:00–18:154,814.8501.0504.200
18:15–18:304,815.5000.6502.600
18:30–18:454,815.6500.1500.600
18:45–19:004,815.8000.1500.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.

18:00–18:15 as the planner sees it (threshold 4.0 kW, margin 0.5 kW)
TimeElapsedQuarter average so far (kW)Live import (kW)Projected (kW)Status
18:0160 s2.6002.6002.600comfortable
18:02120 s2.6002.6002.600comfortable
18:03180 s2.6004.6004.200high
18:04240 s3.1004.6004.200high
18:06360 s3.6004.6004.200high
18:10600 s4.0004.6004.200high
18:14840 s4.1714.6004.200high

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.

Planner view with the dishwasher postponed
TimeElapsedQuarter average so far (kW)Live import (kW)Projected (kW)Status
18:04240 s3.1004.6004.200high
18:06360 s3.6002.6003.000comfortable
18:10600 s3.2002.6003.000comfortable
Both evenings side by side
QuarterAs it happened (kW)Dishwasher at 18:24 (kW)
17:00–17:150.6000.600
17:15–17:301.2001.200
17:30–17:451.4001.400
17:45–18:002.6002.600
18:00–18:154.2003.000
18:15–18:302.6002.600
18:30–18:450.6001.800
18:45–19:000.6000.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

  1. 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.
  2. Multiply the difference by four. That is the quarter's average offtake in kW.
  3. 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.
  4. 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

Want this for your own meter data? Request a peak diagnosis (part of the €99 setup review) →