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
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
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
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
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
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