Closed kraineff closed 5 years ago
It’s more easy and no need to make 2 different names and create decluttering-templates.yaml file
A great idea. Once I have the time again I will take a look at this.
Though where does it get the template name from to use in variables? Or do you set the name in each file at the top?
The name of the template is a name of File.
From HomeAssistant site: !include_dir_named will return the content of a directory as a dictionary which maps filename => content of file.
Example:
I named energy-usage as it should use in template, and the file completely yours without changes.
Thank you, I will close this issue. Implemented in 0.12.3
In ui-lovelace.yaml you can use this:
decluttering_templates: !include_dir_named lovelace/templates
And in lovelace/templates folder simply name files that you want it to be used in decluttering-card template.