I have an array of a list of items in a sensor.template. for simplicity, let’s just call it [ {'name': 'a'}, {'name':'b'}, {'name': 'c'}]
In my dashboard view (yaml mode), I want to create an array of buttons, where the name is a, b and c respectively.
It needs to be dynamic. So if the array changes in size or data, the buttons are re-rendered.
I am just stuck on how to approach it.
I’ve tried custom:config-template-card
with a nested custom:grid-layout
, but can’t figure out how to dynamically create cards inside the grid.
I’ve thought about lovelace_gen
but since its a pre-processor, dynamic changes won’t work.
I must be missing a trick in how I’m thinking about this!
Thoughts?