What is the best way to show attributes in group

Hi,

i have a group who is showing different values from sensors like:

   - sensor.mysensor01
   - sensor.mysensor02
   - sensor.mysensor03
   - sensor.mysensor04

i would like to make the same kind of group with the value from attributes like:

  - sensor.mysensor01.attributes.battery_level
  - sensor.mysensor02.attributes.battery_level
  - sensor.mysensor03.attributes.battery_level
  - sensor.mysensor04.attributes.battery_level

i know i can make a sensor template and use the sensor template in my group, but is there a better/standar way to do that ?

depends on what you want the group to show for your batteries: Min battery? Max? Average?
Personally I would use a template sensor

in my case the battery_level indicate the actual level of the battery, so i just want to see the same value i can see in dev tools / dev-states

ok, I thought you wanted a group attributes.
In that case then yes you need template sensors