Hubitat Built-in Variable Names for LCM?

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