You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This release includes a major refactoring of configuration property names to improve consistency and organization. All section-specific configuration options now use a consistent naming convention with section prefixes.
5
+
This release includes a major refactoring to use **nested YAML configuration**. Section-specific options are now organized under their respective section keys for a cleaner, more intuitive configuration structure.
6
6
7
7
### ⚠️ Configuration Migration Required
8
8
9
-
If you have existing card configurations, you will need to update the following property names:
9
+
All section-specific configuration options now live under nested section keys (`player`, `favorites`, `groups`, `grouping`, `volumes`, `queue`).
10
10
11
11
#### Media Browser → Favorites (Section Rename)
12
12
13
13
The "Media Browser" section has been renamed to "Favorites" throughout the codebase and configuration.
-**Tabbed Advanced Editor**: The advanced editor now organizes configuration options into tabs by section (Common, Player, Favorites, Groups, Grouping, Volumes, Queue) for easier navigation.
72
-
-**Consistent Naming Convention**: All section-specific options now follow a consistent `{section}{PropertyName}` pattern, making it clearer which section each option affects.
73
-
74
-
### Migration Example
75
-
76
-
**Before:**
77
-
```yaml
78
-
type: custom:sonos-card
79
-
artworkAsBackground: true
80
-
artworkMinHeight: 10
81
-
hidePlayerArtwork: false
82
-
compactGroups: true
83
-
topFavorites:
84
-
- My Playlist
85
-
- Radio Station
86
-
```
15
+
### New Nested Structure
16
+
17
+
Instead of flat configuration with prefixes, options are now organized under their section:
87
18
88
-
**After:**
19
+
**Before (v9):**
89
20
```yaml
90
21
type: custom:sonos-card
91
22
playerArtworkAsBackground: true
@@ -96,3 +27,165 @@ favoritesTopItems:
96
27
- My Playlist
97
28
- Radio Station
98
29
```
30
+
31
+
**After (v10):**
32
+
```yaml
33
+
type: custom:sonos-card
34
+
player:
35
+
artworkAsBackground: true
36
+
artworkMinHeight: 10
37
+
hideArtwork: false
38
+
groups:
39
+
compact: true
40
+
favorites:
41
+
topItems:
42
+
- My Playlist
43
+
- Radio Station
44
+
```
45
+
46
+
### Section Configuration Reference
47
+
48
+
#### Player Section (`player:`)
49
+
50
+
| Property | Description |
51
+
|----------|-------------|
52
+
| `artworkAsBackground` | Use artwork as background |
53
+
| `artworkAsBackgroundBlur` | Blur amount for artwork background |
54
+
| `artworkHostname` | Override hostname for artwork URLs |
55
+
| `artworkMinHeight` | Minimum height of artwork (rem) |
56
+
| `backgroundOverlayColor` | Background overlay color (e.g., `rgba(0,0,0,0.3)`) |
57
+
| `controlsAndHeaderBackgroundOpacity` | Opacity for controls and header background |
58
+
| `controlsColor` | Color for control icons |
59
+
| `controlsLargeIcons` | Use large control icons |
60
+
| `controlsMargin` | Margin around controls |
61
+
| `fallbackArtwork` | Fallback artwork URL |
62
+
| `fastForwardAndRewindStepSizeSeconds` | Step size for fast forward/rewind |
63
+
| `headerEntityFontSize` | Font size for entity name |
64
+
| `headerSongFontSize` | Font size for song title |
65
+
| `hideArtistAlbum` | Hide artist and album |
66
+
| `hideArtwork` | Hide artwork |
67
+
| `hideControls` | Hide all controls |
68
+
| `hideControlNextTrackButton` | Hide next track button |
0 commit comments