Please login or register.

Login with username, password and session length

Author Topic: Now that my clock is working.. I need a macro  (Read 14274 times)

artk

  • Full Member
  • ***
  • Helpful Post Rating: 0
  • Posts: 30
Now that my clock is working.. I need a macro
« 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
Logged

HA Dave

  • Hero Member
  • *****
  • Helpful Post Rating: 175
  • Posts: 7127
Re: Now that my clock is working.. I need a macro
« Reply #1 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

Sorry I don'y know AHP (yet)...
« Last Edit: October 15, 2009, 11:50:56 PM by Dave_x10_L »
Logged
Home Automation is an always changing technology

JimC

  • Hero Member
  • *****
  • Helpful Post Rating: 41
  • Posts: 631
Re: Now that my clock is working.. I need a macro
« Reply #2 on: November 13, 2006, 12:18:40 PM »

Dave_x10_L,

Nice web site and home theater. Thanks for sharing.

Jim
Logged
_ _ ...  ..._ _

dave w

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 139
  • Posts: 6116
Re: Now that my clock is working.. I need a macro
« Reply #3 on: November 13, 2006, 12:37:29 PM »

ArtK

Tell us where you are getting stuck?
Logged
"This aftershave makes me look fat"

artk

  • Full Member
  • ***
  • Helpful Post Rating: 0
  • Posts: 30
Re: Now that my clock is working.. I need a macro
« Reply #4 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
Logged

dave w

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 139
  • Posts: 6116
Re: Now that my clock is working.. I need a macro
« Reply #5 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).
Logged
"This aftershave makes me look fat"

Puck

  • Advanced Member
  • Hero Member
  • ******
  • Helpful Post Rating: 171
  • Posts: 1799
Re: Now that my clock is working.. I need a macro
« Reply #6 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.

Logged

artk

  • Full Member
  • ***
  • Helpful Post Rating: 0
  • Posts: 30
Re: Now that my clock is working.. I need a macro
« Reply #7 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.
Logged

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 282
  • Posts: 10497
  • I don't work for X10, I use it successfuly!
Re: Now that my clock is working.. I need a macro
« Reply #8 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
Logged
Please Read Topic:
General Forum Etiquette
Before you post!

Puck

  • Advanced Member
  • Hero Member
  • ******
  • Helpful Post Rating: 171
  • Posts: 1799
Re: Now that my clock is working.. I need a macro
« Reply #9 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.
Logged

Charles Sullivan

  • Hero Member
  • *****
  • Helpful Post Rating: 94
  • Posts: 1565
    • HEYU - X10 Automation for Linux, Unix, and Mac OSX
Re: Now that my clock is working.. I need a macro
« Reply #10 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."

Logged
Yesterday it worked.
Today it doesn't work.
X10 on Windows is like that.

HEYU - X10 Automation for Linux, Unix, and Mac OS X     http://www.heyu.org

artk

  • Full Member
  • ***
  • Helpful Post Rating: 0
  • Posts: 30
Re: Now that my clock is working.. I need a macro
« Reply #11 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? :(
Logged

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 282
  • Posts: 10497
  • I don't work for X10, I use it successfuly!
Re: Now that my clock is working.. I need a macro
« Reply #12 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! ;)
Logged
Please Read Topic:
General Forum Etiquette
Before you post!

Charles Sullivan

  • Hero Member
  • *****
  • Helpful Post Rating: 94
  • Posts: 1565
    • HEYU - X10 Automation for Linux, Unix, and Mac OSX
Re: Now that my clock is working.. I need a macro
« Reply #13 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.

Logged
Yesterday it worked.
Today it doesn't work.
X10 on Windows is like that.

HEYU - X10 Automation for Linux, Unix, and Mac OS X     http://www.heyu.org

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 282
  • Posts: 10497
  • I don't work for X10, I use it successfuly!
Re: Now that my clock is working.. I need a macro
« Reply #14 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! ;)
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.