Programmed regulation of temperature in rooms