Please login or register.

Login with username, password and session length

Author Topic: Repeat a macro?  (Read 9641 times)

stevecon

  • Jr. Member
  • **
  • Helpful Post Rating: 0
  • Posts: 13
Repeat a macro?
« on: December 05, 2007, 12:49:44 AM »

I have 4 switches on house code I numbered 1 thru 4.  Two of the switches control 14 outdoor lights (floods, garage and a post light at the end of the driveway), The other two control some highhats in the kitchen and a couple in the family room.  Anyway, every now and then, I'll come home to find some of the lights on.  It's never the 4 inside - but the 14 outside.  I don't know where the ON command is coming from - but it's not inside my house (no one is home during the day), so its unlikely I'll find it.  I'll probably have to experiment with other house codes at some point. 

I bought the Smart Macro add on but can't seem to find a way (an easy way anyway) to run a macro every X minutes that will shut off all modules during the day between 7AM and 4PM.  It doesn't seem right that this should require a command to run the macro every X minutes - but maybe I'm wrong..

Is there a manual for Smart Macro??   Anywhere??


Thanks - in advance!
Logged

mashenden

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 2
Re: Repeat a macro?
« Reply #1 on: December 05, 2007, 08:32:55 AM »

I read these while on the can - they added some clarity as well as some creativity:

    http://www.activehomepro.com/plugins/plugin-smartmacros_adv.html

and

    http://software.x10.com/pub/manuals/ahpsmartmacros.pdf

By using conditions, you can limit the problems of phantom outdoor lights so they do not occur during the day. There is a "Nighttime" condition but there is a way using flags that is better if the number of conditions that are allowed becomes restrictive (Smart Macro allows 3 conditions but the "Nighttime" condition takes 2 of the 3, while using the flag approach only takes 1).

Setting up the nightime (or daytime) flag is described in more detail at:

    http://www.x10community.com/forums/index.php?topic=13842.0

I hope these help you as much as me.

Matt A
Logged

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 282
  • Posts: 10497
  • I don't work for X10, I use it successfuly!
Re: Repeat a macro?
« Reply #2 on: December 05, 2007, 08:42:06 AM »

Is there a manual for Smart Macro??   Anywhere??

You can find many manuals and additional info at the X10wiki   here's the link to The SmartMacro Manual
Logged
Please Read Topic:
General Forum Etiquette
Before you post!

stevecon

  • Jr. Member
  • **
  • Helpful Post Rating: 0
  • Posts: 13
Re: Repeat a macro?
« Reply #3 on: December 05, 2007, 01:39:28 PM »

Matt & Tuicemen,

Thanks very much!  I'll be sure to check out the links you've provided.

Steve
Logged

PrimeGuild

  • Full Member
  • ***
  • Helpful Post Rating: 0
  • Posts: 44
    • Software Solutions
Re: Repeat a macro?
« Reply #4 on: March 26, 2008, 05:46:40 PM »

Well, what I have done in my apartment is, I have set up multiple timers (at 30 minute interval) and I have setup one macro that turns OFF all my lights. Hence, the macro gets executed every 30 minutes and that ensures that my lights stay OFF during the my Away period.

Hope it makes sense.
Logged

PrimeGuild

  • Full Member
  • ***
  • Helpful Post Rating: 0
  • Posts: 44
    • Software Solutions
Re: Repeat a macro?
« Reply #5 on: March 26, 2008, 05:52:21 PM »

However, I don't think there is a direct way to put a macro on a loop or something, but as I said, you can achieve the desired result by creating multiple timers.
Logged

steven r

  • Advanced Member
  • Hero Member
  • ******
  • Helpful Post Rating: 74
  • Posts: 2189
  • Halloween with X10
Re: Repeat a macro?
« Reply #6 on: March 27, 2008, 12:39:21 AM »

It's both easy and dangerous to build and start a loop. e.g. I use one as a panic that flashes the lights.
The most basic endless loop can be created as follows.

Create a Dummy module with the same address as your macro.

Macro M1 ON - Trigger on an M1 signal
<execute commands>
delay 10 min
M1 On

The above will continue to execute indefinitely and if triggered again each additional loop will continue till purged. I strongly recommend using flags, elses, and/or time conditions to give one an exit point.
Logged
BVC let's me tell my camera where to go!
:) Murphy is my beta testing pal. He helps me find problems whether I like it or not. :)

Puck

  • Advanced Member
  • Hero Member
  • ******
  • Helpful Post Rating: 171
  • Posts: 1799
Re: Repeat a macro?
« Reply #7 on: March 27, 2008, 08:53:55 AM »

It's both easy and dangerous to build and start a loop. e.g. I use one as a panic that flashes the lights.
The most basic endless loop can be created as follows.

Create a Dummy module with the same address as your macro.

Macro M1 ON - Trigger on an M1 signal
<execute commands>
delay 10 min
M1 On

The above will continue to execute indefinitely and if triggered again each additional loop will continue till purged. I strongly recommend using flags, elses, and/or time conditions to give one an exit point.

I think this would be a nice addition to the User-Designed Working Macros section since it gets asked about a lot.  ;)
Logged

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 282
  • Posts: 10497
  • I don't work for X10, I use it successfuly!
Re: Repeat a macro?
« Reply #8 on: March 27, 2008, 09:07:53 AM »


I think this would be a nice addition to the User-Designed Working Macros section since it gets asked about a lot.  ;)

I have to agree with Puck!
But be sure to point out some of the Dangers of looping macros steven r when you post the macro!
It most likely will keep the "Looping macro issue" questions to a minimum! ;)
Logged
Please Read Topic:
General Forum Etiquette
Before you post!

steven r

  • Advanced Member
  • Hero Member
  • ******
  • Helpful Post Rating: 74
  • Posts: 2189
  • Halloween with X10
Re: Repeat a macro?
« Reply #9 on: March 27, 2008, 12:28:44 PM »

Logged
BVC let's me tell my camera where to go!
:) Murphy is my beta testing pal. He helps me find problems whether I like it or not. :)
 

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