jimz011 / homekit-infused

Homekit Infused 5 2023
https://jimz011.github.io/homekit-infused/
Other
873 stars 137 forks source link

[Question] Use variables in views.yaml #148

Closed MikeTheCleric closed 2 years ago

MikeTheCleric commented 2 years ago

Hi! I've got a problem. I want to use some variables defined by me cycled using Jinja template (like the files in hki base folder, for example "base.yaml") in the views.yaml to make dynamic my configuration. Is it possible?

Thanks in advice!

jimz011 commented 2 years ago

Hi, you can only use custom templates by using for example decluttering-card. If you want to use lovelace_gen you must disable addons on that view and setup custom_legacy. You can then use your own templates that you can save inside the user folder.