Please login or register.

Login with username, password and session length
Pages: [1] 2

Author Topic: Conditionals  (Read 31381 times)

dave w

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 139
  • Posts: 6116
Conditionals
« on: November 08, 2004, 09:51:16 AM »

Howdy
FYI
"ahp_conditions.exe" has problems. I can not
get it to run. It would not run at all on a
Sony Vaio running XP Home, and ran only once
on work machine running Windows 2000 Pro. On
subsequent openings of AHP
the "conditionals" plug in would not load.
Logged
"This aftershave makes me look fat"

dave w

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 139
  • Posts: 6116
Re: Conditionals
« Reply #1 on: November 10, 2004, 11:42:12 AM »

Pay no attention to the man behind the
curtain, or in the previous post. Smartmacro
works well.
Logged
"This aftershave makes me look fat"

Mr. Automation

  • Guest
Re: Conditionals
« Reply #2 on: November 12, 2004, 02:25:59 PM »

I'll second that! The Smart Macro plugin is
wonderful. Thanks X10!
Logged

ken

  • Full Member
  • ***
  • Helpful Post Rating: 0
  • Posts: 59
Re: Conditionals
« Reply #3 on: November 13, 2004, 10:24:00 AM »

Mr. Automation exclaimed: "The Smart Macro
plugin is wonderful."

Can you please tell us how you insert a
conditional branch into a macro?

Many thanks.
Logged

mike

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 2
Re: Conditionals
« Reply #4 on: November 13, 2004, 10:42:52 AM »

Did yooou have to purchase the smart macro
package?
Logged

ken

  • Full Member
  • ***
  • Helpful Post Rating: 0
  • Posts: 59
Re: Conditionals
« Reply #5 on: November 13, 2004, 02:03:50 PM »

Mike; it depends.
Logged

mike

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 2
Re: Conditionals
« Reply #6 on: November 13, 2004, 02:36:48 PM »

depends? on what?
Logged

ken

  • Full Member
  • ***
  • Helpful Post Rating: 0
  • Posts: 59
Re: Conditionals
« Reply #7 on: November 13, 2004, 02:52:59 PM »

Mike; it depends on whether X10 send it to
you free or not.  I'm not trying to be
facetious.  There is a great deal of
conjecture going on about X10's criteria when
selecting who gets the freebie plug-in and
who doesn't.   I have no clue what that might
be.
Logged

nikko

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 8
Re: Conditionals
« Reply #8 on: November 13, 2004, 10:14:44 PM »

Maybe I should go get a lotto ticket too?
I am beginning to feel the utter
frustration of a kid who's new toy came
without batteries...  (buy the way, someone
should tell us we need piles of AAA
batteries to get up and running...)

Or is that a plug-in too? (hee hee) I'm
trying to stay on the upbeat side of
this... but the macro thing has beaten me
with a stick. No OFF time for macros,
sheesh...?
Now I'm looking at the boxes and
considering how much effort to put
everything back... hmmmm... does the return
policy say everything has to be "in" its
original packaging, or "with" its original
packaging?
Logged

ken

  • Full Member
  • ***
  • Helpful Post Rating: 0
  • Posts: 59
Re: Conditionals
« Reply #9 on: November 14, 2004, 09:12:31 AM »

Nikko wrote: "No OFF time for macros,
sheesh...?"

You need to create a second macro that is
triggered when you want the OFF sequence to
initiate.

For example, I have "Homelate" to turn on the
outside lights, delay, turn on hallway,
delay, turn on bedroom.  Then I have a 2nd
macro to reverse all that except without
delay because there would be no point.   They
are separate macros.  Each runs to completion
when it's triggered.  Macros do not keep
running after the final step is executed, nor
can you pass them parameters such as "Run
using ON command" and "Run using OFF command."

Hope that helps.
Logged

nikko

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 8
Re: Conditionals
« Reply #10 on: November 14, 2004, 04:00:25 PM »

Let me try to clarify.. I want the Macro to
only operate between XX time and XX time.
The timer setting for the macro itself
allows me to start the macro at any givin
time, but neglects to allow me a time to
stop the macros from running. i.e a 5 step
macro (from on to off) that runs at any
time it is triggered between -say- dusk and
10:00. The program allows me to start it at
dusk +/- XX time, but there is no way to
set a cease macro at -say- 10:00.

Does that clarify what I'm talking about?
Logged

ken

  • Full Member
  • ***
  • Helpful Post Rating: 0
  • Posts: 59
Re: Conditionals
« Reply #11 on: November 14, 2004, 04:19:04 PM »

Nikko wrote: "I want the Macro to only
operate between XX time and XX time."

The macro runs when triggered and exits or halts.

A2 ON
Delay 2 minute
A3 ON
Delay 5 minutes
A4 ON
Delay 3 minutes

Means the macro runs for 10 minutes, then
ends.  You cannot stop it while it's running.
Simply because the lights remain on does not
mean the macro is still running.  It means
the macro ended leaving them on.

Hope that helps.
Logged

nikko

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 8
Re: Conditionals
« Reply #12 on: November 15, 2004, 02:13:29 AM »

I had intended to run another "mini timer
command" or simply an "Off" command for all
units (A1 and A2 in this case) at the "off
time" mentioned to insure any incomplete
macro sequences would not leave the lights
on.

B1 is my motion detector on front patio.
A1 is my patio light.
A2 is the entry hall light.

At dusk turn A1 ON; at 10:00pm turn A1 OFF -
(simple timer control for patio light)

Now I have created a macro that I want B1
to act as a motion detector activating A1
and A2 in following sequence (simplified):

B1 is trigger.
Turn On A1.
15 second delay.
Turn ON A2.
2 minute delay.
Turn OFF A1.
15 second delay.
Turn OFF A2.
{This Macro complete}

[Next B1 input will trigger same sequence
of events.]
Logged

nikko

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 8
Re: Conditionals
« Reply #13 on: November 15, 2004, 02:13:42 AM »

Now this is where my problem is...

I want this macro to run from 10:00pm
(after dusk to 10:00 timer has completed
it's cycle) to dawn and not during the day.
The macro has a clock button which allows
you to "turn on" the macro at whatever time
you choose BUT there is no "turn off" macro
input, seems someone forgot to put in
the "off time" or even better "Do not run
this macro after XX time" selection... thus
eliminating the need for the "mini macro"
mentioned above.
Does that clarify what I'm talking about?

OK - now I know you are going to say - B1's
light sensor will prevent the macro from
being running after dawn; well, I have
disabled that feature because I want B1 to
transmit 24/7 to use the signal to also
sound a chime during the day (probably
another macro utilizing a different set of
parameters and time constraints)and
possibly other devices; i.e. camera,
backyard chime during certain hours, etc.

Didn't think it would be this hard to get
the problem solved, probably shouldn't have
posted the blasted thing to begin with...
Logged

ken

  • Full Member
  • ***
  • Helpful Post Rating: 0
  • Posts: 59
Re: Conditionals
« Reply #14 on: November 15, 2004, 09:02:33 AM »

Nikko, I regret that I don't have the time to
do a full analysis of your programming
requirements.  But at first glace, can you
not simply code put a conditional in your B1
macro (triggered by the motion sensor) to
light A1 if it's between dawn&dusk, and to
chime otherwise?  Your motion sensor will be
active all the time, but it's triggering will
perform different functions depending on time
of day.

That basically exhausts the amount of time I
have for this.  Sorry.
Logged
Pages: [1] 2
 

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