Closed saladpanda closed 5 years ago
The tag you are looking for is !Index
.
!Defaults
lamps:
- {name: asdf, id: 123}
- {name: foobar, id: 456}
---
homeassistant:
customize:
!Index
over: !Var lamps
as: lamp
by: !Format light.{lamp.name}
template:
hidden: true
I'm trying to use emrichen as a preprocessor for HomeAssistant configuration files. I need to be able to generate YAML-code like this:
My current emrichen template looks like this:
Is there a way to achieve this?