make blinking LED on lightswitch

Does anybody know if its possible to make the LED on my GE lightswitch blink? i would like to have a visual that my scene is running.my scene would be an alarm scene and the light letting me know it was active would be nice.
I would even take the light on only when the scene is active

If you blink the light it’s controlling on and off maybe :slight_smile:

There is a parameter to control the LEDs behavior but it essentially reverses it’s operation. I’m not sure it’s possible to set configuration parameters via lua code’ but if you could, then perhaps it can be accomplished.

You can set the color of the LEDs on the leviton 4-button scene controllers through luup or the scene commands screen. I set mine to indicate a scene is currently running. You can set red, orange, green or off, but it sticks on whatever color you set last, despite the programmed scene being activated or deactivated. Eventually, it goes back to off, but doesn’t seem to be a practical amount of time. So, it’s best to set the led back to off when finished with it. I use it primarily to indicate another scene is running so don’t hit this scene button. For example, if hit going to BED downstairs, which takes 5 minutes to complete, I set the going to SLEEP button upstairs to orange to indicate the BED scene is still running. I am working on using them to set/indicate armed/bypass and indicate tripped status on the RFID on the cars. Red = armed and away, Orange = bypass and away, Green = armed and home, Off = bypass and home. I haven’t had much luck with that yet, but I haven’t worked too hard at it.

GE/Jasco devices allow changing the behavior of the LED through UI4. I’ve not tried doing it via Luup but it may be possible. As far as causing it to blink, I think the whole device resets when the LED behavior change is sent, so flashing the LED probably not a good idea.

To set the LED behavior in UI4, select your device and go to the Device Option tab, click the Add Configuration Settings button, enter variable 3, pick data size 1 byte hex, then enter either a 1 or 0 in the desired value. 1 turns the LED on when the device is on, 0 turns the LED on when the device is off. I’ve tried this with GE/Jasco on/off switches and outlets. The dimmer manual says the LED behavior change works as well but I have not installed any dimmers yet.

I’ve programmed a scene that uses the LED on my basement switch to indicate if any other lights in the basement are on.

It works (module Vera getting out of sync with the lights in the basement). As for blinking, I think that will be tough. The code I found on the forum to change the led setting is changing parameter 3 (the night/day light setting of the LED) and then reconfigures the node. This takes about 7-10 seconds.

If you use that to blink the led, you’ll see it change every 10 seconds, but this might use up all the Vera resources to do.

-ZMaF

thanks zmaf i’ll check it out

As of now, reconfiguring a device restarts the Lua engine. If you are using relative timers (e.g., “and after 10 min”), you should check that pending relative timers survive the restart of the Lua engine.

Ap15e,

are you sure about the restart? I’ve played with this all evening yesterday while monitoring the log on vera. I did not see any restarts of the lua engine when I programmatically configure a single node.

Do we have more info on this?

-ZMaF

ZMaF,

I’m not so sure for the latest firmwares (>1.1.115x?).
Which firmware are you at?

(Re-)configuring the device (i.e. “Configure node right now”) does not restart the Luup engine on its own, but changing settings in the UI and saving does. I don’t think changing device’s Z-Wave parameter #3 programmatically is the same as making changes in UI and saving, though…

I think we are talking about the UPnP action ‘Reconfigure’ / ‘urn:micasaverde-com:serviceId:HaDevice1’. UPnP-Reconfigure [sometimes] causes a restart of the Lua engine (at least up to 1.1.1047, probably up to 1.1.115x …). Could it be that the Lua engine restarts if the UPnP-Reconfigure fails?

I’m on 1.1.1047 (the official release I believe). It does not seem to restart the engine when I programmatically change the parameters and call Reconfigure.

I hope it won’t on newer version either.

-ZMaF