Please login or register.

Login with username, password and session length

Author Topic: Conditions  (Read 5511 times)

brian c

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 1
Conditions
« 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
Logged

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 282
  • Posts: 10497
  • I don't work for X10, I use it successfuly!
Re: Conditions
« Reply #1 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.
Logged
Please Read Topic:
General Forum Etiquette
Before you post!
 

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