X10 Community Forum

🖥️ActiveHome Pro => Plug-ins => Smart Macros => Topic started by: dimka2000 on July 18, 2008, 10:36:29 AM

Title: macro with two motion triggered events - help needed
Post by: dimka2000 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!
Title: Re: macro with two motion triggered events - help needed
Post by: Puck 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.
Title: Re: macro with two motion triggered events - help needed
Post by: dimka2000 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!
Title: Re: macro with two motion triggered events - help needed
Post by: Puck 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 (http://www.x10community.com/forums/index.php?board=103.0) 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.