Hallo,
ich bin ganz neu im Bereich OpenHab. Ich habe gestern Openhab auf meinem Raspberry installiert und läuft auch soweit. Nun möchte ich Sonos einbinden, was auch schon ganz gut klappt.
Eine Funktion, die ich gerne nutzen möchte ist die Notification. Daher habe ich folgendes angelegt:
Sonos.items:
Sonos.things:
Meine Rule:
Allerdings wird nur der letzte Titel abgespielt, der auf dem Player lief. Was mache ich falsch?
Ich habe schon den Pfad geändert (/etc/openhab2/sounds/essen.mp3) allerdings brachte es auch nichts.
Für jeden Tipp bin ich dankbar.
Gruß Manuel
ich bin ganz neu im Bereich OpenHab. Ich habe gestern Openhab auf meinem Raspberry installiert und läuft auch soweit. Nun möchte ich Sonos einbinden, was auch schon ganz gut klappt.
Eine Funktion, die ich gerne nutzen möchte ist die Notification. Daher habe ich folgendes angelegt:
Sonos.items:
Code:
Group Sonos <player> Player Sonos_Controller "Controller" (Sonos) {channel="sonos:PLAY5:living:control"} Dimmer Sonos_Volume "Volume [%.1f %%]" <soundvolume> (Sonos) {channel="sonos:PLAY5:living:volume"} Switch Sonos_Mute "Mute" <soundvolume_mute> (Sonos) {channel="sonos:PLAY5:living:mute"} Switch Sonos_LED "LED" <switch> (Sonos) {channel="sonos:PLAY5:living:led"} String Sonos_CurrentTrack "Now playing [%s]" <text> (Sonos) {channel="sonos:PLAY5:living:currenttrack"} String Sonos_State "Status [%s]" <text> (Sonos) {channel="sonos:PLAY5:living:state"} String Sonos_Radio "Radio" (Sonos) {channel="sonos:PLAY5:living:radio"} String Sonos_Notificationsound "Notificationsound" (Sonos) {channel="sonos:PLAY5:living:notificationsound"}
Code:
Thing sonos:PLAY5:living [ udn="RINCON_xxx", refresh=60, notificationVolume=25] Thing sonos:PLAY1:bath_up [ udn="RINCON_xxx", refresh=60, notificationVolume=25] Thing sonos:PLAY1:kitchen [ udn="RINCON_xxx", refresh=60, notificationVolume=25]
Code:
rule "Sonos Notfication" when Item Licht_UG_buero_decke received command then Sonos_Notificationsound.sendCommand(if (receivedCommand == ON) "essen.mp3" else none) end
Ich habe schon den Pfad geändert (/etc/openhab2/sounds/essen.mp3) allerdings brachte es auch nichts.
Für jeden Tipp bin ich dankbar.
Gruß Manuel
Kommentar