TapHome
Gathering interest Feature

PID controller: keep the learned integral, show proportional band and integral time, presets per heating system

The PID controller would stop throwing away what it has learned when a window opens, after a night setback, during manual mode or when you fine-tune Kp — and it would offer the proportional band, the integral time and presets per heating system.

Why and how you would use it

A PID controller keeps a room at its set point with two parts. The proportional part reacts to the deviation right now. The integral part slowly learns how much heat the room needs all the time — on a cold day maybe 60 % of the valve — and holds it there even when the deviation is zero.

In a slow system such as radiators or floor heating, learning that takes hours. Today the PID controller in TapHome throws it away in situations that happen every day: a window opens, the night setback ends, someone fine-tunes Kp in the app. With the slow tuning that suits such systems, the room then stays below the set point for hours, and it looks like a bad setting.

Case 1 · Airing the room

20 minutes of fresh air. Why is the room cold for hours?

A radiator room settled at 21 °C. At 10:00 a window contact switches the heating off. Press Play.

TapHome today 388 min more than 0.3 °C off the set point 8.2 K·h off the set point
With this idea 52 min more than 0.3 °C off the set point 1.6 K·h off the set point

Today the controller forgets. When the window closes, Core 2026.1 restarts with the integral at zero, so the heat the room needs all the time is gone. Even five minutes of airing cost hours. With this idea the integral is held while the window is open.

Radiator room with the preset Kp 20 / Ki 0.133. On the default Kp 10 / Ki 0.5 a reset costs less, but the room swings (case 5). Core 2026.1 controller replayed exactly; simple room model.Simulation

How it would work. While the window is open, the controller would freeze the integral instead of resetting it when the window closes. The room then starts again with the heat it needs all the time, and only the proportional part has to make up for the cooled air.

SituationTodayWith this idea
Window open 20 min388 min · 8.2 K·h52 min · 1.6 K·h
Night setback 3 °C352 min · 7.9 K·h92 min · 2.5 K·h
Kp changed 20 → 25441 min · 8.0 K·h0 min · 0.5 K·h
Manual 50 % for 3 h340 min · 5.4 K·h46 min · 2.0 K·h

Minutes more than 0.3 °C off the set point, too cold or too warm; 1 K·h = 1 °C off for one hour. Radiator room with the recommended preset Kp 20 / Ki 0.133. On the default Kp 10 / Ki 0.5 a reset costs less, but that tuning keeps swinging (case 5) — today you choose between resets that hurt and tuning that swings.

What will be possible

We are evaluating this idea. Nothing is scheduled yet.

  • Anti-windup instead of resets. The controller would stop adding up the deviation only while the valve can do no more — at 100 % or 0 % with the deviation pushing further. A set point step of 2 °C would no longer reset the integral. The “Max accumulated integral” setting stays.
  • The integral held during a short limiting condition. While a window is open, the learned integral would stay and the controller would continue where it stopped. After a long block, such as the heating season switched off, it would start fresh.
  • The integral held during manual mode. While someone else drives the output, the controller would not integrate.
  • Edit without a jump. Saving a new Kp or Ki would keep the output at that moment and only change what follows.
  • The integral kept over a short outage. A restart of the control unit or a sensor gap of more than about 13 minutes would no longer reset it.
  • Separate integral speeds for building up and backing off. For heating and for cooling you could set how fast the integral grows while the room is short of heat and, separately, how fast it falls back when the room gets too warm — for example to back off quickly when the sun or a fireplace warms the room.
  • Proportional band and integral time in the app. Next to Kp, Ki and Kd you would see and set Xp (°C), Tn and Tv (minutes), like on KNX room controllers.
  • Presets per system. Floor heating, radiators, electric heating and fan coils would each start from a proven tuning instead of one default.

What will not be possible

  • Auto-tuning. The controller would not measure the room and tune itself.
  • Optimum start. It would not start heating earlier so that the room reaches the set point at a given time.
  • Mixing valves on supply water. A fast supply-water loop with a three-point actuator needs a different controller; that is a separate idea.

How to solve it today

  • Raise the reset threshold above your setback. In the advanced settings of the rule, the set point change threshold (2 °C by default) decides which step resets the integral. Set it above the depth of your night setback, for example 4 °C for a 3 °C setback, and the morning starts with the learned integral — see when the controller resets the integral. The integral can then wind up while the valve is fully open.
  • Tune once, then leave it. Every save resets the integral, so change Kp and Ki in one step and wait several hours.
  • Use a preset from the documentation. The recommended values by system are the same as in this idea; with them a reset costs more, as the documentation says.
  • Window and manual mode: there is no workaround today; the integral is reset after a limiting condition and keeps changing during manual mode. Keep manual mode short.

Four more cases

Each simulation runs the TapHome Core 2026.1 controller twice: grey is today, blue is with this idea.

Case 2 · Morning after a night setback

Night setback by 3 °C. Why is the morning so slow?

The set point drops at 22:00 and returns to 21 °C at 06:00. Try a depth below and above 2 °C.

