Kentinada Posted April 11, 2023 Share Posted April 11, 2023 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? Link to comment
kclenden Posted April 12, 2023 Share Posted April 12, 2023 (edited) 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 April 12, 2023 by kclenden 1 Link to comment
TSinclair Posted April 12, 2023 Share Posted April 12, 2023 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
carealtor Posted April 12, 2023 Share Posted April 12, 2023 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. Link to comment
larryllix Posted April 12, 2023 Share Posted April 12, 2023 In addition to @kclenden's post above....Just select "send On only" inside the MS and then two programs are not needed. Link to comment
Kentinada Posted April 12, 2023 Author Share Posted April 12, 2023 Thanks all for the help. Much appreciated! Link to comment
Recommended Posts