X10 Community Forum

🖥️ActiveHome Pro => Plug-ins => Smart Macros => Topic started by: James S. on March 22, 2005, 05:48:22 PM

Title: Flag Info Needed
Post by: James S. on March 22, 2005, 05:48:22 PM
What are they? How are they used and how do
I set them up? I just got the smart macro
plug in and read all the directions I could
find on them. Apparently the developers
think you know as much as they do and don't
bother explaining there application to us
non-programers.
Title: Re: Flag Info Needed
Post by: burt on March 26, 2005, 12:46:40 AM
The only thing I know about flags is that
they only work in the hardware. Guess I
played hookie on the day they taught the
class on flags.
Title: Re: Flag Info Needed
Post by: donald mcmow on March 26, 2005, 02:44:18 AM
You can use them where you need a variable
check - If you want to skip a timer event,
you can check a flag in your main macro, if
the flag is not set then continue running
your macro. If the flag is set then run a
different macro clearing the flag. A third
macro can be used to set the flag. It is
the same as If-Then-Else programming. If
you have a motion detector (which will
always send a trigger signal) the flag can
be set and checked to only execute the
macro once rather than everytime motion is
detected. The flags can be defined as
anything you want to keep track of and
check.
Title: Re: Flag Info Needed
Post by: James S. on March 27, 2005, 12:32:45 AM
Donald McMow: Thanks for the information on
flags!