Jump to content

Notify program will not Wait


Ed Sybesma

Recommended Posts

I have tried to create several programs designed to wait a certain period of time, e.g. five minutes, and then call a second program to check the status (of the garage door) and, if the garage door remains open, to send me a notification that it has been open more than five minutes.

 

Unfortunately, somehow the notification goes out immediately without any wait time.

 

The following is one example:

 

 

Program 1: Garage Door Opening

 

If

garage door sensor [sensor number] is switched off

 

Then

Wait 5 minutes

Run Program “Garage Door Still Openâ€

 

Else

No Actions

 

Program 2: Garage Door Still Open

 

If

Status garage door sensor [sensor number] is off

 

Then

Send Notification [with selected addressee set and message]

 

Else

No Actions

 

 

Immediately upon Program 1 being triggered, the notification is sent with no wait or delay.

 

Is this a bug in the system or some error in my programming?

 

Is there a workaround?

 

Thanks in advance.

 

Ed

Link to comment

The same condition that is triggering the first Program is triggering the second at the same time. If the second program should run only when called by the first program, mark second program Disabled. That way it cannot be triggered by it's If condition.

 

EDIT: as a side note the first program If has an invalid statement in what is posted. Right click on a program name, select Copy to Clipboard, paste into forum. A simple mistype can result in the wrong conclusions.

Link to comment

LeeB,

 

Thanks much. The programming error is obvious now that you pointed out.

 

And, likewise, thanks for your other comment. I was using shorthand, but you are right--that's not such a good idea.

 

Here's how it should have read.

 

If

Control 'Outdoors / Garage Door / 28.C2.81-Sensor' is switched Off

 

Again, thanks much.

 

Ed

Link to comment

Archived

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


×
×
  • Create New...