No sound from Sonos on audio play

###############################################################################
###############  openhabian  ##################################################
###############################################################################
##        Ip = 192.168.0.17
##   Release = Raspbian GNU/Linux 10 (buster)
##    Kernel = Linux 5.10.103-v7+
##  Platform = none
##    Uptime = 48 day(s). 4:20:57
## CPU Usage = 0% avg over 4 cpu(s) (4 core(s) x 1 socket(s))
##  CPU Load = 1m: 0.19, 5m: 0.14, 15m: 0.14
##    Memory = Free: 0.09GB (10%), Used: 0.85GB (90%), Total: 0.94GB
##      Swap = Free: 2.17GB (97%), Used: 0.06GB (3%), Total: 2.24GB
##      Root = Free: 21.27GB (76%), Used: 6.57GB (24%), Total: 29.06GB
##   Updates = 69 apt updates available.
##  Sessions = 1 session(s)
## Processes = 119 running processes of 32768 maximum processes
###############################################################################

I want to play audio to my sonos speakers from a rule. I did a quick test from the rule, but that failed so I tried from the console. I have set one speaker as default audio sink. I still get no audio when I write “openhab:audio play doorbell.mp3”. There is no change if I specify which speaker to play to. No difference if the speaker is paused or is playing from Sonos app.

Loggs:

2022-11-13 15:48:25.684 [DEBUG] [s.internal.handler.ZonePlayerHandler] - playNotificationSoundURI: currentURI x-sonosapi-hls:channel%3a132?sid=235&flags=40&sn=2 metadata <DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"><item id="-1" parentID="-1" restricted="true"><dc:title>P1</dc:title><upnp:class>object.item.audioItem.audioBroadcast</upnp:class><desc id="cdudn" nameSpace="urn:schemas-rinconnetworks-com:metadata-1-0/">SA_RINCON60167_</desc></item></DIDL-Lite>
2022-11-13 15:48:25.687 [TRACE] [port.upnp.internal.UpnpIOServiceImpl] - Invoking Action 'Browse' of service 'ContentDirectory' for participant 'RINCON_347E5CF38BF801400'
2022-11-13 15:48:25.709 [DEBUG] [s.internal.handler.ZonePlayerHandler] - Notification feature not yet implemented while the current media is being played
2022-11-13 15:48:28.121 [TRACE] [re.storage.json.internal.JsonStorage] - deserialized value 'org.openhab.core.thing.internal.ThingStorageEntity@1a3ccc6' from Json

What am I doing wrong?

/BS

If you set an audio-sink via the UI you must have installed he sonos-binding, otherwise the speakers would not show there.

Which “console” are you using? That is not just a terminal!

Did you try other audio sinks than the sonos speakers?

Are you using a docker-installation?

BTW:
By simply copy&paste text onto the forum you might write in bold ( which is understood as yelling) . I hope that was not your intent! Using the code-tags you could reformat your pasted text.

Yes, I have the Sonos binding with things and items in the model. The console I used was the one you get when you ssh to 8101 on openhabian. I didn’t try any other audio sinks. I have not tried to use audio before. I’m running OpenHAB on my Raspberry Pi (openhabian). I’m not sure if that in turn runs docker. Was that what you meant?

If you are using the openhabian installation your setup is like mine!
I don’t see your log messages ( that is because I can’t tell which bundles you set for DEBUG anc or TRACE).
All I see when running the above posted command is:

2022-11-13 22:51:29.957 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'PlayWohnzimmer_Fernbedienung' changed from PAUSE to PLAY
2022-11-13 22:51:36.325 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'PlayWohnzimmer_Fernbedienung' changed from PLAY to PAUSE

Do you see such?