Z-Wave Lock - Automation Trigger on Keypad Unlock

I’m working on setting up a virtual alarm panel using purely HA. I’m trying to avoid setting up a tablet to input a code to disarm the system and instead using automations exclusively to arm and disarm the system.

I do have guests come over regularly when I’m not home, but they are not home assistant users, however they do have a code to unlock the door. The door lock is a Z-Wave lock and I’m using Keymaster to manage them.

What I’m trying to figure out how to do is use the keypad unlock to trigger the automation that disarms the alarm. I’m struggling to figure out how to configure the trigger.

I can see this message whenever I use the keypad to unlock the door

Kitchen Door Lock fired Notification CC 'notification' event 'Access Control': 'Keypad unlock operation'

To make it really simple I would go something like this:

id: Disable Alarm
alias: Disable Alarm
trigger:
  - platform: state
    entity_id: lock.backdoor
    from: 'locked'
    to: 'unlocked'
condition: []
action:
  service: automation.turn_off
  target:
    entity_id: automation.disable_alarm

There are other ways to do this, but this puts it in its simplest form.

That would also disarm if someone picks the lock.

@virtualbitzz

Use this as a trigger:

platform: event
event_type: zwave_js_notification
event_data:
  event_label: Keypad unlock operation
1 Like

That worked, thanks! Yea that occurred to me, that’s why I was honing in on the “keypad unlock” messages in the logbook, which were distinct from “manual unlock operation”

1 Like