The paper presents an innovative method for smoothing fluctuations of heat flux, using the thermal energy storage unit (TES Unit) with phase change material and Artificial Neural Networks (ANN) control. The research was carried out on a pilot large-scale installation, of which the main component was the TES Unit with a heat capacity of 500 MJ. The main challenge was to smooth the heat flux fluctuations, resulting from variable heat source operation. For this purpose, a molten salt phase change material was used, for which melting occurs at nearly constant temperature. To enhance the smoothing effect, a classical control system based on PID controllers was supported by ANN. The TES Unit was supplied with steam at a constant temperature and variable mass flow rate, while a discharging side was cooled with water at constant mass flow rate. It was indicated that the operation of the TES Unit in the phase change temperature range allows to smooth the heat flux fluctuations by 56%. The tests have also shown that the application of artificial neural networks increases the smoothing effect by 84%.