Jump to content

Need help with program for Motion Sensor


Recommended Posts

Posted

I have a motion sensor in my garage that turns on the overhead lights when motion is detected (see below). I need to figure out a way to to override the motion sensor if I walk in the house and want to turn the lights off (now impossible as after i turn the lights off, it detects me and turns them back on - switch is in view of the detector) or turn them for a longer period of time if I am working out in the garage but not in the view of the detector.

 

I thought about using a fast on or fast off to run another program, but the switch is a SL Relay due to the fluorescent lights.

 

Thanks

 

If
       Status  'Garage Motion - Sensor' is On
   And Status  'Garage OH Lights' is Off

Then
       Set 'Garage OH Lights' On
       Wait  2 minutes 
       Set 'Garage OH Lights' Off

Else
  - No Actions - (To add one, press 'Action')

Posted

Unless you have another switch or a KPL button you could use I think your Fast commands will be your best way. Relay switches do send Fast On/Off commands as well as dim/brighten commands. I am using a few to control dimmer switches.

 

Rand

Posted

I have a similar situation and question with a 2420M motion sensor and a ToggleLinc V2 relay switch.

 

The motion sensor program works fine, turning on/off the ToggleLinc for the porch light.

 

What I'd like to do is add the option of ignoring the motion sensor if I've double-tapped (Fast Off) the Switchlinc. This is useful when I want to sit outside and look at the stars, keeping the porch light off. To return control back to the motion sensor, I simply switch the Togglelinc on and off manually.

 

Here's the code:


Program Motion Sensed (Enabled)

If Control 'motion sensor' is switched On
  And (
            Status  'porch light switch' is not On
        And Control 'porch light switch' is not switched Fast Off
        And Program 'Porch Light On Off' is False
      )
Then
  Run Program 'Porch Light On Off' (Then Path)
Else
  - No Actions - (To add one, press 'Action')

---------

Program Porch Light On Off (disabled)

If 
  - No Conditions - (To add one, press 'Schedule' or 'Condition')
Then
  Set Scene 'Porch Light' On
  Wait 10 Minutes
  Set Scene 'Porch Light' Off
  Run Program 'Porch Light On Off' (Else Path)
Else
 - No Actions - (To add one, press 'Action')

---------

The purpose of the 'Porch Light On Off' program is to prevent the Wait from being interrupted when motion sensor sends another On event to the main program.

 

My problem is the code [ And Control 'porch light switch' is not switched Fast Off ] appears to have no effect and the light always turns on when the motion sensor is triggered even though I've double-tapped (Fast Off) the switch.

 

Here's what I'm doing:

1) Double tap the ToggleLinc to create a Fast Off event.

2) Walk by the motion sensor.

3) I'm expecting the light to stay off, but it turns on when motion is sensed.

 

Question:

Are the 'Fast On' and 'Fast Off' events sticky? If I double-tap the ToggleLinc switch and read the status some minutes (or hours) in the future, will the status still be 'Fast On' or 'Fast Off'?

 

Or am I confusing events Fast Off/Fast On which are transient with Status On/Off that are device states?

 

Thanks

Bob

Posted

Hi Bob,

 

You are right, a Control is not sticky. You could write another program to watch for the Fast-Off and disable the MS program, either for some amount of time or until you perform another FastOff.

 

Program Disable porch light MS

If
       Control 'porch light switch' is switched Fast Off
   And Program 'Disable porch light MS' is False

Then
       Disable Program 'Motion Sensed'

Else
       Enable Program 'Motion Sensed'

 

Rand

Guest
This topic is now closed to further replies.

×
×
  • Create New...