use a zwave_js_notification
event trigger in an automation. If you go to your developer tools and subscribe to that event you will see an event happen when you lock/unlock from the keypad. There’s many attributes you can use, but specifically you will see things like the node number that fired the event, the type and event numbers, and an event label. I believe what you are looking for would be the 'userId'
attribute. one of my automations has a trigger that looks for a keypad unlock. It doesn’t care which access code, only just that it was a keypad event. You can take this and add the 'userId'
attribute to the trigger. Also see here and here for more info.
your event trigger would look something like this:
- platform: event
event_type: zwave_js_notification
event_data:
node_id: 80
type: 6
event: 6
event_label: Keypad unlock operation
parameters:
userID: 1