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.

Controlling Light with Motion Sensor

Featured Replies

Posted

I have 2 simple programs (attached) to control the ON and Off of my Office light. I want it to turn the light on when I walk into the office and as long as it detects motion, leave it on.  When the motion sensor has been off for 5 minutes, I want the light to go out.  These 2 programs are close but don't quite handle all situations.  Suggestions?  Thanks.

 

Screenshot 2023-11-09 at 3.25.28 PM.png

Screenshot 2023-11-09 at 3.25.35 PM.png

What are you using for a motion sensor. Is it battery or A/C powered.

What do you mean by it "won't handle all situations", can you elaborate.

 

 

 

are these all insteon devices?  If so, link them directly and get rid of the program.  Direct links work much faster and avoid unnecessary clutter in your program tree.

  • Author

These all all INSTEON devices. The motion sensor is a 2842-222 sensor.  What happens is the detection of motion turns on the light no problem.  But some how the program to turn the light off doesn't always work. i.e. the light can still be on long after the 5 minute timer should be up. 

If I direct link the motion sensor and plug module, how does that keep the light on?  Not sure how direct linking helps. 

7 hours ago, Kentinada said:

If I direct link the motion sensor and plug module, how does that keep the light on?  Not sure how direct linking helps. 

The motion sensor can be set to send an "on" to a device or scene when it detects motion, and then sends an "off" after a specified amount of time. You'll need to look at the manual for 2842-222 as well as options in the admin console to change the settings. Some things can be set in ISY options and some things are jumper pins on the back..but its not hard to figure out

What type of light is it.. regular, LED, fluorescent, low voltage? An unreliable "off" command could be because the light you are turning on is injecting line noise and possibly cause the "off" message to not reach the switch once its turned on...unlikely but possible and easy to eliminate: 

  • To test if the load is the problem, remove the light bulbs if possible and retest.
     
  • If that doesn't solve it, add to your program's then clause, put a 3 second wait at the end, and another turn light off. The motion sensor does this, it sends 2 "Off" commands a few seconds apart

Edited by paulbates

Try this. I found that at times I don't move around enough to trigger the motion.  I set a slow ramp rate so when I notice the lights are going off, I wave my hand.

image.png.d4a4b127381cd91b5d75d19ffa4278b6.png

image.png.510e8e67c5cbb3005f00ec6c90fd534e.png

 

As @paulbates said. Sounds like the light fixture is electricly "noisy". Might need a filter or a light that has cleaner electronics. And unless you have circumstances to control "off" that are more than just waiting a few minutes after last motion, you would be better off letting the MS be in control and skipping the program. 

  • Author

It's not a noise problem.  The light works fine through the app or by telling Alexa to turn it on or off.  The problem is the OFF program which is triggered by the status of the motion sensor going to the OFF state.  The OFF program starts to run but then somehow the program gets stopped and the timer never runs out and the light stays on.  So looking at my original OFF program above, if the motion goes back ON when the 5 minute timer is running, does this stop that program?  

46 minutes ago, Kentinada said:

So looking at my original OFF program above, if the motion goes back ON when the 5 minute timer is running, does this stop that program?  

Yes, every time the On is sent, it restarts the program.

  • Author

OK I think I have the programs working correctly.  One dumb error on my part. In the OFF program, I had the wrong motion sensor selected to test.  Duh.  Fixed that.  Plus I added a "Stop program 'Office Lights OFF' command to the On program after it turns on the light so that the OFF timer stops running and won't restart until the motion sensor goes back to OFF again.  All is good.  Thanks. 

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.