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.
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.
The chart needs JavaScript. The numbers above are the result of the simulation.
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.
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.
| Situation | Today | With this idea |
|---|---|---|
| Window open 20 min | 388 min · 8.2 K·h | 52 min · 1.6 K·h |
| Night setback 3 °C | 352 min · 7.9 K·h | 92 min · 2.5 K·h |
| Kp changed 20 → 25 | 441 min · 8.0 K·h | 0 min · 0.5 K·h |
| Manual 50 % for 3 h | 340 min · 5.4 K·h | 46 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.
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.
The chart needs JavaScript. The numbers above are the result of the simulation.
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.
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.
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.
The chart needs JavaScript. The numbers above are the result of the simulation.
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.
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.
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.
The chart needs JavaScript. The numbers above are the result of the simulation.
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.
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.
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.
The chart needs JavaScript. The numbers above are the result of the simulation.
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.
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 20 | Xp = 100 / Kp = 5 °C |
| Ki 0.133 | Tn = Kp / Ki = 150 min |
| Kd 0 | Tv = Kd / Kp = 0 min |
| Ki 0 | Tn “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
| System | Xp / Tn | Kp | Ki | PWM period |
|---|---|---|---|---|
| Floor heating | 5 °C / 240 min | 20 | 0.083 | 20 min |
| Radiators | 5 °C / 150 min | 20 | 0.133 | 15 min |
| Electric direct heating | 4 °C / 100 min | 25 | 0.25 | 10 min |
| Fan coil (0–10 V valve) | 4 °C / 90 min | 25 | 0.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
- PID controller in the documentation, with its own simulator.
- Hysteresis controller for on/off heating without PID.
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
Sign in with your TapHome account to comment. The team approves comments before they appear.
No comments yet.
·
The original comment was deleted.
Ideas describe direction, not commitments. We do not publish dates; released features are announced in the release notes.
Sign in with your TapHome account to follow. We email you when something changes; unsubscribe in one click.
Want to know when this moves forward?
Follow this idea to get an email when its status changes. Unsubscribe in one click.
Sign in with your TapHome account to follow. We email you when something changes; unsubscribe in one click.
Confirming your vote…