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.

Simple program question

Featured Replies

Posted

I have installed a motion sensor outside our front door and an Insteon on/off switch for the lights on our porch. I have a simple program that turns the lights on when motion is detected and it's between sunset of current day and sunrise of next day.  The lights come on. Then I have a WAIT 5 Minutes statement followed by a command to turn the lights off BUT they never go off.  See attached.  What am I missing?

Screenshot 2023-04-11 at 5.40.13 PM.png

2 hours ago, Kentinada said:

What am I missing?

You're using "Status is On" in the IF.  I think you want to use "is switched On".  So use "Control" instead of "Status".  They don't go off because while the program is in the WAIT 5 MINUTES, the status goes to OFF and the program switches to the ELSE.

Edited by kclenden

To keep it simple, I would use a second program for the reason stated above. 

Program Front Door Lights

if

from sunset

to sunrise (next day)

and 'front door motion-sensor' status is on

then

set front porch lights on

run program front door lights off (THEN)

else (blank)

________________________________________________________

Program Front Door Lights Off

if (blank)

then

Wait 5 minutes

set front porch lights off

else (blank)

Yeah, you need 2 programs.  When the motion sensor goes to OFF within the 5 minute wait the THEN is cancelled and the IF is re-evaluated.

In addition to @kclenden's post above....Just select "send On only" inside the MS and then two programs are not needed.

  • Author

Thanks all for the help.  Much appreciated! 

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.