Advanced Templating

I wanted to get some information from the experts about how t go about creating an automation template that will allow me to setup a group of lights, and the automation action iterate through that group of lights and update a series of input_boolean values.

Here is some code I’ve attempted to used but fails during boot with the error:

Here is the code in question:

The YAML is also valid.

Everything also looks good in the template editor.

@balloob, any suggestions/ideas?

Thank you for the support!

I don’t think the whole action part of the config supports templating like that, iterating to create a list. I think we’re limited to a template for each service_template key. I’d be happy to get corrected though.

Martin is right here.