Jump to content

e-mail if Garage door if left open


smileyw

Recommended Posts

I want to write a simple program that would e-mail me if the garage door is open for more than say 15 minutes or something.

I have a IOlinc running, so I can see the status change from closed to open, but how do I then tell it to wait 15 minutes, and if the door is still open, then send an e-mail? I can figure everything out except how to add another if/then after waiting 15 minutes. I suspect this is simple, so hopefully someone can quickly help?

 

Thanks,

 

W

Link to comment

Hello !

 

It's quite simple! The most important thing you have to note is that the Wait statement may be interrupted. So, all you have to do is to add a Wait for 15 minutes in the Action section before the Notify statement. Now, if the status of the program changes within that 15 minutes, then no notifications are sent. Otherwise, notification is sent.

 

With kind regards,

Michel

Link to comment

Archived

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


×
×
  • Create New...