Ikon- und Farbwechsel bei Änderung der Lautstärke, Änderung der Zustände von Mute und Play/Pause. Der letzte Punkt ist eine Szene aus dem Szenen-Adapter, die per ActionButton (mit Icon "Play") gestartet wird.
"c5242204-6ea7-48e6-aadd-838db6648ca1": {
"id": "c5242204-6ea7-48e6-aadd-838db6648ca1",
"function": "speaker",
"states": {
"state_simple": {
"state": {
"node": "sonos.0.root.10_0_10_34.state_simple"
},
"action": "sonos.0.root.10_0_10_34.state_simple",
"icon": {
"true": "play",
"false": "pause"
},
"label": "Pause / Play",
"actionElement": "SwitchAction"
},
"play": {
"state": {
"node": "sonos.0.root.10_0_10_34.play"
},
"action": "sonos.0.root.10_0_10_34.play",
"icon": "play",
"label": "Play",
"actionElement": "IconButtonAction",
"IconButtonActionConfig": {
"showState": false
},
"LastChangeBodyConfig": {
"time": "ts"
},
"hide": true
},
"pause": {
"state": {
"node": "sonos.0.root.10_0_10_34.pause"
},
"action": "sonos.0.root.10_0_10_34.pause",
"actionElement": "IconButtonAction",
"label": "Pause",
"icon": "pause",
"LastChangeBodyConfig": {
"time": "ts"
},
"hide": true
},
"Mute": {
"state": {
"node": "sonos.0.root.10_0_10_34.muted"
},
"action": "sonos.0.root.10_0_10_34.muted",
"actionElement": "SwitchAction",
"label": "Mute",
"icon": {
"true": "volume-mute",
"false": "volume-mute"
},
"display": "",
"LastChangeBodyConfig": {
"time": "lc"
},
"iconStyle": {
"true": {
"color": "orange",
"font-weight": "bold"
}
}
},
"volume": {
"state": {
"node": "sonos.0.root.10_0_10_34.volume"
},
"action": "sonos.0.root.10_0_10_34.volume",
"label": "Lautstärke",
"properties": {
"min": "0",
"max": "25"
},
"bodyElement": "LevelBody",
"icon": {
"0": "volume-mute",
"<5": "volume-low",
"<=20": "volume-medium",
">20": "volume-high",
">30": "volume-vibrate"
},
"iconStyle": {
"0": {
"color": "yellow"
},
">13": {
"color": "orange"
},
">18": {
"color": "red"
}
}
},
"artist": {
"state": {
"node": "sonos.0.root.10_0_10_34.current_artist"
},
"label": "Derzeitiger Künstler",
"icon": "format-list-bulleted-square"
},
"sender": {
"state": {
"node": "sonos.0.root.10_0_10_34.current_station"
},
"icon": "format-list-bulleted-square",
"label": "Derzeitiger Sender",
"hide": true
},
"titel": {
"state": {
"node": "sonos.0.root.10_0_10_34.current_title"
},
"label": "Derzeitiger Titel",
"iconStyle": "",
"icon": "format-list-bulleted-square",
"LastChangeBodyConfig": {
"time": "lc"
}
},
"favoriten": {
"state": {
"node": "sonos.0.root.10_0_10_34.favorites_set"
},
"action": "sonos.0.root.10_0_10_34.favorites_set",
"actionElement": "DropdownAction",
"icon": "format-list-bulleted-square",
"label": "Favoriten",
"properties": "",
"display": {
"1LIVE - Das junge Radio des WDR.": "1LIVE",
"Absolut Radio": "Absolut Radio",
"B5 aktuell": "B5 aktuell",
"Badewanne CCH": "Badewanne CCH",
"Biberlied (Zähneputzen)": "Zähneputzen CCH",
"Blue Note 101": "Blue Note 101",
"Classic Rock": "Classic Rock",
"Deutschlandfunk": "Deutschlandfunk",
"Deutschlandfunk Nova": "Deutschlandfunk Nova",
"Deutschlandfunk Kultur": "Deutschlandradio Kultur",
"Ed Sheeran": "Ed Sheeran",
"ENERGY München": "ENERGY München",
"MegaStarFM": "MegaStarFM",
"N-JOY 94.2 (Top 40)": "N-JOY"
}
},
"b5_an": {
"state": {
"node": "scene.0.sonos_kueche_radio"
},
"label": "B5 Aktuell",
"action": "scene.0.sonos_kueche_radio",
"actionElement": "IconButtonAction",
"icon": {
"default": "play",
"true": "volume-high"
},
"LastChangeBodyConfig": {
"time": "ts"
},
"IconButtonActionConfig": {
"showState": false,
"icon": "play"
}
}
},
"options": {},
"attributes": {
"_created": 1606132479954,
"_updated": 1606224476113
},
"name": "Sonos Küche",
"icon": "music-circle"
},