Kwikset which key code used to unlock?

I have Kwikset zwave and from the statuses it doesn’t seem to include a value that indicates which code slot used to unlock the door. Am I missing something?

It seems to me that having this functionality is crucial to know which user unlocked it.

What is your z-wave setup?

I can give you code for the legacy z-wave(1.4) integration and a kwikset lock if that is what you’re using.

I am using OpenZWave (Deprecated) 1.4.3469 – I guess that is the old version.

My lock is kwikset 888.

I have the 910. I was able to grab the code position (using Deprecated zwave add-on) by querying for the attribute ‘lock_status’. You’ll find it’s a string with the last characters being the code position. Unfortunately you cannot get the code directly that I’m aware, but you can at least derive it. For me, I have an input_text with the name lockname_name_codeposition_1. So I can then use the code position to assemble a query to the input_text to get a proper name for an announcement or notification.

Also unfortunate, the new zwavejs integration does not seem to support this attribute on locks yet. Since I have migrated, this no longer works for me.

For appdaemon, for example:
lock_status = self.hass.get_state(entity, attribute="lock_status")

Hope that helps.