# Time/Macro not working. Help!

**URL:** <https://wled.discourse.group/t/time-macro-not-working-help/5392>\
**Category:** Questions\
**Created:** [May 17, 2022, 5:46am UTC](https://wled.discourse.group/t/time-macro-not-working-help/5392 "2022-05-17T05:46:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jinx](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@Jinx](https://wled.discourse.group/u/Jinx)\
**Post date:** [May 17, 2022, 5:46am UTC](https://wled.discourse.group/t/time-macro-not-working-help/5392/1 "2022-05-17T05:46:35Z")

</div>

Hello,

For the life of me I can’t figure out why my timed preset is not working. Any idea’s?

esp 8266

(blue color) On preset:  
{“on”:true,“bri”:136,“transition”:7,“mainseg”:0,“seg”:[{“id”:0,“start”:0,“stop”:281,“grp”:1,“spc”:0,“of”:0,“on”:true,“frz”:false,“bri”:255,“cct”:127,“col”:[[0,0,255],[0,0,0],[0,0,0]],“fx”:0,“sx”:194,“ix”:128,“pal”:0,“sel”:true,“rev”:false,“mi”:false},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0}]}

Off preset: is just T=0

Both work when clicking them in the GUI.

For some reason the lights are not coming on at 8pm in the SS you will see 8:01pm as I tried that to see if it would help. Nope. However I did test them at like 2am. I went outside and set them to turn on 1 min after whatever the current time was and then to turn off 1 min after that and it worked. So I have no idea why it is not working at 8pm and off at 12am. Thoughts?

Pix attached.

 ![info](https://global.discourse-cdn.com/free1/uploads/wled/original/2X/6/6731918ca2d800ef23da8237b27ac69d7c06eed4.png)  
 ![time1](https://global.discourse-cdn.com/free1/uploads/wled/original/2X/9/95ba222e60a4a76f1f862de6a9d0ce7a61e1ed9b.png)  
 ![time2](https://global.discourse-cdn.com/free1/uploads/wled/original/2X/e/e5a9383f0680eb8644c0b2cf100cd5e24cd6186a.png)

---

<div class="post-metadata">

**Author:** ![tonyno](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/tonyno/32/242_2.png) [@tonyno](https://wled.discourse.group/u/tonyno)\
**Post date:** [May 17, 2022, 12:14pm UTC](https://wled.discourse.group/t/time-macro-not-working-help/5392/2 "2022-05-17T12:14:58Z")

</div>

Maybe the 24 is throwing it off? After 23:59, it goes to 0.

---

<div class="post-metadata">

**Author:** ![Jinx](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@Jinx](https://wled.discourse.group/u/Jinx)\
**Post date:** [May 17, 2022, 7:50pm UTC](https://wled.discourse.group/t/time-macro-not-working-help/5392/3 "2022-05-17T19:50:14Z")

</div>

Thx for the idea. I’ll give 23:59 a try. I did try 24:00 and still had issues. We’ll see what happens.

---

<div class="post-metadata">

**Author:** ![blazoncek](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/blazoncek/32/1886_2.png) [@blazoncek](https://wled.discourse.group/u/blazoncek)\
**Post date:** [May 18, 2022, 10:58am UTC](https://wled.discourse.group/t/time-macro-not-working-help/5392/4 "2022-05-18T10:58:20Z")

</div>

24 is every hour.  
if you want midnight use 0.

---

<div class="post-metadata">

**Author:** ![Jinx](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@Jinx](https://wled.discourse.group/u/Jinx)\
**Post date:** [May 19, 2022, 4:34am UTC](https://wled.discourse.group/t/time-macro-not-working-help/5392/5 "2022-05-19T04:34:14Z")

</div>

That explains alot LOL. No wonder I was seeing them on and off at different times 😆 Thank You. Also good news 23.59 seemed to work. I’ll give 0 a try tomorrow.
