X10 Community Forum

🔌General Home Automation => Automating Your House => Troubleshooting Automation Problems => Topic started by: artk on November 13, 2006, 09:36:44 AM

Title: Now that my clock is working.. I need a macro
Post by: artk on November 13, 2006, 09:36:44 AM
My projector is on A1 and my clock is on A14. I would like the clock to go on (Light) when I turn on the projector (A1). I have the plug in for macros.

By the way has any on controlled any X10's with a  Universal Remote Control MX 3000 ?

Thanks for all your help,
artk
Title: Re: Now that my clock is working.. I need a macro
Post by: HA Dave on November 13, 2006, 12:05:13 PM
My projector is on A1 and my clock is on A14. I would like the clock to go on (Light) when I turn on the projector (A1). I have the plug in for macros. By the way has any on controlled any X10's with a  Universal Remote Control MX 3000 ?

Projector, neon clock, MX 3000... sounds like a home theater.  Here is what I did  (http://davesdomainonline.com/ht/ht.htm)

Sorry I don'y know AHP (yet)...
Title: Re: Now that my clock is working.. I need a macro
Post by: JimC on November 13, 2006, 12:18:40 PM
Dave_x10_L,

Nice web site and home theater. Thanks for sharing.

Jim
Title: Re: Now that my clock is working.. I need a macro
Post by: dave w on November 13, 2006, 12:37:29 PM
ArtK

Tell us where you are getting stuck?
Title: Re: Now that my clock is working.. I need a macro
Post by: artk on November 13, 2006, 04:58:31 PM
I set A2 as a trigger, One A2 for off and one A2 for on.
A1 is the projector power switch.
B14 is the Neon Clock.

The On side of a RF switch is the first A2 (ON) = A1 on and B14 on
The Off side of a RF switch is the second A2 (OFF) = A1 off and B14 Off.

This seems to me the long way around. There should be something like If A1=1 (on) then B14=1 or if A1=0 (off) then B14=0. I would also like to turn on a light, but only if it's at night. If time = 6pm then B12=On else b12=off
Title: Re: Now that my clock is working.. I need a macro
Post by: dave w on November 14, 2006, 12:38:45 PM
I set A2 as a trigger, One A2 for off and one A2 for on.
A1 is the projector power switch.
B14 is the Neon Clock.

The On side of a RF switch is the first A2 (ON) = A1 on and B14 on
The Off side of a RF switch is the second A2 (OFF) = A1 off and B14 Off.


Well it has been a year since I have used AHP so I may need some help from some one.  I don't understand what you mean by "The On side of a RF switch is the first A2 ...." and  "The Off side of a RF switch is the second A2 ...".

AHP will not remember the status of an address unless it is in the "monitored" house code. (Maybe I am confused by the words "first" and "second" in your description). The trigger(s) should be "A2 ON" and "A2 OFF", (two events).
Title: Re: Now that my clock is working.. I need a macro
Post by: Puck on November 14, 2006, 01:11:34 PM
The On side of a RF switch is the first A2 (ON) = A1 on and B14 on
The Off side of a RF switch is the second A2 (OFF) = A1 off and B14 Off.

To help clear things up, do you have two Macros like this?

Macro1
Trigger: A2 ON
Turn A1 ON
Turn B14 ON

Macro2
Trigger: A2 OFF
Turn A1 OFF
Turn B14 OFF

Quote
This seems to me the long way around. There should be something like If A1=1 (on) then B14=1 or if A1=0 (off) then B14=0.

I'm not sure what you are trying to accomplish.
Are you wanting B14 to automatically turn ON and OFF with A1 without a Macro?
Some more info will help on this one.

Quote
I would also like to turn on a light, but only if it's at night. If time = 6pm then B12=On else b12=off

This can be easily done with a timer.

Title: Re: Now that my clock is working.. I need a macro
Post by: artk on November 14, 2006, 06:20:01 PM
The On side of a RF switch is the first A2 (ON) = A1 on and B14 on
The Off side of a RF switch is the second A2 (OFF) = A1 off and B14 Off.

To help clear things up, do you have two Macros like this?

Macro1
Trigger: A2 ON
Turn A1 ON
Turn B14 ON

Macro2
Trigger: A2 OFF
Turn A1 OFF
Turn B14 OFF

Quote
This seems to me the long way around. There should be something like If A1=1 (on) then B14=1 or if A1=0 (off) then B14=0.

I'm not sure what you are trying to accomplish.
Are you wanting B14 to automatically turn ON and OFF with A1 without a Macro?
Some more info will help on this one.

Quote
I would also like to turn on a light, but only if it's at night. If time = 6pm then B12=On else b12=off

This can be easily done with a timer.





Yes, Thats it. When I turn on A1, I want B14 to turn on and vice a versa. The light in the room should only come on if it's dark or at night. I would like to use a macro, but only one to accomplish everything.
Title: Re: Now that my clock is working.. I need a macro
Post by: Tuicemen on November 14, 2006, 06:37:31 PM
Quote
Yes, Thats it. When I turn on A1, I want B14 to turn on and vice a versa. The light in the room should only come on if it's dark or at night. I would like to use a macro, but only one to accomplish everything.
then you'll need to make 4 macros
two triggered by a1
trigger A1 on
turn on b14

trigger A1 Off
turn off b14


Two triggered by B14
trigger B14 off
turn A1 off

trigger B14 On
turn A1 On
Title: Re: Now that my clock is working.. I need a macro
Post by: Puck on November 14, 2006, 07:47:53 PM
The light in the room should only come on if it's dark or at night.

For this part you could use the Dusk/Dawn feature of a motion sensor.
Just make sure the motion sensor is isolated from the light so it won't turn it back off when it comes on.
Title: Re: Now that my clock is working.. I need a macro
Post by: Charles Sullivan on November 14, 2006, 07:55:31 PM
This seems to me the long way around. There should be something like If A1=1 (on) then B14=1 or if A1=0 (off) then B14=0. I would also like to turn on a light, but only if it's at night. If time = 6pm then B12=On else b12=off
Quote
I would like to use a macro, but only one to accomplish everything.

There are other, substantially more expensive, X10 controllers available (like the Ocelot) which will probably allow you to do that, but the CM15A and ActiveHome Pro are limited in the complexity of the conditions which can be used in a single macro.

As Donald Rumsfeld said: "You fight with the army you have, not with the army you'd like to have."

Title: Re: Now that my clock is working.. I need a macro
Post by: artk on November 14, 2006, 08:15:27 PM
So there's no way to write code (Boolean logic) with an editor and download it to the program? :(
Title: Re: Now that my clock is working.. I need a macro
Post by: Tuicemen on November 14, 2006, 08:30:34 PM
There is no simple way of doing what you want!
But it can be done using the Smartmacro plug-in. ;)
You'll still need the four macros I discribed but you could add else commands which would turn on/off another light if it was after dusk or a certain time!
I don't think you'd have a problem setting it up but for some elses can be very confusing! ;) :D
Actualy Smartmacros & elses is what turned me into a small time programer! ;)
Title: Re: Now that my clock is working.. I need a macro
Post by: Charles Sullivan on November 14, 2006, 08:45:19 PM
So there's no way to write code (Boolean logic) with an editor and download it to the program? :(

Nothing documented.   An annotated listing of the binary EEPROM image is available after you download from AHP:
  C:\Documents and Settings\All Users\Application Data\Active Home Professional\ahpeeprom_w.txt

Play around with the SmartMacro conditions a little and see what they look like when they're compiled.  That'll give you some idea what the CM15A firmware is capable of dealing with.

Title: Re: Now that my clock is working.. I need a macro
Post by: Tuicemen on November 14, 2006, 08:57:19 PM
Ok I think maybe we can simplify this some
 If I understand you wish A1 and B14 to always come on and go off at the same time!
just give them the same address eg: A1
then you only need 1 macro
A1 is the trigger
A1 on
condition if it is after 6 pm
turn on light B12


Now if you want B12 to go off if you turn off A1 then you need another macro ;)

trigger A1 off
turn off B12

In order for this to work you need to configure AHP "Preferences" under "Tools"
so that the option "Multiple modules can use same address" is checked! ;)