I’musing the “say” command with my sonos boxes, the implemantation of that one for sonsos takes care of the Save and Restore by itself (i.e. the previously played source is continued) I think it’s the same for the “playSound” command. (Keeping fingers crossed. I found out about that by looking at the debug logs while using the say command.
So something like the following should be working for you:
rule “PlaySomething”
when
Channel “amazondashbutton:dashbutton:ac-63-be-xx-yy-zz:press” triggered
then
logInfo(“Doorbell button pressed”, “Someone at the door”)
var string AudioSink="sonos:PLAY1:RINCON_xxxxxxx1400 //put in your correct values!!
playSound(AudioSink,“doorbell.mp3”)
end