Jump to content

thomas

Members
  • Posts

    9
  • Joined

  • Last visited

thomas's Achievements

Newbie

Newbie (1/6)

0

Reputation

  1. Perfect. That is what I was hoping for. In many of the examples I have seen the If statements included the "On" and "not Off" status. So I adopted that logic as well. Good to know it doesn't matter and I can just check for "On". Thanks LeeG!
  2. That program doesn't do exactly what you asked, but it might be what you meant. "(changed from Off to On) I want to wait 10 minutes and check that sensor again. If it is still on I want to send an sms notification." Taken literally, this could mean you want it to ignore any off/on cycles that happen during those 10 minutes. This won't be the case. That program will only send you an SMS if the i/o linc were continuously on for 10 minutes. Ah yes. I understand what you are saying and, unknowingly, the program above is what I wanted. I only care if it is on for 10 minutes continuously. The exact program I have is below. The intent is to send me an email/sms if the time is between 7:30am and 3:00am next day AND my irrigation pump has been on for 10 minutes continuously. If From 7:30:00AM To 3:00:00AM (next day) And Status 'Irrigation Pump Sensor' is On And Status 'Irrigation Pump Sensor' is not Off Then Wait 10 minutes Send Notification to 'Cell Phone' content 'Irrigation Pump Power' Else -No Actions So the next question is...what happens if the pump turned on at 7:25AM? The program would not be invoked until 7:30AM and, assuming the pump is still on at 7:40AM I would get an SMS at 7:40AM? Or did I "miss" the On event for the pump I was outside my time window? Appreciate the help!
  3. Seems too easy but it worked! The way I interpreted the wiki pages was that it would re-evaluate the condition and then re-execute the "then" clause. But it seems it just re-evaluates the condition and picks up at the statement after the wait. Perfect. Thanks!
  4. Hello. Fairly new to ISY programming. I got the basics down and have done a lot of other types of programming so opening to learning some advanced ISY. Here is what I am trying to do. When an Insteon I/O link sensor is activated (changed from Off to On) I want to wait 10 minutes and check that sensor again. If it is still on I want to send an sms notification. I have the SMS part down but can't really figure out the "wait" part. From what I read if you wait it rechecks the conditions...and I feel like I would be in an infinite loop. Do I need a program variable or something to "persist state" across condition checks or something? Any suggestions? Thanks!
×
×
  • Create New...