Report userid of user that unlocks Zwave lock

It appears, from the OZW code handler, that the UserID of the person that unlocks a zwave lock is available to HASS. I’d like to see this data reflected in and attribute.

With the DSC Alarm integration, this type of info is currently passed as “last_changed_by_user”.

I currently use this data via my Vera-connected lock to notify me when my children unlock the door.

1 Like

I’ve actually been working on a side component to do something like that. I wanted to be able to do the usual setting/clearing of codes as well as reporting on when a code was entered. I believe with newer locks, there is a DoorLockLogging command class that would be where most locks report their information.

I would love to put some of the code into actual Entity components but I’m not sure where the best place is. In the “Lock” component? In a new type of “LockCode” component?

My other problem is that I have older locks (BE369) that use an Alarm message to send this data. There are several hacky things I had to do:

1 - hook into the zwave dispatcher messages to get the Alarm sensor values and decode as events
2 - look into the raw zwave last message data to determine if a lock location is available/occupied
3 - read/write a local file to save the mapping of user name to lock index across restarts

I’ve been working on it at:

https://github.com/drytoastman/haconfig/

See custom_components/be369group.py. It requires an outstanding patch to the openzwave library to clear codes though.

Trying to figure out how to setup a custom front end panel now.

1 Like

I’m highly interested in any progress on this!

In my mind, support for basic lock capabilities is fundamental for any decent home automation and i still can’t understand why the ability to set/clear user codes isn’t readily available in HASS…

A bonus would be to support automation based on user ids that unlock with their pin codes.

I have Schlage Connect locks and I’ve been waiting for nearly a year for OpenHab (never did get secure pairing to work) or HASS to support this… Because the Staples Connect (which also has no cloud dependency) was abandoned. I’ve grown to really like HASS, and it works great with many other elements (Onkyo receiver, lights, Alexa, etc.) But not being able to move my locks off of Staples Connect (which does not integrate with anything) is driving me crazy…

Looking forward to any progress you make on this!

Logbook now contains this info