Smart Macro conditions?

Started by azbaja, November 16, 2006, 02:24:58 PM

Previous topic - Next topic

azbaja

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.


Puck

Quote from: azbaja on November 16, 2006, 02:24:58 PM
but nighttine needs (Requires two Entries)  what are the Entries?

The two condition entries are:


  • If Time is Greater Than or Equal To
  • If Time is Less Than or Equal To

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.  ;)

Tuicemen

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
Please Read Topic:
General Forum Etiquette
Before you post!

azbaja

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.

Puck

Try preventing retriggers with flags as I posted in your other thread. Smart Macro order after trigger?
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.  ;)

Don N

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.

azbaja

Quote from: 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.

Yes,  just like that,  Then toss in the one that turns the camera on.

azbaja

#7
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


TakeTheActive

Quote from: azbaja on November 17, 2006, 07:50:01 AM

...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:


  • Volunteer
  • Contribute
  • Test
  • Proofread
[/color][/size][/b]
here's what I propose:

  • I'll create a STICKY in this forum titled "TESTED Smart Macro Examples".
    .
  • Each Contributor will maintain *ONE* post with their individual TESTED & WORKING Macros. (i.e. Use MODIFY)
    .
  • Non-Contributor's will *NOT* post in this thread. [Start a NEW thread and LINK to the Contributor / Macro you wish to discuss.]
    .
  • I, with most likely Tuicemen's help, will maintain a LINKed INDEX of the TESTED Smart Macro Examples in the first post.

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.
Low Post Count != Low Knowledge - High Post Count != High Knowledge ;)

ADVICE TO X-10 NEWBIES FROM AN X-10 OLD-TIMER

azbaja

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

Puck

#10
Quote from: TakeTheActive on November 17, 2006, 12:06:39 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).

Quote from: noudo on November 18, 2006, 02:54:44 AM
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

  • Create a Dummy Switch (appliance switch only) and give it an address
  • Create a Macro that triggers from the Dummy Switch
  • Inside this Macro call a batch file to execute the sound file.
  • Call this Dummy Switch from another Macro that gets triggered by the Motion Sensor

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.


Dummy Switch & Macro


Macro with Flag Control
Due to geocities free Site closing I attached images below, Dave_x10_L

-Bill- (of wgjohns.com)

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
-Bill- (of wgjohns.com)
bill@wgjohns.com

In the real world, the only constant is change.

When I'm online you can find me in the Home Automation Chat Room!

Puck

"C:\X10Sound\frontdoor.bat" is the path to my batch file created to execute a ".WAV" using Tuicemen's X10WavPlayer[/color].

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)

-Bill- (of wgjohns.com)

-Bill- (of wgjohns.com)
bill@wgjohns.com

In the real world, the only constant is change.

When I'm online you can find me in the Home Automation Chat Room!

TakeTheActive

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:


  • Write a MACRO.
    .
  • Capture some SCREEN PRINTS.
    .
  • Upload the results to a post.

Quote from: Puck on November 18, 2006, 12:17:42 PM
Quote from: TakeTheActive on November 17, 2006, 12:06:39 PM

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!!!
Low Post Count != Low Knowledge - High Post Count != High Knowledge ;)

ADVICE TO X-10 NEWBIES FROM AN X-10 OLD-TIMER