[quote=“ember1205, post:18, topic:196577”]Create a scene that is triggered by the light being turned off. There is no immediate or delayed action, but you will need it to run a piece of LUA code to set LoadLevelTarget and LoadLevelLast to some value (same for both) which will become the lighting level when they are turned back on again.
The LUA code will need to be something like (this is off the cuff, so no guarantees here):
XX should be the percentage you want to set the dim level to and YY would represent the ID of the specific device.
Also, be advised that turning the lights back on “right away” will possibly not work because of a delay in Vera polling the switch to find out it has been turned off. So, the resetting of the dim value may take a short bit to be populated to the switch.[/quote]
Thanks for the suggestion. In a pinch it would be a solution. If I do that though then I do lose the function of the light switch that is enjoyed by those that understand how to turn the dimmer switches on and off. If you set your light to 75% you should be able to tap it to turn it off and then tap it to turn it back on at the same level you had it at. What I would rather do is make it an “if/then/AND” situation. If someone dims the light down to below 5% to “turn it off” I’m going to assume that they just don’t know how it functions so I’d like the possibility of IF the light is set to below 5% THEN turn the light off AND set the LoadLastLevel to XX. I can get the first part of that in PLEG by creating the IF below 5% then do the action. It’s just that the action in PLEG gives me the option of turning it off using “LoadLevelTarget” but it does not give me the option to of “LoadLevelLast” even though that is in the list when I create the Device Input.