Jump to content

Timer never runs.


Kentinada

Recommended Posts

Posted

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.

 

Screen Shot 2020-11-16 at 3.51.06 PM.jpg

Posted

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

Posted
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.

 

Screen Shot 2020-11-16 at 3.51.06 PM.jpg

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. 

Guest
This topic is now closed to further replies.

  • Recently Browsing

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

    • There are no registered users currently online
  • Forum Statistics

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