If I played some music last time on Sonos with repeat mode turn on, and now if I use vera to play a song when I come home, it will play the song repeatedly. However I wanted to disable the repeat mode so it plays only once.
Is there a way to do so?
You can use the code below:
-- Sonos play modes: NORMAL, REPEAT_ALL, SHUFFLE, SHUFFLE_NOREPEAT
SONOS_DEV = 73
luup.call_action("urn:upnp-org:serviceId:AVTransport", "SetPlayMode", {InstanceID="0", NewPlayMode="NORMAL"}, SONOS_DEV)
Please remember to change the ID of your Sonos device. The example above is for devide #73.
I hope this helps. Please let me know.