Please login or register.

Login with username, password and session length

Author Topic: Multiple Macros  (Read 11726 times)

Noam

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 51
  • Posts: 2818
Multiple Macros
« on: December 01, 2004, 09:41:11 AM »

Anybody ever try creating two conditional
macros with the same address (Ex: M1 ON),
with different conditions? I want to have a
more complex condition (day of the week, AND
time of day, for two different day/time
combinations). If I create two macros with
the same address, each with one of the
day/time conditions, should that work?
Logged

donald mcmow

  • Hero Member
  • *****
  • Helpful Post Rating: 0
  • Posts: 306
Re: Multiple Macros
« Reply #1 on: December 01, 2004, 10:15:52 AM »

You should be able to create any number of
macros using the else statement. Otherwise
you might have problems with the interface
trying to figure out what to do with macros
using the same address.
Logged

Noam

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 51
  • Posts: 2818
Re: Multiple Macros
« Reply #2 on: December 01, 2004, 11:08:18 AM »

I can't create a single macro that will work
with the conditions I need. I need the
following conditions:
Friday befween 4:00 pm and midnight
or
Saturday between 12:00 pm and 8:00 pm

How would I do this with an "else" condition?
Logged

Noam

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 51
  • Posts: 2818
Re: Multiple Macros
« Reply #3 on: December 01, 2004, 11:35:09 AM »

A little experimentation cleared this up, I
think.
when you use "else" it essentiall creates a
second macro with the same address, linked
to the original macro. This is the same
thing (at least visually) that happens if I
create two macros with the same address. The
question is, if the conditions overlap (if
both of them were true), would both trigger?
Logged

X10 Pro

  • Hero Member
  • *****
  • Helpful Post Rating: 23
  • Posts: 1416
Re: Multiple Macros
« Reply #4 on: December 01, 2004, 01:45:33 PM »

Noam: Just to make sure you got it figured
out, you can make the first macro run if it's
Friday between 4 PM and Midnight, ELSE
(second macro with same set of commands, I
guess) if it's Saturday between 12:00 PM and
8:00 PM.

Only one macro will be triggered -- the first
one whose conditions are met.
Logged

Noam

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 51
  • Posts: 2818
Re: Multiple Macros
« Reply #5 on: December 01, 2004, 02:09:43 PM »

Ok, here is what I need to turn on if the
power goes out and is restored:
1) If it is Friday, between 4pm and
midnight, turn on my dining room and living
room lights (C4, C5)
2) If it is Saturday, between Noon and 8 pm,
turn on my living room and dining room
lights (C4, C5)
that part makes sense to me as an "Else"
condition, since there is no overlap between
those times. However, I also need to do the
following:
3) Any day (sun-sat) if it is before dawn,
or after dusk, turn on my outside lights
(C2, C3, C6).
Can this be done, since condition set #3
will overlap, at times, with condition sets
#1 and #2?
Logged

Noam

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 51
  • Posts: 2818
Re: Multiple Macros
« Reply #6 on: December 01, 2004, 02:13:14 PM »

I suppose I can do this with two (or three)
different macros - on different codes (m1,
m2, m3), all triggered from a single macro
(M4, for example), that is triggered by my
not-yet-built "blackout detector" module.
What happens when I create two macros, and
set them to the same unit code? I see that
AHP "links" them (like it does for an "else"
condition), but do they really run as "else"
conditions, in the order they are created?
Logged

donald mcmow

  • Hero Member
  • *****
  • Helpful Post Rating: 0
  • Posts: 306
Re: Multiple Macros
« Reply #7 on: December 01, 2004, 07:16:14 PM »

Any else conditions after the conditional
macro that is executed would not be
executed.
Logged

Jerry1

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 1
Re: Multiple Macros
« Reply #8 on: January 31, 2008, 11:49:50 PM »

could some one help me I would like a light I have in the porch to only come one when it is about 6:00pm to 7:00am in the morning with a motion sensor trip it for about 3min then go off but during the day the motion sensor would not turn it one thanks for any help Jerry
Logged
 

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