Jump to content

Wait command


Voluntario

Recommended Posts

I just set up a new program to send alarms to my email address. The problem is when the If is true is sending emails every minute or so, and I want just get a email every hour the If is true. I tried the command "wait 1hour" having the same result. What am I doing wrong?

 

If

From 9:00:00AM

To 6:00:00PM

And Module 'Climate' Wind Speed >= 16 mph

 

Then

Send notification to 'email' content 'Watch the wind'

Wait 1 hour

Link to comment

The Wait (and Repeat) statement allows the If to be reevaluated. Every time the wind speed exceeds the checked value the Program is triggered from the beginning and issues another email.

 

One solution is split the logic into two Programs. The second Program has a null If so that the Wait cannot cause the Program to be reevaluated.

Link to comment
The Wait (and Repeat) statement allows the If to be reevaluated. Every time the wind speed exceeds the checked value the Program is triggered from the beginning and issues another email.

 

One solution is split the logic into two Programs. The second Program has a null If so that the Wait cannot cause the Program to be reevaluated.

 

Can you please post how to do it?

Link to comment
Program 1

 

If

From 9:00:00AM

To 6:00:00PM

And Module 'Climate' Wind Speed >= 16 mph

 

Then

Run Program ‘2’ (if)

 

 

Program 2

 

If

 

Then

Send notification to 'email' content 'Watch the wind'

Wait 1 hour

 

Thanks a lot, but I am still having the same result

Link to comment
Copy/Paste the two Programs. Right click a Program, select Copy to Clipboard (last option at bottom of list). They past into forum.

 

Make sure the Program changes have been saved by clicking Save Changes.

 

 

I already did it .I made two programs, my two programs look the same than your ones , but I got the same result than before.

Link to comment

My apologies. The Wait has no affect when there are no functional statements following the Wait.

 

Program 1

 

no change

 

 

Program 2

 

If

 

Then

Disable Program '1'

Send notification to 'email' content 'Watch the wind'

Wait 1 hour

Enable Program '1'

Link to comment
My apologies. The Wait has no affect when there are no functional statements following the Wait.

 

Program 1

 

no change

 

 

Program 2

 

If

 

Then

Disable Program '1'

Send notification to 'email' content 'Watch the wind'

Wait 1 hour

Enable Program '1'

 

 

This works perfect!!

 

Thanks and regards

Link to comment

Hi,

 

Just my 2 cents: You should set program 2 to run at startup. Otherwise, if you ever have a power outage or you reboot the ISY for whatever reason program 1 will remain disabled & program 2 will never run on it's own, thus you won't get any more emails.

 

Sent from my SPH-D710 using Tapatalk 2

Link to comment

Archived

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


×
×
  • Create New...