Kentinada Posted November 16, 2020 Posted November 16, 2020 I have a program for a motion sensor in my garage to turn on the lights if they're off based on motion detected, wait 5 minutes, and then turn them off again. But the lights never go out. The program shows the correct last run time but never shows it's waiting for timer. What am I messing up? I've tried using both the Control and Status on the motion sensor with no change in behavior. I know it has to be something simple but I can't see it. Help appreciated. Thanks.
JBanaszak Posted November 16, 2020 Posted November 16, 2020 Hi,As soon as your motion sensor resets your if statement is no longer True. If that happens in less than 5 minutes (likely) it cancels your timer. Most of us use two programs for this situation. The first turns the light on then calls the “then” part of the second. The second could be a disabled program containing the wait and off statements in its “then” section. Hope this helps! It took me a while to learn this trick....I’m actually still learning it!Sent from my iPhone using Tapatalk
Kentinada Posted November 17, 2020 Author Posted November 17, 2020 Yup, that is what I needed to do. I have a couple other examples I do like that. Thanks for jarring my memory.
lilyoyo1 Posted November 17, 2020 Posted November 17, 2020 3 hours ago, Kentinada said: I have a program for a motion sensor in my garage to turn on the lights if they're off based on motion detected, wait 5 minutes, and then turn them off again. But the lights never go out. The program shows the correct last run time but never shows it's waiting for timer. What am I messing up? I've tried using both the Control and Status on the motion sensor with no change in behavior. I know it has to be something simple but I can't see it. Help appreciated. Thanks. If control motion is switched on Wait 5 minutes Set lights off I wouldn't worry about the status of the light. If it's already on it would stay on. If it's off, it'll turn off.
Recommended Posts