# Scheduling - what am I doing wrong?

**URL:** <https://wled.discourse.group/t/scheduling-what-am-i-doing-wrong/4945>\
**Category:** Issues\
**Created:** [February 22, 2022, 3:38pm UTC](https://wled.discourse.group/t/scheduling-what-am-i-doing-wrong/4945 "2022-02-22T15:38:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BigB](https://avatars.discourse-cdn.com/v4/letter/b/71c47a/32.png) [@BigB](https://wled.discourse.group/u/BigB)\
**Post date:** [February 22, 2022, 3:38pm UTC](https://wled.discourse.group/t/scheduling-what-am-i-doing-wrong/4945/1 "2022-02-22T15:38:53Z")

</div>

In Config\>Time & Macros\>Time-controlled presets

I have created 2 playlists. One that plays the lights I want. I have this under “Sunset” with the minutes set to -5. This turns on as desired. Every evening, 5 minutes before sunset. My second preset is just to turn everything off. I have created a preset with nothing on, and saved it. If I select it manually, it works as desired. When I put it under sunrise, or if I set one of the other time slots to something like 23:30, it does not do anything. What am I missing. If I don’t go in and select the “off” preset manually, the lights run 24 hours.

---

<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:** [February 22, 2022, 6:49pm UTC](https://wled.discourse.group/t/scheduling-what-am-i-doing-wrong/4945/2 "2022-02-22T18:49:53Z")

</div>

Take a look in your Off preset and delete everything out of the API Commands box and put in T=0. See if that works.

---

<div class="post-metadata">

**Author:** ![BigB](https://avatars.discourse-cdn.com/v4/letter/b/71c47a/32.png) [@BigB](https://wled.discourse.group/u/BigB)\
**Post date:** [March 23, 2022, 3:29pm UTC](https://wled.discourse.group/t/scheduling-what-am-i-doing-wrong/4945/3 "2022-03-23T15:29:48Z")

</div>

Thanks Jinx, I have changed my “Off” preset API settings to T=0. It works as far as turning everything off. Now I will wait to see if the sunset schedule turns it off tonight…
