Friday, February 3, 2023

Show HN: Makejinja: Automatically generate complex Home Assistant configurations https://ift.tt/kBziuta

Show HN: Makejinja: Automatically generate complex Home Assistant configurations makejinja can be used to automatically generate files from Jinja templates. This allows you to load variables from external files or create repeating patterns via loops. A very interesting use case for this tool is generating config files for Home Assistant: Using the same language that the built-in templates use, you can greatly simplify your configuration. When creating for example dashboards, it allows you to create a view for each room based on a single common template, dramatically reducing the maintenance overhead of complex dashboards. I originally developed this for my smarthome setup, but thought it may be useful for others as well! A concrete example for Home Assistant can be found in the tests directory: https://ift.tt/ewgHpEj For more information like detailed features or installation/usage instructions, please visit the GitHub repo. https://ift.tt/AiSML7w February 3, 2023 at 11:42PM

No comments:

Post a Comment