Simon Wong Posted May 21, 2018 Posted May 21, 2018 Hi, I am trying to figure out how to program on HE to set my light switch LEDs to change colors or blink (ie red to blue to red to blue.....) when the front door status is unlocked. Currently, when the front door status is locked, the default is Top LED is Blue (when light switch is On) and Bottom LED is Red (when light switch is Off). I have it now that "When the Living->Front Door Status is unlocked" to "Set Top LED on the Master Bedroom Light->Simon Cans to Lime when on". I'd like to try and make the LEDs blink Red and Blue so it catches our eyes easier. So Instead of manually entering a code to change to blue, delay a second, change to red, delay a second, change to blue...... I'm thinking I need an "IF" statement to check Front Door Status and run some sort of loop w/a stop if the door status is finally locked. I'm not sure if putting a timer in there is the way to go, so I can run a timer that goes for 10seconds that checks door status and "If Unlocked" then Red, delay a sec, Blue, delay a sec, Red, ....., and STOP if LOCKED. What other methods are there? ***ANOTHER THOUGHT*** Is it also possible to dim the LED themselves, so the Top LED is BLUE and it dims to black and brightens to BLUE and dims? Is this too much of a slow down on C4 if I have this loop running? Thank you. -Simon
CFUG Posted May 21, 2018 Posted May 21, 2018 I have similar loops running and no issues have popped-up. I use both timer method and simply using a delay in between color changes within the same program. Either works fine but it seems to me the timer method is a little unstable wrt duration.
South Africa C4 user Posted May 21, 2018 Posted May 21, 2018 Yeah. Should work although Zigbee can be a bit slow if you are trying to adjust too many LEDs at the same time. I tried to get all the LEDs on my 100 plus keypads/dimmers to flash (probably 400 or more LEDs) at the same time once and that was a disaster but for one or two LEDs it should be easy. There are also a few drivers that do this. The Domosapiens one being the latest.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.