Lutron HWI module dimming problem
maxifox
Posts: 209
Using this code snippet (Keypad Button Hold) from the the interface specification v.2.1
button_event[TP, 26]
{
push:
{
// Simulate button press on keypad button 4
send_command vHWI, ?K:P:[1:8:2:1]:4?
}
release:
{
// Nothing to do on release. It?s implied.
}
hold[10]:
{
// Button has been held for 1 second
// Simulate button hold on keypad button 4
send_command vHWI, ?K:H:[1:8:2:1]:4?
}
}
will ramp up/down dimming untill 100% or 0% is reached.
I expect ramping to be stopped immediatelly after releasing the button (without issuing K:R command explicitly in release event - this is what is written in documentation)
However, in order to stop ramping, I have to issue K:R command in release event despite to the docs (tested).
Am I missing something or documentation is wrong?
button_event[TP, 26]
{
push:
{
// Simulate button press on keypad button 4
send_command vHWI, ?K:P:[1:8:2:1]:4?
}
release:
{
// Nothing to do on release. It?s implied.
}
hold[10]:
{
// Button has been held for 1 second
// Simulate button hold on keypad button 4
send_command vHWI, ?K:H:[1:8:2:1]:4?
}
}
will ramp up/down dimming untill 100% or 0% is reached.
I expect ramping to be stopped immediatelly after releasing the button (without issuing K:R command explicitly in release event - this is what is written in documentation)
However, in order to stop ramping, I have to issue K:R command in release event despite to the docs (tested).
Am I missing something or documentation is wrong?
0
Comments
If you are referring to the documentation in the BUTTON_EVENT sample where under the RELEASE handler it indicates it is implied, I agree it is confusing. I suspect that it is a copy/paste error and that the module is sending a Lutron KP Hold command when you request the same. In Lutron, the Hold is effective until a Release is generated. Although the documentation might be a little confusing, I would follow the Hold command with a Release command when you want the Ramp up or down action to terminate.
I don't use the AMX module but I always send Lutron a KP Release following a KP Press or KP Hold. You might check with AMX Tech Support so they can 'peek' into the module for you but I suspect they are not generating the Release and that you will have to instead.
"The manual example for the Keypad Hold function is incorrect in that a release must be programmed. It is not implied."
They will have corrected this soon... Thanks again all for help.