Picture-elements-card with dynamic data

Hello
Is it possible to work with dynamic data in the picture elements card?
The background is that I have 360 ​​images for the moon phase, which are mapped in a sensor. But I don’t get it somehow with:

image: / local / moon / * sensorwert * .png

to generate something.

I don’t really feel like generating 360 lines with state_image.

It would go through the state badge with the corresponding entity image, but I don’t think the state badge look is so nice.

Thanks for your help

Look up the config template card. It might be just what you need.