clarkes71 Posted January 31, 2014 Share Posted January 31, 2014 I've created my programs that will turn on lights by motion sensors and turn off after lack of motion. One issue I'm not sure how to overcome. Let's say the wife hears a noise out back. Turns on the Floodlights in the backyard. Sees nothing and moves on about her business. Issue: motion didn't trigger floodlights to turn on, so a 'motion sensor off' is never going to notify ISY, thus floodlight never goes off automatically. Bottom line is if a motion sensor never picks up motion and triggers an on, obviously an off will never happen... Is there a way to simulate on motion sensor to turn on? Other ideas? Link to comment
Xathros Posted January 31, 2014 Share Posted January 31, 2014 How about a program to monitor the control device for the lights and turn them off after a delay? If Control BackYardFloods is switched On and Time is from Sunset to Sunrise (Next Day) Then Wait 5 minutes Set BackYardFloods Off -Xathros Link to comment
clarkes71 Posted January 31, 2014 Author Share Posted January 31, 2014 I guess that would work. The motion on/off program uses a flag to determine an override (disables motion sensor from turning on/off light). If I add that to the if condition, it wouldn't turn off the light when I do want it to stay on, but still turn off a light left on - with no motion. Thanks for the help. My programs for motion are based on the wiki articles: http://wiki.universal-devices.com/index ... _Bathrooms Link to comment
Xathros Posted January 31, 2014 Share Posted January 31, 2014 Anytime. Happy to help. -Xathros Link to comment
apostolakisl Posted January 31, 2014 Share Posted January 31, 2014 You can use xathros' program. If you do not want his program to run, the person turning the light on can use the "fast on" (the double click). This will not trigger the program and the light will stay on. You can also add to his program And is not switched fast on This will allow you to abort that program if it is already running. I also use the "beep" function on my switches. When the timers are in the last minute, I have them beep every couple seconds to warn you that they are about to shut off. IF control light is switched on and control light is not switched fast on Then wait 4 minutes repeat 30 times beep wait 2 seconds repeat 1 time set light off Else - - Link to comment
larryllix Posted January 31, 2014 Share Posted January 31, 2014 You can use xathros' program. If you do not want his program to run, the person turning the light on can use the "fast on" (the double click). This will not trigger the program and the light will stay on. You can also add to his program And is not switched fast on This will allow you to abort that program if it is already running. IF control light is switched on and control light is not switched fast on Then - - Is it correct that "is switched on" would include "switched fast on" detection as well as plain "switched On"? Link to comment
LeeG Posted January 31, 2014 Share Posted January 31, 2014 "Is it correct that "is switched on" would include "switched fast on" detection as well as plain "switched On"?" No. "Is switched On" is using If Control and that is looking at command codes from the device, not status. An additional Control 'xxxx' is switched Fast On would be needed to check for that command code. Link to comment
apostolakisl Posted February 1, 2014 Share Posted February 1, 2014 Like Lee said. "Is switched on" means someone went to the switch and tapped the on paddle once. That is the only thing, not dim up, not fast on, not being turned on from a program, not being turned on from a scene, not anything except a single tap to the up paddle. Link to comment
larryllix Posted February 2, 2014 Share Posted February 2, 2014 "Is switched on" means someone went to the switch and tapped the on paddle once. That is the only thing, not dim up, not fast on, not being turned on from a program, not being turned on from a scene, not anything except a single tap to the up paddle. I believe I asked the question incorrectly and got information I already knew. I was enquiring about the second trigger that looked like it was to isolate the two events from each other but was actually explained previously in your post above as a way to cancel the timer running in the "Then" section. Thanks all! Link to comment
clarkes71 Posted February 3, 2014 Author Share Posted February 3, 2014 In the end, here is what I did to solve. Created a new program called 'Lanai-No Motion' If Control 'Lanai / Recessed Lights' is switched On And Program 'Lanai Motion Timer Enable' is True Then Wait 5 minutes Set Scene 'Lanai Recessed Lights' Off Else - No Actions - (To add one, press 'Action') Then in the 'Lanai-Motion Detected' and line --- Stop program 'Lanai-No Motion' If Control 'Lanai / Motion Sensor-Sensor' is switched On Then Run Program 'Lanai Motion On' (If) Stop program 'Lanai-No Motion' Else Run Program 'Motion Notify' (If) Run Program 'Lanai Motion On' (If) I did it this way without a fast on because I use the fast on function to set the flag to override the normal motion timeout (Program 'Lanai Motion Timer Enable'). This way, if no motion occurs, I get the 5 minute timeout I was looking for. However, if motion should occur during the 5 minute timeout, it will stop the 5 minute timeout and resume normal operation. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.