stillen_i30 Posted December 6, 2013 Posted December 6, 2013 I have a scene where a keypad'd "Main" button controls kitchen lights. I have several keypads whose versions are v.35 which have a button called "Kitchen Lights" which are supposed to update their backlit buttons to show if the kitchen lights are off or not off. For example, if I engage a scene which turns on the kitchen lights to 45% on level, I also want the "Kitchen Lights" buttons on all those keypads to turn on too, but despite my program, they will not turn on or off when the scene is activated. Here is a copy of my programs: If Status 'Kitchen / Kitchen Overhead Lights' is not Off Then Set 'Home Theater / Home Theater Keypad B' On 12 / Off 6 (Backlight Level) Set 'Main Hallway / Main Hallway Lights 2 KPL / Main Hallway Foyer KPL B' On 12 / Off 6 (Backlight Level) Set 'Main Hallway / Main Hallway Lights 3 KPL / Main Hallway Stairs KPL B' On 12 / Off 6 (Backlight Level) Set 'Office / Office Lights Keypad - D' On 12 / Off 6 (Backlight Level) Else - No Actions - (To add one, press 'Action') If Status 'Kitchen / Kitchen Overhead Lights' is Off Then Set 'Home Theater / Home Theater Keypad B' On 0 / Off 6 (Backlight Level) Set 'Main Hallway / Main Hallway Lights 2 KPL / Main Hallway Foyer KPL B' On 0 / Off 6 (Backlight Level) Set 'Main Hallway / Main Hallway Lights 3 KPL / Main Hallway Stairs KPL B' On 0 / Off 6 (Backlight Level) Set 'Office / Office Lights Keypad - D' On 0 / Off 6 (Backlight Level) Else - No Actions - (To add one, press 'Action') What am I missing here?
LeeG Posted December 6, 2013 Posted December 6, 2013 The KPL Backlight level is NOT used to turn a Secondary button On or Off. Changing the Backlight level affects all buttons on the KPL, determining how Bright an On button is, not turning a button On or Off. Define an ISY Scene and assign one or more Secondary KPL buttons to the Scene as Responders. Turn the ISY Scene On/Off to turn the KPL Secondary button(s) On/Off.
andrew77 Posted December 6, 2013 Posted December 6, 2013 Hi stillen_i30; I have (through the help of a few members here) two programs that I run to sync the KPL button LED to the status of the light. First I have a scene that only has the KPL LED button in it as a responder. Then I have these two programs. If Status 'Hutch Lamplink' is Off Then Set Scene 'LED OFF Scenes / Hutch LED ON' Off Else - No Actions - (To add one, press 'Action') If Status 'Hutch Lamplink' is not Off Then Set Scene 'LED OFF Scenes / Hutch LED ON' On Else - No Actions - (To add one, press 'Action') As an aside, if there's an easier way to do it I'm open to hear it. I hope this helps. Drew
TJF1960 Posted December 6, 2013 Posted December 6, 2013 Drew, I think you can cut those 2 down to one without any issue since you only have 1 condition. Unless of course there was another reason.
andrew77 Posted December 6, 2013 Posted December 6, 2013 Using the "else" part of it? If Status 'Hutch Lamplink' is not Off Then Set Scene 'LED OFF Scenes / Hutch LED ON' On Else Set Scene 'LED OFF Scenes / Hutch LED ON' Off Drew
andrew77 Posted December 13, 2013 Posted December 13, 2013 Adding the 'else' line seemed to not work. It seems like such a simple program. If Status 'Hutch Lamplink' is Off Then Set Scene 'LED OFF Scenes / Hutch LED ON' Off Else Set Scene 'LED OFF Scenes / Hutch LED ON' On But sometimes I'll walk into the room where the hutch is and see the LED on and the hutch light off (or visa versa) I did it for these programs too. If Status 'Andrew's Office A' is not Off Or Status 'Basement Hall' is not Off Or Status 'Basement KPL A' is not Off Or Status 'Christmas Tree' is not Off Or Status 'Lamp Left' is not Off Or Status 'Lamp Right' is not Off Or Status 'Library' is not Off Or Status 'Theatre Room' is not Off Or Status 'Marion's Office' is not Off Then Wait 1 second Set Scene 'LED OFF Scenes / BASEMENT LED OFF' On Else - No Actions - (To add one, press 'Action') and the opposite If Status 'Andrew's Office A' is Off Or Status 'Basement Hall' is Off Or Status 'Basement KPL A' is Off Or Status 'Christmas Tree' is Off Or Status 'Lamp Left' is Off Or Status 'Lamp Right' is Off Or Status 'Library' is Off Or Status 'Theatre Room' is Off Or Status 'Marion's Office' is Off Then Wait 1 second Set Scene 'LED OFF Scenes / BASEMENT LED OFF' Off Else - No Actions - (To add one, press 'Action') but I find that sometimes the LED doesnt properly show the state of the light(s) Drew
oberkc Posted December 14, 2013 Posted December 14, 2013 It is a simple program. The problem that typically comes up is when a path (THEN or ELSE) retriggers the program, but unless the scene "basement LED off" or "hutch LED on" includes devices that are part of the programs condition, then this should not be a factor. Have you tried any experiments to further isolate the problem? Have you tried manually executing the THEN or ELSE paths to confirm that they work? Have you watched the program state from the ISY to see whether it is executing? Have you confirmed the ISY-presumed state of your devices match reality? If the program appears accurate (and it does to me), then I start looking for other potential issues.
andrew77 Posted December 14, 2013 Posted December 14, 2013 Have you tried manually executing the THEN or ELSE paths to confirm that they work? I'm unsure how to manually run the THEN and ELSE paths. Have you watched the program state from the ISY to see whether it is executing? When I watch the ISY it seems to sometimes state that the program is on, other times, not. I found that the LED would turn on, then off, then on, then off again (not flickering or flashing like when its sending a signal but not receiving) I took out the 1 second delay and all the lights except two so I could test it easier than having to run around the basement. It now seems to choose when to work. Clearly I've made a mess of what seems to be simple.(?) Drew
oberkc Posted December 14, 2013 Posted December 14, 2013 I'm unsure how to manually run the THEN and ELSE paths. Right-click on the program name, choose run if, run else, whatever. When I watch the ISY it seems to sometimes state that the program is on, other times, not. I was not so much concerned about watching the one or two seconds it was running, but more checking program status (true meaning last ran THEN path, false meaning last ran ELSE path) and last run times to determine that it last ran when you expected and how you expected. Toggle a few of your devices and see if the program reacts. Also, look at any other programs you have to see if somehow they are unexpectedly reacting. Look for a program that runs several times in a row, going from true to false, causing your lights to turn on and off. Look for clues. Do you see anything that surprises you? I continue to think that it is something other than these programs that are causing this.
Recommended Posts