How To Make Macros

Started by benrici, May 09, 2008, 10:48:49 PM

Previous topic - Next topic

benrici


Puck

benrici: Welcome to the forum. Your question will leave people wondering where to begin. Do you need to know how to start a macro or how to do what you want in a macro?

If this page from the X10 Wiki does not help, then please tell us more details of what you need help with: Creating A Macro

benrici

Thanks for helping! I was more interested in how I can set up my lights to turn on when I trip a motion sensor, such as coming to my apartment, and upon getting in the lights turn on? If someone can tell me how I would appreciate it! Thanks!

Puck

Whatever address your motion sensor is set to, make that the Trigger of your macro.

Example:

If your motion sensor is set to "B1", then your macro would have a trigger of "B1 ON"
Then in the macro, have the command to turn the light ON

If you want to automatically turn the light OFF, then you can use a delay in this macro along with the command to turn it OFF after a certain amount of time, or you can create a second macro that would use the motion sensor's time out length and have a Trigger of "B1 OFF". That macro, of course, would contain the command to turn the light OFF.

benrici

when i try to drag the motion sensor module, the macro never shows it, just the light appliance?

Puck

Quote from: benrici on May 10, 2008, 11:04:16 PM
when i try to drag the motion sensor module, the macro never shows it, just the light appliance?

You don't drag the motion sensor into the macro, you just set the trigger address for the macro to the same address as the motion sensor.

SMF spam blocked by CleanTalk