Please login or register.

Login with username, password and session length

Author Topic: Problem with getting macro to work  (Read 10182 times)

mack

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 3
Problem with getting macro to work
« on: November 23, 2004, 11:32:32 AM »

I have a simple macro defined as follows:

If M1 and It's Nightime
Turn Hallway Light ON

Unfortunately, it always turns the hallway
light on when I get the M1 on signal from
my motion detector. What time is
consider "nighttime" and how does the
plugin determine this time?  I was assuming
nightime was after dusk and before dawn.  
Logged

Mr. Automation

  • Guest
Re: Problem with getting macro to work
« Reply #1 on: November 23, 2004, 12:38:00 PM »

Mack,

I believe “nighttime” is handled by AHP’s
Dusk&Dawn timer. Details can be found under
Hardware Configuration to ensure this is
setup properly.

What unit/house code is your hallway light
set to? What type of Motion Sensor are you
using?

Some of the X10 motion sensors have a built
in dusk/dawn sensor. This triggers on the +1
code. So if you have a motion sensor
configured for M1, the dusk/dawn trigger
would be M2.

Your macro should work. Ensure that the
Hallway Light isn’t set to M1 as well, it
should be a different house or unit code.
Logged

kevinw

  • Guest
Re: Problem with getting macro to work
« Reply #2 on: November 23, 2004, 02:08:14 PM »

The NightTime condition has the same
problem in build 169 as the time range
condition that spans days.  That is, it
gets encoded internally as IF TIME >= DUSK
AND TIME <= DAWN THEN run macro.  This is a
bug as it needs to be an OR condition, not
an AND condition.  Build 170 (being
released this coming Monday) fixes this.

You could work around the issue in the
meantime by defining
IF M1 AND
AFTER DUSK
OR BEFORE DAWN
Turn Hallway Light ON
Logged

mack

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 3
Re: Problem with getting macro to work
« Reply #3 on: November 24, 2004, 04:09:14 PM »

Appreciate the timely responses.  I will try
the recommended temporary solution while I'm
waiting on the new build.  For the record I
was using another house code (B5) for the
actual light and M1 for the motion
dectector.  I'm using hacked version of the
motion detector that have the dusk to dawn
disable.  I prefer to control the dusk to
dawn feature with conditional macros.

Thanks
Mack
Logged
 

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