Kahn Posted August 31, 2019 Share Posted August 31, 2019 I have three garage doors monitored/operated with contacts/relays on an IOX. On a bank of three switches/dimmers - what's the best programming to change the bottom LED to red and blink periodically when a garage door is open and back to blue when closed? Quote Link to comment Share on other sites More sharing options...
msgreenf Posted August 31, 2019 Share Posted August 31, 2019 On relay open set current color on led top and led bottom blue Sent from my Pixel 3a XL using Tapatalk Quote Link to comment Share on other sites More sharing options...
Kahn Posted August 31, 2019 Author Share Posted August 31, 2019 what would make it change back to blue when door is closed? Wouldn't the LED just remain blue even when the door was closed? And - that wouldn't make it blink periodically. Quote Link to comment Share on other sites More sharing options...
msgreenf Posted September 1, 2019 Share Posted September 1, 2019 Missed the blink partSent from my Pixel 3a XL using Tapatalk Quote Link to comment Share on other sites More sharing options...
Kahn Posted September 2, 2019 Author Share Posted September 2, 2019 Any other ideas? Quote Link to comment Share on other sites More sharing options...
dcovach Posted September 2, 2019 Share Posted September 2, 2019 Create a Timer (agent) and set it for the amount of time you want between LED blinks when the garage door opens. Click the Repeating check box too. I haven't tested this idea but the timer should be programmed to start when the contact sensor opens and should timer should stop when closed. when the relay is closed, set led current to the status of the light(s) using if statements (on or off). Every the time the timer starts (or repeats), you could program a series of led color changes and finish off on red. eg, if sensor open --> set led current to red, delay 500ms, set led current to black, delay 100 ms, set led current to red, delay 500ms, set led current to black, delay 100ms, set led current to red (last led color to sit on if sensor still open). make sense? Quote Link to comment Share on other sites More sharing options...
hank31980 Posted September 27, 2019 Share Posted September 27, 2019 As usual there is probably a hundred ways of doing this, but I had a go tonight and this seems to work. In Timer Agents, create a new 1 second Timer "GarageDoorOpenBlink". Assign a Keypad Button to Operate the Garage Door Opening. I use a Double Tap to make sure the Keypad button is not accidentally hit, inadvertently Operating the Door Open or Closed. Now test state of the Garage Door Relay itself. When Garage Door is Opened - Reset Timer "GarageDoorOpenBlink", which starts timer running. When Garage Door is Closed - Stop Timer "GarageDoorOpenBlink", which stops timer. Now test state of the new Timer "GarageDoorOpenBlink". Door Closed When Timer is Stopped, then set Keypad LED to LIME colour Door NOT Closed When Timer is Started, then Delay 1/2 second and then set Keypad LED to RED colour When Timer is Expired, i.e. Door is NOT Closed and Timer has expired, then Delay 1/2 second and then set Keypad LED to BLACK colour, then RESTART Timer. Regards David Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.