jishi / node-sonos-http-api

An HTTP API bridge for Sonos easing automation. Hostable on any node.js capable device, like a raspberry pi or similar.
http://jishi.github.io/node-sonos-http-api/
MIT License
1.83k stars 462 forks source link

Next Playlist #730

Open fastender opened 4 years ago

fastender commented 4 years ago

How I can skip to the next playlist?

jishi commented 4 years ago

What do you mean? I'm not familiar with such a concept, Sonos has a Queue, when you change playlist you replace the queue...?

fastender commented 4 years ago

Gladly, let me introduce my idea to you.

I have a switch (integrated via Homeassistant and NodeRed). If I press this button then either the next playlist should be played or a random one should be selected and played.

Is there a command like "next" playlist or a random playlist?

jishi commented 4 years ago

No, because there is no concept of what "next" playlist entails. Nor a list of playlists to begin with in this system. You need to explicitly specify what playlist it is supposed to play. You would have to roll your own next from a list or pick a random.

Do note that it mostly support playing Sonos playlist, or playlists from music services that are added as favorites.