MJM Posted December 2, 2016 Share Posted December 2, 2016 I had a question on a problem with programming. I've done a lot of custom programming with great success, but cant figure this one out. I've programmed a 3 button switch so that when a button is pushed it triggers the deadbolt to the side door of my detached garage, opens the garage door and turns on an outside light. Both doors open, but the outside light comes on and then immediately turns back off. I did have a 45 sec delay to turn the light off after it is on, but removed the delay and it still turns off immediately. There is nothing in the program to tell the light to turn off. My question is if this same light is on a schedule and the period is set to be off would this be causing it to turn off immediately? If so, is there a workaround? Thanks in advance for any feedback. Link to comment Share on other sites More sharing options...
d1amund Posted December 2, 2016 Share Posted December 2, 2016 Don't use delays that long in programming. Use a timer and program off the timer. You'll have to use conditionals to get around your already in place schedule. Link to comment Share on other sites More sharing options...
VINCELdUB Posted December 2, 2016 Share Posted December 2, 2016 Schedule will trigger at its set time. Not hold a device to that state. The quickest way to answer that question would to activate that light manually and see what happens. If light turns on and stays on, then there is nothing fishy going on. And issue can be resolved easily. If light turns right back off then something is causing it to turn off when it is turned on. Perhaps describe what other timers, schedules, and lighting scenes you have tied to that light. Perhaps you have done some programming in the device variables when light_level changes ? ?if on -> turn off. Sent from my iPhone using Tapatalk Link to comment Share on other sites More sharing options...
MJM Posted December 3, 2016 Author Share Posted December 3, 2016 Thanks for the responses. I was able to get around the issue by triggering the light to come on when the garage door opens versus from pushing the button on the switch. Not sure why programming it this way works, but it now does what I want it to. Link to comment Share on other sites More sharing options...
Cyknight Posted December 3, 2016 Share Posted December 3, 2016 On 12/1/2016 at 6:42 PM, MJM said: My question is if this same light is on a schedule and the period is set to be off would this be causing it to turn off immediately? To clarify this, if you have a schedule to turn lights off at 10PM, and this event/button is triggered at 11PM, then no, that scheduled off will NOT trigger. 'turn off at 10PM means only htat at the exact time of 10PM, lights will turn off, it will not force them off at later times as well. What you describe sounds like a classic case of not embedding or wrongly embedding IF statements. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.