We received this question from a customer and thought other might be interested in this topic...
If I have sensor wired to an input on a VCRX to determine when the garage door I open or close how can I program a button to show to status of the garage door. I would also like a goodnight button to not only turn off the lights but also to close the garage door if it is open.
To accomplish this programming the input trigger a maintain output on the VCRX. When the input is closed indicating the door is open the CCO is closed. When the input opens the CCO is programmed to open indicating the door is closed.
On the garage button it is set up as a toggle with the LED logic set to room. On the “Press On” tab the CCO to close the door is puled and the maintained closure is set to close. On the “Press Off” tab the CCO to open the door is pulsed and the maintained closure is opened. Since the Led logic is set to room it will follow the state of the maintained closure.
On the goodnight button it is a conditional. There is a “Door open” and “Door closed”. On the “Door open” action the lights are programmed to go off and the pulsed CCO for the garage door is puled.” On the “Door closed” action on the lights are programmed to turn off. The LED logic is scene and is based on “Door closed”. On the press tab there is a conditional that looks at the maintained CCO and if it is open then the “Door open” scene is run else the “Door closed” scene is run.