owenversteeg parent
A lot of thermostats already do that. Unfortunately these programs are not terribly popular. People see that the temperature is off and complain. Look up people talking about Nest Energy Shift (different but somewhat similar idea), most comments are quite negative.