code: def is_on(self):
          
          return self.status not in (CONST.STATUS_OFF, CONST.STATUS_OFFLINE,
                                     CONST.STATUS_CLOSED, CONST.STATUS_OPEN)
docs: Get sensor state.
  
          Assume offline or open (worst case).