tome Posted October 27, 2013 Posted October 27, 2013 I have some lights in an entry courtyard that are tied to two siwtchlincs and a motion sensor. Starting at dusk I want them to come on if motion is sensed, and then go off 5 minutes after motion stops. If someone turns on one of the switchlincs by hand then the lights should come on and stay on regardless of motion. I have the programs below set up and it works except for one thing. If someone turns on the switch the lights will shut themselves off anyway. What am I missing? I have a folder called Entry Light Control with the following programs in it: DisableAutomaticControl If Control 'EntryLightsEast' is switched On Or Control 'EntryLightsWest' is switched On Then Disable Program 'EntryLightsOff' Else - No Actions - (To add one, press 'Action') EnableAutomaticControl If Control 'EntryLightsEast' is switched Off Or Control 'EntryLightsWest' is switched Off Then Enable Program 'EntryLightsOff' Else - No Actions - (To add one, press 'Action') EntryLightControlStatus If From Sunrise To Sunset (same day) And ( Status 'EntryLightsEast' is 100% Or Status 'EntryLightsWest' is 100% ) Then - No Actions - (To add one, press 'Action') Else - No Actions - (To add one, press 'Action') EntryLightsOff If Program 'EntryOccupied' is False And Program 'Evening' is True Then Set Scene 'FrontPorchControl' Off Else - No Actions - (To add one, press 'Action') EntryLightsOn If Program 'EntryOccupied' is True And Program 'Evening' is True Then Set Scene 'FrontPorchControl' 100% Else - No Actions - (To add one, press 'Action') EntryMotion If Status 'MotionSensor2-Sensor' is On Then Run Program 'EntryLightsOn' (If) Else - No Actions - (To add one, press 'Action') EntryOccupied If Program 'EntryMotion' is True Or From Last Run Time for 'EntryMotion' For 5 minutes Then - No Actions - (To add one, press 'Action') Else Run Program 'EntryLightsOff' (If)
oberkc Posted October 27, 2013 Posted October 27, 2013 I have the programs below set up and it works except for one thing. If someone turns on the switch the lights will shut themselves off anyway. What am I missing? I see references to programs not listed (evening, for example) and am not confident that I follow the entire logic of your approach. I wonder, however, are you asking about when somebody turns on on the light swithces after they are already on from motion, or before?
oberkc Posted October 27, 2013 Posted October 27, 2013 Keep in mind that if one disables a program after it is running, it will continue to run. Also keep in mind that if a program (entry occupied, for example) calls another program (entrylightsoff, for example), the called program will run, even if disabled.
tome Posted October 27, 2013 Author Posted October 27, 2013 I see references to programs not listed (evening, for example) and am not confident that I follow the entire logic of your approach. I wonder, however, are you asking about when somebody turns on on the light swithces after they are already on from motion, or before? Thanks for the reply. Evening is pasted below, simply sunset to sunrise. I want it to override the programs that turn the lights off if someone manually turns on a switch regardless of previous state. 1) During evening hours use motion sensor to turn lights on on motion and off after 5 minutes of no motion. 2) If someone turns on switch, override turning the lights off and turn/leave lights on. If there is an easier/better way to set up the logic I am all for it... Keep in mind that if one disables a program after it is running, it will continue to run. Maybe this is why it keeps turning off lights, but I am not sure because last night it seemed like no matter how many times we turned on the switch it would keep shutting them off. Evening: If From Sunset To Sunrise (next day) Then - No Actions - (To add one, press 'Action') Else - No Actions - (To add one, press 'Action')
oberkc Posted October 27, 2013 Posted October 27, 2013 Which lights are exhibing the problem...frontporchscene, or entrylights?
oberkc Posted October 27, 2013 Posted October 27, 2013 What keeps the program 'entryoccupied' from not running? It appears that this program would cause some lights to turn off, but I see nothing that disables this program when the switches are manually activated?
tome Posted October 27, 2013 Author Posted October 27, 2013 Which lights are exhibing the problem...frontporchscene, or entrylights? There is no frontporchscene, but FrontPorchControl is just the switchlincs and keypad. EntryLightsEast and EntryLightsWest are names for the switchlincs themselves. FrontPorchControl: EntryLightsEast EntryLightsWest KitchenKeypad.B What keeps the program 'entryoccupied' from not running? It appears that this program would cause some lights to turn off, but I see nothing that disables this program when the switches are manually activated? Hmm, perhaps that is my problem!? I just need to disable that as well in the DisableAutomaticControl program.....Will give it a try tonight. Tom
tome Posted October 28, 2013 Author Posted October 28, 2013 I believe that is working. Thanks very much, oberkc! Tom
oberkc Posted October 28, 2013 Posted October 28, 2013 I am glad it is working. One thing I thought I would mention was that the ISY includes a few features that could have helped. For example, the program status page may have given some clues. When you see lights going off when you don't expect it, check the program status page for any program that exectuded at that time. Or check the event log for commands at the lights-off time. Perhaps one of these indications, plus you knowledge of your programs, can assist in the future if you run into these types of problems again.
Recommended Posts