The item definition Battery_C1 to Battery_C16 are for the Cell voltages
All you have to do is to define a separate thing- and item file for each battery pack.
name the thing as you like it and replace in the item file the below bold marked parts
Number **Battery**_C1 "Zelle 1 [%.3f V]" { channel="mqtt:topic:myBroker:**batteryVoltage**s:cell1" }
Battery with your name for the Battery Pack e.g. Battery_1
batteryVoltage with the name defined in the thing file
Thing topic **batteryVoltages** "PV Battery One" {
In the widget

Add in “Batterypack Item” the first part of the itemnames e.g. “Battery_1”
If you are using the the sissi ESPHome than take care that Max Cell ID and Min Cell ID deliver only numbers and the widget function to highlight the cell is based on “C” and the Cell ID
There you have two possibilities
Modify the widget or modify the incoming values with a JS.file which add at the beginning of the Cell Numer a “C”
And in the Thing-File you don’t need this part
“, transformationPattern=“JSONPATH:$.value””
Update: For highlighting the cells I have modified the code, now only the cell number is checked