Attempting to switch to YAML mode and lovelace_gen

For anyone reading this in the future, I got this working after reading this post entry (🔹 Lovelace_gen - Add abilities to ui_lovelace.yaml - #98 by thomasloven).

  1. Using YAML mode with multiple dashboards - When using YAML (with or without lovelace_gen), you only have to put ui-lovelace.yaml into YAML mode if you intend to set your primary dashboard to YAML. That primary dashboard can be left in UI or storage mode and you can selectively set the dashboards you intend to use to YAML mode allowing them to be optionally configured for lovelace_gen ( Multiple Dashboards - Home Assistant (home-assistant.io)).

  2. EVERY dashboard that uses lovelace_gen must have the main YAML file set to reference the #lovelace_gen commented file - The important note here ( hass-lovelace_gen/README.md at master · thomasloven/hass-lovelace_gen (github.com)) mentions it for the primary dashboard (ui-lovelace.yaml), but this also applies to any secondary dashboard using lovelace_gen.

Ironically, after figuring this out, I now feel like I have the basic dashboard structure to experiment (e.g. yaml, lovelace_gen, etc.) in sandbox dashboards without affecting my default dashboard to create code that I can copy over when it’s properly configured.

configuration.yaml

YAMLSandbox.yaml:

YAMLSandboxIncluded.yaml:
image

I intend to make my contribution to HA by submitting recommendations for improved documentation based on what I’ve learned.

4 Likes