Drew631 Posted February 12, 2017 Posted February 12, 2017 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.
stusviews Posted February 12, 2017 Posted February 12, 2017 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')
andyf0 Posted February 12, 2017 Posted February 12, 2017 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.
oberkc Posted February 12, 2017 Posted February 12, 2017 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
Drew631 Posted February 12, 2017 Author Posted February 12, 2017 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
stusviews Posted February 12, 2017 Posted February 12, 2017 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.
oberkc Posted February 13, 2017 Posted February 13, 2017 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.
Drew631 Posted March 4, 2017 Author Posted March 4, 2017 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.