# Aquarium Light gradual increase and decrease over the course day

**URL:** <https://wled.discourse.group/t/aquarium-light-gradual-increase-and-decrease-over-the-course-day/5156>\
**Category:** Questions\
**Created:** [April 2, 2022, 2:32pm UTC](https://wled.discourse.group/t/aquarium-light-gradual-increase-and-decrease-over-the-course-day/5156 "2022-04-02T14:32:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yousaf465](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/yousaf465/32/2782_2.png) [@yousaf465](https://wled.discourse.group/u/yousaf465)\
**Post date:** [April 2, 2022, 2:32pm UTC](https://wled.discourse.group/t/aquarium-light-gradual-increase-and-decrease-over-the-course-day/5156/1 "2022-04-02T14:32:51Z")

</div>

Continuing on from my Aquarium light project. I have created a 3 preset option. What do I want to confirm is whether I did it correctly or should do something else? This is a simple 3 point scheme but I will increase it to 10point in future. can it be done with a single preset?

The plan is simply to turn on the light at minimum brightness at sunrise gradually increase it to a maximum at 9am, decrease it to the minimum at 7 pm and turn it off at sunset.

here are the screenshot and relevant codes.

![image](https://global.discourse-cdn.com/free1/uploads/wled/original/2X/a/acc080a452e5b1d587f0174554952afc720faa48.png)  
Fifty percent

```auto
{"on":true,"bri":115,"transition":7,"mainseg":0,"seg":[{"id":0,"start":0,"stop":1,"grp":1,"spc":0,"of":0,"on":true,"frz":false,"bri":255,"cct":127,"col":[[255,160,0,127],[0,0,0,0],[0,0,0,0]],"fx":0,"sx":128,"ix":140,"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},{"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},{"stop":0}]}

```

Maximum brightness

```auto
{"on":true,"bri":254,"transition":7,"mainseg":0,"seg":[{"id":0,"start":0,"stop":1,"grp":1,"spc":0,"of":0,"on":true,"frz":false,"bri":255,"cct":127,"col":[[255,160,0,255],[0,0,0,0],[0,0,0,0]],"fx":0,"sx":128,"ix":140,"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},{"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},{"stop":0}]}

```

Minimum

```auto
{"on":true,"bri":7,"transition":7,"mainseg":0,"seg":[{"id":0,"start":0,"stop":1,"grp":1,"spc":0,"of":0,"on":true,"frz":false,"bri":255,"cct":127,"col":[[255,160,0,0],[0,0,0,0],[0,0,0,0]],"fx":0,"sx":128,"ix":140,"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},{"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},{"stop":0}]}

```

 ![image](https://global.discourse-cdn.com/free1/uploads/wled/original/2X/2/2445767635c7d8beff660122dd1b4155e86aaab0.png)

I could have used @Drzzs idea, but since I am a 4gang sonoff switch to control aquarium heaters and old light those will be used to turn off the wled powersupply.

[![](https://global.discourse-cdn.com/free1/uploads/wled/original/2X/1/1ef72982e0e20b6958218e5b49081e3f93b0ef79.jpeg "Extend the life of your LED Power Supply | WLED + Relay + DigQuad") ](https://www.youtube.com/watch?v=2OWGJA5FbqY)

---

<div class="post-metadata">

**Author:** ![yousaf465](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/yousaf465/32/2782_2.png) [@yousaf465](https://wled.discourse.group/u/yousaf465)\
**Post date:** [April 2, 2022, 2:33pm UTC](https://wled.discourse.group/t/aquarium-light-gradual-increase-and-decrease-over-the-course-day/5156/2 "2022-04-02T14:33:54Z")

</div>

Here is the previous thread where I discuss the simple brightness control for 12V non-addressable leds [Dimming non-addressable 12V LED - #30 by yousaf465](https://wled.discourse.group/t/dimming-non-addressable-12v-led/4946/30)  
Video  
[https://www.youtube.com/watch?v=oek--\_xs7Oo](https://www.youtube.com/watch?v=oek--_xs7Oo)

# Edit 4/4/2022

added fourth preset to turn off the light at 7pm. Just add T=0 in API command window to setup turn off preset.

 ![image](https://global.discourse-cdn.com/free1/uploads/wled/original/2X/5/54f73161ebf7315cb586547e3709a5112efb6393.png)

 ![image](https://global.discourse-cdn.com/free1/uploads/wled/original/2X/b/b55f0eff7bf699b14953cae9cff05f9fb5a00add.png)
