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.

Motion Sensor to turn on light for 10 minutes

Featured Replies

Posted

Hello all. I'm trying to expand my system to include a motion sensor in the garage to turn the light on when the door opens for 10 minutes then turn off. I've got it to turn on with a program but I don't know what to do to turn it off. I know I'm missing something but don know what.

IN Front Hall Auto
If
        Control 'IN / Devices / IN Front Hall-Sensor' is switched On
 
Then
        Wait  3 minutes and 10 seconds
        Set Scene 'IN / Scenes / IN Front Hall' Off
 
Else
   - No Actions - (To add one, press 'Action')
 

Since this was posted in the Z-Wave forum I'm assuming the motion sensor is a Z-Wave device. In which case "if Control" might not work and you'll want to use "if status".

 

Obviously the Wait statement should be for 10 minutes, not sure where stusviews got 3 minutes and 10 seconds from.

Beware, too, that if you use "status" as a condition (and it may be necessary for zwave devices), you may need to break this into two programs to avoid the possibility of interrupting the wait condition when status changes to OFF.

 

if

Status motion sensor is off

Then

Run next program (then path)

 

Next program

 

If

Nothing

Then

Turn on light

Wait a few minutes

Turn off light

  • Author

Yes I am running a Z-wave motion sensor. I had a hard time trying stusviews way because I couldn't get the In Scene working. Mine were blank. Then I tried andyf10's way combined with oberkc's suggestion of separating the programs. The best I can get is 20 seconds of the light staying on then it turns off. I changed the settings of the motion sensor so it goes on and keeps the light on as long as it sees motion but I know that's not gonna work for me.

 

 

Sent from my iPhone using Tapatalk

Edited by Drew631

I missed that the MS was Z-Wave. The ISY v4+ does not have scene capability  for Z-Wave devices, but that shouldn't matter if you have a scene for the light(s). If you don't, then change Set scene to the device(s) you want to control.

Sounds as if you have a little investigation on your hands.

 

Is the light part of any scene?  What happens if you temporarily remove the wait and turn off statements from your programs...does the light still turn off after 20 seconds?  What does the event viewer show 20 seconds after motion is detected?  If you watch the program log during all this, do you see any other programs active 20 seconds after motion is detected?

 

There are a lot of possibilities here.  Some of those possibilities are completely unrelated to the program.  Still, feel free to post your relevant programs here.  Oftentimes, folks can catch things.

  • 3 weeks later...
  • Author

I just changed my motion sensor from BeSense to a GoControl and it appears to be working. Put the turn on, wait and turn off all in 1 program and it's doing exactly what I wanted from the beginning. Not sure why the BeSense was such a nightmare but when I have time I will mess around further with it.

 

Thanks for all of your help guys. Always appreciated

 

 

Sent from my iPhone using Tapatalk

Archived

This topic is now archived and is 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.