Jump to content

Setting LED Levels


hart2hart

Recommended Posts

Posted

I want to create programs to set LED levels for day and night and have a mixture of KeypadLincs, Relays, and Dimmers from a few Firmware levels.

 

Would someone post a simple example of how they handle this. MY simple asssumption is that it is just programs with a long list of set commands for each device triggered at sunrise and sunset but wanted to see what others with more knowledge had already accomplished.

 

Thanks

Posted

I originally started off with what you had in mind, basically:

 

If
  Sunrise 
to Sunset (same day)

Then
  Set  'Devices / MB Sink Lite' 60% (Backlight Level)
  and so on

Else
  Set 'Devices / MB Sink Lite' 20% (Backlight Level)

So that at Sunrise the devices would get set brighter, then at sunset they would dim down.

 

Then it evolved to only occuring if we were at home, the daylight brightness was down to a certain level and the LED levels had already been changed and need to revert back. All which takes two programs to function

 

Program: Backlight Adjust Hi

If
       $sAway_Status is 0
   And Program 'ISY Reboot' is False
   And $sWC1_DayLight_130_Status is 1
   And $iMB_BackLite_Day_Adj is 0

Then
       Wait  30 seconds
       Set 'Devices / MB Sink Lite' 60% (Backlight Level)
       Set 'Devices / MB Shower Fan' 60% (Backlight Level)
       Set 'Devices / MB Ceiling Lite' 60% (Backlight Level)
       Set 'Devices / MB Ceiling Fan' 60% (Backlight Level)
       Set 'Devices / MB Bed Lites' 60% (Backlight Level)
       $iMB_BackLite_Day_Adj  = 1
       $iMB_BackLite_Day_Adj Init To 1

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

 

Program: Backlight Adjust Low

If
       $sAway_Status is 0
   And Program 'ISY Reboot' is False
   And $sWC1_DayLight_130_Status is 0
   And $iMB_BackLite_Day_Adj is 1

Then
       Wait  30 seconds
       Set 'Devices / MB Sink Lite' 25% (Backlight Level)
       Set 'Devices / MB Shower Fan' 25% (Backlight Level)
       Set 'Devices / MB Ceiling Lite' 25% (Backlight Level)
       Set 'Devices / MB Ceiling Fan' 25% (Backlight Level)
       Set 'Devices / MB Bed Lites' 25% (Backlight Level)
       $iMB_BackLite_Day_Adj  = 0
       $iMB_BackLite_Day_Adj Init To 0

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

Posted

This may not be the most elegant program but this is what I use for my purpose.

This program is NOT ENABLED and it is called through other programs that monitor my remote control/keypad that I use at bedtime and another program that triggers in the morning to turn them back on.

 

Program: BACKLIGHT LEVELS (Not Enabled)

If
  - No Conditions - (To add one, press 'Schedule' or 'Condition')

Then
       Set 'Master Bedroom / KPL / MBedroom KPL.1' On  1 / Off 0 (Backlight Level)
       Set 'Master Bedroom / Bedroom Hall' On 15 / Off 1 (Backlight Level)
       Set 'Master Bath / VAN KPL / VAN KPL.A' On  7 / Off 2 (Backlight Level)
       Set 'Master Bath / Bathtub SLD' 100% (Backlight Level)
       Set 'Master Bath / Shower SLD' 100% (Backlight Level)
       Set 'Kitchen / KIT KPL Ceiling' On  7 / Off 2 (Backlight Level)
       Set 'Kitchen / Penninsula SLD' 100% (Backlight Level)
       Set 'Kitchen / Upper Hall-3Way' 100% (Backlight Level)
       Set 'Kitchen / Upper Hall-Load' 25% (Backlight Level)
       Set 'Living Room / LIV KPL / LIV KPL.A' On  7 / Off 2 (Backlight Level)
       Set 'Rec Room / REC Lamps' On  7 / Off 2 (Backlight Level)
       Set 'Rec Room / Ceiling Lower SLD' 25% (Backlight Level)
       Set 'Rec Room / Ceiling Upper SLD' 25% (Backlight Level)

Else
       Set 'Master Bedroom / KPL / MBedroom KPL.1' On  0 / Off 0 (Backlight Level)
       Set 'Master Bedroom / Bedroom Hall' On  0 / Off 0 (Backlight Level)
       Set 'Master Bath / VAN KPL / VAN KPL.A' On  0 / Off 0 (Backlight Level)
       Set 'Master Bath / Bathtub SLD' 1% (Backlight Level)
       Set 'Master Bath / Shower SLD' 1% (Backlight Level)
       Set 'Kitchen / KIT KPL Ceiling' On  0 / Off 0 (Backlight Level)
       Set 'Kitchen / Penninsula SLD' 1% (Backlight Level)
       Set 'Kitchen / Upper Hall-3Way' 1% (Backlight Level)
       Set 'Kitchen / Upper Hall-Load' 1% (Backlight Level)
       Set 'Living Room / LIV KPL / LIV KPL.A' On  0 / Off 0 (Backlight Level)
       Set 'Rec Room / REC Lamps' On  0 / Off 0 (Backlight Level)
       Set 'Rec Room / Ceiling Lower SLD' 1% (Backlight Level)
       Set 'Rec Room / Ceiling Upper SLD' 1% (Backlight Level)

Turn off KeypadLinc Backlights through the night and reset them in the daytime

 

I call THEN to set the Brightness Levels ON and call the ELSE to set them OFF

 

I have the backlights restore to various levels to try to keep my LED's at similar brightness (some models are different in a 3-gang box) and some of the Keypad levels are different for different rooms.

 

Hope this helps!

 

Dwight

Posted

Mine is damn near identical to Dwight's only I have 2 remotelinc buttons assigned to dim (run Then) or brighten (run Else) from my night stand. Every once in a while a command will get missed and my bedroom kpl or one of my switchlincs won't dim at night. I press my dim button and it's all better.

 

-Xathros

Guest
This topic is now closed to further replies.

×
×
  • Create New...