flags

Started by sanders dupree, January 08, 2005, 03:20:33 PM

Previous topic - Next topic

sanders dupree

Any one know how to set flags? What are
there functions?
Trying to set up a smart macro that will
run only after activating  a module [P5on],
will this carry cross midnight?

donald mcmow

Flags are either set (1) or reset (0) You
can only test to see if they are on(1) or
off(0). They are maintained until you
change their status or a power
interruption. There maybe other events (ie:
new version of AHP) that could cause
problems with changing flag status. Use
Flags 15-16 with caution as they are used
internally by dawn/dusk timers. Flag 1 has
been reported to be used by AHP to check
the status of uploads to the CM15A. You use
flags as a condition to running a macro.
You could set it up so that if a motion
sensor is triggered and you are home, a
chime module is sounded otherwise the
bedroom light is turned on.

Noam

Have you confirmed that flags reset when you
unplug the CM15A and plug it back in? If so,
that might be a way to trigger a "power
failure" macro. You set the flag to on. Then
if you have a macro set to keep checking
that it is on, you do nothing (sleep for 30
minutes, or whatever interval, and try
again). but, if it sees the falg is reset
(meaning that power went out, and was
restored), then it runs a "power
restoration" macro.

Burdy

Based on what I've seen, the flags are
backed up by battery power, so you won't
observe them change state when AC power is
interrupted.