Jump to content

If time becomes false will THEN stop running "midstream"?


nowandthen

Recommended Posts

Posted

I'm leaving for work in the morning right around Sunrise -10 minutes, three exterior motion sensors detect me and turn on their corresponding lights as it is not yet sunrise - 10 minutes (program below). The lights are not turning off after two minutes. I'm wondering if the IF becomes false before the ISY counts down the 2 minutes and therefore the THEN stops running. Is this how the ISY "thinks" or do I have another problem? This worked just fine last year but maybe I'm at that threshold of the IF time period.

 

The program works fine after sunset +10 minutes and a short period of time (> 2minutes) before Sunrise - 10 minutes.

 

I waited this morning and same problem, so I manually turned off the lights with my phone.

 

Below is one of my motion sensor programs. The kitchen KPL button is my lockout for not allowing the program to run the THEN path. I turn the KPL button on when I want the exterior light to not change state.

 

If

From Sunset + 10 minutes

To Sunrise - 10 minutes (next day)

And Control 'Exterior / Porch, Side Motion-Sensor' is switched On

And Status 'House / 1st Floor / Kitchen Sink KPL / Kitchen Sink KPL - F' is Off

 

Then

Set Scene 'Exterior / Porch, Side Lights' On

Wait 2 minutes

Set Scene 'Exterior / Porch, Side Lights' Off

 

Else

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

 

 

Maybe I need to add a command in the ELSE to turn the light(s) off?

 

Edit: A command in the ELSE to turn the lights off would turn them off if I turned on Kitchen Sink KPL -F, I don't want that as generally I am defeating this program to keep the lights on. So this won't work. Maybe a separate program that always turns off all exterior lights at sunrise? Not a bad idea for those rare occasions where Insteon fails to turn lights off.

Posted

A change to the If conditions when in a Wait will allow the If to be reevaluated and the possibility that the Else clause will run rather than executing the statement(s) after the Wait.

 

Simple solution is to split the If and Then clauses into two separate programs. That way Wait will complete because there is nothing in the second Program If section.

Posted
A change to the If conditions when in a Wait will allow the If to be reevaluated and the possibility that the Else clause will run rather than executing the statement(s) after the Wait.

 

Simple solution is to split the If and Then clauses into two separate programs. That way Wait will complete because there is nothing in the second Program If section.

 

 

As always Lee, many thanks! You have helped me many times and I very much appreciate that!

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.5k
×
×
  • Create New...