Jump to content

Program that sends notification after a Repeat command


driedlinger

Recommended Posts

Posted

I must preface this post by I am new to the ISY-99 and it's programing...and so far I am very pleased with capabilities and still learning what it can do.

 

I have read through some of the how to's and can't find what I am looking for. I have read through the "state machine post by Ergodic back in 2009" and still trying to make sense of all of that, there is a lot to wade through.

 

The problem I am having is sending a Notification after Repeat operation. I do not want to send the notification after each repeat iteration but once the repeat is complete. Basically I want to run send and email at the start of the process, turn on a pump 15 min. then off for 1 hour and do this for 24 hours, at the end of the 24 repeats, send an email....Below is the code. Any help or advice would be great.

 

If
  - No Conditions - (To add one, press 'Schedule' or 'Condition')

Then
       Send Notification to 'Default' content 'RainCycle Start 24hr'
       Repeat 24 times
          Set 'appLincPool' On
          Wait  15 minutes 
          Set 'appLincPool' Off
          Wait  1 hour 

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

Posted

I'm new to this too so this may be totally off the wall.

 

Create a second program

 

If

- no conditions

Then

Run program 'xxxxx' (Then)

Notify ....................

Else

- No Actions

 

 

Then run the second program

Posted

I tried having one program call another program, what seems to happen is it calls the pgm and then executes the next statement, it does not wait for the other pgm to complete and come back.

Posted

The problem I am having is sending a Notification after Repeat operation.

 

The simplest way to do this is to add a Repeat 1 after your other Repeat, as follows:

 

If
  - No Conditions - (To add one, press 'Schedule' or 'Condition')

Then
       Send Notification to 'Default' content 'RainCycle Start 24hr'
       Repeat 24 times
          Set 'appLincPool' On
          Wait  15 minutes 
          Set 'appLincPool' Off
          Wait  1 hour 
       Repeat 1 time
          Send Notification to 'Default' content 'RainCycle Start 24hr'
Else
  - No Actions - (To add one, press 'Action')

Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Forum Statistics

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