This page last changed on Aug 16, 2013 by hank.
HOW TO INTEGRATE SONOS WITH OPENREMOTE
1. Download and Install Node.js for your OS.
2. Download "Sonos HTTP API" Node server
Start by fixing your dependencies. Invoke the following command:
This will download the necessary dependencies if possible (you will need git for this)
start the server by running
Now you can control your system by invoking the following commands:
The actions supported as of today:
• volume (parameter is absolute or relative volume. Prefix +/- indicates relative volume)
• seek (parameter is queue index)
• state (will return a json-representation of the current state of player)
3. Setup OpenRemote to handle SONOS commands
Create HTTP commands in OR designer for all necessary controls you need like: play, pause, next, vol + etc.
These commands can now be connected to a button in Openremote.
For command "state" also create a sensor and fill in JSONPath Expression to display requested info with a label in OR.
Example of a state json:
"artist":"The Low Anthem",
"album":"Rough Trade - Counter Culture 2008",
4. To connect physical KNX buttons with Sonos commands
Create a command that's listening at the KNX bus for changes in the group address of that specific button, also create a sensor connected to the command.
Create a rule for each function of the button
Instructions made by Henrik Gjörloff
Special thanks to Jimmy Shimizu (jishi) creating the SONOS HTTP API.
What about moving this forum page into the documentation?
Posted by yannph at Aug 17, 2013 08:42
Hi Henrik, indeed great. As Yann Philippe suggests, would you be interested to creating a 'How to...Sonos' page as part of documentation?
Posted by pierre kil at Aug 18, 2013 11:23
Just give me the guidelines and i would be happy to do that!
Posted by hank at Aug 19, 2013 09:12
Hi Henrik, thanks for the offer! We set-up a page: OpenRemote 2.0 How To - Sonos. It is an example of another product, but it shows the typical set-up. You should have access to edit it. So my suggestion is to just start from here and edit it. If you want to chat more about it, just e-mail me at pierreatopenremotedotorg
Posted by pierre kil at Aug 19, 2013 16:02
Hey Guys me Mark.Well i think that's an amazing tutorial along with coding & pics about integrate sons with open remote.Thanks!!
cross bridge load cells
Posted by markspend01 at Aug 21, 2013 19:53