[quote=“blingal, post:29, topic:164851”]It took me a while to figure this out, but finally the solution was very simple. Hopefully this will help someone along the way
[sub]luup.variable_set( “urn:micasaverde-com:serviceId:ZWaveDevice1”, “ConfiguredVariable”, “[Parameter no],[bytes for ex 1d],[Parameter value]”, Device ID )
luup.variable_set( “urn:micasaverde-com:serviceId:ZWaveDevice1”, “VariablesSet”, “[Parameter no],[bytes for ex 1d],[Parameter value]”, Device ID )[/sub]
For example here I am setting the max dim level of a Fibaro dimmer to 15% by setting variable 12 which is 1 byte decimal to the value of 15:
[sub]
luup.variable_set( “urn:micasaverde-com:serviceId:ZWaveDevice1”, “ConfiguredVariable”, “12,1d,15”, 48 )
luup.variable_set( “urn:micasaverde-com:serviceId:ZWaveDevice1”, “VariablesSet”, “12,1d,15”, 48 )[/sub]
IMPORTANT: Use the advanced tab in the scene and execute a “Reconfigure command” - This will send the parameters to the device.
You can set multiple parameters at once by serialising the command, ie:
[sub]luup.variable_set( “urn:micasaverde-com:serviceId:ZWaveDevice1”, “ConfiguredVariable”, “4,2d,6000,3,1d,1”, 95 )[/sub]
which is parameter 4, 2bytes decimal, value 6000, parameter 3, 1 byte decimal, value 1
The parameters will not take effect until you send and complete the reconfigure command.[/quote]
“luup.variable_set( “urn:micasaverde-com:serviceId:ZWaveDevice1”, “ConfiguredVariable”, “12,1d,15”, 48 )
luup.variable_set( “urn:micasaverde-com:serviceId:ZWaveDevice1”, “VariablesSet”, “12,1d,15”, 48 )”
What’s the difference between these two in reality?
“The parameters will not take effect until you send and complete the reconfigure command.”
Is this another code to send or an option in the scene