Hello,
I have something more complex. I’m trying to generate a list of cards dynamically using CTC. I know, it’s a little bit extreme but just trying to find the limits.
Here’s an example (just proof of concept):
type: custom:config-template-card
variables:
get_card: |
x => {
let entities = [];
entities.push("sensor.kitchen_temp");
let card = {
"type": "entities",
"entities": entities
};
return card;
}
card: ${ get_card(0) }
Yeah, crazy. And not working I’m creating an json object in js with right properties but the error message says: No card type defined I may even format the json object in an invalid way - the message stays the same.
Did you happen to see o think about something so dynamic?