# Light sequence with HueMagic

**URL:** <https://discourse.nodered.org/t/light-sequence-with-huemagic/4318>\
**Category:** General\
**Created:** [26 October 2018 13:33 UTC](https://discourse.nodered.org/t/light-sequence-with-huemagic/4318 "2018-10-26T13:33:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben](https://avatars.discourse-cdn.com/v4/letter/b/df788c/32.png) [@Ben](https://discourse.nodered.org/u/Ben)\
**Post date:** [26 October 2018 13:33 UTC](https://discourse.nodered.org/t/light-sequence-with-huemagic/4318/1 "2018-10-26T13:33:58Z")

</div>

Hi, im pretty new to Node-red, but my goal is to make a light sequence with Philips hue.  
The flow works fine untill delay nr 2. Both 10s delays activates almost at the same time, which messes up the sequence. Is there a easy way to solve this?

 ![light%20sequence](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/d/df84795135d0bbe7d6ecd278384e4d8fa8e26f1b.jpeg)

---

<div class="post-metadata">

**Author:** ![JayDickson](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jaydickson/32/90592_2.png) [@JayDickson](https://discourse.nodered.org/u/JayDickson)\
**Post date:** [26 October 2018 13:48 UTC](https://discourse.nodered.org/t/light-sequence-with-huemagic/4318/2 "2018-10-26T13:48:57Z")

</div>

I'd go this route.

![14%20AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/4/47525cfe55004c55600a81801d9c87c2df7f212e.png)

---

<div class="post-metadata">

**Author:** ![cflurin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cflurin/32/29_2.png) [@cflurin](https://discourse.nodered.org/u/cflurin)\
**Post date:** [26 October 2018 14:11 UTC](https://discourse.nodered.org/t/light-sequence-with-huemagic/4318/3 "2018-10-26T14:11:07Z")

</div>

Similar use case here: [PCF9685 Dimmen slow](https://discourse.nodered.org/t/pcf9685-dimmen-slow/2731)

---

<div class="post-metadata">

**Author:** ![Ben](https://avatars.discourse-cdn.com/v4/letter/b/df788c/32.png) [@Ben](https://discourse.nodered.org/u/Ben)\
**Post date:** [27 October 2018 14:08 UTC](https://discourse.nodered.org/t/light-sequence-with-huemagic/4318/4 "2018-10-27T14:08:54Z")

</div>

Thanks Jay, tried your tip and it worked out fine! Really appreciate both of your quick replies 🙂

---

<div class="post-metadata">

**Author:** ![shrickus](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/shrickus/32/517_2.png) [@shrickus](https://discourse.nodered.org/u/shrickus)\
**Post date:** [30 October 2018 20:02 UTC](https://discourse.nodered.org/t/light-sequence-with-huemagic/4318/5 "2018-10-30T20:02:04Z")

</div>

Sounds like you had the `delay` node set to "Delay each message by 10 sec". In this case you will not have a 10 sec delay between messages, but relative to when they were received.

You could try the "Rate Limiting" mode instead -- set it to send 1 msg / 10 sec. Of course, this only works if the elapsed time between msgs is constant. So if you need different lengths of time between msgs, then Jay's example will work for you.
