Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Timer never runs.

Featured Replies

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

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

  • Author

Yup, that is what I needed to do. I have a couple other examples I do like that.  Thanks for jarring my memory.

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.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.