In rooms with underfloor heating (UFH), local on-off controllers most often regulate the air temperature with poor accuracy and energy penalties. It is known that proportional-integral (PI) controllers can regulate most processes more precisely. However, hydronic UFH systems have long time constants, especially in low-energy buildings, and PI parameters are not easy to set manually. In this work, several potential PI parameter estimation methods were applied, including optimizing the parameters in GenOpt, calculating the parameters based on simplified models, and tuning the parameters automatically in Matlab. For all found parameter combinations, the energy consumption and control precision were evaluated. Simpler methods were compared to the optimal solutions to find similar parameters. Compared with an on-off controller with a 0.5 K dead-band, the best PI parameter combination found was with a proportional gain of 18 and an integration time of 2300 s, which could decrease the energy consumption for heating by 9% and by 5% compared with default PI parameters. Moreover, while GenOpt was the best method to find the optimal parameters, it was also possible with a simple automatic test and calculation within a weekend. The test can be, for example, 6-h setbacks applied during the nights or weekend-long pseudo-random changes in the setpoint signal. The parameters can be calculated based on the simplified model from these tests using any well-known simple method. Results revealed that the UFH PI controller with the correct parameters started to work in a predictive fashion and the resulting room temperature curves were practically ideal.Energies 2020, 13, 2068 2 of 20 the input signal is, for example, the electricity price or other signal from the grid and the output of the optimization are the air temperature setpoints of the rooms [3].The setpoints in rooms have to be tracked by room-based controllers, such as thermostats or proportional-integral-derivative (PID) controllers, as the supervisory control can deal with optimization but not with the local fast changes [8]. PID is commonly known to be one of the best and easiest feedback controllers for any process. For buildings, as a relatively slow system, the derivative part is usually dropped and PI controllers are used instead. However, choosing improper PID gains (parameters) could result in making the whole system unstable. Therefore, designers and researchers often turn to optimal or predictive solutions [9].However, advanced solutions are not easy to implement and the need for robust and reliable solutions with minimal human interaction is evident. [10,11]. To simplify or avoid technicians' inputs to the systems, the control algorithms can be tested in realistic environments [12]. Also, building blocks have been developed to be compatible with detailed modelling so that engineers can do the tuning. However, the process is still not fully automated [13]. Auto-tuning of PID controllers for heating, cooling, and ventilation plants have been described both several ...