Jump to content

Simple program question


Kentinada

Recommended Posts

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

Link to comment
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
  • Like 1
Link to comment

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)

Link to comment
Guest
This topic is now closed to further replies.

×
×
  • Create New...