Include tabs (section) from dashboard A in dashboard B

Dear members,

I thought my usecase is very common, but either I search with the wrong keywords or this is really very specific. Also Gemini brough up nothing useful…

I have a dashboard with several tabs / sections: Windows, Climate, Lights, Energy. For the Smartphone, its fantastic to change between the tabs.
For the PC, I would like to see all tabs / sections side by side at the same time, as there is more than enough space on a 16:9 TFT.

First I thought, there must be a GUI way to spilt up grid-columns from a typical grid view into tabs for smaller screens. The default is, that all columns on the PC Browser are listed below each other on the smartphone app, wich leads to a very long and confusing arrangement. So it might be a useful feature request, but nothing to receive this goal currently.

Secondly, I made tabs / sections out of each column. So I thought there must be an “include” command in yaml-code, which I can use to put in the different tabs on a second dashboard in a grid beside each other. An include command exists, but beside the url I have no idea, where the yaml-files from dashboard A are located, and even if I would know, the complete dashboard including all tabs seemes to be one single file, so it must be a more specific include command, which section to include.

For example, my tabs looks like:
views:

  • title: ‘Windows’
    max_columns: 1
    path: windows
    sections:
    • type: grid
      cards:
      • type: entity-filter
      • […]
    • type: grid
      • type: entity-filter
      • […]
    • type: grid
      • type: entity-filter
      • […]
  • title: ‘Energy’
    max_columns: 1
    path: energy
    sections:
    • type: grid
      cards:
      • type: heading

The tab “energy” is reachable with the URL IP:Port/dashboard-hauptseite/energie

And Dashboard B should look like

views:

  • type: sections
    max_columns: 4
    sections:
    • type: grid
      cards:
      !include dashboard-hauptseite/windows
      !include dashboard-hauptseite/energie

I hope I described the task comprehensible, and someone has an idea how to reach that goal, without just copy / paste the code (because then I would need to make any adjustment in two places).

Thanks a lot!!!

1 Like