X10 Community Forum
🖥️ActiveHome Pro => Plug-ins => Smart Macros => Topic started by: Noam 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?
-
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.
-
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?
-
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?
-
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.
-
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?
-
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?
-
Any else conditions after the conditional
macro that is executed would not be
executed.
-
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