Help with Rule Machine to set Lock Code

For the life of me I can't figure out what I'm doing wrong. I've used Maker API and webhooks to set door codes remotely with zero issues. I use the generic Z-wave lock driver.

All I want to do is use Rule Machine to set a lock code on one of my doors. I'll be using variables later on but I can't get the most basic command to work. I want to set a code in position 9, code 1234, and the name Test. I've tried this every which way as you can see in the logs there but I keep getting the same error message displayed. Here's the rule I set up and I've tried this adding ' ' around the code and the name, adding " " around them, adding spaces, no spaces, etc. etc.

Here are all the variations I tried:

And here is the error I get with every single one of them:

The setCode method requires three parameters, are you just sending one?

1 Like

I had the same problem.

Thankfully I found this post by @jtp10181

2 Likes

No, I was sending all three: position, code, name. I tried it in every conceivable (I thought) configuration of those three, as you can see in the log here:

Am I doing something dumb here?

Ahhh, oh wait I finally get it. I had to add a number parameter separately and then two string ones separately. Once I did that they just showed up as looking exactly the same as if I entered a single string parameter with the three components, i.e. ('9, '1234', 'Test').

Thank you all for your help!

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