Brad_The_Lucky Posted November 22, 2007 Posted November 22, 2007 I already have button 6 on a keypad programmed to turn off all the lamps in the house. I'd also like the Button 6 LED to show up as red if any one of those lamps is on. How/where would you program the LED to do this? I've tried different options but none seem to be working....Thanks!Brad
danlevine Posted November 23, 2007 Posted November 23, 2007 When lamp turns on set LED to on..I would recommend using a variable that evaluates all of the lamps if any of them change state.
Brad_The_Lucky Posted November 23, 2007 Author Posted November 23, 2007 Ok, that gave me some ideas....I created a number variable. If any of the lamps turn on, I increment that variable by one. If any lamps turn off, I decrement that variable.If the variable changes >1 then the LED turns Red. If the variable = 0, the LED turns Black.That seems to work! For some reason though, I had to set the LED color to Black. When I tried to just turn the LED off nothing happened.
Brad_The_Lucky Posted November 23, 2007 Author Posted November 23, 2007 Just thinking now that this functionality would be neat to use for a button that monitors all of the lights in the house. If any lights are on, then the keypad button would be Red. Is there an easier way to to do this? I'd have to add the appropriate commands on every light in the house to increment/decrement the variable.
henniae Posted November 23, 2007 Posted November 23, 2007 Just thinking now that this functionality would be neat to use for a button that monitors all of the lights in the house. If any lights are on, then the keypad button would be Red. Is there an easier way to to do this? I'd have to add the appropriate commands on every light in the house to increment/decrement the variable.I think this is the only way to currently implement this function. It would be nice if there were a global variable provided by the system that indicated the status of all light loads. Perhaps ALL_LIGHTS_ON and ALL_LIGHTS_OFF variable that was set automatically by the system. There could be a check box for each load to tell the system to monitor that particular load, this way you could have loads that are not monitored.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.