Jump to content

How do I run a job every 15 minutes


Recommended Posts

Posted

Hi All,

 

I want to run a cleanup Job every 15 minutes.

 

If K-Motion Sensor is Off

AND Kitchenette Sensor is Off

AND K-MotionOff Last Run + 10 Minutes

 

Then

Set Scene Kitchen Off

 

There are several others I want to run cleanup dimmer switches etc, etc.

 

ThoughtS?

 

Devon

Posted

Hi DevonSprings,

 

Do you want to evaluate the condition every 15 minutes or set Kitchen Scene Off every 15 minutes?

 

For the second, use the Repeat statement under Actions.

 

With kind regards,

Michel

 

Hi All,

 

I want to run a cleanup Job every 15 minutes.

 

If K-Motion Sensor is Off

AND Kitchenette Sensor is Off

AND K-MotionOff Last Run + 10 Minutes

 

Then

Set Scene Kitchen Off

 

There are several others I want to run cleanup dimmer switches etc, etc.

 

ThoughtS?

 

Devon

Posted

Hi Michel,

 

I want to evaluate the condition every 15 minutes. I tried running after another job 15 minutes later, and that job became depenant on the other job being found.

 

I also tried evaluating it 15 minutes after itself but because itself was running I assume it updated to now.

 

I suppose I could write

 

if (sundown)

then

repeat every 15 minutes

Program Test Lights Off

 

but I would like to know the most correct way.

 

Because Insteon signalling is not 100% reliable > 90%, I just want to write some programs to ensure the lights go off when the room is MT.

 

My wife is has poor night vision, and because of that when we light up rooms, it is 100% of the lights on. The Kitchen draws about 1050 W of light when it is ON. The Living Room the same, so having backups to shutting these off is very important. Oh and power is 50 cents / KWh here.

 

Thanks,

 

Devon

Posted

I use this program to query my thermostat every 15 minutes:

 

If
       From    12:00:00AM
       For      24 hours 

Then
       Repeat Every  15 minutes 
          Wait  10 minutes 
          Set 'OfficeThermostat' Query

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

 

I also have the program set to "Run At Startup". Works very well for me.

Posted

I do that because I'm doing a query in my program. Since the ISY queries all devices by default at startup, it doesn't make much sense to re-query my thermostat immediately after. The 'Wait 10 Minutes" gives me an offset, so when rebooted my ISY queries everything (including the thermostat), then 10 minutes later queries my thermostat again, then again every 15 minutes after.

Posted

Mike,

 

Thanks its all working beautifully now, I am now writing little programs to test the state of affairs and clean up the rooms.

 

If
       From    12:00:00AM
       For      24 hours 

Then
       Repeat Every  15 minutes 
          Run Program 'K-Off' (If)
          Run Program 'K-MotionOffSafe' (If)
          Run Program 'Pr-MotionOffSafe' (If)

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

 

 

 

[/code]

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...