wharris Posted June 2, 2019 Posted June 2, 2019 I apologize in advance if this has been answered elsewhere. (I could not find the answer.) Is there a way to completely turn off the LED Backlight on the KeypadLinc Dimmer (2334-2 v.45) When I change the "Backlight" to "On 0 / Off 0" the LED backlighting is dimmer but it is still on. I want to write a program that will turn off the LED's at night in the bedroom. Thanks in advance.
wharris Posted June 2, 2019 Author Posted June 2, 2019 I figured it out. I had to send a backlight command (something other than 0) and then re-send a 0 to make the change.
wharris Posted June 2, 2019 Author Posted June 2, 2019 I wrote a quick program to set all of the backlight LED's to a known level. The standard SwitchLinc devices have a "Backlight" percentage that can be set between 0% and 100%. The KeypadLinc devices use an "Index" that points to the ON brightness and OFF brightness. You must set this INDEX for each button on the device. I created two Integer variables for my program. iLEDPercent - This variable is used for the SwitchLInc devices. The value is a percentage. I configured the initial value to be 50 (which is 50 percent.) iLEDOnIndex - This variable is used for the KeyPadLinc devices. Remember, this is an INDEX. I wanted to use an On value of 7 and an Off value of 1. When I look at the drop-down list it appears that the index for the desired value is 23. (This assumes the Index begins with 0. Some programming languages start their indexes with 1. Not sure how ISY works.) == Simple Program to Set LED Levels to a known state == Create a program called "Set_LED_Backlight" Add "Action" statements based on the type of device you want to control... Set 'Countertop' Backlight '$iLEDBacklightPercentage %' OR Set "Foyer' Backlight '$iLEDOnIndex Index' You can view this simple program in the attached image. To run the program, right-click on "Set_LED_Backlight" and select "Run Then". This will set the backlighting for all of the keypads to the values specified in the variables. I wrote another simple program to turn off the LED backlighting in the Master bedroom at 10 PM. This is down and dirty. We just moved in to our small home and I had to have some automation right away. Don't forget to check out my leak sensor post in another thread.
larryllix Posted June 2, 2019 Posted June 2, 2019 Nice. Justa suggestion: Put Wait 2 Seconds between each Set line. You are writing data to each device's eProm and it can take a lot of Insteon comm talk time. This may tie up your other HA communications and flood ISY's caching, causing some operations to be dropped, devices to be marked as 'comm failure', or mess up program timing in other programs. Most Insteon operations are fairly quick and don't tie up much comm line time but updating eProms in devices can take much longer. This seems like background process anyway without any urgency.
Bumbershoot Posted June 2, 2019 Posted June 2, 2019 2 hours ago, larryllix said: Put Wait 2 Seconds between each Set line. Yes, good advice. I dim/brighten the LEDs on my switches and KeypadLinks twice a day, and this always seems to always work.
Recommended Posts