# Play a new playlist with sonos

**URL:** <https://community.homey.app/t/play-a-new-playlist-with-sonos/17958>\
**Category:** Apps\
**Created:** [September 10, 2019, 7:21am UTC](https://community.homey.app/t/play-a-new-playlist-with-sonos/17958 "2019-09-10T07:21:53Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tobias](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tobias/32/8423_2.png) [@Tobias](https://community.homey.app/u/Tobias)\
**Post date:** [September 10, 2019, 7:21am UTC](https://community.homey.app/t/play-a-new-playlist-with-sonos/17958/1 "2019-09-10T07:21:54Z")

</div>

Hi,

I can’t manage Sonos to play a new playlist. It only add the new playlist to the current queue.

Is there a way to reset the queue?

---

<div class="post-metadata">

**Author:** ![Marcel\_Ubels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ubels/32/18860_2.png) [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)\
**Post date:** [September 10, 2019, 7:53am UTC](https://community.homey.app/t/play-a-new-playlist-with-sonos/17958/2 "2019-09-10T07:53:24Z")

</div>

In the Sonos app you can delete the queue

---

<div class="post-metadata">

**Author:** ![Tobias](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tobias/32/8423_2.png) [@Tobias](https://community.homey.app/u/Tobias)\
**Post date:** [September 10, 2019, 11:05am UTC](https://community.homey.app/t/play-a-new-playlist-with-sonos/17958/3 "2019-09-10T11:05:55Z")

</div>

Yes. That is possible. But then I don’t need homey. Because I’d like to select playlists through homey

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [September 10, 2019, 5:19pm UTC](https://community.homey.app/t/play-a-new-playlist-with-sonos/17958/4 "2019-09-10T17:19:03Z")

</div>

Add the playlists to your favorites on the Sonos, then you can start them by:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/1/1d13930f08f50171837336cef2f91dee76bec904.png)

---

<div class="post-metadata">

**Author:** ![Tobias](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tobias/32/8423_2.png) [@Tobias](https://community.homey.app/u/Tobias)\
**Post date:** [September 10, 2019, 6:02pm UTC](https://community.homey.app/t/play-a-new-playlist-with-sonos/17958/5 "2019-09-10T18:02:06Z")

</div>

This will not work. It will queue the song in the original queue. Not override the queue .

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [September 12, 2019, 3:50pm UTC](https://community.homey.app/t/play-a-new-playlist-with-sonos/17958/6 "2019-09-12T15:50:21Z")

</div>

Just tested, but for me, the new Playlist is added to the Que, but the first item of the NEW playlist is starting to play. So if the Que with 100 songs is playing and a Second playlist is ordered to start, the Second playlist is added to the Que and the number 101 starts playing. This goes for SonosPlaylist and also for Favorites.  
Indeed, I don’t see a possibility to delete the Que for whatever reason you want this to do.

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [September 12, 2019, 3:59pm UTC](https://community.homey.app/t/play-a-new-playlist-with-sonos/17958/7 "2019-09-12T15:59:04Z")

</div>

> [@JPe4619](#):
>
> Indeed, I don’t see a possibility to delete the Que

This is not possible because it’s not integrated in the Homey app.  
Clearing the queue would be nice yes.

---

<div class="post-metadata">

**Author:** ![Tobias](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tobias/32/8423_2.png) [@Tobias](https://community.homey.app/u/Tobias)\
**Post date:** [September 12, 2019, 4:14pm UTC](https://community.homey.app/t/play-a-new-playlist-with-sonos/17958/8 "2019-09-12T16:14:10Z")

</div>

😢

---

<div class="post-metadata">

**Author:** ![A\_Ntb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/a_ntb/32/13604_2.png) [@A\_Ntb](https://community.homey.app/u/A_Ntb)\
**Post date:** [September 26, 2019, 8:40am UTC](https://community.homey.app/t/play-a-new-playlist-with-sonos/17958/9 "2019-09-26T08:40:35Z")

</div>

Likewise Tobias. I would appreciate a clear queue option as well!  
(I use a KAKU control, some of the controls start a Sonos flow with different playlists/favourites attached to them, but the songs just join the queue instead of starting them)

Greetings,  
Ann

---

<div class="post-metadata">

**Author:** ![Goliath](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/goliath/32/15652_2.png) [@Goliath](https://community.homey.app/u/Goliath)\
**Post date:** [October 20, 2019, 8:24pm UTC](https://community.homey.app/t/play-a-new-playlist-with-sonos/17958/10 "2019-10-20T20:24:46Z")

</div>

> [@A\_Ntb](#):
>
> control, some of the controls start a Sonos flow with different playlists/favourites attached to them, but the songs just join the queue instead of starting them)

I have same issue. Everytime I start a playlist or favorite album it will add up in the que. Lets say I have a playlist of 100 song, next time I run Playlist it will be 200 songs, and will continue to grow…

---

<div class="post-metadata">

**Author:** ![Peter\_Post](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_post/32/276_2.png) [@Peter\_Post](https://community.homey.app/u/Peter_Post)\
**Post date:** [October 22, 2019, 10:05am UTC](https://community.homey.app/t/play-a-new-playlist-with-sonos/17958/11 "2019-10-22T10:05:18Z")

</div>

When you have a server running you can clear the que in a flow using homey’s HTTP request flow app and a nodejs app running on the server called node-sonos-http-api. Webadres is [https://github.com/jishi/node-sonos-http-api](https://github.com/jishi/node-sonos-http-api). It took me a while running this on a synology server, but now it’s running fine. every time when i start a new playlist the cue is cleared.  
It’s a shame that the Athom Sonos app doesn’t do it from start.

---

<div class="post-metadata">

**Author:** ![erik.fisher](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/erik.fisher/32/8299_2.png) [@erik.fisher](https://community.homey.app/u/erik.fisher)\
**Post date:** [November 6, 2019, 10:04am UTC](https://community.homey.app/t/play-a-new-playlist-with-sonos/17958/12 "2019-11-06T10:04:32Z")

</div>

I have the exact same issue.  
This problem makes the shuffle feature in Homey flow useless.

In Homey I want to do the following:

1. Play playlist
2. Shuffle

The problem now is that the playlist is added to the existing queue. Then the whole queue (including old songs) are shuffled together:/

---

<div class="post-metadata">

**Author:** ![Joris2112](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/joris2112/32/16718_2.png) [@Joris2112](https://community.homey.app/u/Joris2112)\
**Post date:** [May 25, 2020, 4:22pm UTC](https://community.homey.app/t/play-a-new-playlist-with-sonos/17958/13 "2020-05-25T16:22:15Z")

</div>

Is there already a solution for this?

I have the same problem.

It seems that now always the same songs will play instead of a new shuffle of songs.

---

<div class="post-metadata">

**Author:** ![Joris2112](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/joris2112/32/16718_2.png) [@Joris2112](https://community.homey.app/u/Joris2112)\
**Post date:** [May 25, 2020, 4:36pm UTC](https://community.homey.app/t/play-a-new-playlist-with-sonos/17958/14 "2020-05-25T16:36:41Z")

</div>

This will get mixed up if you shuffle. If you don’t want that your playlists always starts with the same song, the different playlists will get mixed up.

---

<div class="post-metadata">

**Author:** ![Marcel\_Ubels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ubels/32/18860_2.png) [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)\
**Post date:** [July 15, 2020, 2:02pm UTC](https://community.homey.app/t/play-a-new-playlist-with-sonos/17958/15 "2020-07-15T14:02:49Z")

</div>

As already answered the only possibility is to use the Sonos api on github. Install the api on a raspberry pi or a Nas and you can clean up the queue before playing a new playlist. Works great. I have installed this on a synology server with Docker. With http request you can clear the playlist from a flow.

---

<div class="post-metadata">

**Author:** ![Matt20v](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/matt20v/32/11393_2.png) [@Matt20v](https://community.homey.app/u/Matt20v)\
**Post date:** [November 3, 2020, 11:33am UTC](https://community.homey.app/t/play-a-new-playlist-with-sonos/17958/16 "2020-11-03T11:33:20Z")

</div>

Thanks everyone this worked a treat !

Just need to learn how to turn the node js thing into a windows service to run on my server !

---

<div class="post-metadata">

**Author:** ![Henk\_Renting](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/henk_renting/32/87634_2.png) [@Henk\_Renting](https://community.homey.app/u/Henk_Renting)\
**Post date:** [November 3, 2020, 12:10pm UTC](https://community.homey.app/t/play-a-new-playlist-with-sonos/17958/17 "2020-11-03T12:10:49Z")

</div>

Have you all made a request at Athom for changing this behaviour or clearing the queue? 🙂

---

<div class="post-metadata">

**Author:** ![Martijn\_Hoogenbosch](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijn_hoogenbosch/32/10647_2.png) [@Martijn\_Hoogenbosch](https://community.homey.app/u/Martijn_Hoogenbosch)\
**Post date:** [November 3, 2020, 3:57pm UTC](https://community.homey.app/t/play-a-new-playlist-with-sonos/17958/18 "2020-11-03T15:57:32Z")

</div>

And while you are at it, please also request the following

- Volume Up
- Volume Down
- Toggle Mute

Those are missing too.

---

<div class="post-metadata">

**Author:** ![Marcel\_Ubels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ubels/32/18860_2.png) [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)\
**Post date:** [November 3, 2020, 4:07pm UTC](https://community.homey.app/t/play-a-new-playlist-with-sonos/17958/19 "2020-11-03T16:07:24Z")

</div>

The problem(solution) is that after using the api on github i don’t need the Sonos App at all. I deleted the app therefore, but control Sonos completely with http request.

---

<div class="post-metadata">

**Author:** ![Martijn\_Hoogenbosch](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijn_hoogenbosch/32/10647_2.png) [@Martijn\_Hoogenbosch](https://community.homey.app/u/Martijn_Hoogenbosch)\
**Post date:** [November 3, 2020, 5:32pm UTC](https://community.homey.app/t/play-a-new-playlist-with-sonos/17958/20 "2020-11-03T17:32:49Z")

</div>

That’s true but the app remains easier.

[Next page](https://community.homey.app/t/play-a-new-playlist-with-sonos/17958.md?page=2)
