예제 #1
0
 def coolOff(self):
     if (self.cool.value):
         self.cool.off()
         tracker.trackRelay('COOL', 0)
         self.cool_time = None
         logger.info('Cool OFF')
         return True
     return False
예제 #2
0
 def coolOn(self):
     if (not self.cool.value and not self.heat.value):
         self.cool.on()
         tracker.trackRelay('COOL', 1)
         self.cool_time = time.time()
         logger.info('Cool ON')
         return True
     return False
예제 #3
0
 def heatOff(self):
     if (self.heat.value):
         self.heat.off()
         tracker.trackRelay('HEAT', 0)
         self.heat_time = None
         logger.info('Heat OFF')
         return True
     return False
예제 #4
0
 def heatOn(self):
     if (not self.heat.value and not self.cool.value):
         self.heat.on()
         tracker.trackRelay('HEAT', 1)
         self.heat_time = time.time()
         logger.info('Heat ON')
         return True
     return False
예제 #5
0
 def fanOff(self):
     if (self.fan.value):
         self.fan.off()
         tracker.trackRelay('FAN', 0)
         self.fan_time = None
         logger.info('Fan OFF')
         return True
     return False
예제 #6
0
 def fanOn(self):
     if (not self.fan.value):
         self.fan.on()
         tracker.trackRelay('FAN', 1)
         self.fan_time = time.time()
         logger.info('Fan ON')
         return True
     return False