Jinja Magic Scripts
Jinja2 script to help you create/migrate the existing config/setup to lovelace automagically.
The following is a jinja2 script that you need to run in the Developer Tools -> Templates (template editor), then copy and paste the output into your ui-lovelace.yaml
file. Copying the following jinja code/script directly into the ui-lovelace.yaml
file will give you severe headaches and possibly long-term Migraines.
Code to auto-generate Lovelace Script
Use the following script to automagically generate the lovelace cards based on what you already have. Go to your Home Assistant, click on the hamburger icon on the top left, under Developer Tools
, click on Templates
, and then replace what's out there with the following code. You should see the output right next to it. Copy that output, and paste it in the ui-lovelace.yaml
file in your config folder and go to https://<>:8123/lovelace url and hit refresh.
If you need additional support for other custom cards, please feel free to do a PR or contact @skalavala.
Last updated