Message Override shows Door Lock User Name when Vera does the unlock?

The below Override is showing a User Name when Vera itself, not a manually input code, is unlocking the Door Lock? Is there a way to make it show me a User Name only when an actual user code is input? Thx

OPEN Laundry Door {device([172].service[urn:upnp-org:serviceId:VSwitch1].Status) | Choose(0={tone:3},1={tone:1})}{Device([138].Lock.sl_UserCode) | String.LockUserName()}

If that alert is tied to a PIN entered event … it should always have a user …

This is not valid in other contexts … you will need to have an appropriate message.

Richard please help me understand the inconsistency I’m seeing…

I have 3 identical Schlage door locks, same firmware: Vera’s Setting tab shows 6,3,42,88,21
All 3 locks set have Notification set on Open, in each individual device property tabs
VeraAlert Message Override is also identical for all of them (in first post).

  • 1 ‘working’ Lock…
    shows User Name in VeraAlerts when keypad is used.
    shows User Name in VeraAlerts when I trigger an Unlock from the Web UI? It is using the last/bottom/lowest Name in Vera’s Web UI list. Why would it show a User Name when unlocking from the Web UI?

  • 2 ‘non-working’ Locks…
    does not show User Name in VeraAlerts when keypad is used or via Vera’s Web UI.

I set a new code for the Front Door yesterday named ‘service’ and shortly after it was used. But the Name never showed in VA.

from EventWatcher…

[code]
2014-04-25 09:01:20.000, E, 137, Front Door Lock, Front Door Lock, DL_CODE_CHANGED, 0

2014-04-25 09:23:51.272, D, 137, Front Door Lock, Status, 0,
2014-04-25 09:23:51.000, E, 137, Front Door Lock, Front Door - opened, Status, 5
2014-04-25 09:23:51.000, E, 137, Front Door Lock, Front Door Lock, DL_USERCODE, 0

2014-04-25 09:32:40.889, D, 137, Front Door Lock, Status, 1,

2014-04-25 10:01:33.793, D, 137, Front Door Lock, Status, 0,
2014-04-25 10:01:33.000, E, 137, Front Door Lock, Front Door - opened, Status, 5
2014-04-25 10:01:33.000, E, 137, Front Door Lock, Front Door Lock, DL_USERCODE, 0

2014-04-25 10:03:40.079, D, 137, Front Door Lock, Status, 1,

2014-04-25 10:23:04.134, D, 137, Front Door Lock, Status, 0,
2014-04-25 10:23:04.000, E, 137, Front Door Lock, Front Door - opened, Status, 5

2014-04-25 10:23:04.000, E, 137, Front Door Lock, Front Door Lock, DL_USERCODE, 0
2014-04-25 10:23:59.329, D, 137, Front Door Lock, Status, 1, [/code]

If you want to understand the behavior of your devices … Bind the various device properties of the device as PLEG inputs. Then see what/when things change on the device, whether from the GUI or the keypad, using the PLEG status report.

You may want to clear the last user from lock device shortly after being trigger so it won’t confuse you.

[quote=“Aaron, post:1, topic:180760”]The below Override is showing a User Name when Vera itself, not a manually input code, is unlocking the Door Lock? Is there a way to make it show me a User Name only when an actual user code is input? Thx

OPEN Laundry Door {device([172].service[urn:upnp-org:serviceId:VSwitch1].Status) | Choose(0={tone:3},1={tone:1})}{Device([138].Lock.sl_UserCode) | String.LockUserName()}[/quote]

I know this is a bit old, but I’m experiencing a similar issue that sounds like yours. I’d like to eliminate this so I can add alerts to all the rest of my locks.

I have a lock with a notification set - PIN Code #* is entered on Master Door Lock

The VA override is {Device([172].Lock.sl_UserCode) | String.LockUserName()}

Every time Vera reboots, I get a notification with the name of the last user who unlocked the door.

Is this UI5 or UI6 ?

UI5

I have Schlage locks on UI5 and I do not experience that behavior.
How are your Alerts setup ? Are they Notifications on a lock ? Triggers on a scene ? Inputs on PLEG ? Actions of a Scene ?

I only have one currently.
It is a notification setup on the notifications tab of the lock device.

In VA,
Name :Pin code enterred
Description: PIN Code #* is entered on Master Door Lock
Message Override: {Device([172].Lock.sl_UserCode) | String.LockUserName()}

It would be useful for me to see a Debug Vera Alerts … and the log file from a Vera restart showing the problem.

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.

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]

Fantastic… I’ll do this!

Also, how are you getting ONLY the UserName to show in VA?

If I put in…

OPEN Front Door Lock{device([172].service[urn:upnp-org:serviceId:VSwitch1].Status) | Choose(0={tone:3},1={tone:1})}{Device([139].Lock.sl_UserCode) | String.LockUserName()}

… I get nothing, not User ID or Name

If I put in…

OPEN Front Door Lock{device([172].service[urn:upnp-org:serviceId:VSwitch1].Status) | Choose(0={tone:3},1={tone:1})}{Device([139].Lock.sl_UserCode)}

… I get BOTH User ID & Name

thx!