Author |
|
keepersg Newbie
Joined: July 23 2007 Location: United States
Online Status: Offline Posts: 29
|
Posted: December 23 2007 at 12:57 | IP Logged
|
|
|
I can't find this discussed in the forum though I'm sure I'm not the first.
I wrote a small macro to dim up my wife's bed lamp slowly in the morning for use as an alarm clock. It uses a global variable which is incremented once/second to set the Insteon level of the lamp in a loop until the max level I've set is reached. She uses a controllinc for direct control of it. The macro activates a trigger whic responds to an off command from the contollinc and exits the macro and turns the light off.
Here's the problem: the SDM/PLC can't keep up with the macro at a 1 second interval. So, there often several on commands waiting to go when the off trigger fires. Hence, the lamp comes right back on. This (although somewhat amusing when you're awake) has a very low WAF early in the morning. Any thoughts on how to fix this would be much appreciated.
|
Back to Top |
|
|
bhlonewolf Senior Member
Joined: March 29 2007
Online Status: Offline Posts: 198
|
Posted: December 23 2007 at 13:16 | IP Logged
|
|
|
Instead of ramping it "manually" in a loop, what about just turning it on and specifying a slow ramp rate, say, 30 seconds or whatever is the closest specifiable rate? I'm not sure if you can do this with a direct command, but you could put it as a group and have the macro trigger the group... just a thought.
|
Back to Top |
|
|
keepersg Newbie
Joined: July 23 2007 Location: United States
Online Status: Offline Posts: 29
|
Posted: December 23 2007 at 20:20 | IP Logged
|
|
|
bhlonewolf wrote:
Instead of ramping it "manually" in a loop, what about just turning it on and specifying a slow ramp rate, say, 30 seconds or whatever is the closest specifiable rate? I'm not sure if you can do this with a direct command, but you could put it as a group and have the macro trigger the group... just a thought. |
|
|
This works quite well. Thanks for the suggestion and its solved the immediate problem. My intent, though, was to write a more general purpose routine that could be adjusted programatically in regards to rate and final light level. I'm also interested in the general problem of how you can make certain that Insteon commands are executed synchronously with macro program flow.
|
Back to Top |
|
|
krommetje Super User
Joined: December 29 2004 Location: Netherlands
Online Status: Offline Posts: 695
|
Posted: December 24 2007 at 04:00 | IP Logged
|
|
|
A macro similar to what you want is posted in the repository (simulated sun-up/down)
is that a solution?
|
Back to Top |
|
|