Jump to content

Motion Sensor with light


bcsh

Recommended Posts

I have a light(insteon bulb) that gets turned on by motion(insteon) but I have the light turn on to a different level depending on the time of day. 

 

My issue is that it when the light turns on for the 3 minutes then it turns off. But what I would like is for the timer to reset if again motion is detected in those three minutes. 

 

Here is the code for the scheduled program:

 

If
        From     5:30:01AM
        To      10:29:59PM (same day)
    And Control 'Motion Sensor-Sensor' is switched On
    And Control 'Motion Sensor-Sensor' is not switched Off
 
Then
        Set 'Light Bulb' Fast On
 
Else
        Wait  3 minutes 
        Set 'Light Bulb' Off
 
 
Link to comment

The Sensor is switched On indicates motion.   A Wait 3 minutes should be in the Then.  Also the motion sensor should be in On Only mode so the motion Off does not conflict with what the program is doing. 

 

 

If
        From     5:30:01AM
        To      10:29:59PM (same day)
    And Control 'Motion Sensor-Sensor' is switched On
    
Then
        Set 'Light Bulb' Fast On
        Wait  3 minutes 
        Set 'Light Bulb' Off
 
Else
 
        Wait  3 minutes 
        Set 'Light Bulb' Off
 
Failed to copy the full Program
 
Link to comment

Also note that LeeG's suggestion has nothing in the "Else" section?

 

 At 10:29:59PM the "else" is going to execute due to being triggered by the time end and the whole "if" logic  evaluating to  false.

 

At the end of the "Then" section you can add

 "run Program_name (else)"

 

if you want the folder icons to show colours reflecting their last Light Bulb control states. The MS will always show "On" after adjusting that setting.

Link to comment
  • 3 months later...
The light is still turning off after the 3 minutes goes by. I would like it to stay on if motion is detected in that 3 minutes and for it to start the 3min countdown again. This is the exact code that I have in my isy program. Do I need to have the jumpers at the back of the motion set up in some kind of arrangement?  

 

If

        From     5:30:01AM

        To      10:29:59PM (same day)

    And Control 'Motion Sensor-Sensor' is switched On

 

Then

        Set Scene 'Light Bulb Scene (day)' On

        Wait  3 minutes 

        Set Scene 'Light Bulb Scene (day)' Off

 

Else

        Wait  3 minutes 

        Set 'Light Bulb' Off
Link to comment

What is the configuration of your motion sensor.  Is it possible it is not sending ON commands before the 3 minute timer?  The program, to me looks fine.

 

Yes you need jumpers set in a specific way.  Instructions will describe purpose of each.  Check out jumper 5...I believe this allows software control, allowing ISY to set parameters.  Once enabled, make sure you sensor is in occupancy mode (triggering ON command at every sensed motion, no time-out periods.)

 

Another possibility...is the light and sensor part of a scene together?

Link to comment

I had jumper 1,4,5 on I took 1,4 off and kept 5 as you suggested. Still turns off after 3 minutes time elapsed with motion present. then

I took 1,4 and 5 off and still turns off after 3 minutes time elapsed with motion present.

I put only jumper 4 on and the issue continues

I put only jumpers 4 and 5 still nothing. 

 

 

It seems to me that it is detecting motion because during those three minutes the red led light blinks. 

 

 

The motion is not in a scene with the light bulb. however the bulb is in its own scene. so the motion is controlling a scene.

 

I have downloaded the sensor manual to know what jumpers I am switching and it seems to me there must be something else to it. 

Link to comment

Jumper 5 should be the only jumper in use.

 

Put the Motion Sensor into linking mode and set these Options

 

EDIT:  note that MS Options display is from 4.2.22.   The MS Options display looks different on 4.2.18 but the options work the same.  UDI changed the format of the display, not the underlying MS Options themselves.

post-707-0-22495000-1421905831_thumb.jpg

Link to comment

Archived

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


×
×
  • Create New...