I am fairly new to Smartthings, and really new to any custom projects and haven’t done any coding in many years. I have a MimoLite device that I want to use to open an existing gate lock on an intercom system. I have the MimoLite installed and working, however the momentary relay time to too short to unlock the gate. After doing research, I know that I need to change Parameter 11 on the MimoLite, however I have no idea how to do that. Every reference I can find is for much more complex projects, all I want to do is change the one parameter. Any advice would be appreciated. If anyone was willing to post step by step instructions, or the code for a generic MimoLite device type (I think this is what is needed?) would be incredibly helpful. Thank you.
Thanks for the help. According to the MimoLite User Manual, the default setting for the momentary option is 500ms. I would like to change theirs to somewhere between 2 and 5 seconds. This can be done by changing parameter 11 on the MimoLite, however I cannot figure out how to do that.
Below I found the code to set the parameter 11 as you requested.
Also, I think that if you leave in the P5 jumper this parameter may not be needed.
Did you remove the P5 jumper yourself? Or is the P5 jumper not installed by default?
I did NOT remove my P5 jumper and I think smarttthings is sending the on and off command to simulate momentary switch.
But in the source code there is some comments about sending down the delay to the mimolite which is what you asked for. Changing Parameter 11
** This device type implements a “Configure” action tile which will set the momentary switch timeout to 25ms
** and turn on the powerout alarm.
Here is the code, the 25 in brackets is the 25 milliseconds I think
def configure() {
log.debug “Configuring…” //setting up to monitor power alarm and actuator duration
delayBetween([
zwave.associationV1.associationSet(groupingIdentifier:3, nodeId:[zwaveHubNodeId]).format(),
zwave.configurationV1.configurationSet(configurationValue: [25], parameterNumber: 11, size: 1).format(),
zwave.configurationV1.configurationGet(parameterNumber: 11).format()
])
}
You are going to want to install this device handler:
And change the timeout value from 25ms to whatever you need.
In the documentation it states that the momentary delay in the mimolite is only used if the P5 jumper is removed.