X10 Community Forum

🖥️ActiveHome Pro => Plug-ins => Smart Macros => Topic started by: azbaja on November 16, 2006, 02:24:58 PM

Title: Smart Macro conditions?
Post by: azbaja on November 16, 2006, 02:24:58 PM
I would like to have my drive way lights come on at 50% at dusk then when a triger is sent (Activeeye) run up to 100% hold this for 2 minutes and back down to 50% and then of at dusk.

Seems real easy

but nighttine needs (Requires two Entries)  what are the Entries?

Seems to work just fine with no conditions but I have no need for the lights to be going on and off all day long.

Title: Re: Smart Macro conditions?
Post by: Puck on November 16, 2006, 02:31:52 PM
but nighttine needs (Requires two Entries)  what are the Entries?

The two condition entries are:


Quote
Seems to work just fine with no conditions but I have no need for the lights to be going on and off all day long.

You will definitely need conditions and maybe elses to make it work smoothly.  ;)
Title: Re: Smart Macro conditions?
Post by: Tuicemen on November 16, 2006, 02:36:38 PM
The wording in AHP is discieving(wrong) as I posted before ! ;)
Using that condition (or one of the others that state "requires 2 entries") doesn't require 2 entries  ::) ;) it "Counts As two Entries"
Hope that helps
Title: Re: Smart Macro conditions?
Post by: azbaja on November 16, 2006, 03:18:13 PM
here is the problem once I start adding conditions my lights do real strange stuff.  I sent one CM15A back thinking it was the problem,  Same thing happens with the new CM15A.

I ran for a week with just the remote,  in fact I have been doing it for years now with no random light problems etc.

Then after the Macros run for about an hour it turns on a couple sets of lights that are not even part of the macro.

When I look at my log it seems to send out 2 of every comand.  and just starts to loop them and over etc.
Title: Re: Smart Macro conditions?
Post by: Puck on November 16, 2006, 03:37:35 PM
Try preventing retriggers with flags as I posted in your other thread. Smart Macro order after trigger? (http://www.x10community.com/forums/index.php?topic=10941.0)
I don't know what strange things happen from multiple triggers, because I prevent them.

If you still have problems, you will have to give more details of your setup and your macros.  ;)
Title: Re: Smart Macro conditions?
Post by: Don N on November 16, 2006, 09:19:33 PM
azbaja -- If I understand your first post, you want to turn on your drive way lights at 50% at dusk. Then turn up to 100% when motion is detected and hold for two minutes and then reduce to 50%.  Then turn off at dawn.

I've done something similar with three macros, so try this.  The first macro (with timer) turns on the lamp at 50 % at dusk.  The second macro (with timer) turns off the lamp at dawn.  The third macro increases the lamp to 100% if it's nighttime (and is triggered by the motion sensor) and holds it for 30 seconds and then reduces the lamp intensity to 50%.

Hopefully, I've understood your needs.
Title: Re: Smart Macro conditions?
Post by: azbaja on November 17, 2006, 07:42:39 AM
azbaja -- If I understand your first post, you want to turn on your drive way lights at 50% at dusk. Then turn up to 100% when motion is detected and hold for two minutes and then reduce to 50%.  Then turn off at dawn.

I've done something similar with three macros, so try this.  The first macro (with timer) turns on the lamp at 50 % at dusk.  The second macro (with timer) turns off the lamp at dawn.  The third macro increases the lamp to 100% if it's nighttime (and is triggered by the motion sensor) and holds it for 30 seconds and then reduces the lamp intensity to 50%.

Hopefully, I've understood your needs.

Yes,  just like that,  Then toss in the one that turns the camera on.
Title: Re: Smart Macro conditions?
Post by: azbaja on November 17, 2006, 07:50:01 AM
Working with Digital Logic tables as part of my job I would think I could master a flow chart.  Who came up with this a 3rd grader?

Now I see the errors of my ways and will split thigs into smaller chunks.  Do we have a file upload down load area to look at samples of what other people have done?  Would like to rip into a full working set up.

And from what I can see the If Then Else is not is as logic people would think it should be.   Last we have on PC and in CM15... ::)

Thanks

Title: Re: Smart Macro conditions?
Post by: TakeTheActive on November 17, 2006, 12:06:39 PM

...Do we have a file upload down load area to look at samples of what other people have done?  Would like to rip into a full working set up.

And from what I can see the If Then Else is not is as logic people would think it should be.

If you, and several others, are willing to:

[/color][/size][/b]
here's what I propose:


So, if anyone is interested in partifcipating, start contributing in THIS thread. If I see enough interest, I'll implement the STICKY and move everything over.
Title: Re: Smart Macro conditions?
Post by: azbaja on November 17, 2006, 01:56:54 PM
I gave it a try with the new macro's split  up with G house code as my Ghost area  get it G for Ghost :)  Seems to work  ;D

Ghost in the machine is now true or could it be not so true as my lights are working like normal for the test macro and Ghost Modules I set up,  Now just need to see if the advance funtions work  VangCamera etc.

