Sonos notifications not resuming previous song as expected


#1

1) Give a description of the problem
I want sonos to announce when a door opens or closes. Later to be expanded to motion. This Piston works , however Sonos behaves unexpectedly.

2) What is the expected behavior?
For sonos to resume playing whatever was playing prior to the notification

3) What is happening/not happening?
If I have Pandora playing it resumes but it skips to the next song. If i have a playlist going from my phone, it goes back to the first song in the playlist

4) Post a Green Snapshot of the pistonimage
(UPLOAD YOUR IMAGE HERE)

5) Attach any logs (From ST IDE and by turning logging level to Full)
(fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:51 PM: info Kitchen-Sonos is playing Something Just Like This by The Chainsmokers & Coldplay from Memories...Do Not Open fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:51 PM: trace Current status: 'playing', coordinator: '' fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:51 PM: trace uuid; RINCON_7828CA2384B801400 fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:50 PM: trace uuid; RINCON_7828CA2384B801400 fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:50 PM: debug Not parsing XML message: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <s:Body> <u:PlayResponse xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"> </u:PlayResponse> </s:Body> </s:Envelope> fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:50 PM: debug Not parsing XML message: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <s:Body> <u:SetAVTransportURIResponse xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"> </u:SetAVTransportURIResponse> </s:Body> </s:Envelope> fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:46 PM: trace Skipping event generation for sound file https://s3.amazonaws.com/smartapp-media/polly-tts/salli/kitchen_basement_door_is_open.mp3 fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:46 PM: trace uuid; RINCON_7828CA2384B801400 fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:46 PM: debug Not parsing XML message: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <s:Body> <u:GetVolumeResponse xmlns:u="urn:schemas-upnp-org:service:RenderingControl:1"> <CurrentVolume> 51 </CurrentVolume> </u:GetVolumeResponse> </s:Body> </s:Envelope> fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:46 PM: trace Extracting current volume fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:46 PM: trace sonosAction(GetVolume, RenderingControl, /MediaRenderer/RenderingControl/Control, [InstanceID:0, Channel:Master]) fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:46 PM: trace getVolume() fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:46 PM: trace doPoll fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:44 PM: debug Not parsing XML message: <e:propertyset xmlns:e="urn:schemas-upnp-org:event-1-0"> <e:property> <LastChange> <Event xmlns="urn:schemas-upnp-org:metadata-1-0/AVT/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/"><InstanceID val="0"><TransportState val="PLAYING"/><CurrentPlayMode val="NORMAL"/><CurrentCrossfadeMode val="0"/><NumberOfTracks val="1"/><CurrentTrack val="1"/><CurrentSection val="0"/><CurrentTrackURI val="https://s3.amazonaws.com/smartapp-media/polly-tts/salli/kitchen_basement_door_is_open.mp3"/><CurrentTrackDuration val="0:00:01"/><CurrentTrackMetaData val="<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="http-get:*:audio/mpeg:*" duration="0:00:01">https://s3.amazonaws.com/smartapp-media/polly-tts/salli/kitchen_basement_door_is_open.mp3</res><r:streamContent></r:streamContent><r:radioShowMd></r:radioShowMd><dc:title>kitchen_basement_door_is_open.mp3</dc:title><upnp:class>object.item.audioItem.musicTrack</upnp:class&a...[TRUNCATED] fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:44 PM: trace Skipping event generation for sound file https://s3.amazonaws.com/smartapp-media/polly-tts/salli/kitchen_basement_door_is_open.mp3 fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:44 PM: trace Current status: 'playing', coordinator: '' fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:44 PM: trace uuid; RINCON_7828CA2384B801400 fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:44 PM: debug Not parsing XML message: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <s:Body> <u:PlayResponse xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"> </u:PlayResponse> </s:Body> </s:Envelope> fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:44 PM: debug Not parsing XML message: <e:propertyset xmlns:e="urn:schemas-upnp-org:event-1-0"> <e:property> <LastChange> <Event xmlns="urn:schemas-upnp-org:metadata-1-0/AVT/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/"><InstanceID val="0"><TransportState val="STOPPED"/><CurrentPlayMode val="NORMAL"/><CurrentCrossfadeMode val="0"/><NumberOfTracks val="1"/><CurrentTrack val="1"/><CurrentSection val="0"/><CurrentTrackURI val="https://s3.amazonaws.com/smartapp-media/polly-tts/salli/kitchen_basement_door_is_open.mp3"/><CurrentTrackDuration val="0:00:01"/><CurrentTrackMetaData val="<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="http-get:*:audio/mpeg:*" duration="0:00:01">https://s3.amazonaws.com/smartapp-media/polly-tts/salli/kitchen_basement_door_is_open.mp3</res><r:streamContent></r:streamContent><r:radioShowMd></r:radioShowMd><dc:title>kitchen_basement_door_is_open.mp3</dc:title><upnp:class>object.item.audioItem.musicTrack</upnp:class&a...[TRUNCATED] fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:44 PM: trace Current status: 'stopped', coordinator: '' fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:44 PM: debug Not parsing XML message: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <s:Body> <u:SetAVTransportURIResponse xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"> </u:SetAVTransportURIResponse> </s:Body> </s:Envelope> fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:44 PM: trace Returning 5 commands fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:44 PM: trace sonosAction(Play, AVTransport, /MediaRenderer/AVTransport/Control, [InstanceID:0, Speed:1]) fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:44 PM: info setTrack(https://s3.amazonaws.com/smartapp-media/polly-tts/salli/kitchen_basement_door_is_open.mp3, null, 0 B}) fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:44 PM: debug playTrackAndResume(https://s3.amazonaws.com/smartapp-media/polly-tts/salli/kitchen_basement_door_is_open.mp3, 2, null) fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:34 PM: info Kitchen-Sonos is playing Something Just Like This by The Chainsmokers & Coldplay from Memories...Do Not Open fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:34 PM: trace Current status: 'playing', coordinator: '' fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:34 PM: trace uuid; RINCON_7828CA2384B801400 fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:33 PM: debug Not parsing XML message: <e:propertyset xmlns:e="urn:schemas-upnp-org:event-1-0"> <e:property> <LastChange> <Event xmlns="urn:schemas-upnp-org:metadata-1-0/AVT/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/"><InstanceID val="0"><TransportState val="TRANSITIONING"/><CurrentPlayMode val="NORMAL"/><CurrentCrossfadeMode val="0"/><NumberOfTracks val="143"/><CurrentTrack val="1"/><CurrentSection val="0"/><CurrentTrackURI val="http://mobile-iPhone-BBCA6023-BB53-41AE-B759-70E4F3C7A506.x-udn/music/track.adts?id=4FEA6E908AC1DA63"/><CurrentTrackDuration val="0:04:07"/><CurrentTrackMetaData val="<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="http-get:*:audio/mp4:*" duration="0:04:07">http://mobile-iPhone-BBCA6023-BB53-41AE-B759-70E4F3C7A506.x-udn/music/track.adts?id=4FEA6E908AC1DA63</res><r:streamContent></r:streamContent><r:radioShowMd></r:radioShowMd><upnp:albumArtURI>http://10.0.20.40:3401/music/image?id=4FEA6E908AC1DA63</upnp:albumArtURI><dc:title&...[TRUNCATED] fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:33 PM: trace Skipping event generation for sound file http://mobile-iPhone-BBCA6023-BB53-41AE-B759-70E4F3C7A506.x-udn/music/track.adts?id=4FEA6E908AC1DA63 fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:33 PM: trace uuid; RINCON_7828CA2384B801400 fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:33 PM: debug Not parsing XML message: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <s:Body> <u:PlayResponse xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"> </u:PlayResponse> </s:Body> </s:Envelope> fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:33 PM: trace Skipping event generation for sound file http://mobile-iPhone-BBCA6023-BB53-41AE-B759-70E4F3C7A506.x-udn/music/track.adts?id=4FEA6E908AC1DA63 fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:33 PM: debug Not parsing XML message: <e:propertyset xmlns:e="urn:schemas-upnp-org:event-1-0"> <e:property> <LastChange> <Event xmlns="urn:schemas-upnp-org:metadata-1-0/AVT/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/"><InstanceID val="0"><TransportState val="STOPPED"/><CurrentPlayMode val="NORMAL"/><CurrentCrossfadeMode val="0"/><NumberOfTracks val="143"/><CurrentTrack val="1"/><CurrentSection val="0"/><CurrentTrackURI val="http://mobile-iPhone-BBCA6023-BB53-41AE-B759-70E4F3C7A506.x-udn/music/track.adts?id=4FEA6E908AC1DA63"/><CurrentTrackDuration val="0:04:07"/><CurrentTrackMetaData val="<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="http-get:*:audio/mp4:*" duration="0:04:07">http://mobile-iPhone-BBCA6023-BB53-41AE-B759-70E4F3C7A506.x-udn/music/track.adts?id=4FEA6E908AC1DA63</res><r:streamContent></r:streamContent><r:radioShowMd></r:radioShowMd><upnp:albumArtURI>http://10.0.20.40:3401/music/image?id=4FEA6E908AC1DA63</upnp:albumArtURI><dc:title&gt...[TRUNCATED] fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:33 PM: trace Current status: 'stopped', coordinator: '' fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:33 PM: trace uuid; RINCON_7828CA2384B801400 fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:33 PM: debug Not parsing XML message: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <s:Body> <u:SetAVTransportURIResponse xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"> </u:SetAVTransportURIResponse> </s:Body> </s:Envelope> fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:29 PM: debug Not parsing XML message: <e:propertyset xmlns:e="urn:schemas-upnp-org:event-1-0"> <e:property> <LastChange> <Event xmlns="urn:schemas-upnp-org:metadata-1-0/AVT/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/"><InstanceID val="0"><TransportState val="STOPPED"/><CurrentPlayMode val="NORMAL"/><CurrentCrossfadeMode val="0"/><NumberOfTracks val="1"/><CurrentTrack val="1"/><CurrentSection val="0"/><CurrentTrackURI val="https://s3.amazonaws.com/smartapp-media/polly-tts/salli/kitchen_basement_door_is_now_closed.mp3"/><CurrentTrackDuration val="0:00:02"/><CurrentTrackMetaData val="<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="http-get:*:audio/mpeg:*" duration="0:00:02">https://s3.amazonaws.com/smartapp-media/polly-tts/salli/kitchen_basement_door_is_now_closed.mp3</res><r:streamContent></r:streamContent><r:radioShowMd></r:radioShowMd><dc:title>kitchen_basement_door_is_now_closed.mp3</dc:title><upnp:class>object.item.audioItem.musicTrack&am...[TRUNCATED] fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:29 PM: trace Skipping event generation for sound file https://s3.amazonaws.com/smartapp-media/polly-tts/salli/kitchen_basement_door_is_now_closed.mp3 fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:27 PM: debug Not parsing XML message: <e:propertyset xmlns:e="urn:schemas-upnp-org:event-1-0"> <e:property> <LastChange> <Event xmlns="urn:schemas-upnp-org:metadata-1-0/AVT/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/"><InstanceID val="0"><TransportState val="PLAYING"/><CurrentPlayMode val="NORMAL"/><CurrentCrossfadeMode val="0"/><NumberOfTracks val="1"/><CurrentTrack val="1"/><CurrentSection val="0"/><CurrentTrackURI val="https://s3.amazonaws.com/smartapp-media/polly-tts/salli/kitchen_basement_door_is_now_closed.mp3"/><CurrentTrackDuration val="0:00:02"/><CurrentTrackMetaData val="<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="http-get:*:audio/mpeg:*" duration="0:00:02">https://s3.amazonaws.com/smartapp-media/polly-tts/salli/kitchen_basement_door_is_now_closed.mp3</res><r:streamContent></r:streamContent><r:radioShowMd></r:radioShowMd><dc:title>kitchen_basement_door_is_now_closed.mp3</dc:title><upnp:class>object.item.audioItem.musicTrack&am...[TRUNCATED] fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:27 PM: trace uuid; RINCON_7828CA2384B801400 fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:27 PM: debug Not parsing XML message: <e:propertyset xmlns:e="urn:schemas-upnp-org:event-1-0"> <e:property> <LastChange> <Event xmlns="urn:schemas-upnp-org:metadata-1-0/AVT/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/"><InstanceID val="0"><TransportState val="TRANSITIONING"/><CurrentPlayMode val="NORMAL"/><CurrentCrossfadeMode val="0"/><NumberOfTracks val="1"/><CurrentTrack val="1"/><CurrentSection val="0"/><CurrentTrackURI val="https://s3.amazonaws.com/smartapp-media/polly-tts/salli/kitchen_basement_door_is_now_closed.mp3"/><CurrentTrackDuration val="0:00:02"/><CurrentTrackMetaData val="<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="http-get:*:audio/mpeg:*" duration="0:00:02">https://s3.amazonaws.com/smartapp-media/polly-tts/salli/kitchen_basement_door_is_now_closed.mp3</res><r:streamContent></r:streamContent><r:radioShowMd></r:radioShowMd><dc:title>kitchen_basement_door_is_now_closed.mp3</dc:title><upnp:class>object.item.audioItem.musicTrack&...[TRUNCATED] fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:27 PM: trace Skipping event generation for sound file https://s3.amazonaws.com/smartapp-media/polly-tts/salli/kitchen_basement_door_is_now_closed.mp3 fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:27 PM: trace uuid; RINCON_7828CA2384B801400 fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:27 PM: debug Not parsing XML message: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <s:Body> <u:PlayResponse xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"> </u:PlayResponse> </s:Body> </s:Envelope> fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:26 PM: debug Not parsing XML message: <e:propertyset xmlns:e="urn:schemas-upnp-org:event-1-0"> <e:property> <LastChange> <Event xmlns="urn:schemas-upnp-org:metadata-1-0/AVT/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/"><InstanceID val="0"><TransportState val="STOPPED"/><CurrentPlayMode val="NORMAL"/><CurrentCrossfadeMode val="0"/><NumberOfTracks val="1"/><CurrentTrack val="1"/><CurrentSection val="0"/><CurrentTrackURI val="https://s3.amazonaws.com/smartapp-media/polly-tts/salli/kitchen_basement_door_is_now_closed.mp3"/><CurrentTrackDuration val="0:00:02"/><CurrentTrackMetaData val="<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="http-get:*:audio/mpeg:*" duration="0:00:02">https://s3.amazonaws.com/smartapp-media/polly-tts/salli/kitchen_basement_door_is_now_closed.mp3</res><r:streamContent></r:streamContent><r:radioShowMd></r:radioShowMd><dc:title>kitchen_basement_door_is_now_closed.mp3</dc:title><upnp:class>object.item.audioItem.musicTrack&am...[TRUNCATED] fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:26 PM: trace Current status: 'stopped', coordinator: '' fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:26 PM: trace Skipping event generation for sound file https://s3.amazonaws.com/smartapp-media/polly-tts/salli/kitchen_basement_door_is_now_closed.mp3 fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:26 PM: trace uuid; RINCON_7828CA2384B801400 fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:26 PM: debug Not parsing XML message: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <s:Body> <u:SetAVTransportURIResponse xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"> </u:SetAVTransportURIResponse> </s:Body> </s:Envelope> fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:26 PM: trace Restoring track rhap://10.0.20.40:3401/music/playlist.m3u?id=playlists%3aE8F61CD419DFABB4 fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:26 PM: trace Delaying 6000 ms before resumption fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:26 PM: trace sonosAction(Play, AVTransport, /MediaRenderer/AVTransport/Control, [InstanceID:0, Speed:1]) fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:26 PM: trace sonosAction(SetAVTransportURI, AVTransport, /MediaRenderer/AVTransport/Control, [InstanceID:0, CurrentURI:https://s3.amazonaws.com/smartapp-media/polly-tts/salli/kitchen_basement_door_is_now_closed.mp3, CurrentURIMetaData:]) fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:26 PM: trace Setting sound track: https://s3.amazonaws.com/smartapp-media/polly-tts/salli/kitchen_basement_door_is_now_closed.mp3 fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:26 PM: info setTrack(https://s3.amazonaws.com/smartapp-media/polly-tts/salli/kitchen_basement_door_is_now_closed.mp3, null, 0 B}) fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:26 PM: debug playTrackAndResume(https://s3.amazonaws.com/smartapp-media/polly-tts/salli/kitchen_basement_door_is_now_closed.mp3, 3, null) fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:26 PM: debug playTextAndResume(Kitchen Basement Door is now closed, null) fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:18 PM: info Kitchen-Sonos is playing Sucker for Pain (with Logic, Ty Dolla $ign & X Ambassadors) by Lil Wayne, Wiz Khalifa & Imagine Dragons from Suicide Squad: The Album fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:18 PM: trace Current status: 'playing', coordinator: '' fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:18 PM: trace uuid; RINCON_7828CA2384B801400 fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:18 PM: debug Not parsing XML message: <e:propertyset xmlns:e="urn:schemas-upnp-org:event-1-0"> <e:property> <LastChange> <Event xmlns="urn:schemas-upnp-org:metadata-1-0/AVT/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/"><InstanceID val="0"><TransportState val="TRANSITIONING"/><CurrentPlayMode val="SHUFFLE_NOREPEAT"/><CurrentCrossfadeMode val="0"/><NumberOfTracks val="143"/><CurrentTrack val="1"/><CurrentSection val="0"/><CurrentTrackURI val="http://mobile-iPhone-BBCA6023-BB53-41AE-B759-70E4F3C7A506.x-udn/music/track.adts?id=285922B6A0AD213D"/><CurrentTrackDuration val="0:04:04"/><CurrentTrackMetaData val="<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="http-get:*:audio/mp4:*" duration="0:04:04">http://mobile-iPhone-BBCA6023-BB53-41AE-B759-70E4F3C7A506.x-udn/music/track.adts?id=285922B6A0AD213D</res><r:streamContent></r:streamContent><r:radioShowMd></r:radioShowMd><upnp:albumArtURI>http://10.0.20.40:3401/music/image?id=285922B6A0AD213D</upnp:albumArtURI><dc:...[TRUNCATED] fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:18 PM: trace Skipping event generation for sound file http://mobile-iPhone-BBCA6023-BB53-41AE-B759-70E4F3C7A506.x-udn/music/track.adts?id=285922B6A0AD213D fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:18 PM: trace uuid; RINCON_7828CA2384B801400 fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:17 PM: debug Not parsing XML message: <e:propertyset xmlns:e="urn:schemas-upnp-org:event-1-0"> <e:property> <LastChange> <Event xmlns="urn:schemas-upnp-org:metadata-1-0/AVT/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/"><InstanceID val="0"><TransportState val="STOPPED"/><CurrentPlayMode val="SHUFFLE_NOREPEAT"/><CurrentCrossfadeMode val="0"/><NumberOfTracks val="143"/><CurrentTrack val="1"/><CurrentSection val="0"/><CurrentTrackURI val="http://mobile-iPhone-BBCA6023-BB53-41AE-B759-70E4F3C7A506.x-udn/music/track.adts?id=17545BA9E267EFB2"/><CurrentTrackDuration val="0:04:31"/><CurrentTrackMetaData val="<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="http-get:*:audio/mp4:*" duration="0:04:31">http://mobile-iPhone-BBCA6023-BB53-41AE-B759-70E4F3C7A506.x-udn/music/track.adts?id=17545BA9E267EFB2</res><r:streamContent></r:streamContent><r:radioShowMd></r:radioShowMd><upnp:albumArtURI>http://10.0.20.40:3401/music/image?id=17545BA9E267EFB2</upnp:albumArtURI><dc:title&...[TRUNCATED] fff2da84-0888-4357-ab4b-e9739c3efb81 1:19:17 PM: trace Current status: 'stopped', coordinator: '' fff2da84-0888-4357-ab4b-e9739c3efb81 1:18:57 PM: info Kitchen-Sonos is playing The What by The Notorious B.I.G. from Ready To Die: The Remaster (Explicit) fff2da84-0888-4357-ab4b-e9739c3efb81 1:18:57 PM: trace Current status: 'playing', coordinator: '' fff2da84-0888-4357-ab4b-e9739c3efb81 1:18:56 PM: trace uuid; RINCON_7828CA2384B801400 fff2da84-0888-4357-ab4b-e9739c3efb81 1:18:54 PM: info Kitchen-Sonos is playing The What by The Notorious B.I.G. from Ready To Die: The Remaster (Explicit) fff2da84-0888-4357-ab4b-e9739c3efb81 1:18:54 PM: trace Current status: 'playing', coordinator: '' fff2da84-0888-4357-ab4b-e9739c3efb81 1:18:54 PM: trace uuid; RINCON_7828CA2384B801400 fff2da84-0888-4357-ab4b-e9739c3efb81 1:18:53 PM: debug Not parsing XML message: <e:propertyset xmlns:e="urn:schemas-upnp-org:event-1-0"> <e:property> <LastChange> <Event xmlns="urn:schemas-upnp-org:metadata-1-0/AVT/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/"><InstanceID val="0"><TransportState val="TRANSITIONING"/><CurrentPlayMode val="NORMAL"/><CurrentCrossfadeMode val="0"/><NumberOfTracks val="1"/><CurrentTrack val="1"/><CurrentSection val="0"/><CurrentTrackURI val="x-sonos-http:P90qsEdMdOaaM9CN3SLzBkA_-_MOLR4a2Ac8OwqZ0BECIXzH40wf7Sh9fOFKqaXjUNw15BOOs-vnjaVUBVNuYpA%3a%3aST%3a3721442961442157503%3a%3aRINCON_7828CA2384B801400%3a2188100.mp3?sid=236&flags=0&sn=1"/><CurrentTrackDuration val="0:03:57"/><CurrentTrackMetaData val="<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"><res protocolInfo="http-get:*:audio/mp3:*" duration="0:03:57">x-sonos-http:P90qsEdMdOaaM9CN3SLzBkA_-_MOLR4a2Ac8OwqZ0BECIXzH40wf7Sh9fOFKqaXjUNw15BOOs-vnjaVUBVNuYpA%3a%3aST%3a3721442961442157503%3a%3aRINCON_7828CA2384B801400%3a2188100.mp3?sid=236&flags=0&sn=1</res><upnp:albumArtURI>https://mediaserver-cont-ch1-1-v4v6.pandora.com/images/public/int/4/2/7/6/...[TRUNCATED] fff2da84-0888-4357-ab4b-e9739c3efb81 1:18:53 PM: trace Skipping event generation for sound file x-sonos-http:P90qsEdMdOaaM9CN3SLzBkA_-_MOLR4a2Ac8OwqZ0BECIXzH40wf7Sh9fOFKqaXjUNw15BOOs-vnjaVUBVNuYpA%3a%3aST%3a3721442961442157503%3a%3aRINCON_7828CA2384B801400%3a2188100.mp3?sid=236&flags=0&sn=1 fff2da84-0888-4357-ab4b-e9739c3efb81 1:18:53 PM: trace uuid; RINCON_7828CA2384B801400 fff2da84-0888-4357-ab4b-e9739c3efb81 1:18:53 PM: debug Not parsing XML message: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <s:Body> <u:PlayResponse xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"> </u:PlayResponse> </s:Body> </s:Envelope> fff2da84-0888-4357-ab4b-e9739c3efb81 1:18:52 PM: debug Not parsing XML message: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <s:Body> <u:SetAVTransportURIResponse xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"> </u:SetAVTransportURIResponse> </s:Body> </s:Envelope> fff2da84-0888-4357-ab4b-e9739c3efb81 1:18:50 PM: debug Not parsing XML message: <e:propertyset xmlns:e="urn:schemas-upnp-org:event-1-0"> <e:property> <LastChange> <Event xmlns="urn:schemas-upnp-org:metadata-1-0/AVT/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/"><InstanceID val="0"><TransportState val="STOPPED"/><CurrentPlayMode val="NORMAL"/><CurrentCrossfadeMode val="0"/><NumberOfTracks val="1"/><CurrentTrack val="1"/><CurrentSection val="0"/><CurrentTrackURI val="https://s3.amazonaws.com/smartapp-media/polly-tts/salli/kitchen_basement_door_is_open.mp3"/><CurrentTrackDuration val="0:00:01"/><CurrentTrackMetaData val="<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="http-get:*:audio/mpeg:*" duration="0:00:01">https://s3.amazonaws.com/smartapp-media/polly-tts/salli/kitchen_basement_door_is_open.mp3</res><r:streamContent></r:streamContent><r:radioShowMd></r:radioShowMd><dc:title>kitchen_basement_door_is_open.mp3</dc:title><upnp:class>object.item.audioItem.musicTrack</upnp:class&a...[TRUNCATED] fff2da84-0888-4357-ab4b-e9739c3efb81 1:18:49 PM: trace uuid; RINCON_7828CA2384B801400 fff2da84-0888-4357-ab4b-e9739c3efb81 1:18:48 PM: debug Not parsing XML message: <e:propertyset xmlns:e="urn:schemas-upnp-org:event-1-0"> <e:property> <LastChange> <Event xmlns="urn:schemas-upnp-org:metadata-1-0/AVT/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/"><InstanceID val="0"><TransportState val="PLAYING"/><CurrentPlayMode val="NORMAL"/><CurrentCrossfadeMode val="0"/><NumberOfTracks val="1"/><CurrentTrack


#2

Unfortunately, this is the way Speak and Resume works due the fact that the Sonos has no internal TTS capability, To play speech, an external service has to be used to create an mp3 from your chosen text. After the Sonos then plays that mp3 “track,” the only thing it can restore is the playlist because it doesn’t remember the previous track or where that track was interrupted.

Speak and Resume can be remarkably unreliable with certain music sources, so you’ve actually got things working pretty well. Hopefully when Sonos releases their new SDK in 2018 there will be some improvement in this capability.