Water treatment and heating system of the building