Please login or register.

Login with username, password and session length

Author Topic: flags  (Read 6163 times)

sanders dupree

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 1
flags
« on: January 08, 2005, 03:20:33 PM »

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?
Logged

donald mcmow

  • Hero Member
  • *****
  • Helpful Post Rating: 0
  • Posts: 306
Re: flags
« Reply #1 on: January 09, 2005, 10:01:23 AM »

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.
Logged

Noam

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 51
  • Posts: 2818
Re: flags
« Reply #2 on: January 10, 2005, 11:43:32 AM »

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.
Logged

Burdy

  • Guest
Re: flags
« Reply #3 on: January 10, 2005, 05:27:59 PM »

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.
Logged
 

X10.com | About X10 | X10 Security Systems | Cameras| Package Deals
© Copyright 2014-2016 X10.com All rights reserved.