Command Class SwitchMultiLevel Help
Posted: 28 Apr 2014 08:29
I'm having a bit of trouble with the SwitchMultiLevel command class and would appreciate some help. I'm using a GE Lamp Module and a GE/Jasco in-wall dimmer switch, and in both cases I find that the level is not accurately set in data.level after being Set unless I issue the Set command twice.
For example, if I run the following:
At this point, the light does turn on from 0% to 50%. The room goes from dark to partially illuminated.
I then check the level of the device, expecting it to be 50:
I then run the Set command a second time.
And then check the value. This time, it's correct.
I can reproduce this time and time again. It always takes two issues of the Set command before I can get the value. Any advice?
For example, if I run the following:
Code: Select all
/ZWaveAPI/Run/devices[9].instances[0].commandClasses[0x26].Set(50)
I then check the level of the device, expecting it to be 50:
Code: Select all
/ZWaveAPI/Run/devices[9].instances[0].commandClasses[0x26].data.level
{"name":"level","type":"int","value":4,"updateTime":1398662459,"invalidateTime":1398662458}
Code: Select all
/ZWaveAPI/Run/devices[9].instances[0].commandClasses[0x26].Set(50)
Code: Select all
/ZWaveAPI/Run/devices[9].instances[0].commandClasses[0x26].data.level
{"name":"level","type":"int","value":50,"updateTime":1398662558,"invalidateTime":1398662557}