Turn off Specific Codes for Door Locks

Well, tried both rules from above. After trying both this is what is in my logs from the last solution given:

[dev:206]2024-06-06 15:11:50.678[error]groovy.lang.MissingMethodException: No signature of method: genericZigbeeLock.setCode() is applicable for argument types: (java.lang.String) values: [20,'1111','Lock Restrictions']
Possible solutions: setCode(java.lang.Object, java.lang.Object), getCodes(), setCode(java.lang.Object, java.lang.Object, java.lang.Object), hashCode(), deleteCode(java.lang.Object), getAt(java.lang.String) (method setCode)

[dev:205]2024-06-06 15:11:50.667[error]groovy.lang.MissingMethodException: No signature of method: genericZigbeeLock.setCode() is applicable for argument types: (java.lang.String) values: [20,'1111','Lock Restrictions']
Possible solutions: setCode(java.lang.Object, java.lang.Object), getCodes(), setCode(java.lang.Object, java.lang.Object, java.lang.Object), hashCode(), deleteCode(java.lang.Object), getAt(java.lang.String) (method setCode)

By the way I have two Kwikset 916 locks these are zigbee locks

Any help please.

Looks like you are trying to send the parameters to setCode as one single string? You have to define each parameter in the action by using "Add Another Parameter" button, the first one is a number, the other two are strings. You can see what the command is expecting by looking at the device page.

image

1 Like

I did do the actions like your above step in Select Actions to run. I even tried just doing a lock code by itself. That did not work either. I did a straight String for parameter type that looks like this,
Trigger event was "Mode Day", then did "Actions to Run", "New Action", "Set Variable, Mode or File, Run Custom Action", then "Run Custom Action", Selected "Lock" for Capability of action device", Selected the appropriate lock "Kwikset Lock 1", and "Kwikset Lock 2", Selected custom command "setCode", then parameter type was set to "string", the string value was "10,'1111','Test User'"

I then created the Wait in a separate Action and the deleteCode in another separate action.

But I get the error I mentioned above. I looked at the codes in the device and they were never put in from the Rule that I created.

Here is another related question: If you look at my string above, I added single quotes to both the lock code and the name of the code, but not to the slot. But when it shows after I created it, it shows '10,'1111','Test User''
that is single quote 10 comma, single quote 1111 single quote comma, single quote Test user single quote single quote.

Did I input the string wrong somewhere?

Thanks

Yes, that is wrong, you have to add the first as a number, then a second parameter as a string, then the last string. Each one is a separate parameter.

chrome_IUDkfpDOqR

2 Likes

Ok, let me try that.

Absolutely awesome! It works just as needed. I did a shortened test for deleting the code and all is great!

Thanks A LOT!

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.