# Is there a card that can randomly trigger one THEN card

**URL:** <https://community.homey.app/t/is-there-a-card-that-can-randomly-trigger-one-then-card/157272>\
**Category:** Questions & Help\
**Created:** [July 17, 2026, 4:46am UTC](https://community.homey.app/t/is-there-a-card-that-can-randomly-trigger-one-then-card/157272 "2026-07-17T04:46:08Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jumacao](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jumacao/32/120982_2.png) [@Jumacao](https://community.homey.app/u/Jumacao)\
**Post date:** [July 17, 2026, 4:46am UTC](https://community.homey.app/t/is-there-a-card-that-can-randomly-trigger-one-then-card/157272/1 "2026-07-17T04:46:08Z")

</div>

Hi,

Is there a way to randomly select one from multiple THEN cards?

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/0/70fb34a7bc0a8e3f930253a4a6c97622db53a02d.png)

So is not always saying the same thing.

Thanks!

---

<div class="post-metadata">

**Author:** ![Rmb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rmb/32/79135_2.png) [@Rmb](https://community.homey.app/u/Rmb)\
**Post date:** [July 17, 2026, 6:10am UTC](https://community.homey.app/t/is-there-a-card-that-can-randomly-trigger-one-then-card/157272/2 "2026-07-17T06:10:13Z")

</div>

There is a LOGIC AND card “Continue with a change of x percent”.

---

<div class="post-metadata">

**Author:** ![Justin\_de\_Knegt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/justin_de_knegt/32/114526_2.png) [@Justin\_de\_Knegt](https://community.homey.app/u/Justin_de_Knegt)\
**Post date:** [July 17, 2026, 6:14am UTC](https://community.homey.app/t/is-there-a-card-that-can-randomly-trigger-one-then-card/157272/3 "2026-07-17T06:14:35Z")

</div>

You could try to use the app custom logic

[Custom logic](https://homey.app/en-nl/app/nl.lrvdlinden.custom-tokens/Custom-Logic/)

This can generate a random number. After that you check the number and start one of the voice actions. (To be clear, you have to make 3 different checks of the numbers who you have to connect to the different voice output cards)

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [July 17, 2026, 12:57pm UTC](https://community.homey.app/t/is-there-a-card-that-can-randomly-trigger-one-then-card/157272/4 "2026-07-17T12:57:12Z")

</div>

What @Justin_de_Knegt suggests can also be done in a similar way using the [Flow Gadget](https://homey.app/a/com.pascalnohl.flowgadgets/) app.

Example:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/4/0405ce9e5fc6295ab9407683e32df843e2e69dee.png)

---

<div class="post-metadata">

**Author:** ![Ron\_Smith](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ron_smith/32/120735_2.png) [@Ron\_Smith](https://community.homey.app/u/Ron_Smith)\
**Post date:** [July 17, 2026, 9:38pm UTC](https://community.homey.app/t/is-there-a-card-that-can-randomly-trigger-one-then-card/157272/5 "2026-07-17T21:38:28Z")

</div>

I wanted to do something similar a couple months ago. Just for fun I wanted to send my lovely wife a message every day. I spent time researching with Gemini to come up with a solution which landed on using the Better Logic Library to pick a message from a list defined as a variable. Gemini gave me the code. I’m an old fart and not smart enough anymore to explain the code. But look at BLL where you can set your different variables up as a string in the BLL variable and then select it randomly. In the snapshot below, the message has like 150 different dumb messages to brighten her day which I go through with an index and a list of emojis that I select randomly. The flow was very simple once Gemini figured it out. Just a couple flow cards. Again, the list of messages and emojis are defined as part of the BLL variable. They are not an external list. Hope this gives you an idea to simplify your flow.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/6/16cf2ef5ff08b25941adb8a0eadd5ecb775ee52e.png)

---

<div class="post-metadata">

**Author:** ![Ron\_Smith](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ron_smith/32/120735_2.png) [@Ron\_Smith](https://community.homey.app/u/Ron_Smith)\
**Post date:** [July 17, 2026, 9:47pm UTC](https://community.homey.app/t/is-there-a-card-that-can-randomly-trigger-one-then-card/157272/6 "2026-07-17T21:47:45Z")

</div>

Actually, here’s one that I did which is more of what you are trying to do. Here our back door slider closes, motion is detected and the Alexa device in the kitchen spits out some wise ass message.

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

---

<div class="post-metadata">

**Author:** ![Jumacao](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jumacao/32/120982_2.png) [@Jumacao](https://community.homey.app/u/Jumacao)\
**Post date:** [July 18, 2026, 12:48am UTC](https://community.homey.app/t/is-there-a-card-that-can-randomly-trigger-one-then-card/157272/7 "2026-07-18T00:48:43Z")

</div>

@Rmb Hi, I gave it a try and in the 1st time it trigger one random.

But then the second time it did not. So it seems the chance values 25% dont equal 100% so it could not trigger always. on another test 2 of them trigger.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/3/03f69261c59a8968669ff7d00c627915c2eeb608.png)

@Justin_de_Knegt thanks, would check it out between that one and the one  
@DirkG suggested to see which one seem easier.

Dirk thanks for the flow that definitely helps a lot.

@Ron_Smith wow that seems super interesting.  
but all that code im not sure if I could figure it out.  
I have not yet used any of the AI to do code.  
A quick test I was not able to figure it out.  
Thanks!

---

<div class="post-metadata">

**Author:** ![Wim\_Post](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wim_post/32/56793_2.png) [@Wim\_Post](https://community.homey.app/u/Wim_Post)\
**Post date:** [July 18, 2026, 7:44am UTC](https://community.homey.app/t/is-there-a-card-that-can-randomly-trigger-one-then-card/157272/8 "2026-07-18T07:44:57Z")

</div>

Try this:

 ![Scherm­afbeelding 2026-07-18 om 10.00.38](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/a/ba266f3df25d43661535b6a01eff17e93055d96b.png)

(Typo in last card: should be option 4 of course)

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [July 18, 2026, 8:44am UTC](https://community.homey.app/t/is-there-a-card-that-can-randomly-trigger-one-then-card/157272/9 "2026-07-18T08:44:40Z")

</div>

Does this method also work with an odd number of **Then…** flow cards? 🤔

@Jumacao, this is basically the same flow I showed already in Post [#4](https://community.homey.app/t/is-there-a-card-that-can-randomly-trigger-one-then-card/157272/4), but without the need for an additional app. For this flow, however, you’ll need a numeric variable, named “BeispielVariable” here:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/9/f9c21fc81a4fdd5b77646e9483f80ba10c94948f.png)

---

<div class="post-metadata">

**Author:** ![Wim\_Post](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wim_post/32/56793_2.png) [@Wim\_Post](https://community.homey.app/u/Wim_Post)\
**Post date:** [July 18, 2026, 12:28pm UTC](https://community.homey.app/t/is-there-a-card-that-can-randomly-trigger-one-then-card/157272/10 "2026-07-18T12:28:33Z")

</div>

> [@DirkG](#):
>
> Does this method also work with an odd number of **Then…** flow cards?

Then you need a slightly different approach:

 ![Scherm­afbeelding 2026-07-18 om 14.22.42](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/3/c3e05dc62c18e81e0fd3826b28752c4111195ede.png)

(I noticed when I tested this flow with the start-button it always selected option 5 (?). But when I added a ‘every 3 seconds’-trigger it selected the other options too)

---

<div class="post-metadata">

**Author:** ![Finn\_I](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/finn_i/32/33939_2.png) [@Finn\_I](https://community.homey.app/u/Finn_I)\
**Post date:** [July 19, 2026, 10:10am UTC](https://community.homey.app/t/is-there-a-card-that-can-randomly-trigger-one-then-card/157272/11 "2026-07-19T10:10:03Z")

</div>

I Use Gemini AI for many things. Here is an example for making a text when I get mail in mailbox - it always create a new text. I dont know if it can be used.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/1/11dc0d56fbdb444ba72d47e611c08e38cd3eec8d.png)

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [July 20, 2026, 9:33am UTC](https://community.homey.app/t/is-there-a-card-that-can-randomly-trigger-one-then-card/157272/12 "2026-07-20T09:33:38Z")

</div>

Hm, I’m not sure if this layout gives all the options an equal chance either… 🤔

---

<div class="post-metadata">

**Author:** ![Wim\_Post](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wim_post/32/56793_2.png) [@Wim\_Post](https://community.homey.app/u/Wim_Post)\
**Post date:** [July 20, 2026, 10:10am UTC](https://community.homey.app/t/is-there-a-card-that-can-randomly-trigger-one-then-card/157272/13 "2026-07-20T10:10:27Z")

</div>

Option 1: 20% chance.  
So it’s 80% chance left for option 2,3,4 or 5.  
Option 2: 25% of 80% = 20%  
So it’s 75% of 80% = 60% chance for option 3,4 or 5  
Option 3: 33,3% of 60% =20%  
So it’s 66,7% of 60% = 40 % chance for option 4 or 5.  
Option 4 or 5: 50% of 40% = 20%

---

<div class="post-metadata">

**Author:** ![sandkar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sandkar/32/85376_2.png) [@sandkar](https://community.homey.app/u/sandkar)\
**Post date:** [July 21, 2026, 5:34pm UTC](https://community.homey.app/t/is-there-a-card-that-can-randomly-trigger-one-then-card/157272/14 "2026-07-21T17:34:26Z")

</div>

This worked for me:

 ![afbeelding](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/7/d72c09da573d28f1cd23dc3093ff82d6f12e6d07.png)

---

<div class="post-metadata">

**Author:** ![ReneO](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/reneo/32/3522_2.png) [@ReneO](https://community.homey.app/u/ReneO)\
**Post date:** [July 23, 2026, 8:16pm UTC](https://community.homey.app/t/is-there-a-card-that-can-randomly-trigger-one-then-card/157272/15 "2026-07-23T20:16:40Z")

</div>

You can use a Homey script for this. I have created a script using AI that randomly plays a playlist/favorite. Each playlist/favorite is played one time. Once they have all been played, a reset takes place and any playlist/favorite can be selected again. The advantage is that a playlist is only played once.in your case, youre wife will never hear the same text two days in a row :-).

---

<div class="post-metadata">

**Author:** ![Jumacao](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jumacao/32/120982_2.png) [@Jumacao](https://community.homey.app/u/Jumacao)\
**Post date:** [July 25, 2026, 8:28pm UTC](https://community.homey.app/t/is-there-a-card-that-can-randomly-trigger-one-then-card/157272/16 "2026-07-25T20:28:48Z")

</div>

o Wow, some great option to get this done.

I ended up using the Flow Gadget app, that was before I saw Wim option with only the Homey Logic, that one also look super easy to do. and no need to download extra Apps.

Is there an easy way to figure out when an App is used in a flow, asking for if I need to delete some Apps later on, or do I have to look at each Flow?

Thanks!

---

<div class="post-metadata">

**Author:** ![Justin\_de\_Knegt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/justin_de_knegt/32/114526_2.png) [@Justin\_de\_Knegt](https://community.homey.app/u/Justin_de_Knegt)\
**Post date:** [July 25, 2026, 8:43pm UTC](https://community.homey.app/t/is-there-a-card-that-can-randomly-trigger-one-then-card/157272/17 "2026-07-25T20:43:02Z")

</div>

> [@Jumacao](#):
>
> Is there an easy way to figure out when an App is used in a flow, asking for if I need to delete some Apps later on, or do I have to look at each Flow?

If you go to the app (so the screen where you can configure or delete the app it self ), you can see in which flow it is used or to device it is connected to

---

<div class="post-metadata">

**Author:** ![Jumacao](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jumacao/32/120982_2.png) [@Jumacao](https://community.homey.app/u/Jumacao)\
**Post date:** [July 25, 2026, 8:57pm UTC](https://community.homey.app/t/is-there-a-card-that-can-randomly-trigger-one-then-card/157272/18 "2026-07-25T20:57:42Z")

</div>

Thanks,

No wonder why I could not find it I was using the PC browser.

But in the Ipad app it does show where is being used.

---

<div class="post-metadata">

**Author:** ![Justin\_de\_Knegt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/justin_de_knegt/32/114526_2.png) [@Justin\_de\_Knegt](https://community.homey.app/u/Justin_de_Knegt)\
**Post date:** [July 26, 2026, 6:33am UTC](https://community.homey.app/t/is-there-a-card-that-can-randomly-trigger-one-then-card/157272/19 "2026-07-26T06:33:46Z")

</div>

I automatically looked in the mobile app of homey, and was not aware that it is not shown in the browser 😅

Hopefully it will be also implemented in the browser version in the near feature..
