I’d like to use the template expression label_entities(‘EELIGHTS’) as the source for entities in flex-table-card. I’ve tried putting that expression in various places, including a {% for %} for the entities: include, but have no success as yet.
What I need to known then is how to get some list such as that over to the flex-table-card? I tried using a script but don’t know how to debug it further.
Never give up if it is something you want to do.
The way I showed you will certainly cause more work if you end up adding more sensors that would be included in binary_sensor.door. You might have to add more excludes.
I don’t have time to look in depth right now. But, according to the script docs for stop, the response_variable must be key value pairs. Your are outputting a list.
If you look at the docs for flex-table-card, the list in the output of the script is created as the value of a key output.
Thanks for all the help. Got the script to work by nesting the array within an object in the response, and using the name of the object in the dashboard.