🖥️ActiveHome Pro > User-Designed Working Macros
Artificial Sunset and Sunrise
bilyth:
ok thanks.
i will try that. I just thought i'd post a screen capture of the loop macro to make sure i have it right.
(i'm using 3 second delay for convenience while testing everything)
i didn't post the macro to start & stop the loop because it seems to work fine. So, what i can see happening is start/stop macro is triggered..it turns on the dummy switch..i can see that it triggers the loop macro..& then the light brightens one step..i can see the dummy switch go off then back on..then the loop macro icon flashes (as if it's triggered)..but the next increment in brightening doesn't turn on. Nothing happens after that..then the flag gets cleared.
While nothing is happening- if i manually flick the dummy switch on & off (by clicking the dummy icon)..it will trigger the rest of the macro making it jump incrementally each time i manually flick on & off. So, the steps seem to be all there. It's just not "triggering" the loop.
Anyways, i will try what you suggested.. but here's the screen capture just to see if i'm missing something.
ps yes, i'm avoiding the 3rd macro. if i can get it to work..these 2 macros should suffice for my purposes.
bilyth:
yeah, i tried it again. new file..different UC code for module & macros.
still no looping action.
steven r:
--- Quote from: bilyth on April 12, 2008, 11:10:33 PM ---....i can see the dummy switch go off then back on.....
--- End quote ---
While it shouldn't matter, the dummy switch shouldn't be receiving an off signal at all. It makes me wonder if something else is going on at the same time.
What do you see happening in the activity monitor?
In AHP under Tools / Preferences / Macro Operations check the box that says "'Issue 'On' instead of 'bright 100%'".
Then try adding an on command before the brighten command in the loop. Also even for the test I'd use a delay of at least 5-10 sec.
bilyth:
ok, your suggestions are helping. i can get some loop action now.
the issue i'm having is this: let's say my macro is set to slowly brighten 3% at a time.
if i run the macro with the lamp "on" but at 0%- it runs beautifully. But if i run it with the lamp starting as "off"..it will jump to ~40% level first, then slowly brighten by 3%.
This is a problem because i prefer to have this whole thing work from starting with the light "off" (& your instructions sound like they're geared towards a soft start module starting in the off position anyway).
Any ideas?
edit:
ok, experimented a bit more..i also notice this- if i run the macro starting at lamp "on" but 0%..the lamp will reach a visual brightness similar to %100 when it gets to around %50 (weird).
While, if i start the macro at lamp "off"..it will start at a visual brightness similar to %40 & brighten from there.
don't know if this hints at all to a solution to my problem. The biggest issue is that starting from "off" it won't start at 3% but rather similar to %40. i need to fix this.
ps i know you can't get a macro to call itself- that's why we're using this whole loop thing...but is it possible for a macro to call another macro?
steven r:
I use a combination of my above suggestions for my setup.
One thing I've discovered for my soft start wall switch is that is takes way more than 10 dims by 10% to go from full brightness down to almost no light. I don't know if this is true with all switches or just a unique feature / quirk of the new switches.
Once I do dim to the minimum, I can turn off the light and the example I gave does work for the brightening.
--- Quote from: bilyth on April 13, 2008, 03:22:13 PM ---...i know you can't get a macro to call itself- that's why we're using this whole loop thing...but is it possible for a macro to call another macro?
--- End quote ---
Yes. Via a dummy module of the same name just like when a macro uses a dummy module to call itself.
e.g. If you want macro M1 to call macro M2 you need a dummy module set as M2.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version