punxaphil / custom-sonos-card

Home Assistant custom lovelace sonos card
207 stars 22 forks source link

[FR] Fit the Sonos Card into grid system (Section view) #440

Closed bieniu closed 1 month ago

bieniu commented 3 months ago

Is your feature request related to a problem? Please describe.

If we use Section view (HA 2024.8+), the Sonos Card height does not fit into multiples of row heights:

obraz

Describe the solution you'd like

A nice feature would be to fit the Sonos Card into grid system https://www.home-assistant.io/blog/2024/07/26/dashboard-chapter-2/#action-items-what-can-you-do-as-a-custom-card-developer-now In this case, the Sonos Card should be 9 rows high.

layout_options:
  grid_columns: 4
  grid_rows: 9
punxaphil commented 1 month ago

I honestly don't understand the section view system at all. I tried following the developer guide, but it doesn't make a difference if I implement getLayoutOptions or not. And, yes, I have tried with the new Sections setting for the dashboard.