X10 Community Forum

🖥️ActiveHome Pro => Plug-ins => Smart Macros => Topic started by: mikemurphy on April 20, 2007, 02:16:06 PM

Title: macro calling another macro
Post by: mikemurphy on April 20, 2007, 02:16:06 PM
I'm having some trouble with macros.  I'm using AHP and I'm trying to create a macro that detects motion and turns on the porch light for 1 minute, rings the chime, takes stills for 15 seconds (one every second) and ftp's the stills to my server.  I've been thru many interations of this and encountered many problems and this is where I am now.  I've ran into the problem where the stills will only take 1 or 2 and has problems ftp'ing the files.  I also didn't want the macro to run the full 1 minute to wait and turn the light off.  So my thought is to put the light code in another macro and just call it from the motion activated macro.  I also want to do something similar with the snapshots.  Both of those macros work fine when run them by clicking them in AHP.  I need to know how to call them from the motion macro.

I'm using AHP 3.204, with iWitness, SmartMacros and myHouse.

Title: Re: macro calling another macro
Post by: EL34 on April 23, 2007, 01:50:13 PM
I do this by triggering or checking phantom modules.

AHP checks the status of several phantom modules and then these phantom modules are the triggers for other macros.

I have a day/night phantom module.
I have a at home/not at home module.
and a few others

My main motion sensing macro checks to see if it's day/night and turns on lights if needed.
It also checks to see if I am home or not home.
If I am not home it starts snapping stills and then emails the stills to me.