This is a copy from chilitechno/SiriProxy-NestLearningThermostat