Skip to main content
Contributor I
Nov 9, 2016 12:26 PM UTC
Question

Sonos Volume Control with Raspberry Pi

A Customer of mine wants a waterproof volume control in the shower. However simple this seems its not quite that easy.

Does someone with some programming knowledge know if a raspberry pi could use its built in web server to control sonos from a contact closure?
    This topic has been closed for further comments. You can use the search bar to find a similar topic, or create a new one by clicking Create Topic at the top of the page.

    6 replies

    BarryM
    Nov 9, 2016 12:56 PM UTC
    The latest version of the RPi has builtin WiFi. It can use UPnP to find Sonos zones, and subscribe to their services. I have a Raspberry Pi programmed to do this so that it can detect and record Sonos track play events.

    I can't address the volume adjustment part. I only needed to monitor the Sonos zones, not control them. It is possible, as there are various projects controlling Sonos zones in this way, eg Sonospy.

    The RPi also has GPIO pins, so it presumably it could detect rocker switch adjustments.

    However simple this seems its not quite that easy.
    That would be correct.
    Translate
    Trending Lyricist I
    Nov 11, 2016 2:16 AM UTC
    Thanks to Jishi in our community, it actually is rather easy. Have a read:

    http://jishi.github.io/node-sonos-http-api/
    Translate
    BarryM
    Nov 11, 2016 3:17 AM UTC
    thanks for the link.

    I have looked, across technologies, to Jishi's project from time to time. Not seen that. It looks great.

    Thanks to Jishi in our community, it actually is rather easy
    I still think that it is too hard, just to allow some one-off dude to adjust the volume of muzak in his shower. 🙂
    Translate
    Trending Lyricist I
    Nov 11, 2016 12:16 PM UTC
    FWIW I plan to put an Amazon Echo Dot in our bathroom expressly to control Sonos, once the integration is out of beta.
    Translate
    Lyricist II
    Dec 22, 2016 10:07 PM UTC
    Lots of open source home automation solutions support Sonos. Home-assistant supports it out of the box, Sonos devices get auto detected. See https://home-assistant.io/ .
    Translate
    Avid Contributor I
    Jan 2, 2017 4:15 AM UTC
    Its a bit old school but have you considered a CR100 controller? I had a cradle (with power) installed in our bathroom and I just grab the CR100 as I jump in the shower. Works a treat and is completely off the shelf. In both senses of the phrase.
    Translate