Jump to content

Light On but... if no motion to turn off


clarkes71

Recommended Posts

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

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

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

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

"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

"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

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

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...