LM465 Dimming Problem
Posted: Sun Jan 08, 2006 12:02 am
I am a very Newbie to HouseBot and I am trying something simple. I have a lamp on a LM465 lamp module set up through a CM11a. I have made a device that is called Lamp and I can go to the "Direct X10 Command" and turn it on and off. this works fine so I know that the confguration is somewhat correct.
I then made a script device called LampSlow that has the following script attached.
SetPropertyValue "Lamp.Direct X10 Command", "Off"
For nLevel = 1 to 32
SetPropertyValue "Lamp.Direct X10 Command", "Bright;1"
TraceMessage("Sent Bright Command")
Sleep( 1000 )
Next
I expected it to turn off the lamp and the slowly bring it to full brightness. What I see is that the lamp turns off and then in a second or two goes to full brightness. When I look at the log I see a bunch of "Sent Bright Command" entries. I can also see that the script takes about 30 seconds to run, so it seems to be going through the whole script.
What am I doing wrong? I have tried this with two differnt LM465's to make sure that it is not a hardware thing.
Can I do what I want?
Stevendm
I then made a script device called LampSlow that has the following script attached.
SetPropertyValue "Lamp.Direct X10 Command", "Off"
For nLevel = 1 to 32
SetPropertyValue "Lamp.Direct X10 Command", "Bright;1"
TraceMessage("Sent Bright Command")
Sleep( 1000 )
Next
I expected it to turn off the lamp and the slowly bring it to full brightness. What I see is that the lamp turns off and then in a second or two goes to full brightness. When I look at the log I see a bunch of "Sent Bright Command" entries. I can also see that the script takes about 30 seconds to run, so it seems to be going through the whole script.
What am I doing wrong? I have tried this with two differnt LM465's to make sure that it is not a hardware thing.
Can I do what I want?
Stevendm