Rooms Manager: Smarter Rooms: Personalized home automation with Occupancy


#566

if you paste the track uri as the resume track string and click resume track on the device interface what happens?

hls-radio://http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_high/llnw/bbc_radio_one.m3u8


#567

nothing


#568

was the player stopped when you tried it? :slight_smile:


#569

tried both

also tried it in PlayTrack and it works in there, both with nothing playing and with something else playing


#570

but not in restore track or resume track?


#571

correct


#572

it hard to restore or resume the track when those commands dont work. :slight_smile:


#573

definitely! at least it speaks now though so can start to move it from ST :smile:


#574

yay!


#575

one more try … instead of the track uri from state use the uri please and see if that works for resume or restore.

x-sonosapi-stream:s24939?sid=254&flags=8224&sn=0


#576

also with the track playing please share the full current states data.


#577

nope nothing

### Current States

* level :  **17**
* mute :  **unmuted**
* status :  **playing**
* trackData :  **{"audioSource":"Unknown","station":null,"name":null,"artist":null,"album":null,"trackNumber":"1","status":"playing","level":"17","mute":"unmuted","uri":"x-sonosapi-stream:s24939?sid=254&flags=8224&sn=0","trackUri":"hls-radio://http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_high/llnw/bbc_radio_one.m3u8","transportUri":"x-sonosapi-stream:s24939?sid=254&flags=8224&sn=0","enqueuedUri":"x-sonosapi-stream:s24939?sid=254&flags=8224&sn=0","metaData":"BBC Radio 1<\\/dc:title>object.item.audioItem.audioBroadcast<\\/upnp:class>SA_RINCON65031_<\\/desc><\\/item><\\/DIDL-Lite>","trackMetaData":"x-sonosapi-stream:s24939?sid=254&flags=8224&sn=0<\\/res><\\/r:streamContent><\\/r:radioShowMd>\\/getaa?s=1&u=x-sonosapi-stream%3as24939%3fsid%3d254%26flags%3d8224%26sn%3d0<\\/upnp:albumArtURI>x-sonosapi-stream:s24939?sid=254&flags=8224&sn=0<\\/dc:title>object.item<\\/upnp:class><\\/item><\\/DIDL-Lite>"}**
* trackDescription :  **BBC Radio 1**

#578

ok. if you use the uri in play track does it work?


#579

yes it does


#580

change this original line:

to:

def uri = musicPlayers.trackData.uri
musicPlayers.playText(str)
musicPlayers.playTrack(uri)

save and try please.


#581

