I have a gate at the end of the driveway. I will likely control it by using a GE Enbrighten switch in "button mode", ie, two taps up = button3=open gate, two taps down = button4=close gate.
I thought it would be nice to have the switch's led light up when open and be dark when closed.
The thread below, with the code from @JasonJoel , which I just cut and paste into a custom version of his fine driver, allowed me to make this happen. Thanks @JasonJoel .
Now all I have to do is hook up the operator, controls, ie, everything, lol.