Force turn on/off virtual switch

So is this now working out for everyone? Will uploading the files change all VS currently in the system and all future VS added?

^^^
Yes, it does.
With Nothing, all it means that you have a 3rd. state.
Think of it as a 3 position switch (OFF - LOW - HIGH or similiar)[font=verdana, arial, helvetica, sans-serif][size=1].[/size][/font]
[font=verdana, arial, helvetica, sans-serif][size=2]My mistake was that I was looking at it as a Momentary switch with the ON-OFF states reverting to Nothing after either the ON or OFF state.[/size][/font]
[font=verdana, arial, helvetica, sans-serif][size=2]A Momentary VS as a Multi-Switch wouldn’t be a bad idea either as a Multi takes up less memory than the corresponding number of VS’s[/size][/font]

There appears to be a problem if you try to use this with PLEG.

There is no state in Actions for NOTHING (State 2), only options for set Target is 0 or 1.

I was able to get this to run properly using Scenes.

I use either GetTarget or SetTarget in my PLEG actions, depending on what I am doing. I use VS’s for status as a button on VeraMate or to turn on/off the exterior lights.

The question wasn’t about what Action to use, it was the fact that PLEG does not have an Advanced Action for Nothing. Please read the question before replying with useless information.

You can type in the Lua code in PLEG to set the target state instead of using the actions.

Well that certainly was not helpful.

Hi Everyone,

Can I get a working example please? Where do you set the delay?

Create 2 scenes
One with the Virtual switch to On as the trigger, then have a delayed action (like 5 seconds) to set the state of the Virtual switch to “Nothing”. You have to use the UI to do this and click the “Nothing” button (not the advanced editor which will try to force you to a true/false answer when the value you want is “2”).
Do the same for the Off as a trigger.