Jump to content

Water feature random run times


carealtor

Recommended Posts

I've written a few simple programs for the ISY, but my knowledge is no where near some of yours. So I thought I would just ask for help instead of struggling to figure this out.

 

In a nutshell, we have a water feature in our backyard and I would like to have it run basically at random during the day.

 

So, for example, let's say:

* I only want it to run between 8 am and 10 pm

* Run times and off times are random

* When it does run, I want it to run at least 20 minutes, but no more than 60 minutes

* When it is off, I want it to stay off for at least 30 munutes, but no more than 90 minutes

* And, if possible, it only runs for a total of 4 hours a day (this is not that important, but thought I would throw it in as a wish list)

 

If someone could at least give me the basics as to how to approach this, I would really appreciate it.

Link to comment

If

       From    Sunset  + 20 minutes

       To       2:00:00AM (next day)

Then

       Wait  20 minutes  (Random)

       Set 'Bathroom Vanity' On

       Repeat Every  0 seconds

          Wait  20 minutes 

          Wait  20 minutes  (Random)

          Set 'Bathroom Vanity' Off

          Wait  20 minutes 

          Wait  20 minutes  (Random)

          Set 'Bathroom Vanity' On

Else

       Wait  15 minutes  (Random)

       Repeat 3 times

          Set 'Bathroom Vanity' Off

          Wait  2 seconds (Random)

 

I use this code to create the lived in look at my house. You could use similar code to control your water feature.

 

Just set the proper time parameters in the if.

 

The random wait times create your random feature. The wait times without random insure minimum runtimes.

 

 

Sent from my iPhone using Tapatalk

Link to comment

I have a bunch of those programs that run when I am in 'Away' mode. As such, the final off time is real important because I may not be home for a long time to see a light stuck on. If the command is missed because of a collision with another event etc. the light would stay on till the next night. As I am not home during this 'Off' event, I figured why not throw some repeats in there just to make sure. Mostly cause it is so easy.

Link to comment

Archived

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


×
×
  • Create New...