Even though the new Sections layout is experimental I’ve been playing around with it. This probably doesn’t go for everyone, but I’ve always disliked having to manually configure the dashboard. I have always set up sections manually through different cards though, so the new layout is a hugely welcome feature for me.
I figured it’d be nice if the sections I wanted were actually auto-populating. So I made a view (not a dashboard!) strategy strongly inspired by the great auto-entities that’ll generate an entire sections view automatically based on the provided filters.
You can get it here: GitHub - nielsrowinbik/auto-sections-strategy
Here’s an example. This configuration…
layout: sections
views:
- icon: mdi:home-assistant
strategy:
type: custom:auto-sections
options:
group_by: area
filter:
include:
- domain: climate
- domain: input_boolean
- domain: light
- domain: media_player
- domain: remote
- domain: switch
exclude:
- state: unavailable
card_options:
light:
color: amber
climate:
color: red
icon: mdi:thermometer
state_content:
- hvac_action
- current_temperature
…yields this result:
It’s pretty barebones at the moment but I wanted it out there anyway for people to try and suggest improvements. The currently supported features are:
- Filtering by domain, entity_id, and state
- Grouping by area
- Adding custom card configurations for all cards, cards belonging to entities in a specific domain, and cards belonging to specific entities.
Looking forward to learning your thoughts and suggestions!