Kinda already exists and some implementations suck
https://www.vox.com/recode/22543678/smart-thermostat-air-con...