# \[Scenes\] How to wait for a random time?

**URL:** <https://community.gladysassistant.com/t/scenes-comment-attendre-un-temps-aleatoire/8306>\
**Category:** Configuration\
**Created:** [August 25, 2023, 12:09pm UTC](https://community.gladysassistant.com/t/scenes-comment-attendre-un-temps-aleatoire/8306 "2023-08-25T12:09:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bong101](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/bong101/32/9808_2.png) [@bong101](https://community.gladysassistant.com/u/bong101)\
**Post date:** [August 25, 2023, 12:09pm UTC](https://community.gladysassistant.com/t/scenes-comment-attendre-un-temps-aleatoire/8306/1 "2023-08-25T12:09:21Z")

</div>

Hello

At my home, I’d like to turn on the Hue lights after a variable delay between two values after sunset…  
Maybe sometimes I’m not at home, and I don’t want that to be known…

Is that possible? Would you be able to do that?

Thanks in

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [August 25, 2023, 12:15pm UTC](https://community.gladysassistant.com/t/scenes-comment-attendre-un-temps-aleatoire/8306/2 "2023-08-25T12:15:46Z")

</div>

At the moment it’s not possible to wait a random amount of time in Gladys (the «&nbsp;Wait&nbsp;» box does not accept dynamic input)

Either you do a «&nbsp;static&nbsp;» wait (which will still change time each day, since sunset always changes):

 ![Screenshot 2023-08-25 at 14.14.29](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/1/119dd354e319d354a23c8ad35e3afc51045128ed.png)

Or you go through Node-RED to implement the random wait and create a virtual device «&nbsp;Sunset random wait (Coucher de soleil attente aléatoire)&nbsp;» and a scene that triggers on the virtual device’s state change
