The aim of this work is to develop a model of heat supply to buildings with almost zero energy consumption, indicating the significant importance of heat losses and gains in heating installations. The prepared model is to indicate the need for changes in the structure and topology of heating installations, resulting from the changing heat demand of buildings. The need to create a new model is heightened by changes that relate to tightening legal regulations related to energy consumption and demand, which must meet the standards of buildings in Poland from 2021. The article presents the assumptions and results of analyses of the use of energy installations in residential buildings that use renewable energy sources to balance energy consumption in various areas of its use. To achieve this goal, calculations were made using simulations of the impact of the use of installations using renewable energy sources on the energy performance of a building with different quality of partitions and improvement of energy efficiency in accordance with the Polish standard PN-EN 12831. The test results allow to choose the most advantageous, from the point of view of economic profitability, option of replacing installations in residential buildings, and they also allow to determine the possibilities of meeting national obligations in the field of final energy reduction and increasing the share of renewable energy sources in meeting its demand in accordance with the EU obligations imposed on Poland. Thermomodernization of buildings in the temperate climate zone allows for a reduction of 38% of energy demand over the entire life cycle of a building and a reduction of CO2 emissions by 99%.