Hey,
I’ve managed to get my Conexis L1 smart lock configured up with the Z-Wave module and currently have an automation set up for Locked/Unlocked states which works fine, so I know when the door is locked/unlocked. Am I able to somehow get the ID of the user unlocking/locking it, and set it to a user so I know who has unlocked/locked the door?
My automation currently looks like this;
- id: '123'
alias: 'Notify: Front Door Locked'
description: ''
trigger:
- platform: device
device_id: 123
domain: lock
entity_id: lock.yale_front_door_lock
type: locked
condition: []
action:
- service: notify.slack
data:
message: Front Door is LOCKED
title: Front Door is LOCKED
mode: single
Try listening for the zwave event or the state change event of the lock in developer tools and see what the “context” is.
There usually is an id that is or can be linked to a specific user.
Thanks, I created an event listener for zwave_js_notification which brought up the events I needed when I unlocked/Locked.
It does in fact bring back a userID. But how do I map the userIDs to names, and how do I then add the name of the id unlocking to the automation action to add to the notifier?