originallyus / node-red-contrib-better-sonos

NodeRed node for controlling Sonos Players
MIT License
8 stars 9 forks source link

Specify which sonos device with input parameter #18

Open dgmltn opened 6 years ago

dgmltn commented 6 years ago

I'd like to use one control node to control any of my sonos speakers. I'd like to be able to specify which speaker as an input parameter to the control node. So { topic: "B8-E9-37-83-10-26:2", payload: "playpause" } or { topic: "Sonos One", payload: "playpause" } should affect the specified speaker.

skavan commented 6 years ago

+1 for the above. Also, is there any way to get "events" when the Sonos changes from outside the node? I know the uPnp protocol fires messages (at least I think I remember that). While one could use a timer, it's not that efficient because one only really needs "every second" update for transport messages (when it's playing). For pretty much everything else, events on start/stop/new playlist etc... would suffice.

Thanks.

gjhw commented 6 years ago

Another +1 here. Also, please keep the ability to use IP address as well as MAC / Serial as I have seen unpredictable results when using MAC (probably an ARP issue with my router) IP address works flawlessly though.

dgmltn commented 6 years ago

In the mean time, I've found this server, and it works great: https://github.com/jishi/node-sonos-http-api

evazzoler commented 5 years ago

+1

lobocobra commented 4 years ago

+1 , it would be great if I can change the sonos deivce, I want to play on.