Please login or register.

Login with username, password and session length

Author Topic: Problem with setting flags  (Read 7759 times)

Mike C

  • Full Member
  • ***
  • Helpful Post Rating: 0
  • Posts: 35
Problem with setting flags
« on: November 25, 2004, 07:36:52 PM »

I have set up 2 macros to set and clear one
of the flag bits using a motion detector
photocell. I then have a third macro that
is triggered by that motion detector and
tests that flag to determine if it should
turn on the light. If dark turn on light.
The problem is that the macro that is
setting the flag bit also triggers the
light off.  It should only flip the flag
bit. When I first tested this macro setup
the light turned on and off 5 times before
stopping at off. If someone from x10 would
like to look at my data file I would be
glad to send it to you.
Logged

Burdy

  • Guest
Re: Problem with setting flags
« Reply #1 on: November 26, 2004, 12:32:06 AM »

I had a similar problem when I tried using a
macro to set a flag bit which had a RF
trigger with the same house/unit code as the
motion detector.. triggering the flag macro
then had the same effect as generating the
motion detector trigger, which then executed
the motion detector macro.  In my case the
motion detector was also programmed to
generate the same house/unit code as the
flag set macro, which repeated the whole
process for several cycles.  It was kind of
exciting, since the code was set to generate
a chime.

I don't know if this is true in your case,
but to avoid this scenario ensure that the
motion detector (and its reserved '+1' unit
code) are unique and not used as triggers by
any other flag setting macros.  
Logged
 

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