code: def status(self, return_led=0):
          
          status = self.hub.get_device_status(self.device_id, return_led)
          self.logger.info("Dimmer %s status: %s", self.device_id,
                           pprint.pformat(status))
          return status
docs: Get status from device