I am using a play 1 as default sink for oh2 rc1. I’ve configured a rule to playSound on the default sink on certain events. If the sonos is paused it will play the sound and then start my old playlist. I would expect that it plays the playSound-Sound and then pause again.
var Timer bellRepeatTimer
rule "Klingel"
when
Item Bell received command
then
logDebug("toby", "The bell rang!")
if (bellRepeatTimer == null) {
bellRepeatTimer = createTimer(now.plusSeconds(10)) [|
logDebug("toby", "The bell can ring again")
bellRepeatTimer = null
]
logDebug("toby", "Sending bell to SONOS")
sendCommand(Sonos_GF_Living_NotifyVol, 50)
sendCommand(Sonos_GF_Living_Notify, "http://autopi:8080/static/bell.mp3")
sendCommand(Sonos_UF_Terrace_NotifyVol, 50)
sendCommand(Sonos_UF_Terrace_Notify, "http://autopi:8080/static/bell.mp3")
}
end