Thanks
Title: Re: Smart Macro conditions?
Post by: Puck on November 18, 2006, 12:17:42 PM
So, if anyone is interested in partifcipating, start contributing in THIS thread. If I see enough interest, I'll implement the STICKY and move everything over.

I think a Macro Examples thread would help eliminate a lot of repeat questions and be a good link to direct some questions to.

I'm gonna provide another here as a response to another post (hopefully to be moved later).

Call me a super newbie but even after reading through all of these forums, I have still yet to tie a motion sensored macro to a simple sound file.  Some one please help!

Triggering a sound file from a Macro

Note: In the example I use a flag to elimate multiple sounds from occuring at once, and only occurring once per minute. The flag & delay parts of the following example are optional and can be removed.

(http://www.geocities.com/puckx10/macros/flag_control/modules.jpg)
Dummy Switch & Macro

(http://www.geocities.com/puckx10/macros/flag_control/flag_control.jpg)
Macro with Flag Control
Due to geocities free Site closing I attached images below, Dave_x10_L
Title: Re: Smart Macro conditions?
Post by: -Bill- (of wgjohns.com) on November 21, 2006, 01:29:06 AM
Puck,

Playing the "Lowest Common Denominator" for the moment...

I can't find "C:X10Soundfrontdoor.bat"   :'(

... or, next up on the food chain...

Can you post a copy of "C:X10Soundfrontdoor.bat" ?

 ;) ;D
Title: Re: Smart Macro conditions?
Post by: Puck on November 21, 2006, 07:10:31 AM
"C:\X10Sound\frontdoor.bat" is the path to my batch file created to execute a ".WAV" using Tuicemen's X10WavPlayer[/color] (http://www.x10community.com/forums/index.php?topic=10730.msg61026#msg61026).

Here is what my "frontdoor.bat" file contains:

@echo off
X10WavPlayer frontdoor.wav 0


Note: frontdoor.wav is the what I created at AT&T Labs: Text-To-Speech (TTS) (http://www.research.att.com/%7Ettsweb/tts/demo.php)
Title: Re: Smart Macro conditions?
Post by: -Bill- (of wgjohns.com) on November 21, 2006, 11:29:26 PM
That's better Puck!  :)

Title: Re: Smart Macro conditions?
Post by: TakeTheActive on December 03, 2006, 02:44:57 PM
Yet another GOOD IDEA, at least IMHO, that " died on the vine " even before it got started. :( :-[ :-\ :'(

With 6600+ current members, I don't think that it's fair to expect the dedicated, small handful of Volunteers to do *EVERYTHING*. >:(

Certainly, someone else (besides Puck), knows how to:



So, if anyone is interested in participating, start contributing in THIS thread. If I see enough interest, I'll implement the STICKY and move everything over.

I think a Macro Examples thread would help eliminate a lot of repeat questions and be a good link to direct some questions to.

I'm gonna provide another here as a response to another post (hopefully to be moved later).

Come on now folks!
Step up to the plate and give something back to *YOUR* "
Community"!!

Certainly, with the *VAST* Archives of information stored here,
*YOUR* "
Community" *MUST* have given something useful to you!!!
Title: Re: Smart Macro conditions?
Post by: JERRY VARN on December 05, 2006, 05:11:42 PM
i use a macro that set flag 11 at dusk and clears it at dawn for a night time condition. that way it only requires 1 entry.
first macro looks for flag 11  on and checks that the lights are off.  ( turn on light @ 50%)
else looks for flag 11 on and checks that the lights are on  ( light to 100% ,wait 2 minutes , lights to 50% )
that seems to work for me. ( the night time condition can't be used because it also requires 2 time entry's )
note: i'm not sure what the system uses flags for but i do know that 1,15 keep showing up set so don't use 1 or 15 , flag 11 seems to be safe so far)   good luck jerry
Title: Re: Smart Macro conditions?
Post by: steven r on December 05, 2006, 05:47:51 PM
... i'm not sure what the system uses flags for but i do know that 1,15 keep showing up set so don't use 1 or 15...
You should stay away from flag 16 for the same reason.
Title: Re: Smart Macro conditions?
Post by: Gilbert on September 22, 2007, 10:38:24 PM
Hello Puck,

(http://www.geocities.com/puckx10/macros/flag_control/flag_control.jpg)
Macro with Flag Control

Where can I find this usefull condition ? I didn't find a condition where I can put a :

IF THIS IS TRUE => If these flags are Off !

I have smartmacro enabled and I have only conditions about time, when a certain module is on, but nothing about flags ! ??? ???  Am I lost somewhere ?

Thank you for your reply.
Gilbert

[Updated] : silly gilbert ! I found that I disabled the smart macro wizard and kept only the simple interface with conditions only... Sorry and thanks for the help  ;D
Gilbert
Title: Re: Smart Macro conditions?
Post by: Puck on September 23, 2007, 10:32:37 AM
[Updated] : silly gilbert ! I found that I disabled the smart macro wizard and kept only the simple interface with conditions only... Sorry and thanks for the help  ;D
Gilbert

Thanks for posting an update. I was not aware that conditions disappeared with the simple interface selection of smart macro preferences. They should have called it "Smart Macros On & OFF" instead.  ::)