I’d like to have an alert sent when my door lock is opened with the keypad. Part of the payload from the lock is the user ID for the code that was entered but I’m unsure how to translate that information into a rule trigger. Here is the verbose output from the log with user ID #3 unlocking the door:
are you interested in learning how to send the notification or do you just need it done?
Keymaster does this out of the box - you just edit the message what you want it to say. BUT even if you don’t want to actually RUN keymaster - you could install it and see it’s scripts and how it works.
I was hoping there was something in the existing framework to just trigger on a notification alert; parse the payload into a switch case; and send a pushbullet or push message saying “Front door unlocked by ____”.
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:
So there are (2) places I get my information for my Z-Wave Automations. The first place is Z-Wave JS UI dashboard. Above every parameter there is a list of values that correspond to the following:
Node Id - Command Class ID - Endpoint - Property - Property Key.
The large text next to the idle button is your value and you would input this in the to or from field. I use these values when I want to do a value change on a Z-Wave JS Value Trigger.
The other place I get my information from is the events viewer which is found in the developer tools. I use this when I cant trigger the automation using the other method. I use this with the event trigger.
Ah, interesting! I switched from the JS UI for reasons I don’t recall but at least I know where I can go if I run into this again. Thanks for the pointer!