I had set up my door bell to play a notification on Sonos. Worked until upgrade to 4.x
In the Thing, the default volume is set. I play a sound on my webserver (mp3). Tested it on a Move and Play1. Both worked before. When playing the sound via normal play command, it is ok. Of course, it is then locally and not on the internet. Playing it via browser also works, so assuming that the access should still be the same.
The major question is: what has changed since last week.
I have 3 openhab instances, all same behaviour.
is there any more documentation on the setup? I basically tried any combination I could think of and nothing works.
setting the url in the binding configuration, only host, with port, without, with static, full incl. .mp3 and same in rules.
What would be the correct command to trigger a notification?
sendCommand(Sonos_device_name_Notification, “sound.mp3”) or does this need to be the full path again?
Sorry, I just give up. I tried to find a solution in various posts and not able to find.
String Sonos_PlayUri "Playing URI [%s]" <text> (Sonos) {channel="sonos:Move:living:playuri"}
rule "Sonos Play Web Radio URI"
when Item Sonos_PlayUri changed
then
//Set URI to play
Sonos_PlayUri.sendCommand("x-rincon-mp3radio://https://streams.egofm.de/egoFMBW-hq")
//Set the Volume
Sonos_Volume.sendCommand(40)
end
Or you can use the notificationsound channel.
Then using the Sonos as audio sink you can do something like
playStream("sonos:Move:living", "example.com"
All this comes from the docs.
If the above doesn’t help post your config rules etc as much information as possible to be able to get more help.
Please enable DEBUG logs for the Sonos binding and tell me if you see particular entries.
Do you see this message: Notification feature not yet implemented while the current media is being played
It can happen that notification playback is not pissible depending on what source you are currently playing or how it was started. Please provide this information.
Try your notification while your current source is tuneIN.
2023-11-07 19:36:46.853 [DEBUG] [s.internal.handler.ZonePlayerHandler] - playNotificationSoundURI: currentURI null metadata null
2023-11-07 19:36:46.864 [DEBUG] [s.internal.handler.ZonePlayerHandler] - Notification feature not yet implemented while the current media is being played
2023-11-07 19:40:37.428 [DEBUG] [s.internal.handler.ZonePlayerHandler] - playNotificationSoundURI: currentURI null metadata null
2023-11-07 19:40:37.437 [DEBUG] [s.internal.handler.ZonePlayerHandler] - Notification feature not yet implemented while the current media is being played
So basically twice the same results. However that part does not seem to be right:
currentURI null metadata null
I started various stations via PC controller. Also via iphone. Apple music. paused. All same outcome.
Yes that is not normal.
Are you running openHAB inside docker?
If true, you could have a docker setup problem (related to network) leading to UPnP not working as expected
Stop the Sonos bundle ans start it again. Look at logs and tell me if UPnP services registration is succeeding or not.
My hypothesis is that it fails… Check also that jupnp bundle is started.
I imagine you have a network problem between your VM and your Sonos devices leading to UPnP not working.
ok, all things are online. I do not see any errors when removing and re-installing the sonos binding. All seems to be ok. However will investigate on the UPnP topic a bit. Thanks for your help so far.
Update:
the one on the RPi works with notifications. So suspicion that it has to do with the VM might be true. keep you posted if I find out something.
Hello, I have the same problem. Since the Openhab update it no longer works. If I restore the backup from before the update, it works again. So it has something to do with the latest update. Has anyone already found a solution?
Hi, I have the same problem. No SONOS information shared in Openhab items such as Album Art, artist information etc, only activities. Did you solve it for all of your Sonos Things and what do you mean with "the one on the RPi works with notifications? Btw, the Spotify thing does show this information. Thanks for feedback, BR Henk