#Yaml mode not working for me

1 messages · Page 1 of 1 (latest)

olive hinge
#

I'm trying to switch my dashboard to yaml mode because... reasons. I've added the section

lovelace:
  mode: yaml

to my configuration.yaml and I do have a file ui-lovelace.yaml with a known good dashboard yaml in it. Still, I get the standard generated everything-dashboard even after I restarted. What am I doing wrong?

The documentation for yaml mode no longer is where google thinks it should be. Where can I find it now?

Please help!

marsh hatch
olive hinge
#

I get nothing in the log that jumps at me right away. What should I look for? From what I can see in the link you posted, the config I have should still work, and when I look in the settings>dashboards, the overview does say "Yaml" in configuration method. But somehow it ignores the ui-lovelace.yaml completely and just does its thing.

#

Hm, here's something: When I load the ui-lovelace.yaml up in studio code, I get a lot of errors. Just to reiterate: that yaml is the product of building an UI with the graphical interface and works perfectly even now. Yet, for some reason, properties like "visibility", "tap_action", "condition" or "below" - which are exactly where they belong - are marked as errors

marsh hatch
#

The errors are from the vscode Home Assistant extension which is made by a third party, not from Home Assistant itself. It may be out of date.
Do you get the option to reload configuration for the dashboard under the three dots at the top right?

olive hinge
#

I do. And I've gone and cut that huge yaml down to the tinyest possible fragment, just to ensure it does work in principle, which it does. So something in the yaml that gets generated from my click-together dashboard breaks the dashboard in yaml mode.

#

I'll go over the errors one by one and see if any of them looks legit.

#

It's literally hundreds, so that may take a while...

#

Ok, so the solution seems to be: dashboards in storage mode seem to be tolerant to a view missing its title property, whereas dashboards in yaml mode are not.