There is a special thread for discussing config-template-card.
type: entities
entities:
- type: custom:config-template-card
variables:
- states['sun.sun'].state
entities:
- sun.sun
row:
type: section
label: "${vars[0]}"
- entity: sun.sun
- entity: sun.sun
- entity: sun.sun
or even
type: entities
entities:
- type: custom:config-template-card
variables:
- states['sun.sun']
entities:
- "${vars[0].entity_id}"
row:
type: section
label: "${vars[0].state}"
- entity: sun.sun
- entity: sun.sun
- entity: sun.sun