SONOS PlayMode doesn't work

I am trying to change SONOS PlayMode to SHUFFLE+REPEAT using the following code but failed. Where is the problem? I can successfully get CurrentPlayMode but can’t set it. Any help will be greatly appreciated.

local lul_PlayMode_status = luup.variable_get(“urn:upnp-org:serviceId:AVTransport”, “CurrentPlayMode”, 195)
if (lul_PlayMode_status == “NORMAL”) then
luup.call_action(“urn:upnp-org:serviceId:AVTransport”, “SetPlayMode”, “SHUFFLE”,195)
end

I am using the following line to play my playlist then want to use SetPlayMode for SHUFFLE+RANDOM. I am currently running Vera UI5 with latest SONOS plugin.

luup.call_action(“urn:micasaverde-com:serviceId:Sonos1”, “PlayURI”, {URIToPlay=“Q:JanniePlaylist1”, Volume=16}, 195)

Please do not double post. It is frowned upon by many on this forum.

http://forum.micasaverde.com/index.php?topic=31984

  • Garrett