예제 #1
0
 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) + ")"
예제 #2
0
 def decrease(self, amount):
     nest.adjust_target_temp(int(amount)*-1)
     return "Decreased temperature to " + str(nest.get_target_temp())
예제 #3
0
 def increase(self, amount):
     nest.adjust_target_temp(amount)
     return "Increased temperature to " + str(nest.get_target_temp())