https://en.wikipedia.org/wiki/KosherSwitch
I believe thermostats are okay, as long as you don't adjust it. Many observant Jews use timers on Shabbos.