Please login or register.

Login with username, password and session length

Author Topic: macro with two motion triggered events - help needed  (Read 4455 times)

dimka2000

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 6
macro with two motion triggered events - help needed
« on: July 18, 2008, 10:36:29 AM »

Hi,
would like to check with the noble community here if it's possible to do a macro as follows:

- first motion detector trips
- if a second motion detector trips in a specified time frame, then do something

example of application:
- there's one motion detector in the basement
- there's another motion detector on the main level
- if a motion detected in the basement followed by the motion detected on the main level withing say 3 minutes, it will most likely mean that someone entered the basement from outside and then came up to the main level.

 Any input would be appreciated!
Logged

Puck

  • Advanced Member
  • Hero Member
  • ******
  • Helpful Post Rating: 171
  • Posts: 1799
Re: macro with two motion triggered events - help needed
« Reply #1 on: July 18, 2008, 10:57:08 AM »

dimka2000: Setting up variable tasks for motion sensor triggered macros is a common use when using the Smart Macros plug in. You can use Status Flags to indicate the location of the motion (and therefore the order) and use these Status Flags as conditions within the macros to determine which ELSE macro to execute.

I use a similar scenario with motion detectors upstairs & downstairs to determine the direction I am moving and to know which light to turn on.
Logged

dimka2000

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 6
Re: macro with two motion triggered events - help needed
« Reply #2 on: July 18, 2008, 12:35:06 PM »

Puck,
really appreciate you fast response. I should have thought about the flags, as I've read a lot on this already in the forums.
If it's not too much trouble, could you post an example macro, maybe the one you're using?
I'm a total newbe, and not clear on the logic of detecting the "motion direction" part.....
Thanks!
Logged

Puck

  • Advanced Member
  • Hero Member
  • ******
  • Helpful Post Rating: 171
  • Posts: 1799
Re: macro with two motion triggered events - help needed
« Reply #3 on: July 18, 2008, 01:23:40 PM »

If it's not too much trouble, could you post an example macro, maybe the one you're using?

I will post my macros in User-Designed Working Macros this evening. Well hopefully this evening; my home internet went down last night during a storm and I didn't get a chance to look into it yet.
Logged
 

X10.com | About X10 | X10 Security Systems | Cameras| Package Deals
© Copyright 2014-2016 X10.com All rights reserved.