How to list all sensors with attribute = ‘battery_level’

My battery state is not a sensor, but a attribute of a sensor. That’s why I didn’t work for you.
Maybe this is a solution: 🔋 Lovelace: Battery state card