X10 Community Forum

🖥️ActiveHome Pro => Plug-ins => Smart Macros => Topic started by: M on November 25, 2004, 09:35:27 PM

Title: Question about using Flags (Burdy?)
Post by: M on November 25, 2004, 09:35:27 PM
In another post Burdy gives a nice example
of using flags to turn on or off a Chime
macro. My question is thisÖ how do you
properly set/clear a flag using a remote?

I currently have the following
configuration that doesnít appear to be
My Handheld remote is set to J1, nothing
else resides on this house/unit code.
I created two Macros, one for Flag Set and
one for Flag Clear.  This is what they look

Macro #1 Name: Chime On
Trigger: J1 ON
Modify Flags Icon: Operation = Set Selected
Flags. Checkmark in Box# 1.

Macro #2 Name: Chime Off
Trigger: J1 OFF
Modify Flags Icon: Operation = Clear
Selected Flags: Checkmark in Box# 1.

The Activity Monitor indicates the
J1 ON (Chime On)
J1 OFF (Chime On)

So it appears from the AM that itís only
setting the Flag and not clearing it on
OFF. Is this the correct way to turn on/off
a Flag? Iím I overlooking something?
Title: Re: Question about using Flags (Burdy?)
Post by: Burdy on November 26, 2004, 12:17:24 AM
What you have described looks fine to me. In
fact the macros I use are almost the same
(except I included an actual 'ding'+ delay 1
sec + 'ding' of the chime for audible
feedback when I execute the 'chime enable'
macro, and a single chime 'ding' for
disable, just so I the macro got executed).

I know some of the activity monitor entries
are buggy; have you looked at the actual
flags after the macro executes?  You can
verify the state of the flags directly by
looking at the Reports.. Interface Status
from the AHP File menu-- but note that the
reports page doesn't seem to map the actual
bit to the reported bit number correctly..
bit 1 gets reported as bit 14 as I recall,
and the others also get reported in the
wrong bit positions also.  I reported this
bug last week.
Title: Re: Question about using Flags (Burdy?)
Post by: M on November 26, 2004, 01:34:01 AM
Thanks for the confirmation Burdy, it
appears to be triggering the flag correctly
Title: Re: Question about using Flags (Burdy?)
Post by: mike on November 28, 2004, 03:13:06 AM
I've also noticed that the activity monitor
always seems to display the name of
the "ON" Macro even when the "OFF" macro is