Jump to content
C4 Forums | Control4

Auto-lock driver programming


Recommended Posts

@RyanE created a great driver. One function I'm struggling with is programming the auto lock to enable/disable when using a button press. I have Yale locks zigbee.  For example when I have a contractor in and they need to work outside and inside then I want to turn off the auto lock feature. I usually have the auto-lock set to 120. Before using this driver, I programmed this functionality based on the Yale lock driver but with the Auto-lock driver you have to have the Yale driver auto-lock always off. 

Below is the programing I have for turning it off. Turning it on is just re-enabling it (single line of code). I also have it automatically re-enable at midnight. Any idea why it's not working? Also if I get this working, will the driver switch back to the custom time length that was there before?

image.png.7c837642cf8d919899c4d3e88cd6bb81.png

Link to comment
Share on other sites


I can't see any reason why it wouldn't be working.

I do that with a button on a Gen1 3-button keypad.

I have it toggle a global variable, and then if it's set, it calls a macro that enables auto lock on all my door locks, and if it's not set, it disables the auto lock on all the door locks.  Your programming should do the same thing, but of course, for one lock.

Enable / Disable does not change the delay time or any other properties setup in the auto lock driver.

RyanE

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.