asbril Posted July 12, 2017 Posted July 12, 2017 I need some help with creating a program. I have a motion detector near one of our entrance doors and I would like it to switch On the Hallway light for 2 minutes, but only if the Hallway light was Off. In other words, if the Hallway light was already On, then I do not want it to go Off after 2 minutes. Right now my program is : IF Hallway Light is OFF and Motion Sensor is switched ON THEN Set Hallway Light ON ELSE Wait 2 minutes Set Hallway Light OFF However, even if Hallway Light was already On before Motion detected, it switches Off after 2 minutes. Can someone guide me ? Thanks
ldb Posted July 12, 2017 Posted July 12, 2017 I solved this by programing my physical switch to turn the light on at 90% level. My motion sensor turns the light on to 100% level. My motion program activates the light if its status is 0% or 100%. If the light status is 90% the motion has no effect.
asbril Posted July 12, 2017 Author Posted July 12, 2017 I solved this by programing my physical switch to turn the light on at 90% level. My motion sensor turns the light on to 100% level. My motion program activates the light if its status is 0% or 100%. If the light status is 90% the motion has no effect. That is great except that the light switch is not a dimmer switch. I could change it for a dimmer switch but I would hope that there is a simpler solution. But THANKS.
ldb Posted July 13, 2017 Posted July 13, 2017 How about having the motion sensor set a variable that can be interrogated by calling a subsequent program. Just a thought.
stusviews Posted July 13, 2017 Posted July 13, 2017 As soon as the Then statement is executed the If becomes false and Else runs. Use a second program. IF Hallway Light is OFF and Motion Sensor is switched ON THEN Set Hallway Light ON Run Second Program (Then) Second Program IF THEN Wait 2 minutes Set Hallway Light OFF
asbril Posted July 13, 2017 Author Posted July 13, 2017 As soon as the Then statement is executed the If becomes false and Else runs. Use a second program. IF Hallway Light is OFF and Motion Sensor is switched ON THEN Set Hallway Light ON Run Second Program (Then) Second Program IF THEN Wait 2 minutes Set Hallway Light OFF Thanks. Let me try this later tonight
oberkc Posted July 13, 2017 Posted July 13, 2017 I actually like the motion sensor to reset the countdown if motion is sensed while the light is on, if originally turned on by motion. However, I understand that there are times that one wants to disable the motion sensor. While stusviews technically answers your question, I cannot help but wonder if you should think a little more about this one. I like to disable the motion sensor by manually turning on the light. To do this, I create a program: if control light switch it turned on and control light switch is not turned off then nothing else nothing The status of that program (true or false) can then be used to decide whether to trigger lighting from motion sensors. For example: if motion sensor is switched on and status program is false then turn on light wait a couple minutes turn off light A set of programs like this will allow a light to be put into indefinite ON mode by manually turning on its switch. Otherwise, the motion program kicks in.
lilyoyo1 Posted July 13, 2017 Posted July 13, 2017 Im assuming the switch is manually turned on in your scenario. If so, I would simply disable your motion sensor program when the light is manually turned on and re-enable it when you manually turn it off (or have the Isy turn the motion program back on automatically)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.