Auto-populating Dashboards with Strategy Pack - Area Dashboard Strategy

@itsteddyyo thanks for you reply! i made it!!!

1 Like

Heya, no that is not possible as a dashboard strategy needs to be the one creating the dashboard itself :smiley: Only view strategies can be inserted in views.

But the area-dashboard-strategy has a config option “extraViews” and with that you could pass your existing views to the dashboard :smiley:

Like this:

strategy:
  type: custom:area-dashboard-strategy
  config:
    ...other options
    extraViews:
      - ...your views
      - strategy: #just an example
          type: custom:battery-view-strategy
        icon: mdi:test
        path: test
        title: Test

Thank you for clarifying the views.
Going back to sorting the areas, I see we can create labels sort:1, sort:2, etc. and the dashboard populates accordingly. In my demo environment, i added the sort labels to get it to be in alphabetical order.

If we have many areas, however, how would you recommend sorting it in alphabetical order and maintaining it when we add areas in the future.
Ex: GYM (sort:1) POOL (sort:2)
Future add BAR (sort:1) ?

Additionally, is it possible to sort by floors?

You would need to change the labels assigned to each area :smiley: I think that´s an okay compromise as that probably won’t happen too much :smiley:

If you only want to sort alphabetically just wait a little. I’m currently working on a big refactor that would among other things allow that. There’s gonna be a few breaking changes but im pretty pleased with the new design and many caveats and impossibilities of v1 will be improved and the whole configuration will hopefully be more user-friendly :smiley:

Currently there is no support for floors but if you want you can open a feature request (Open Feature Request) and describe how you think the solution should look like :smiley:

That sounds great, looking forward to it! Thank you again for the feedback.