X10 Community Forum

🖥️ActiveHome Pro => Plug-ins => Smart Macros => Topic started by: brian c on January 08, 2005, 12:11:33 AM

Title: Conditions
Post by: brian c on January 08, 2005, 12:11:33 AM
Here's what I would like to do.

IF A15 is off, Turn on A15
4 hour delay
IF A15 is on, Turn off A15

I know I could just send the off code too it
again, but what happens if I turn it off,
then 3 hours later turn it back on. Will it
shut off in a hour (first macro finishing up
).

Also is there any way to add a conditional
half way though the macro? So I can do
something like this...

If A15 is on, turn all (room) on
If A14 is on, turn all (room2) on
If A15 is off, turn all (room) off
If A14 is off, turn all (room2) off

All in one macro, so basicaly it would turn
all the lights on or off based upon what what
A14 and A15 is doing.

This is not exactly what I want to do but an
example I pulled off the top of my head,
another quick one would be

Turn A14 on
Wait 4 hours
If A15 is on, Dim A15, Turn A14 off
Title: Re: Conditions
Post by: Tuicemen on February 13, 2005, 09:56:03 PM
I do agree it would be nice to add
conditions in the middle of a macro but in
the mean time we have to make do with what
we have. :)
There are  work arround ways to do this.
Maybe not what you want but it will do the
job!If you make phantom modules and use
flags you can turn these off and on threw
the run time of the macro. It will envolve
more typing of comands using elses along
with conditionals.Maybe not all of what you
want to do will work this way, but most will.