This package has been deprecated

Author message:

This package is no longer maintained. Please use any other node-red sonos package. Thanks for using up to now.

node-red-contrib-sonos

0.0.13 • Public • Published

SONOS for NodeRED

A set of nodes to control SONOS via NodeRED. Uses the sonos NPM Module.

Currently early alpha version ... development ongoing.

Open points / not tested yet:

  • manipulating playlists
  • zone configurations
  • controlling stereo and or surround configurations
  • automatic detection of play configuration

Known issues:

  • Queue behavior changed, fixed quick and dirty the functions, please raise issues in case something is not working as expected.
  • status is only set according to input, not requested from player

Planned upcoming features:

  • annoucement node (should play a jingle or a text to speech thing and then continue with current playlist)

Installation

npm install node-red-contrib-sonos

Implemented Nodes

Control - controls one SONOS player, by reacting on a JSON payload. Available modes:

  • "mode":play,pause,stop
  • "track":next,previous
  • "volume":1..100,mute,unmute

Current Track - returns the currently played track

Queue - controls one SONOS player, by reacting on a JSON payload. Available modes:

  • "songuri":<uri of the song to be queued>
  • "position":0..<max_queue_length>,next

Group - controls join or leave of a group. The node itself represents the "master". Master node is also the one play stop and other activities will continue to work. Available modes:

  • "action":join,leave
  • "otherNode":<ip address of the node to join or to leave>
[{"id":"5633ed23.863ce4","type":"inject","z":"cf7e64ed.43eed8","name":"","topic":"","payload":"{\"mode\":\"play\"}","payloadType":"json","repeat":"","crontab":"","once":false,"x":384,"y":902,"wires":[["405194b2.76386c"]]},{"id":"975103b.6a3eb","type":"inject","z":"cf7e64ed.43eed8","name":"","topic":"","payload":"{\"mode\":\"stop\"}","payloadType":"json","repeat":"","crontab":"","once":false,"x":377,"y":957,"wires":[["405194b2.76386c"]]},{"id":"9030486.2c905b8","type":"inject","z":"cf7e64ed.43eed8","name":"","topic":"","payload":"{\"mode\":\"pause\"}","payloadType":"json","repeat":"","crontab":"","once":false,"x":375,"y":1025,"wires":[["405194b2.76386c"]]},{"id":"dec0ad1a.c834a","type":"inject","z":"cf7e64ed.43eed8","name":"","topic":"","payload":"{\"track\":\"next\"}","payloadType":"json","repeat":"","crontab":"","once":false,"x":383,"y":1090,"wires":[["405194b2.76386c"]]},{"id":"9c7dd2ad.c3596","type":"inject","z":"cf7e64ed.43eed8","name":"","topic":"","payload":"{\"track\":\"previous\"}","payloadType":"json","repeat":"","crontab":"","once":false,"x":385,"y":1144,"wires":[["405194b2.76386c"]]},{"id":"405194b2.76386c","type":"sonos-control","z":"cf7e64ed.43eed8","playnode":"","name":"","x":635,"y":997,"wires":[]}]

Readme

Keywords

Package Sidebar

Install

npm i node-red-contrib-sonos

Weekly Downloads

21

Version

0.0.13

License

MIT

Unpacked Size

33.3 kB

Total Files

15

Last publish

Collaborators

  • shbert