Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: Desynchrony Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
keepersg
Newbie
Newbie


Joined: July 23 2007
Location: United States
Online Status: Offline
Posts: 29
Posted: December 23 2007 at 12:57 | IP Logged Quote keepersg

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 View keepersg's Profile Search for other posts by keepersg
 
bhlonewolf
Senior Member
Senior Member


Joined: March 29 2007
Online Status: Offline
Posts: 198
Posted: December 23 2007 at 13:16 | IP Logged Quote bhlonewolf

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 View bhlonewolf's Profile Search for other posts by bhlonewolf
 
keepersg
Newbie
Newbie


Joined: July 23 2007
Location: United States
Online Status: Offline
Posts: 29
Posted: December 23 2007 at 20:20 | IP Logged Quote keepersg

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 View keepersg's Profile Search for other posts by keepersg
 
krommetje
Super User
Super User
Avatar

Joined: December 29 2004
Location: Netherlands
Online Status: Offline
Posts: 695
Posted: December 24 2007 at 04:00 | IP Logged Quote krommetje

A macro similar to what you want is posted in the repository (simulated sun-up/down)

is that a solution?
Back to Top View krommetje's Profile Search for other posts by krommetje Visit krommetje's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum