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