I've tried a lot of methods, but my battery pack still shows a null value, so I can only ask for help from the forum to provide some ideas

The first thing that stands out to me is that you’re using a .rvt file type rather a .rfa which is a family template file.

Hi @2530191614 be sure you have the right ironpython package installed as well, and use a rft family template