virtual switch/ time on delay

With help from people here I have managed to create a virtual on/ off switch to arm/disarm my security set-up. I would like to add a 30 sec delay from the time of activating the “on” of the virtual switch, till the actual arming occurs. I’ve fiddled with the “delay” in the scene set up, but just can’t figure out how it works. Can someone point me in the right direction.

Thanks in advance

This has been described many times in this forum/wiki. Best is to use google for searching.

In the drop down where it says “immediate” on the top left when you are editing a scene click on “manage delays”. Add a 30 second delay. When you added this, you can choose the delay of 30 second in the drop down. Once you selected it you can choose what the scene shall do after the delay.

http://docs5.mios.com/doc.php?language=1&manual=1&platform=3Lite&page=adding_a_scene

[quote=“chixxi, post:2, topic:177994”]This has been described many times in this forum/wiki. Best is to use google for searching.

In the drop down where it says “immediate” on the top left when you are editing a scene click on “manage delays”. Add a 30 second delay. When you added this, you can choose the delay of 30 second in the drop down. Once you selected it you can choose what the scene shall do after the delay.

http://docs5.mios.com/doc.php?language=1&manual=1&platform=3Lite&page=adding_a_scene[/quote]

You’d better use PLEG for that. If you do it as described above it’ll not function properly:
If the switch turns on the 30 sec. timer starts. If you turn the switch off within the 30 seconds timer, the timer will continue and execute the scene after those 30 sec. while the switch is already turned off.

In a PLEG condition you can avoid this situation from happening with: VSwitch_On AND (VSwitch_On; Now > 00:00:30)
That condition will only become true if the switch was turned on (more than) 30 seconds ago AND when it’s still turned on after the 30 sec. timer

Good advice, i didn’t think of that but the logic makes sense…funny, I used Wiki and Google and didn’t come across any mention of what you describe…I will have to look at pleg and do have the interest, but I’m sure it will take awhile to grasp it. In the meantime, my problem is that even if a take a simple on/off light device, create a scene, add a 30 sec delay, select the 30 sec delay, then drop down and click on the “on” button on the light device…I get the little curved arrow on the light switch, all looks good until Iconfirm changes and then Save it. Going back into that scene immediately afterward, the 30 sec delay says “immediate”, and the “on” button is “de-selected”… as if I never made the change. Any ideas whats going on. I followed a few you tube tutorials and I appear to be doing exactly as described but the changes never take hold.

After editing and reopening a scene, you have to choose the 30 seconds delay again in the drop down to see what will happen at 30 seconds. The button is not marked since you are looking at what is happening at “immediate”, and ther is nothing happening as far as I understood you.

Your question was so specific I didn’t think about PLEG, but I also prefer PLEG. I basically don’t use scenes any more.

It’s not that difficult. In the PLEG device, create:

  • a trigger: VSwitch_On - when the switch is turned on
  • a condition: Arm: VSwitch_On AND (VSwitch_On; Now > 00:00:30)

Then add that Arm condition as a trigger in your scene (select the PLEG device as trigger and then add the condition)

Then add that Arm condition as a trigger in your scene (select the PLEG device as trigger and then add the condition)

Why in the world would you use a scene? Just add an action in PLEG, no need for a scene. Or did I get something wrong?

[quote=“chixxi, post:7, topic:177994”]

Then add that Arm condition as a trigger in your scene (select the PLEG device as trigger and then add the condition)

Why in the world would you use a scene? Just add an action in PLEG, no need for a scene. Or did I get something wrong?[/quote]

You’re right, but TS already had a VSwitch and a scene…

ok, i have got it working. I wasn’t understanding how the timer had it’s own “page”. When editing the scene I was looking at the scene page and not the timer i created. A “duh” moment for sure. At least i"m up and running for now, awaiting a chance to convert to PLEG. Thank you to everyone for helping.