How to use keypad info in an automation?

Hello,

I captured data by listening to events and have tried to use it in an automation and its not working. This is something I had success with a couple years ago but havent kept up on it. Can you please tell me what data that I have pasted is needed? I know the time stamp has to go but do I just delete the line or data, or do I keep the β€œβ€ ??

event_type: zwave_js_notification
data:
  domain: zwave_js
  node_id: 174
  home_id: 360154564
  endpoint: 0
  device_id: d1a46dc2200275cc75593834205e421d
  command_class: 113
  command_class_name: Notification
  label: Access Control
  type: 6
  event: 6
  event_label: Keypad unlock operation
  parameters:
    userId: 3
origin: LOCAL
time_fired: "2024-08-09T01:25:04.622021+00:00"
context:
  id: 01J4XBTGZE3X9G8JC91HE0Jbfs
  parent_id: null
  user_id: null

There’s an example of this exact notification in the documentation. https://www.home-assistant.io/integrations/zwave_js/#node-events-notification

You only need to match the minimum number of fields that would distinguish between other devices and other notifications. Most of those you listed are unnecessary. Use node_id or device_id, or a template helper that resolves to one of those, to match a specific device. Or you can use conditional template logic, the possibilities are endless. For this notification, if you want to match a specific user, include the user id. Probably something like:

trigger:
  - platform: event
    event_type: zwave_js_notification
    event_data:
      node_id: 174
      event_label: "Keypad unlock operation"
      parameters:
        userId: 3
1 Like

thank you for the help, I looked at the link and modified my automation to similiar as advised but just not working. I dont know enough about templates to try at the moment. I see there is a simplified solution called KeyMaster, I might give it a go, not sure its specfic to my query but it looks like an improvement none the less. Cheers