As a noob, I’m trying to figure out how to make my Sonos play a doorbell mp3 file, that I share on a webserver on my RPI at //192.168.1.90/share/doorbell.mp3.
I have read the binding documentation.
Here I stumble on the following under binding configuration:
callbackUrl - Callback URL - URL to use for playing notification sounds, e.g. http://192.168.0.2:8080
I also found the following which looks to be exactely what I need:
All supported Sonos devices are registered as an audio sink in the framework. Audio streams are treated as notifications, i.e. they are fed into the notificationsound channel and changing the volume of the audio sink will change the notificationvolume, not the volume. Note that the Sonos binding has a limit of 20 seconds for notification sounds. Any sound that is longer than that will be cut off.
The only thing I’m missing is some help under the “full example”
How to utilize:
- notificationsound String Play a notification sound by a given URI ?
- notificationvolume Dimmer Set the volume applied to a notification sound ?
What to write in things, items and sitemaps? And what if I want a rule to make my Sonos play the doorbell sound whenever a physical switch is pushed?
Can someone provide a simple guide on this, and maybe update the binding documentation sometime in the future?
Thanks in advance
/K