This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Script with delay and interrupt it. How?
#1
Hi! I'm triying to do the next:

Variables: Trigger, group address B, group address C.

I have a trigger, when this trigger switchs ON, B must switch ON inmediatly and C must switch ON with a delay of 3 minutes. Also, when the trigger switchs to OFF, C must switch OFF inmediatly and B must switch OFF with a delay of 10 minutes.I don't know how to do when I change the trigger value under the 3 or 10 minutes delay time.

Any way I can achieve this?

Thanks in advance.
Reply
#2
Hi
Use 3 scripts:
1 - event script with if else statement which will immediately switch on of one group and if off other group.
2 - resident script which will switch on C after a delay you can convert this example https://forum.logicmachine.net/showthrea...81#pid8181
3 - another resident script which will switch off B with delay.
BR
------------------------------
Ctrl+F5
Reply


Forum Jump: