Jump to content

Two motion sensors for one light


TechGuy

Recommended Posts

Posted

Hello ingeborgdot,

 

Sorry I was away for the weekend. You have mail :)

 

Rand

 

Hey Rand, you never did let me know how you were doing from my email. Is all going well, I hope it is all well. :)
Posted

Ooh...I like the idea of Fast On/Fast Off enabling or disabling the moiton sensor programs. Expanding on the idea, there may be times when you turn the light on and don't want it to turn off 5 minutes after motion. For example, when I am working on a project in my garage, I turn the light on when I go into the garage, but my entry also triggers the motion sensor. If I sit still for 5 minutes, like tinkering with some part for example, then the light turns off. So you could use both Fast On and Fast Off to disable the program:

 

If 
    ( Command 'Garage Light' is switched Fast On
 Or  Command 'Garage Light' is switched Fast Off )
And Command 'Garage Light' is not switched Off
Then 
     Disable Program 'GarageMotion'
Else 
     Enable Program 'GarageMotion'

This program would allow the light to stay on or off regardless of motion in the room. Further, disabling the program should cancel any running instance of the program that may be in a Wait before a pending Off (for example if motion was detected before the switch was double tapped). A subsequent Off (or any other command) would turn the light off and re-enable the motion program.

 

Very Nice!

Posted

Kingwr,

 

I would add to that a feedback to let you know that the MS program had been re-enabled:

 


Else
     Set 'Garage Light' On
     Wait 1 Second
     Set 'Garage Light' Off
     Enable Program 'GarageMotion'

 

This would flash the garage light for one second before enabling the MS program.

 

One caveat - hopefully your switch is out of range of the motion sensor. If it is not, you will have to stand perfectly still for 5 minutes, until the light goes off, to re-enable the motion sensor program. (I think)

 

Jack Rainey

Posted
Kingwr,

 

I would add to that a feedback to let you know that the MS program had been re-enabled:

 


Else
     Set 'Garage Light' On
     Wait 1 Second
     Set 'Garage Light' Off
     Enable Program 'GarageMotion'

 

This would flash the garage light for one second before enabling the MS program.

 

One caveat - hopefully your switch is out of range of the motion sensor. If it is not, you will have to stand perfectly still for 5 minutes, until the light goes off, to re-enable the motion sensor program. (I think)

 

Jack Rainey

 

Would this be a program by itself or added to the program above? :)

Posted
Ooh...I like the idea of Fast On/Fast Off enabling or disabling the moiton sensor programs. Expanding on the idea, there may be times when you turn the light on and don't want it to turn off 5 minutes after motion. For example, when I am working on a project in my garage, I turn the light on when I go into the garage, but my entry also triggers the motion sensor. If I sit still for 5 minutes, like tinkering with some part for example, then the light turns off. So you could use both Fast On and Fast Off to disable the program:

 

If 
    ( Command 'Garage Light' is switched Fast On
 Or  Command 'Garage Light' is switched Fast Off )
And Command 'Garage Light' is not switched Off
Then 
     Disable Program 'GarageMotion'
Else 
     Enable Program 'GarageMotion'

This program would allow the light to stay on or off regardless of motion in the room. Further, disabling the program should cancel any running instance of the program that may be in a Wait before a pending Off (for example if motion was detected before the switch was double tapped). A subsequent Off (or any other command) would turn the light off and re-enable the motion program.

 

Very Nice!

Where do I find command? When I go to drop downs there is no command. I see control. Help me out here please. :(

Posted

Yes, control. That one was freestyle. Normally, if I am suggesting a solution, I will code it up and test it first, to make sure I am not crazy. But in this case, I was just brainstorming on Jack's idea.

Guest
This topic is now closed to further replies.

×
×
  • Create New...