Skip to main content
Contributor I
November 9, 2016
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
    November 9, 2016
    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.
    Trending Lyricist I
    November 11, 2016
    Thanks to Jishi in our community, it actually is rather easy. Have a read:

    http://jishi.github.io/node-sonos-http-api/
    BarryM
    November 11, 2016
    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. 🙂
    Trending Lyricist I
    November 11, 2016
    FWIW I plan to put an Amazon Echo Dot in our bathroom expressly to control Sonos, once the integration is out of beta.
    Lyricist II
    December 22, 2016
    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/ .
    Avid Contributor I
    January 2, 2017
    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.