X10 Community Forum

🖥️ActiveHome Pro => Plug-ins => Smart Macros => Topic started by: drakethib on March 21, 2009, 10:54:46 PM

Title: Noob Question - Using motion senor
Post by: drakethib on March 21, 2009, 10:54:46 PM
I have a MS14a and I want to build a macro where if it detects motion it will turn on a light WS467 only if motion is detected between 10:00 PM and 4:00AM. I am using AHP.

I know this is a noob questiob but I tried to find the answer and cant

Title: Re: Noob Question - Using motion senor
Post by: bitman on March 22, 2009, 08:12:27 AM
Easy.

Set ms14 to transmit desired house code and unit code. Create new "Smart macro" and assign the macro to the same HC/UC as the ms14. In the macro creator screen, before you drag a module such as the wall switch in there, click the button "Use Conditions". Now, on the right you can look at the conditions and drag the on that is a time window. (I forget what it is called) to the condition area. Set your desired time windows up.
Now drag your wall switch to be under the time window condition.

Thus if it between such and such a time, do something to the switch.

I found out the hard way that you can only have 3 decisions (I think) in a given macro. Notice a time window takes two.  B:(

 
Title: Re: Noob Question - Using motion senor
Post by: HA Dave on March 22, 2009, 09:36:55 AM
I found out the hard way that you can only have 3 decisions (I think) in a given macro. Notice a time window takes two. 

Never heistate to create a another macro. Many (if not most) macro failures are because the creator tries to cram too much into one macro... instead of using two or three macros.

You may what to create a timer macro that turns on a (dummy, ghost, or) fake module (ON at 10pm OFF at 4AM). The module will need to be on the "monitored" House code. The monitored House Code is the one house (letter) code selected for the interface to "remember" the status of the modules.

Then you could use a simple conditional macro with the condition being that the assigned fake monitored module is also ON. 

The "tricky part" to wrap your head around... is the sensor now becomes nothing more than a trigger. Meaning the sensor will need to be set to a code different from the light that it is turning ON.

It will look something like this:


And.... of course everything turned on... must also be turned off. This may be as simple as a 5 minute delay built into the conditional macro... that delays for 5 minutes then turns L1 OFF.

Title: Re: Noob Question - Using motion senor
Post by: bitman on March 22, 2009, 10:16:04 PM
You're welcome btw.
Title: Re: Noob Question - Using motion senor
Post by: Kramer Chins on March 22, 2009, 11:10:38 PM
drakethib,

  This is a pretty simple set up Trust Me !! This is how I have my Front Porch Light set up


 If I can do it, I know you can.......
>!
Title: Re: Noob Question - Using motion senor
Post by: HA Dave on March 23, 2009, 10:03:51 AM
  This is a pretty simple set up Trust Me !!

I am retired from civil service. I used to enjoy telling the venders I would work with:

 You can trust me... I work for your government.

It was interesting to watch the venders reactions. The cleverest... laughed out loud.  rofl