Multiple yaml dashboards not working (at least for me)

I am moving to using YAML to configure my dashboard. My config.sys:

lovelace:
  mode: yaml 
  dashboards:
    my-test:
      mode: yaml
      title: TESTER
      icon: mdi:script
      show_in_sidebar: true
      filename: lovelace_test.yaml   

TESTER is shown in my sidebar and I have created lovelace-test.yaml in the config directory which contains:

title: My Awesome Home
views:
    # View tab title.
  - title: Example
    cards:
        # The markdown card will render markdown text.
      - type: markdown
        title: Lovelace
        content: >
          Welcome to your **Lovelace UI**.

Selecting TESTER, I don’t see the “welcome to your…” message, I see what looks like a complete default lovelace dashboard with every badge/element/etc shown. If select “overview” in the sidebar, I get my “old” dashboard. I have moved my raw configuration into ui-lovelace as well.

Note: I am trying to set up multiple dashboards for different people/uses…which is why I am not just modifying ui-lovelace.

Is my config.yaml entry wrong?

Looks correct to me. Have you cleared your cache and reloaded the page? (CTRL+F5 in most browsers)

Just a small tip to make life easier.
I would suggest to run lovelace itself in “storage” mode, and then create different dashboards in yaml mode as well.
That way you can easily do some testing in the GUI, and HACS auto install of resources works etc.

What I have is:

lovelace:
  mode: storage
  dashboards:
    home-dash:
      mode: yaml
      title: Home
      icon: fas:city
      show_in_sidebar: true
      filename: dash-home.yaml
    other-dash:
      mode: yaml
      title: Other
      icon: mdi:time
      show_in_sidebar: true
      filename: dash-other.yaml
(...)

You can then also very easily in the dahsboards config decide what dashboard to be default and how to display them etc.

Olen…I copied your configuration (replacing the filename) and had the same results. If I select “home” I get a display of all entities/badges/… not the simple yaml file I have in lovelace-test.yaml.

NOTE: I am running supervised home assistant under debian 32 no-desktop. Is it possible that multiple desktops don’t work in my environment?

I believe the issue is that the files are not being found…in other words:

filename: dash-home.yaml

isn’t pointing to dash-home.yaml in the config directory.

I’ve tried /config/dash-home.yaml and /dash-home.yaml

where do you have your dash-home.yaml and dash-other.yaml installed? are they in the config folder or somewhere else?

All my “dash-”-files are in the /config folder. I could not get it to work by placing them anywhere else.
But they again only contains links to different “views” (tabs).

So the “dash-home.yaml” - which lives in the same directory as the configuration.yaml - only has the following:

title: Home
views:
  - !include lovelace/view_Home.yaml
  - !include lovelace/view_Livingroom.yaml
  - !include lovelace/view_Bedroom.yaml
(...)

Etc.
And all the content is in those files inside a “lovelace/” directory.

2 Likes

Hi Great work, that helped me alot…
Question… how do you add one theme to “home-dash” and another to “other-dash” ?