X10 Community Forum

🖥️ActiveHome Pro => Plug-ins => Smart Macros => Topic started by: jim on May 02, 2005, 07:00:25 PM

Title: Smart macro to keep lights on
Post by: jim on May 02, 2005, 07:00:25 PM
I can't seam to get the right mix.  i have
one macro turn the lights off, what I'd
like is to have my sensor keep the lights
on if detecting movement after 10pm.  I get
it to work some times but then the light
come back on
Title: Re: Smart macro to keep lights on
Post by: martin on May 04, 2005, 09:52:27 AM
On your trigger On macro, add this
condition, let’s say “if time is between
7:00 am and 10:00 pm”. Then add a step to
your turn On light to Clear a flag, let’s
say 4.
Add Else condition and specify “If time is
between 10:00 pm and 7:00 am”, then add
steps to turn light On and Set flag 4.
On your trigger Off macro, add this
condition “if flag 4 is cleared”.

The result will be that your light will turn
off by the motion sensor only if time is
between 7:00 am and 10:00 pm.