DevonSprings Posted April 2, 2009 Posted April 2, 2009 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
Michel Kohanim Posted April 2, 2009 Posted April 2, 2009 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
DevonSprings Posted April 2, 2009 Author Posted April 2, 2009 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
MikeB Posted April 2, 2009 Posted April 2, 2009 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.
DevonSprings Posted April 2, 2009 Author Posted April 2, 2009 Mike, Thats Great, why do you have the "Wait 10 Minutes" in there? Devon
MikeB Posted April 2, 2009 Posted April 2, 2009 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.
DevonSprings Posted April 3, 2009 Author Posted April 3, 2009 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]
Recommended Posts