Need Help with Advanced command to write variable

Richard & Agile,
I’m trying what Agile posted on the VeraAlerts thread (below) but it is not working for me.

My settings below and in screen cap…

ServiceId = urn:schemas-micasaverde-com:device:DoorLock:1
variable = sl_UserCode
value = 0
device = 137

I have the same issue with my Yale lock, the last user (or the last user plus the current user) using the following PLEG condition:
ENT_Screen_Lock_JohnPin and !ENT_Screen_Locked

The reason is the Yale lock would send the Unlock status update before the user PIN (aka SL_UserCode).

I fixed it by having the action change the SL_UserCode device variable every time a user pin trigger is executed. as shown in the image below to something like 0. This ensures that last code is cleared.

PS - Replace 81 with the device ID of your lock.[/quote]

I think I figured it out.

ServiceId needs to be… urn:micasaverde-com:serviceId:DoorLock1

Not what is in the Device properties Advanced tab - correct?