Sonos rule doorbell.mp3

I have been reading all the other topic’s, but still can’t it to play my doorbell

Tried /Sounds/doorbell.mp3 etc…

String Playuri_Sonos_Living { channel="sonos:zoneplayer:RINCON_7828CA0B9F2001400:playuri" }
val Number NotificationVolume = 20

rule "IHC_Ringetryk"
when
Item IHC_Ringetryk changed
then
if (IHC_Ringetryk.state==OFF){

}
else {
	sendCommand(Playuri_Sonos_Living,"doorbell.mp3")
}

end

Make sure your Sonos player is set as the default audio sink in PaperUI and then use

PlaySound (“doorbell.mp3”)

Instead of sendcommand.
You might need to set the channel notificationsoundvolume before the use of that rule.

1 Like