[app:8](http://192.168.1.78/logs#app8)2018-10-31 23:22:42.651:errorgroovy.lang.MissingMethodException: No signature of method: app1541027897033593494689.playText() is applicable for argument types: (java.lang.String) values: [Long time no see Emma, Emma is home.] on line 800 (contactClosedEventHandler)


#582

try musicPlayers.speak(str) instead of playText line.


#583

sorry it did just work i noticed i copied it wrong


#584

and does the track start playing again?


#585

tried this one as well but this does not restore it repeats

musicPlayers.playText(str)

this did work but now it also repeats ? when it did restore it didn't seem to restore to the exact correct radio link it restored to a version of it oddly. I don't know how to explain what i mean, but it did say tune in then after it just the radio station with no picture.

also the volume does not increase ( although a good thing now as its late!)

just noticed errors in the SONOS logs

[dev:67](http://192.168.1.78/logs#dev67)2018-10-31 23:34:33.571:errorgroovy.lang.MissingMethodException: No signature of method: static java.lang.Math.round() is applicable for argument types: (java.util.ArrayList) values: [[17]] Possible solutions: round(float), round(double), find(), rint(double), find(groovy.lang.Closure), random() (setLevel)

[dev:67](http://192.168.1.78/logs#dev67)2018-10-31 23:34:33.466:errororg.codehaus.groovy.runtime.metaclass.MethodSelectionException: Could not find which method playTrack() to invoke from this list: public java.lang.Object sonosDriver#playTrack(java.lang.String) public java.lang.Object sonosDriver#playTrack(java.util.Map) public java.lang.Object sonosDriver#playTrack(java.lang.String, java.lang.Object) (playTrack)

[dev:67](http://192.168.1.78/logs#dev67)2018-10-31 23:30:36.183:errorgroovy.lang.MissingMethodException: No signature of method: static java.lang.Math.round() is applicable for argument types: (java.util.ArrayList) values: [[17]] Possible solutions: round(float), round(double), find(), rint(double), find(groovy.lang.Closure), random() (setLevel)

[dev:67](http://192.168.1.78/logs#dev67)2018-10-31 23:30:36.136:errororg.codehaus.groovy.runtime.metaclass.MethodSelectionException: Could not find which method playTrack() to invoke from this list: public java.lang.Object sonosDriver#playTrack(java.lang.String) public java.lang.Object sonosDriver#playTrack(java.util.Map) public java.lang.Object sonosDriver#playTrack(java.lang.String, java.lang.Object) (playTrack)

[dev:67](http://192.168.1.78/logs#dev67)2018-10-31 23:29:55.082:errorgroovy.lang.MissingMethodException: No signature of method: static java.lang.Math.round() is applicable for argument types: (java.util.ArrayList) values: [[17]] Possible solutions: round(float), round(double), find(), rint(double), find(groovy.lang.Closure), random() (setLevel)

[dev:67](http://192.168.1.78/logs#dev67)2018-10-31 23:29:55.018:errororg.codehaus.groovy.runtime.metaclass.MethodSelectionException: Could not find which method playTrack() to invoke from this list: public java.lang.Object sonosDriver#playTrack(java.lang.String) public java.lang.Object sonosDriver#playTrack(java.util.Map) public java.lang.Object sonosDriver#playTrack(java.lang.String, java.lang.Object) (playTrack)

[dev:67](http://192.168.1.78/logs#dev67)2018-10-31 23:28:17.487:errorgroovy.lang.MissingMethodException: No signature of method: static java.lang.Math.round() is applicable for argument types: (java.util.ArrayList) values: [[17]] Possible solutions: round(float), round(double), find(), rint(double), find(groovy.lang.Closure), random() (setLevel)

[dev:67](http://192.168.1.78/logs#dev67)2018-10-31 23:28:17.422:errororg.codehaus.groovy.runtime.metaclass.MethodSelectionException: Could not find which method playTrack() to invoke from this list: public java.lang.Object sonosDriver#playTrack(java.lang.String) public java.lang.Object sonosDriver#playTrack(java.util.Map) public java.lang.Object sonosDriver#playTrack(java.lang.String, java.lang.Object) (playTrack)

[dev:67](http://192.168.1.78/logs#dev67)2018-10-31 23:27:41.906:errorgroovy.lang.MissingMethodException: No signature of method: static java.lang.Math.round() is applicable for argument types: (java.util.ArrayList) values: [[17]] Possible solutions: round(float), round(double), find(), rint(double), find(groovy.lang.Closure), random() (setLevel)

[dev:67](http://192.168.1.78/logs#dev67)2018-10-31 23:27:41.797:errororg.codehaus.groovy.runtime.metaclass.MethodSelectionException: Could not find which method playTrack() to invoke from this list: public java.lang.Object sonosDriver#playTrack(java.lang.String) public java.lang.Object sonosDriver#playTrack(java.util.Map) public java.lang.Object sonosDriver#playTrack(java.lang.String, java.lang.Object) (playTrack)

[dev:67](http://192.168.1.78/logs#dev67)2018-10-31 23:25:25.961:errorgroovy.lang.MissingMethodException: No signature of method: static java.lang.Math.round() is applicable for argument types: (java.util.ArrayList) values: [[17]] Possible solutions: round(float), round(double), find(), rint(double), find(groovy.lang.Closure), random() (setLevel)

[dev:67](http://192.168.1.78/logs#dev67)2018-10-31 23:25:25.896:errororg.codehaus.groovy.runtime.metaclass.MethodSelectionException: Could not find which method playTrack() to invoke from this list: