Unsure How to Trigger Rule for Z-Wave Lock

This is almost exactly what I was expecting, thank you! However, it’s not worked for me out of the box. I’ve noticed that your log entry is from a “Keypad lock operation” where I’m trying to capture an unlock event. Additionally, I’m not sure how to check things such as the command class, type, and event numbers you’ve assigned. I upped my logging level to “Silly” and don’t see these fields as part of the packet. Should those change for an unlock vs a lock operation?

Edit:
Did some digging in the Z-Wave command class reference and found that “event” is for the last event ID. I took what was provided by @cornellrwilliams, updated the Node and User IDs, and removed the event line - great success! Thank you for the direction (although I have to admit I would have never found the command_class and type values from the logs)!
For reference, here is the full trigger YAML:

trigger:
  - platform: event
    event_type: zwave_js_notification
    event_data:
      domain: zwave_js
      node_id: 31
      command_class: 113
      command_class_name: Notification
      label: Access Control
      type: 6
      event_label: Keypad unlock operation
      parameters:
        userId: 4
    id: [Name 1] Unlock
  - platform: event
    event_type: zwave_js_notification
    event_data:
      domain: zwave_js
      node_id: 31
      command_class: 113
      command_class_name: Notification
      label: Access Control
      type: 6
      event_label: Keypad unlock operation
      parameters:
        userId: 3
    id: [Name 2] Unlock
1 Like