code: public JSONObject getCarpetModeState() throws CommandExecutionException {
          JSONArray ret = sendToArray("get_carpet_mode");
          if (ret == null) return null;
          return ret.optJSONObject(0);
      }
docs: Get the current carpet cleaning settings.
  @return The current carpet cleaning settings.
  @throws CommandExecutionException When there has been a error during the communication or the response was invalid.