Sonos plugin for homebridge: https://github.com/nfarina/homebridge
Clone or download
nfarina Merge pull request #58 from nfarina/pr/7
include installation and siri instructions
Latest commit 4d385c6 Sep 18, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore New Sonos plugin Nov 9, 2015
README.md include installation and siri instructions Sep 18, 2018
index.js Merge remote-tracking branch 'nfarina/master' Sep 14, 2018
package.json Version bump for npm Sep 18, 2018

README.md

Sonos accessory

This accessory allows you to turn Sonos speakers on and off using Siri and/or a HomeKit enabled iOS app.

  • Siri, turn Bedroom Speakers on.
  • Siri, turn Bedroom Speakers off.

Installation

Homebridge is published through NPM and should be installed "globally" by typing:

sudo npm install -g homebridge
sudo npm install -g homebridge-sonos

If you don't have Homebridge installed, check the repository for detailed setup instructions.

Configuration

The plugin is configured as part of your Homebridge config.json file.

Example addition to existing config.json:

,{
  "accessories": [
    {
      "accessory": "Sonos",
      "name": "Bedroom Speakers",
      "room": "Bedroom",
      "mute": true
    }
  ]
}

The "mute" parameter is optional. Setting it to true will mute/unmute the speaker instead of a stop/play.

The room parameter must match the room name in Sonos exactly.

Example new config.json:

{
	"bridge": {
		"name": "Homebridge",
		"pin": "000-00-001"
	},

	"description": "Example config for sonos only.",

	"accessories": [{
		"accessory": "Sonos",
		"name": "Bedroom Speakers",
		"room": "Bedroom"
	}]
}

Run Homebridge:

$ homebridge

Notes

The name "Speakers" is used in the name for the above example configurations instead of something more intuitive like "Sonos" or "Music" or "Radio".

This is because Siri has many stronger associations for those words. For instance, including "Sonos" in the name will likely cause Siri to just launch the Sonos app. And including "Music" in the name will cause Siri to launch the built-in Music app.

You could of course pick any other unique name, like "Turn on the croissants" if you want. Or add it to a Scene with a custom phrase.

Alternative

You also might check out this fork of homebridge-sonos by dominicstelljes that exposes the Sonos as a "lightbulb" instead of a switch. This will allow you control the volume through Siri - "Set the Speakers to 50%" for example. But it will have some side-effects. Check out his README for more details.