# Random playlists in Spotify

**URL:** <https://community.homey.app/t/random-playlists-in-spotify/6907>\
**Category:** Apps\
**Created:** [January 15, 2019, 8:39pm UTC](https://community.homey.app/t/random-playlists-in-spotify/6907 "2019-01-15T20:39:40Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pim\_de\_Vente](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pim_de_vente/32/8424_2.png) [@Pim\_de\_Vente](https://community.homey.app/u/Pim_de_Vente)\
**Post date:** [January 15, 2019, 8:39pm UTC](https://community.homey.app/t/random-playlists-in-spotify/6907/1 "2019-01-15T20:39:40Z")

</div>

Hi there,

I successfully added my Onkyo receiver-enabled Spotify Connect, to Homey 2.0  
Flows can now contain playback of selected artists, albums and playlists. It already works wonderful with different triggers.

However, sometimes I like to be surprised when music plays. For instance, in the morning I could listen to one of three jazz playlists. How can I program a flow in such a way, that homey randomly selects one of (a few) playlists?

---

<div class="post-metadata">

**Author:** ![Rdw](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rdw/32/10679_2.png) [@Rdw](https://community.homey.app/u/Rdw)\
**Post date:** [January 15, 2019, 9:37pm UTC](https://community.homey.app/t/random-playlists-in-spotify/6907/2 "2019-01-15T21:37:20Z")

</div>

That’s exactly what i was thinking About.  
Unfortunatly that’s no solution for me or you. 🤔

---

<div class="post-metadata">

**Author:** ![Pim\_de\_Vente](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pim_de_vente/32/8424_2.png) [@Pim\_de\_Vente](https://community.homey.app/u/Pim_de_Vente)\
**Post date:** [January 16, 2019, 6:05am UTC](https://community.homey.app/t/random-playlists-in-spotify/6907/3 "2019-01-16T06:05:53Z")

</div>

Funny, because I seem to remember that homey could randomly select items in flows with one app or another. Maybe you could do it with the ‘else’ cards?

---

<div class="post-metadata">

**Author:** ![Rdw](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rdw/32/10679_2.png) [@Rdw](https://community.homey.app/u/Rdw)\
**Post date:** [January 16, 2019, 6:58am UTC](https://community.homey.app/t/random-playlists-in-spotify/6907/4 "2019-01-16T06:58:19Z")

</div>

With the else card i could imagine the possibility to alternate between 2 playlists. Maybe even more if you would stack confirmation questions like

Homey asks: “would you like to listen to classical or metal?”

“Would you like playlist a or b?”

But that is not truly random.

---

<div class="post-metadata">

**Author:** ![Pim\_de\_Vente](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pim_de_vente/32/8424_2.png) [@Pim\_de\_Vente](https://community.homey.app/u/Pim_de_Vente)\
**Post date:** [January 16, 2019, 7:10am UTC](https://community.homey.app/t/random-playlists-in-spotify/6907/5 "2019-01-16T07:10:16Z")

</div>

What about choosing a random flow in a flow folder? You could then add different playlists to different flows.

Don’t know if this works, just a thought. There should be some app to choose a random card…

---

<div class="post-metadata">

**Author:** ![Rdw](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rdw/32/10679_2.png) [@Rdw](https://community.homey.app/u/Rdw)\
**Post date:** [January 16, 2019, 8:17am UTC](https://community.homey.app/t/random-playlists-in-spotify/6907/6 "2019-01-16T08:17:52Z")

</div>

Spent some time looking through different apps, but haven’t found one yet to randomise a flow or a card.

---

<div class="post-metadata">

**Author:** ![Pim\_de\_Vente](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pim_de_vente/32/8424_2.png) [@Pim\_de\_Vente](https://community.homey.app/u/Pim_de_Vente)\
**Post date:** [January 16, 2019, 9:04am UTC](https://community.homey.app/t/random-playlists-in-spotify/6907/7 "2019-01-16T09:04:15Z")

</div>

Just got a tip.  
If you set a certain playlist to to play after 1-3 seconds, and you add more cards with ‘play this playlist’ and setting it to a delay of 1-3 seconds, Homey plays every playlist, but technically randomizes the different selected playlists. Will need to test this out.

Also, I found out that although your receiver is set to play on shuffle, Homey plays the first track of the playlists. By enabling the shuffle card and immediately skipping to the next track, the playlist is playing as if it were shuffled.

---

<div class="post-metadata">

**Author:** ![Jorden](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jorden/32/8856_2.png) [@Jorden](https://community.homey.app/u/Jorden)\
**Post date:** [January 16, 2019, 9:37am UTC](https://community.homey.app/t/random-playlists-in-spotify/6907/8 "2019-01-16T09:37:15Z")

</div>

> [@Pim\_de\_Vente](#):
>
> By enabling the shuffle card

I was looking for a way to shuffle but didn’t find this card… where is it? 🙂

Using Spotify and Sonos by the way.

---

<div class="post-metadata">

**Author:** ![Rdw](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rdw/32/10679_2.png) [@Rdw](https://community.homey.app/u/Rdw)\
**Post date:** [January 16, 2019, 9:51am UTC](https://community.homey.app/t/random-playlists-in-spotify/6907/9 "2019-01-16T09:51:04Z")

</div>

It should be available in the “then” collum on both the Spotify connect and the sonos app.

---

<div class="post-metadata">

**Author:** ![Jorden](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jorden/32/8856_2.png) [@Jorden](https://community.homey.app/u/Jorden)\
**Post date:** [January 16, 2019, 10:00am UTC](https://community.homey.app/t/random-playlists-in-spotify/6907/10 "2019-01-16T10:00:31Z")

</div>

It works on Spotify Connect devices, but Spotify Connect does not find my Sonos devices.

The shuffle card is not available on Sonos devices though.

---

<div class="post-metadata">

**Author:** ![Rdw](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rdw/32/10679_2.png) [@Rdw](https://community.homey.app/u/Rdw)\
**Post date:** [January 16, 2019, 10:13am UTC](https://community.homey.app/t/random-playlists-in-spotify/6907/11 "2019-01-16T10:13:41Z")

</div>

I see, your right! Strange.

---

<div class="post-metadata">

**Author:** ![Jorden](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jorden/32/8856_2.png) [@Jorden](https://community.homey.app/u/Jorden)\
**Post date:** [January 16, 2019, 10:14am UTC](https://community.homey.app/t/random-playlists-in-spotify/6907/12 "2019-01-16T10:14:16Z")

</div>

I have reported it so let’s hope for the best 🙂

---

<div class="post-metadata">

**Author:** ![Lesley](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/lesley/32/11175_2.png) [@Lesley](https://community.homey.app/u/Lesley)\
**Post date:** [March 15, 2019, 8:24pm UTC](https://community.homey.app/t/random-playlists-in-spotify/6907/13 "2019-03-15T20:24:34Z")

</div>

Also spend some time for this solution but without success ☹

Would LOVE you have the option to play a random playlist!!!

Who could help us? 🙂

Many many many thanks in advance!

---

<div class="post-metadata">

**Author:** ![Lesley](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/lesley/32/11175_2.png) [@Lesley](https://community.homey.app/u/Lesley)\
**Post date:** [May 24, 2020, 1:20am UTC](https://community.homey.app/t/random-playlists-in-spotify/6907/14 "2020-05-24T01:20:53Z")

</div>

Anyone? 🙂

---

<div class="post-metadata">

**Author:** ![Lesley](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/lesley/32/11175_2.png) [@Lesley](https://community.homey.app/u/Lesley)\
**Post date:** [May 29, 2020, 11:01pm UTC](https://community.homey.app/t/random-playlists-in-spotify/6907/16 "2020-05-29T23:01:11Z")

</div>

It’s not exactly what I mean but I’ll give it a try. Thanks!

---

<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:** [May 30, 2020, 5:35am UTC](https://community.homey.app/t/random-playlists-in-spotify/6907/17 "2020-05-30T05:35:10Z")

</div>

I had made a few flows to make this work even better. It’s in Dutch So you have to translate it yourself. For radiostations you can choose playlist ofcourse

> [@Willekeurig radiozenders afspelen](https://community.homey.app/t/willekeurig-radiozenders-afspelen/18532):
>
> Wellicht een leuke flow voor de liefhebbers van muziek. Deze flows zorgen ervoor dat gedurende 7 dagen random vijf verschillende radiozenders opstarten. Iedere dag een andere zender. Twee zenders zijn favoriet bij mij en die mogen twee keer opstarten tijdens de week. Om dit mogelijk te maken heb ik 8 logic nummer variabelen gemaakt. 7 voor iedere dag van de week en 1 variabele waar de zender van die dag in komt. Dit zijn nummers. Elk nummer correspondeert met een zender. Hieronder de flows. Vee…
