Hi - I am using Lock Code Manager with my C8 Pro.
With my old Schlage Z-Wave deadbolt, I was able to send a notification to my phone that would let me see the name of whoever unlocked the door based on the 4-digit code they used to unlock the deadbolt. The person's name was included in the %text% variable when I sent that notification to my phone. Using a notification format of %text% on %date% at %time%, I would see a message like: Front Door was unlocked by Susan on 04-Jul-2025 at 04:38 PM.
With our new Schlage Z-Wave deadbolts, and still using a notification format of %text% on %date% at %time%, I only see Lock was unlocked [digital] on 04-Jul-2025 at 04:38 PM.
What are the LCM built in variable names I can use with my notification texts so that I can get more information like the user's name?
LCM doesn't have variables, nor can it send notifications (and can really be left out of the picture for the purposes of your question; you can set and view the codes yourself on the device detail page -- and might want to start by making sure that looks right, though it's probably not the issue).
So the real issue involves what app you're using to send this notification (Rule Machine? Notifications?); what it offers; and how you configured it. What it can do also depends on what the device/driver actually does. Even if it's not in the descriptionText value of the event (what %text% refers to in both of these apps, hence my suspicion it's one of them), it might be somewhere else. Check the "Events" tab on the lock's device detail page. Is what you're looking for there? If so, there's hope to get this working.
Using my ESP: if you're using Notifications, did you happen to choose "Lock" instead of "Lock Code" (or something similar in RM)?
Tested on my locks. The notify app sends nothing when lock code is used. If set up using lock it sends lock status but not the lock code field. It sends NULL. In the lock device events the description looks correct. The lock code is correct. Appears that there is a bug in the Notification app in the lock code type.
That doesn't seem likely, as it isn't happening to your other lock, and the app has not been changed in some time. I'm also not seeing any problems myself.
Can you share your actual Notifier app setup and the "Events" history from the lock? (You can redact any data you do not want to be seen, e.g., the code.)
1 Like
Sorry, guys! Got caught up in life stuff / home repairs, and I didn't respond back to you until now. I will be replying back in a more timely manner now.
@bertabcd1234: Here is a snapshot of my Notification App setup:
Here is a short dump from my events log:
As you can see, the information I'm looking for is out there. Note the "info" events at 01:24:51.756 PM (Patio was unlocked by thumb turn [physical]) and 01:25:25.579 PM (Shlage Lock - Garage was unlocked by Patty).
These are the types of notifications that I would receive on my phone in the past at my old house. I'm trying to figure out how to get these more detailed notifications again.
I was looking for Events for the lock device, not Logs (both are often helpful, but Events is what would show the exact data we're looking for in this particular case).
Here you go - Schlage keypad events for the same time period:
Does your notification output really only include the attribute name, like "lock was locked"? From your screenshot above, %text% should contain the device name since it's in the description text, which we can now see in your Events page screenshot.
But if you want the person/code name, this is likely the key:
2 Likes
@bertabcd1234 - I tried setting up a Lock Code Notification again. I tried Lock Code Notifications previously based on your suggestion, but realized pretty quickly that it wasn't the same as what I had at my old house - there were a lot of triggers and options requested by the notifier I didn't have set at my old house.
This time, I did a deeper dive with Lock Code Notifications, and set three instances up (I have 3 keypads) to test out.
While it does provide an improvement over my Lock Notifications for information, it's a mixed bag for a total solution.
The "Lock Code Notifications" do give the additional information I was looking for ("Door unlocked by The Dude"), but it doesn't provide any notifications when the doors are locked / unlocked via the keypad lock button or the turn knob.
In order to get lock / unlock notifications for the keypad lock button / turn knob, I have to create a supplemental "Lock Notification". The problem with this is I now get two notifications on my phone whenever someone opens the lock via a keypad code - one that says "Door was unlocked by The Dude" and a second notification of "Door was unlocked [digital]" immediately afterwards.
Based on this experience, I am now 100% sure that I previously only had the "Lock Notification" set up at my old house, and it provided the additional details I am looking for. At some point, Hubitat removed these details from the %text% parameter of who locked/unlocked the keypad by a code. I know that I only had one Notifier app configured at my old house, and it provided notifications for both code entries and knob/lock button events.
I wonder if it would be possible for Hubitat to restore the old functionality? It's annoying to get two audible notifications on my phone every time someone unlocks the keypad by code.
That is under control of the driver, not the hub at large or this particular app. Specifically, it reads the descriptionText property of the event, which you can see in the "Description" column in your screenshot above. That is why I asked to see that particular page, as it has the exact data the app would also see.
So, there isn't really any "old" functionality to restore. If you have new devices, their driver just works differently (or this device does with that driver); and if you have the same devices, whatever automation you created here must be different from whatever you did at your last location. Complicating the situation, I see you have Schlage locks, some of which are known to behave oddly, though I don't know if that is the source of your problem.
This is promising, but do you only see one event for each? (Apps work from events, not logs, so again "Events" would really be the place to look -- though both can be helpful for troubleshooting.) Because the first should be "Lock" and the second "Lock Codes" in terms of the options in the Notifier app.
If you're seeing something else, you have duplicate-ish events (not surprising, as unlocking by a code also unlocks), but the question would be how to filter them out. Are you sure you weren't using a rule or something else previously, where you could use conditional actions based on the descriptionText or a similar approach?
This is what I use for my notifications when someone unlocks my Schlage lock:

%value% provides the name of the person who used a code to unlock.
So I get a notification like "John unlocked the front door lock at 8:30am".
I think your use of %text% is incorrect.
@bertabcd1234 - I'm positive I only used the Lock Notification app in the past with a notification of %text% at %time% on %date%. I moved my Hubitat C-8 from my old house to our new house, and it had all my previous configuration stored in it. I initially did a "device replace" with our new Schlage keypad deadbolts. I don't remember if I initially got the user information when unlocking with our new deadbolts - I have removed/reinstalled our new deadbolts dozens of times since moving to our new house, all my original configuration is permanently gone now.
As you mentioned, it really does look like all the information is available for my notification goals, but I need to figure out a way to filter it.
in fact, I don't remember seeing a Lock Code Notification before (it was about 4 or 5 years ago when I set up my Schlage BE469 lock and notifications).
@jkudave - Is this for a Lock Notification or a Lock Code Notification? The %value% parameter only shows locked or unlocked with Lock Notifications. With Lock Code Notifications, I get the information I am looking for, but Lock Code Notifications don't notify when a lock is manually locked/unlocked.