Please login or register.

Login with username, password and session length

Author Topic: SM "to-do" item  (Read 5997 times)

julian

  • Full Member
  • ***
  • Helpful Post Rating: 0
  • Posts: 47
SM "to-do" item
« on: March 06, 2005, 09:01:29 PM »

X10 Pro:
Do you have plans to implement other
functions in the Smart Macros Plug-in? I am
only asking because I am having difficulties
with some of the macros I created. Here is an
example:
I have a macro which, when trigerred by a
motion sensor, turns the lights on, sets the
flag, then waits 15 minutes, turns the light
off, and clears the flag. The problem with
that, however, is that I get comments from my
wife that the light goes off when she takes a
shower or a bath. She asked me to disable the
motion sensor in the bathroom, but I would
still like to use it. Ideally, I would like
to be able to set the delay from the LAST
motion detected, not from the ON command. In
the current environment, however, I have no
way to accomplish this. I am not sure what is
the best way, but one solution would be to
allow conditional logic to be applied after
macro commands are executed. For instance, I
could create a macro like this:
If flag X is OFF and time between Y and Z, then
Turn light on. Set flag X, wait 10 minutes.
[Loop as necessary:]
IF MOTION WAS DETECTED WHILE DELAY, wait
another 5 minutes,
ELSE turn light off.
[end of loop]
clear flag X.

OR:

If flag X is OFF and time between Y and Z, then
Turn light on. Set flag X.
{Loop as necessary:]
WHEN MOTION DETECTED,
SET DELAY FOR 5 minutes,
ELSE turn light off.
[end of loop]
clear flag X.

Is this doable? Do you have other ways to
accomplish this? Are you currently working on
this issue?

Thanks!
Logged
 

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