Jump to content

barclay

Members
  • Posts

    2
  • Joined

  • Last visited

barclay's Achievements

Newbie

Newbie (1/6)

0

Reputation

  1. I'm not quite sure I understand. My grace period is now set to the default I guess, of 10 minutes. The program is terminating perhaps 4-5 hours after it starts, when I would guess that it should terminate more like an average (taking the midpoints of the random intervals) of a total of 430 minutes or 7 hours later. But without a trace I can't tell exactly what's going on. If I understand what you're saying when "time is sunset" becomes false, which is I presume at sunset + 10 min, then the next time there is a wait, the program ends. So if I want to trigger on sunset, but not kill the program after the grace period, then how do I do it? Do I set the grace period for the maximum time the program might run after sunset, which is about 10 hours? Is there a better way to do this? Should I set up some kind of variable that indicates whether the current state of the system is "sundown" or "sunup" i.e. dark or light outside, and then test on that? Thanks, Barclay
  2. Hi Gang, This is my first ISY program and it doesn't seem to be working as I think it should. It's trying to alternate several lights for a randomized lived in look. Problem is, the program seems to be finishing too early! Like it often reports being done before 10pm, when it seems likely the mean would be much later, assuming random has some kind of normal distribution around the mean. Am I missing something about how this works? Also is there some kind of trace I can activate so I can see exactly how the program went. If Time is Sunset Then Wait 20 minutes (Random) Set 'Workshop Landing Light' On Wait 10 minutes (Random) Set 'Kitchen Light' On Wait 300 minutes (Random) Set 'Workshop Landing Light' Off Wait 420 minutes (Random) Set 'Kitchen Light' Off Wait 15 seconds (Random) Set 'MBR Light' On Wait 40 minutes (Random) Set 'MBR Light' Off Else - No Actions - (To add one, press 'Action') Thanks! Barclay
×
×
  • Create New...