Jump to content

Early weekday morning ramp rate for bathroom lights


Avonlea22

Recommended Posts

Posted

My wife has to be up at 3am to get ready for work. I recently installed EcoSmart LED lights in my bathroom as well as a SwitchLinc dimmer. I wanted a program that would run weekdays at 3am so that when she turned the lights on, they would come on at a low level and slowly ramp up to about 75% (as 100% is just too bright for pretty much any time of day).

 

The following program accomplishes this. I had a lot of help from memebrs of this forum, so I really can't take credit for the programming side, but I did want to share it with others.

 

Basically, between the hours of 3am and 5am, if my SwitchLinc dimmer is turned on, the lights will come on at 35% and over an 8 minute period, ramp up to 75%. At any other time, they will come on at 75% with a .3 second ramp.

 

I have my SwitchLinc labelled Master Bath Can Lights. I have this SwitchLinc in a scene called Early AM MB Can Lights as a Controller. The switchlinc is set with a 75% on level and .3 sec ramp rate for local control. The scene is set with a 75% on level and a 8 minute ramp rate. The switchlinc IS controlling the load locally.

 

Program 1:

If
       On Mon, Tue, Wed, Thu, Fri
       From     3:00:00AM
       To       5:00:00AM (same day)

Then
       In Scene 'Bathrooms / Master Bath Can Lights' Set 'Bathrooms / Master Bath Can Lights' 35% (On Level)
       In Scene 'Bathrooms / Master Bath Can Lights' Set 'Bathrooms / Master Bath Can Lights' 0.3 Sec (Ramp Rate)

Else
       In Scene 'Bathrooms / Master Bath Can Lights' Set 'Bathrooms / Master Bath Can Lights' 75% (On Level)
       In Scene 'Bathrooms / Master Bath Can Lights' Set 'Bathrooms / Master Bath Can Lights' 0.3 Sec (Ramp Rate)

 

Program 2:

If
       On Mon, Tue, Wed, Thu, Fri
       From     3:00:00AM
       To       5:00:00AM (same day)
   And Control 'Bathrooms / Master Bath Can Lights' is switched On
   And Control 'Bathrooms / Master Bath Can Lights' is not switched Off

Then
       Wait  1 second
       Set Scene 'Early AM MB Can Lights' On

Else
  - No Actions - (To add one, press 'Action')

 

There is also a "fast Off" program as well. This allows the lights to go off immediately, rather than at the 8 minute ramp rate.

 

If
       Control 'Bathrooms / Master Bath Can Lights' is switched Off

Then
       Set 'Bathrooms / Master Bath Can Lights' Fast Off

Else
  - No Actions - (To add one, press 'Action')

Posted

Nice code.

 

You could also set up two separate scenes, with the same device(s) in them, but with different max/ramp. Then, depending on time, trigger one scene or the other.

 

Your method avoids some duplication of code, and is independent of how the lighting is triggered.

 

* Orest

Posted

I have to say.... "you're never too old to learn".

I have been working with ISY since about day one and Scenes have always been a confusing issue with me.

I use a Motion Detector and require different parameter based on the time of day.

I have tried this for a long time and have never truly been successful with this until now.

My situation is still a little different because I am also using a remote switch with a companion switch because I only have a two wire configuration.

But ALAS, success thanks to this posting and some concentrated thought and programming work.

I seldom used scenes because I thought I was having memory issues with my Dimmerlincs, but now I understand how to program scene values and SUCCESS.

 

Thanks to this forum and all that contribute.

 

Clarence

Guest
This topic is now closed to further replies.

×
×
  • Create New...