TapHome today 352 min more than 0.3 °C off the set point 7.9 K·h off the set point
With this idea 92 min more than 0.3 °C off the set point 2.5 K·h off the set point

Today a set point step of at least the reset threshold (2 °C by default) resets the integral — a guard against wind-up. Below it nothing changes; from 2 °C the morning takes hours. With this idea the controller only stops integrating while the valve is at 100 % or 0 % and the deviation pushes further, so no reset is needed.

Counted from 06:00. Radiator room with the preset Kp 20 / Ki 0.133. On the default Kp 10 / Ki 0.5 a reset costs less, but the room swings (case 5). Core 2026.1 controller replayed exactly; simple room model.Simulation

How it would work. Instead of a reset at a set point step, the controller would only stop integrating while the valve is at 100 % or 0 % and the deviation pushes further (anti-windup). That alone keeps the integral from winding up during the setback, so the reset threshold would no longer matter.

Case 3 · Fine-tuning in the app

One small change of Kp. Why does the room cool down?

The room is settled at 21 °C with Kp 20. At 10:00 the installer saves a new Kp.

TapHome today 441 min more than 0.3 °C off the set point 8.0 K·h off the set point
With this idea 0 min more than 0.3 °C off the set point 0.5 K·h off the set point

Today every save of the rule resets the controller, so a careful tuning step looks like a bad setting and the room cools down for hours. With this idea the output stays the same at the moment of the change and only the new behaviour follows.

Radiator room with the preset Kp 20 / Ki 0.133. On the default Kp 10 / Ki 0.5 a reset costs less, but the room swings (case 5). Core 2026.1 controller replayed exactly; simple room model.Simulation

How it would work. When you save a new Kp or Ki, the controller would recalculate the integral so that the output stays the same at that moment (a bumpless change). Only what follows uses the new tuning.

Case 4 · Three hours in manual mode

Valve at 50 % for three hours. Why is the room too warm after?

At 10:00 someone sets the valve to manual mode for three hours. The room needs about 64 % — try less and more.

TapHome today 340 min more than 0.3 °C off the set point 5.4 K·h off the set point
With this idea 46 min more than 0.3 °C off the set point 2.0 K·h off the set point

Today the controller keeps integrating while it is not in charge. Below what the room needs, the room cools, the integral winds up, and after manual mode the room overheats for hours. With this idea the integral is held and the controller continues where it stopped. At 0 % both give the same result.

Counted from the end of manual mode. Radiator room, preset Kp 20 / Ki 0.133; Core 2026.1 controller replayed exactly.Simulation

How it would work. While the user or another rule drives the output, the controller would not integrate. Back in charge, it continues from the integral it had learned before manual mode.

Case 5 · Default tuning or a preset

Floor heating on default tuning. Why does it keep swinging?

Held at 18 °C, set point 21 °C from 06:00: the default tuning against the preset for the system.

Default Kp 10 / Ki 0.5 860 min more than 0.3 °C off the set point 19.5 K·h off the set pointAfter 8 h: 18.9–22.8 °C
Preset 87 min more than 0.3 °C off the set point 1.9 K·h off the set pointAfter 8 h: 20.6–21.0 °C

The default tuning has an integral time of 20 minutes; room controllers use 90 to 240. The preset follows KNX room controllers: band 5 °C, integral time 240 min (floor) or 150 min (radiators). You can enter it today; the idea puts it in the app. A preset is not free: on radiators the warm-up takes longer.

Floor counted after 8 h, radiators from 06:00. Core 2026.1 controller replayed exactly.Simulation

How it would work. The app would offer a preset per system and show the proportional band and the integral time next to Kp and Ki (tables below). The preset values can already be entered by hand today.

Proportional band and integral time

Kp, Ki, Kd (today)Band and times (with this idea)
Kp 20Xp = 100 / Kp = 5 °C
Ki 0.133Tn = Kp / Ki = 150 min
Kd 0Tv = Kd / Kp = 0 min
Ki 0Tn “Off” (proportional only)

Today Kp and Ki are set separately, so changing Kp alone also changes the integral time Tn = Kp / Ki. With Xp and Tn, a narrower band strengthens both parts together and keeps their balance.

Presets per system

SystemXp / TnKpKiPWM period
Floor heating5 °C / 240 min200.08320 min
Radiators5 °C / 150 min200.13315 min
Electric direct heating4 °C / 100 min250.2510 min
Fan coil (0–10 V valve)4 °C / 90 min250.278—

These are the values most KNX room controller manufacturers use. Today’s default Kp 10 / Ki 0.5 has an integral time of 20 minutes. With thermal actuators, do not use a PWM period shorter than 15 minutes.

Learn more

Does your heating lose hours after a window or a setback? Vote for this idea and follow it.

Related

Status history

  • Nov 13, 2026 Gathering interest Published

Comments 0

Join the discussion

Sign in with your TapHome account to comment. The team approves comments before they appear.

No comments yet.

Ideas describe direction, not commitments. We do not publish dates; released features are announced in the release notes.