Jump to content

How do I program light to stay on if its already on?


elias1693

Recommended Posts

Posted

I've got a program that runs from sunset to sunrise and turns on a kitchen light when I get home from my night shift. It turns the light on for 2 minutes then turns it off. How can I program the ISY to check the current status of the light prior to turning it off? 

 

If were eating dinner at the kitchen table and the light is on everything is fine. But as soon as someone goes out to the garage the light will turn off after 2 minutes regardless of the current state. How can I avoid this and keep my wife from rolling her eyes every time we have dinner? 

 

If

Elk Zone "Garage Door" is voilated

And from Sunset - 30 minutes

To Sunrise + 30 minutes (next day)

 

Then 

Set "Kitchen LIght" On

 

Else

Wait 2 minutes

Set "Kitchen Light" Off

Posted

 

 

If

Elk Zone "Garage Door" is voilated

And from Sunset - 30 minutes

To Sunrise + 30 minutes (next day)

And status kitchen light is off

 

Then

Run second,progrm (then path)

 

Second program:

 

If

 

Then 

Set "Kitchen LIght" On

Wait 2 minutes

Set "Kitchen Light" Off

 

I assume (no first hand experience) that the elk condition behaves as a "control" rather than "status". Otherwise, this program may turn into the equivalent of an infinite do loop.

Posted

Worked perfectly! Thank you so much! I have been ignoring this problem for a few months now because I didnt want to deal with it. One post to this forum and you made me and my wife very happy! Thanks so much! 

Posted (edited)

You are welcome so much. That type of question is, possibly, the most common, typically associated with triggers from motion sensors rather than from garage doors or security sensors. Still, the solution is the same, and seems to be the one used by many who post here regularly.

 

I contine to be concerned about the way the elk condition behaves. If like a status condition, you may find the kitchen lights coming on at sunset for a couple of minutes. Keep an eye on things to make sure there are no surprises lurking.

Edited by oberkc
Posted (edited)

Because the change in status of the light coming on when triggered would have canceled the timer if done in a single program.  This method also takes care of a possible issue when the light is triggered On less thaan 2 minutes before Sunrise+30.

 

 

-Xathros

Edited by Xathros
Posted

Glad I could be of assistance. :)

 

-Xathros

Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

  • Forum Statistics

    • Total Topics
      37k
    • Total Posts
      371.5k
×
×
  • Create New...