playSound not working on Sonos One after using Airplay

Hello Community,

Recently I’ve noticed a problem when trying to play a notification sound on my Sonos One.

I’m triggering the notification via the command: playSound(“doorbell.mp3”)
And this is working perfect as long as I don’t stream music from my iPhone via Airplay to the Sonos One, because after doing that the notification is not playing anymore.

I’ve activated the TRACE logging on the binding and I can see a different in the handling of the notification after using Airplay and after using the SONOS-app.

After using the SONOS-app this is the respons on the command playSound(“doorbell.mp3”):

2021-06-20 14:21:15.305 [DEBUG] [s.internal.handler.ZonePlayerHandler] - playNotificationSoundURI: currentURI x-rincon-queue:RINCON_x#0 metadata 

2021-06-20 14:21:15.317 [TRACE] [s.internal.handler.ZonePlayerHandler] - Received pair 'TrackMetaData':'<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"><res protocolInfo="sonos.com-spotify:*:audio/x-spotify:*" duration="0:03:13">x-sonos-spotify:spotify%3atrack%3a7HXBG0W8gFJwHUh5mVF9tf?sid=9&amp;flags=8224&amp;sn=2</res><r:streamContent></r:streamContent><upnp:albumArtURI>/getaa?s=1&amp;u=x-sonos-spotify%3aspotify%253atrack%253a7HXBG0W8gFJwHUh5mVF9tf%3fsid%3d9%26flags%3d8224%26sn%3d2</upnp:albumArtURI><dc:title>Rise</dc:title><upnp:class>object.item.audioItem.musicTrack</upnp:class><dc:creator>Lost Frequencies</dc:creator><upnp:album>Rise</upnp:album></item></DIDL-Lite>' (service 'AVTransport') for thing 'sonos:One:Woonkamer

After using Airplay this is the respons on the command playSound(“doorbell.mp3”):

2021-06-20 14:23:37.688 [DEBUG] [s.internal.handler.ZonePlayerHandler] - playNotificationSoundURI: currentURI x-sonos-vli:RINCON_7828CAFD209201400:1,airplay:f6bccb654932453a9144c9c1dedae44e 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="airplay" parentID="0" restricted="false"><dc:title>AirPlay</dc:title><upnp:class>object.item.audioItem.linein.airplay</upnp:class><res protocolInfo="x-sonos-vli:*:audio:*">x-sonos-vli:RINCON_7828CAFD209201400:1,airplay:f6bccb654932453a9144c9c1dedae44e</res><vli cookie="2" group=""></vli></item></DIDL-Lite>

Does anyone has an idea on how to solve this issue?

Kind Regards,

Tim

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.