Re: I can handle this one
Nest is way more than that... It's all about house warm up cool down profiling, patterns of when you are home and when you aren't. Weather forecast dàta and other data inputs used to dermine when to heàt your house.
Your "çode" describes a conventional dumb thermostat.