Jump to content

Motion Sensor to turn on light for 10 minutes


Drew631

Recommended Posts

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.

Posted

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')
 

Posted

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.

Posted

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

Posted

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

Posted

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.

Posted

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...
Posted

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.

×
×
  • Create New...