Reprogramming thermostats to save energy