# Play random music from youtube

**URL:** <https://community.homey.app/t/play-random-music-from-youtube/159831>\
**Category:** Questions & Help\
**Tags:** advancedflow\
**Created:** [September 21, 2026, 7:07am UTC](https://community.homey.app/t/play-random-music-from-youtube/159831 "2026-09-21T07:07:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kai\_Dybvik](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kai_dybvik/32/173470_2.png) [@Kai\_Dybvik](https://community.homey.app/u/Kai_Dybvik)\
**Post date:** [September 21, 2026, 7:07am UTC](https://community.homey.app/t/play-random-music-from-youtube/159831/1 "2026-09-21T07:07:40Z")

</div>

hello guys. how can i play random music from youtube on my google nest hub in the bathroom when for example i have 4 selected music videos. tried with the any button but then the same song comes up repeatedly.

 ![Image2](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/c/cc33e5a4a558ee30162deb5df74641335b5881d7.jpeg)

---

<div class="post-metadata">

**Author:** ![smarthomesven](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/smarthomesven/32/79712_2.png) [@smarthomesven](https://community.homey.app/u/smarthomesven)\
**Post date:** [September 21, 2026, 8:39am UTC](https://community.homey.app/t/play-random-music-from-youtube/159831/2 "2026-09-21T08:39:21Z")

</div>

You should use the AND condition: Continue with a chance of 33% from the Logic category. Daisy-chain the action cards, and put the AND condition before each “Cast youtube video” action

---

<div class="post-metadata">

**Author:** ![Kai\_Dybvik](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kai_dybvik/32/173470_2.png) [@Kai\_Dybvik](https://community.homey.app/u/Kai_Dybvik)\
**Post date:** [September 21, 2026, 9:44am UTC](https://community.homey.app/t/play-random-music-from-youtube/159831/3 "2026-09-21T09:44:48Z")

</div>

I don’t know if I understood you correctly, but then it became logical for me to do it this way?

 ![Image4](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/e/2eff2a76b61d2e101f71c6377ee3bd62ec8eb118.jpeg)

---

<div class="post-metadata">

**Author:** ![smarthomesven](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/smarthomesven/32/79712_2.png) [@smarthomesven](https://community.homey.app/u/smarthomesven)\
**Post date:** [September 21, 2026, 9:49am UTC](https://community.homey.app/t/play-random-music-from-youtube/159831/4 "2026-09-21T09:49:00Z")

</div>

That’s almost correct, but you need to connect each Logic card to the previous Cast video card. With your current method, multiple can trigger at once. You might also want to use only 3 Logic cards, and connect the last 2 actions to the third Logic card, as a protection if all 4 cards return false

---

<div class="post-metadata">

**Author:** ![Kai\_Dybvik](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kai_dybvik/32/173470_2.png) [@Kai\_Dybvik](https://community.homey.app/u/Kai_Dybvik)\
**Post date:** [September 21, 2026, 10:09am UTC](https://community.homey.app/t/play-random-music-from-youtube/159831/5 "2026-09-21T10:09:28Z")

</div>

😜 🙃 Thank you very much for your patience. but I don’t understand what you mean could be because of my ADHD. can you be so kind and make a picture for me I would be very grateful

---

<div class="post-metadata">

**Author:** ![smarthomesven](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/smarthomesven/32/79712_2.png) [@smarthomesven](https://community.homey.app/u/smarthomesven)\
**Post date:** [September 21, 2026, 10:17am UTC](https://community.homey.app/t/play-random-music-from-youtube/159831/6 "2026-09-21T10:17:51Z")

</div>

I mean like this:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/8/d84f5c315d3916382a487e93ff5bc92c4e05a834.png)

---

<div class="post-metadata">

**Author:** ![Kai\_Dybvik](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kai_dybvik/32/173470_2.png) [@Kai\_Dybvik](https://community.homey.app/u/Kai_Dybvik)\
**Post date:** [September 21, 2026, 5:57pm UTC](https://community.homey.app/t/play-random-music-from-youtube/159831/7 "2026-09-21T17:57:29Z")

</div>

Thank you so much, this was fun and finally got it done
