ts1234
October 8, 2023, 6:38pm
1
I know Schlege BE469 locks are not approved devices, but it's what I have.
I'm trying to use Rule Machine to add and delete codes.
But the only options I see only lets me add the code...not a user or position and it doesn't seem to work when I run it.
Is there a way to do this?
Try the built-in Lock Code Manager app. I do not know if it works with your particular lock but it is designed to manage locks and codes.
aaiyar
October 8, 2023, 6:56pm
3
You can; I have done this routinely.
Unfortunately, I don't have my hubs running right now, or I would cut and paste a couple rules for you.
The thing you have to know is that setCode() and deleteCode() take arguments (parameters in RM). From the documentation:
deleteCode(codeposition) takes a single parameter, codeposition, which has to be a NUMBER.
setCode(codeposition, pincode, name) takes three parameters.
codeposition must be a NUMBER
pincode and name must be STRINGS
Yes, but there's a built-in driver for them, which supports setCode() and deleteCode() just fine.
Edit: Here's an example from @bravenel
Are you on the latest build? 2.3.0.124.
I have no problem creating an action to set a lock code using Custom Action in RM 5.1, and using a Number variable for the position number (the first parameter):
[Screen Shot 2021-12-29 at 11.19.57 AM]
The three parameters should be Number, String, String.
1 Like
ts1234
October 8, 2023, 7:25pm
4
THANKS! It would be nice if it was clear in rule machine what the right syntax for the fields are.
I know...that's a newbie thing
1 Like
aaiyar
October 8, 2023, 8:36pm
5
I understand where you're coming from. But believe me, it is all in the documentation. So in RM, when you use a custom action, there are two ways to know what parameters can be used, and their type (String, Number etc).
You can look up the command on the device page for the device in question (in this case your lock).
You can look up the Hubitat driver capability list. I have tended to go here - because I find it easier to understand. This is the link that I use:
1 Like
ts1234
October 8, 2023, 8:38pm
6
That is EXACTLY what I need THANKS!!!!
1 Like
system
Closed
October 7, 2024, 8:39pm
7
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.