Help creating Scene to Enable/Disable Auto Relock on Yale Deadbolt

Has anyone been able to use a scene to enable and disable the auto relock on a yale deadbolt? I have gotten it where I can go into the Device Options tab of the lock and change the Auto Relock to “0” to turn it off and “255” to turn it on. I just don’t see how I can do this in the scene wizard or with LUUP code.

Any help would be appreciated.

A little bit of progress. By running the following luup code I can go to the Device Option page in the settings for the lock and see the “Desired Value” changed but not the “Current Value”.

[code]local LOCK = 13
local LOCK_SID = “urn:micasaverde-com:serviceId:ZWaveDevice1”
local DELAY = 0

local varSet = “1-Silent mode (1-3),1d,2-Auto relock (0 or 255),1d,255,3-Relock time (5 or 255),1d,60,4-Wrong Code Entry Limit (1-7),1d,5-Language (1-3),1d,6-Radio event reporting (0 or 255),1d,7-Shut down time after wrong code entries (1-255),1d,8-operating mode (0=normal 1=vacation 2=privacy 3=no rf),1d,”

luup.call_delay(“lockEnable”,DELAY)

function lockEnable()
luup.variable_set( LOCK_SID, “VariablesSet”, varSet, LOCK)
luup.call_action(“urn:micasaverde-com:serviceId:HomeAutomationGateway1”, “Reload”, {}, LOCK)
return true
end[/code]

Before adding the last line in the function “luup.call_action” I had to go to the webpage and click the “Reload” button to get the “Desired Value” to show. Now my problem is the lock will fail on trying to reconfigure most of the time so the “Desired Value” doesn’t make it to the “Current Value”.

Does anyone have any better ideas on how to do this. Just as a note when I would manually go to the Device Options page and change the value back and fourth from 0 to 255 and close out and click the “Save” button it would work.

I think you are better off creating a schedule to simply enable or disable the feature during say a 5 hour window when the party is going on.

I don’t think this is a good idea. Changing device parameters requires reconfiguration, so it may not take effect for a long while, not to mention it requires a LUUP reload, which may interrupt other LUUP code/scenes.

If you plan to enable/disable auto-lock under different situations, I suggest using a scene with timers or using one of the timer plugins like PLTS to do an auto-lock thru Vera.

@cue003 - If I could control it with a schedule then it would be easier to tie it to a scene and use it when I needed not take the time to setup a schedule.

@capjay - I agree, i don’t like the fact that it has to reconfigure the lock each time and leave a change of an error during the configuration process.

I ended up disabling the the auto relock on the lock and use a scene to lock the door with a two minute delay with the door being unlocked as the trigger. This works as long as Vera is communicating and gets the unlock signal from the door. To disable I have to go to the web interface and uncheck the enable chechbox for the trigger. What I am wanting is an easy way to have a button / toggle on my iPhone/iPad to quickly enable and disable the auto relock.

I’d add a virtual switch. The scene would only run if the virtual switch is ON. Many Vera iPhone apps support the virtual switch, so that would be your button to enable/disable the relock.

I finally played with PLEG. Now I just need Homewave to add the PLEG device so I can ARM and BYPASS it. It will relock the front door after 2 minutes while it is armed.

Here is my report:
Triggers
Name Description
frontDoorUnlocked Front Door Lock is opened

Conditions
Name Expression
FrontDoorOpened frontDoorUnlocked; NOW > 2:00

Actions
Actions for Condition: FrontDoorOpened
Device Action Arguments
Front Door Lock SetTarget newTargetValue=1

Reopening this topic because I am searching for yale users for deadbolt touch screen door lock.
I have installed one but When I pass the back of hand to close she enter in password screen and try open and when the bolt is out in closed position and i pass the hand to activate and get password she try lock the door.

Summary: she is inverted, has some place to change the sense of the things and turn it in correct mode ?
My yale is installed in right side of the door (inside view) is it the cause of the problem ? I have another installed in left side and no problems with that.

Thanks for help.

There is an option in the lock configuration for “handing”. Look in the instruction manual for the exact sequence of keypresses.

[quote=“Piwtorak, post:8, topic:175626”]Summary: she is inverted, has some place to change the sense of the things and turn it in correct mode ?
My yale is installed in right side of the door (inside view) is it the cause of the problem ? I have another installed in left side and no problems with that.[/quote]

  1. check that you installed the deadbolt correctly, with the correct side up.
  2. Yale deadbolts automatically detect the “handing” (direction to open and close) when they are first installed, and saves the setting. if the deadbolt wasn’t fully installed when inserting the batteries 1st time, the handing detection could have fail. You’ll need to reset to default factory settings (see manual) and insert batteries after the deadbolt is installed properly to allow it to discover the correct handing.

Capjay,

You help me a lot with your hint. I had a installation problem, then i made the hole of the door lock a little bit more wide and the door lock did the process to recognize the latch position and all works fine !

I think something in this process needs free internal space, and in my case i did not had this space.

Thanks !