# Random timer for flow execution

**URL:** https://community.homey.app/t/random-timer-for-flow-execution/3376
**Category:** Questions & Help
**Created:** [October 28, 2018, 4:59pm UTC](https://community.homey.app/t/random-timer-for-flow-execution/3376 "2018-10-28T16:59:47Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Joske522](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/joske522/32/12780_2.png) [@Joske522](https://community.homey.app/u/Joske522)
#### Post date: [October 28, 2018, 4:59pm UTC](https://community.homey.app/t/random-timer-for-flow-execution/3376/1 "2018-10-28T16:59:47Z")

</div>

hi guys,

I’m looking for a way to get random timers working in my flows. I would like to close my blinds and turn my lights on at random times between a given value (like between 5 minutes and 75 minutes completely random)

eg: if I use the ‘time’ card and set it to 23:30, can I use a random time range in the ‘lights on’ card in Hue by clicking the stopwatch symbol and typing in a range in minutes like 5-75?

I tried the countdown app but not sure how to use it…

Thanks!

---

<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: [October 28, 2018, 5:08pm UTC](https://community.homey.app/t/random-timer-for-flow-execution/3376/2 "2018-10-28T17:08:13Z")

</div>

searching this forum for “random” gives the next result:

> [@Switching lights randomly//Simulate home presence//Home security](https://community.homey.app/t/switching-lights-randomly-simulate-home-presence-home-security/2901):
>
> How can I easily simulate that somebody is home? I want to switch on different lights randomly and for a random minimum time period during the night. The Homey Athom blog is referring to ‘home presence simulation’, but there is no explanation how to do this.

---

<div class="post-metadata">

### Author: ![Joske522](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/joske522/32/12780_2.png) [@Joske522](https://community.homey.app/u/Joske522)
#### Post date: [October 28, 2018, 5:14pm UTC](https://community.homey.app/t/random-timer-for-flow-execution/3376/3 "2018-10-28T17:14:22Z")

</div>

Yes i found that already but that is not an easy way to do it / not noob friendly? is there an easier way to do this / some more in depth tutorial with flow examples? Thanks

---

<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: [October 28, 2018, 5:23pm UTC](https://community.homey.app/t/random-timer-for-flow-execution/3376/4 "2018-10-28T17:23:21Z")

</div>

for closing blinds and lights, I’m using the Lux value of a multisensor.  
also the Time card “Sundown” changes per day.

---

<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: [October 28, 2018, 5:24pm UTC](https://community.homey.app/t/random-timer-for-flow-execution/3376/5 "2018-10-28T17:24:25Z")

</div>

> [@Joske522](#):
>
> eg: if I use the ‘time’ card and set it to 23:30, can I use a random time range in the ‘lights on’ card in Hue by clicking the stopwatch symbol and typing in a range in minutes like 5-75

Correct!!

![chrome_2018-10-28_18-55-58](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/0/02b338410a5c61f5124891951143ed10ff646a2e.png)

---

<div class="post-metadata">

### Author: ![Joske522](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/joske522/32/12780_2.png) [@Joske522](https://community.homey.app/u/Joske522)
#### Post date: [October 29, 2018, 9:56am UTC](https://community.homey.app/t/random-timer-for-flow-execution/3376/6 "2018-10-29T09:56:01Z")

</div>

That’s awesome 🙂 Thanks Roco! Quick follow-up question: If I have 2 lights underneath eachother in the “then” column and give them the same range (eg 5-75), do they use the same random number of minutes or can they switch on at different times?

Thanks!

---

<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: [October 29, 2018, 11:18am UTC](https://community.homey.app/t/random-timer-for-flow-execution/3376/7 "2018-10-29T11:18:01Z")

</div>

Both at different random times

---

<div class="post-metadata">

### Author: ![Steve\_Nye](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/steve_nye/32/123396_2.png) [@Steve\_Nye](https://community.homey.app/u/Steve_Nye)
#### Post date: [January 9, 2026, 3:17pm UTC](https://community.homey.app/t/random-timer-for-flow-execution/3376/8 "2026-01-09T15:17:51Z")

</div>

What app ihas the ‘time card’ you refer to?
