Jump to content

What am i doing wrong


richardl007

Recommended Posts

Posted

This program never gets pasted the wait part?

If i put the notification before the wait i get it. if i put the notification after the wait it doesn't work? the " Set Scene 'Multi-way / Fernace Room' Off" never works....

 

If

Elk Zone 'Funace room M' is Violated

 

Then

Set Scene 'Multi-way / Fernace Room' On

Wait 20 minutes

Send Notification to 'Richard Leibov'

Set Scene 'Multi-way / Fernace Room' Off

 

Else

- No Actions - (To add one, press 'Action')

Posted

richardl007

 

It means the If condition changes before the 20 minute wait completes, the program is retriggered with the change in If state to false which runs the Else clause. The statements after the Wait never execute.

 

The solution is for the Then clause to Run a second program that contains all the current logic of the Then clause. The second program has nothing in the If clause so it is never retriggered and the Wait is allowed to complete running the statements after the Wait.

 

Lee

Posted

Hi Richard,

 

To add to Lee's comments ...

 

Zone events are based on the current state of the sensor, therefore its possible someone Violates the zone (i.e. causing a contact closure to open for example), but then it immediately goes back to Normal when the contact closure for that zone closes again. For example, a door opening/closing.

 

Whats happening in your program is the Zone changes back to Normal before the 20 minute wait finishes, which causes the program condition to be false which in turn stops running the Then path of your program, and starts running the Else path.

 

Area states are more persistent in that when an unbypassed zone for that area is violated, the area will go into Alarm state, and will remain in that state until disarmed.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing

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

    • There are no registered users currently online
  • Forum Statistics

    • Total Topics
      37k
    • Total Posts
      371.4k
×
×
  • Create New...