Help with YAML include

I am trying to create a unfied dashboard that works well in all my devices. All the room cards are the shared between the devices. But I have different home pages for different devices. Now, I am trying to include all the room views in the ‘views’ folder and the ‘overview.yaml’ from the device specific folder. Any suggestions on how to include these two under the views?

You cannot have 2 view keys. You cannot have views spread across 2 separate folders when including because it expects a list.

Put your overview inside your views folder.

Not sure about views specifically, but you can, at least in the case below, add a yaml “differenciator” to have multiple time the same tag

automation: !include automations.yaml
automation manual: !include_dir_merge_list platforms/automations/

Thank you for the response @petro
That is what I was trying to avoid since the overview yaml is different for different device types.

That only works with specific keys in configuration.yaml.

Then you should just make a different dashboard. Then your views will be unique between dashboards.

The issue is that you’re trying to use a single dashboard. A single dashboard only allows 1 views key.

That is disappointing. That is my current setup. I am just tired of copying and pasting same yaml into different different dashboards.

But thank you both for your help. Really appreciate it

I mean, there’s ways to get what you want. Just run an include in each of your files that point to an overview.

Thank you for all your suggestions. Figured out a way

views:
  - !include ./overview.yaml
  - !include ../shared/views/alarmo.yaml
  - !include ../shared/views/calendar.yaml
  - !include ../shared/views/camera.yaml
  - !include ../shared/views/climate.yaml
  - !include ../shared/views/f1.yaml
  - !include ../shared/views/lights.yaml

This post helped Splitting a dashboard file into several using include statement or similar - #11 by renespit