Loxone and Sonos as a doorbell

  • Set up your Sonos device in LoxConfig (Virtual I/O > Predefined devices > Sonos) with the correct IP address. You can retrieve the IP address of your Sonos player from the Sonos application (go to ‘info’ in the Help menu).
  • Add a new virtual output command to the Sonos device, e.g. “Doorbell”
  • Set up these properties:

Command for ON: /MediaRenderer/AVTransport/Control

HTTP extensions for ON:

SOAPACTION: "urn:schemas-upnp-org:service:AVTransport:1#SetAVTransportURI"

HTTP POST Command:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:SetAVTransportURI xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><InstanceID>0</InstanceID><CurrentURI>x-file-cifs://DISKSTATION/music/doorbell.mp3</CurrentURI><CurrentURIMetaData></CurrentURIMetaData></u:SetAVTransportURI></s:Body></s:Envelope>

Replace the path to the doorbell soundfile on your NAS (//DISKSTATION/music/doorbell.mp3 in my case).

HTTP method for on: POST

 

One thought on “Loxone and Sonos as a doorbell”

  1. what does this do exactly.
    Will this interupt the music with a doorbell sound then continue?
    Will it break my groups for multi zone?

    I really want to set up a doorbell through me sonos,
    but before spending all this money want to check it will do what I want.

    can you describe how it functions, I dont mind if it leaves music paused (but would rather it continued) and realise it will most likely go to the next song after doorbell, not continue the song it was playing.

Leave a Reply

Your email address will not be published. Required fields are marked *


2 + 4 =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>