Ich möchte gerne eine Radio-Steuerung mit meinen Mulitroom-Boxen im Google Home App erstellen.
Zu meiner Umgebung:
- OpenHAB läuft auf meiner Synology Nas
- Chromecast Binding ist gemacht und meine Boxen und Boxengruppen sind im OpenHAB eingerichtet.
- Eine URI von einem Radiosender konnte ich ansteuern.
Nun weiss ich nicht wie ich mehrere URIˋs auf einem Player wechseln kann und das, wenn ich den Radio via Sprachbefehl einschalten will, dies auch sauber funktioniert.
Ich möchte gerne die Box oder Gruppe auswählen und dann den Radiosender auswählen können. Den Radiosender sollte dann rechts auf dem Player erscheinen. Die Lautstärke von den entsprechenden Lautsprecher und Gruppen sollten dann unten wechseln/erscheinen.
So sieht meine Page aus:

Der Code sieht so aus:
Code: Alles auswählen
config:
label: Musik Grp Wohnzimmer Radio Argovia
layoutType: fixed
fixedType: grid
showFullscreenIcon: true
blocks: []
masonry: null
grid:
- component: oh-grid-item
config:
x: 0
y: 0
h: 1
w: 8
slots:
default:
- component: oh-label-card
config:
label: Lautsprecher
- component: oh-grid-item
config:
x: 8
y: 0
h: 1
w: 4
slots:
default:
- component: oh-label-card
config:
label: Radiosender
- component: oh-grid-item
config:
x: 3
y: 1
h: 1
w: 2
slots:
default:
- component: oh-label-card
config:
label: LS Esszimmer
fontSize: "10"
- component: oh-grid-item
config:
x: 0
y: 3
h: 1
w: 8
slots:
default:
- component: oh-label-card
config:
label: Lautsprecher Gruppen
- component: oh-grid-item
config:
x: 5
y: 1
h: 1
w: 2
slots:
default:
- component: oh-label-card
config:
label: LS Fernseher
fontSize: "10"
- component: oh-grid-item
config:
x: 4
y: 2
h: 1
w: 2
slots:
default:
- component: oh-label-card
config:
label: LS Badezimmer
fontSize: "10"
- component: oh-grid-item
config:
x: 1
y: 4
h: 1
w: 2
slots:
default:
- component: oh-label-card
config:
label: GRP Alle
fontSize: "10"
- component: oh-grid-item
config:
x: 3
y: 4
h: 1
w: 2
slots:
default:
- component: oh-label-card
config:
fontSize: "10"
label: GRP Wohnzimmer
background: "#778899"
- component: oh-grid-item
config:
x: 5
y: 4
h: 1
w: 2
slots:
default:
- component: oh-label-card
config:
label: GRP Obergeschoss
fontSize: "10"
- component: oh-grid-item
config:
x: 2
y: 2
h: 1
w: 2
slots:
default:
- component: oh-label-card
config:
label: LS Schlafzimmer
fontSize: "10"
- component: oh-grid-item
config:
x: 9
y: 1
h: 1
w: 1
slots:
default:
- component: oh-image-card
config:
url: /static/radionrjbern.jpg
- component: oh-grid-item
config:
x: 12
y: 0
h: 1
w: 4
slots:
default:
- component: oh-label-card
config:
label: Radio
- component: oh-grid-item
config:
x: 1
y: 1
h: 1
w: 2
slots:
default:
- component: oh-label-card
config:
label: LS Box
fontSize: "10"
- component: oh-grid-item
config:
x: 8
y: 1
h: 1
w: 1
slots:
default:
- component: oh-image-card
config:
url: /static/radioargovia.jpg
- component: oh-grid-item
config:
x: 10
y: 1
h: 1
w: 1
slots:
default:
- component: oh-image-card
config:
url: /static/radiosrf3.jpg
- component: oh-grid-item
config:
x: 11
y: 1
h: 1
w: 1
slots:
default:
- component: oh-image-card
config:
url: /static/radioswisspop.jpg
- component: oh-grid-item
config:
x: 8
y: 2
h: 1
w: 1
slots:
default:
- component: oh-image-card
config:
url: /static/radiozuerisee.jpg
- component: oh-grid-item
config:
x: 2
y: 7
h: 2
w: 4
slots:
default:
- component: oh-slider-card
config:
scale: true
label: true
scaleSubSteps: 5
min: 0
max: 100
item: LSGruppeWohnzimmer_Lautstarke
title: Grp Wohnzimmer Volume
- component: oh-grid-item
config:
x: 6
y: 7
h: 2
w: 4
slots:
default:
- component: oh-slider-card
config:
scale: true
label: true
scaleSubSteps: 5
min: 0
max: 100
item: LSBox_Lautstarke
title: LS Box Volume
- component: oh-grid-item
config:
x: 10
y: 7
h: 2
w: 4
slots:
default:
- component: oh-slider-card
config:
scale: true
label: true
scaleSubSteps: 5
min: 0
max: 100
item: LSEsszimmer_Lautstarke
title: LS Esszimmer Volume
- component: oh-grid-item
config:
x: 12
y: 1
h: 4
w: 4
slots:
default:
- component: widget:custom_radioargovia_player
config:
playerControlItem: LSGruppeWohnzimmer_Fernbedienung
pictureurl: /static/radionrjbern.jpg
- component: oh-grid-item
config:
x: 0
y: 6
h: 1
w: 16
slots:
default:
- component: oh-label-card
config:
label: Volume
canvas: []
Ich muss noch dazu sagen, dass ich noch ein völliger Anfänger in Sachen OpenHAB bin.
Vielen Dank im Voraus
Luca