elias1693 Posted July 28, 2014 Posted July 28, 2014 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
oberkc Posted July 28, 2014 Posted July 28, 2014 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.
elias1693 Posted July 28, 2014 Author Posted July 28, 2014 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!
oberkc Posted July 28, 2014 Posted July 28, 2014 (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 July 28, 2014 by oberkc
Xathros Posted July 28, 2014 Posted July 28, 2014 (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 July 28, 2014 by Xathros
raymondh Posted July 28, 2014 Posted July 28, 2014 My brain just opened up! This solves so many issues for me!
Recommended Posts