def status(self): target = nest.get_target_temp() ambient = nest.get_ambient_temp() if target == ambient: return "Temperature is on target at " + str(target) else: return "Target temperature is " + str(target) + " (currently " + str(ambient) + ")"
def decrease(self, amount): nest.adjust_target_temp(int(amount)*-1) return "Decreased temperature to " + str(nest.get_target_temp())
def increase(self, amount): nest.adjust_target_temp(amount) return "Increased temperature to " + str(nest.get_target_temp())