adding setpoint comand, missing from last commit
Adds new, cleaner interface for thermostat devices
Saves state changes to cache