A little bit of progress. By running the following luup code I can go to the Device Option page in the settings for the lock and see the “Desired Value” changed but not the “Current Value”.
[code]local LOCK = 13
local LOCK_SID = “urn:micasaverde-com:serviceId:ZWaveDevice1”
local DELAY = 0
local varSet = “1-Silent mode (1-3),1d,2-Auto relock (0 or 255),1d,255,3-Relock time (5 or 255),1d,60,4-Wrong Code Entry Limit (1-7),1d,5-Language (1-3),1d,6-Radio event reporting (0 or 255),1d,7-Shut down time after wrong code entries (1-255),1d,8-operating mode (0=normal 1=vacation 2=privacy 3=no rf),1d,”
luup.call_delay(“lockEnable”,DELAY)
function lockEnable()
luup.variable_set( LOCK_SID, “VariablesSet”, varSet, LOCK)
luup.call_action(“urn:micasaverde-com:serviceId:HomeAutomationGateway1”, “Reload”, {}, LOCK)
return true
end[/code]
Before adding the last line in the function “luup.call_action” I had to go to the webpage and click the “Reload” button to get the “Desired Value” to show. Now my problem is the lock will fail on trying to reconfigure most of the time so the “Desired Value” doesn’t make it to the “Current Value”.
Does anyone have any better ideas on how to do this. Just as a note when I would manually go to the Device Options page and change the value back and fourth from 0 to 255 and close out and click the “Save” button it would work.