Jump to content

WAIT not working???


MarkDFW

Recommended Posts

Posted

I created a very basic program and to me it looks like I have an issue with WAIT command.

After some testing and simplifying my program (to find the culprit) I concluded that WAIT command does not work as I expected.

If
        '1 Entry motion' Status is On
 
Then
        Set '1 entry hall' On
        Wait  10 minutes
        Set '1 entry hall' Off
 
Else
   - No Actions - (To add one, press 'Action')
 

So... I notice that this program would work only if WAIT time is less than 30 seconds (??) Any clue why? 

 

Thanks in advance!

 

 

 

Posted
24 minutes ago, MarkDFW said:

I created a very basic program and to me it looks like I have an issue with WAIT command.

After some testing and simplifying my program (to find the culprit) I concluded that WAIT command does not work as I expected.

If
        '1 Entry motion' Status is On
 
Then
        Set '1 entry hall' On
        Wait  10 minutes
        Set '1 entry hall' Off
 
Else
   - No Actions - (To add one, press 'Action')
 

So... I notice that this program would work only if WAIT time is less than 30 seconds (??) Any clue why? 

 

Thanks in advance!

 

 

 

Try using Control rather than status in the "If " statement of your program and set your motion sensor so it sends only "On" signals.

Posted

As stated, use control. By using status, the sensor must be "on" for in order to trigger the wait.

It works at 30 seconds because it's probably within the timeout period before the sensor changes to off

Posted

The key phrase from the Wiki is "The program's conditions are reevaluated each time a Wait statement is encountered"

IOW, when the Wait time concludes, the If clause is re-tested;  if it is now false, execution of the Then statements is aborted and any Else statements are executed.

Posted
4 hours ago, KeviNH said:

The key phrase from the Wiki is "The program's conditions are reevaluated each time a Wait statement is encountered"

IOW, when the Wait time concludes, the If clause is re-tested;  if it is now false, execution of the Then statements is aborted and any Else statements are executed.

The phrase is incorrect and should have read. "The program's conditions can be reevaluated each time a Wait statement is encountered"

Unless some trigger is involved, nothing is re-evaluated anywhere. ISY is a trigger based engine from end to end.

Posted
3 hours ago, larryllix said:

The phrase is incorrect and should have read. "The program's conditions can be reevaluated each time a Wait statement is encountered"

Unless some trigger is involved, nothing is re-evaluated anywhere. ISY is a trigger based engine from end to end.

I tried testing with an Integer variable, and it worked as you said -- conditions were not re-evaluated after a wait.

Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

  • Forum Statistics

    • Total Topics
      37.1k
    • Total Posts
      372k
×
×
  • Create New...