Notification when someone else than (family) unlocks the door problem

I made a rule that when someone else than me, my wife and daughter unlocks the door with our code, a notification is sent out to me and wife that xxx person unlocked the door on DATE at TIME. Everything works great except that when we unlock the door from the inside of the house with he deadlock, we get a notification that the door was unlocked by ____ no one ___. So I'm looking to not get these messages but can't figure out what to do as locks don't have many attributes in Rule Machine (or I'm not seeing them).

Note that the %text" variable will have the a name of person right after the word unlocked, might be able to do a compare here to decide to send the notification or not but if so, how do I do that?

Any ideas here or will I need to ask to add more support for locks to be able to do this?

I can send you a rule later today.

But briefly, begin the rule by putting the descriptionText into a text variable. Do not notify if the text variable contains the word "Physical". Finally, clear the text variable at the end of rule.

This is interesting. I have the kiwkset 620, and it doesn't appear to show "physical" anywhere in the device states. Are you using a special driver?

Interesting, I generally trigger on lastCodeName

hmmm, that will not work as when someone enters a code, here is what the event sends : Serrure porte was unlocked by Nelson [physical]

So all unlocks whether it be from the deadbolt handle or by the keypad will have the [physical] part in it.

When unlocking via Hubitat or other digital ways, then I get : Serrure porte was unlocked [digital]

But I will look into this, if you can send a screenshot that would help me for sure, thanks for the idea.

Not sure if this helps:

My locks behave differently. I don't see that event for code unlocks (I see what @jkudave sees). Here's what I see for manual unlock and then locking via the button:

I should note, my rule does not notify when the lock is physically unlocked from the inside.

I have an Aqara U400. My rule notifies on code entry, UWB by phone or watch, touch by phone or watch or NFC using a fob or card.

I think this is what @thebearmay was hinting about using the lastCodeName and I think that might be the ticket to a working rule for my case.

Thanks again, will try these changes and will report if successful!

How else does the door get unlocked and by whom?

Keys given to service workers or extended family?

Lock codes for others?

Are you looking to keep a notification that it was unlocked from inside?

Service worker, dog nanny, neighbor/friend in case of a problem and extended family all have codes, just want to monitor when any of those unlocks the door although we do have good security cameras.

No keys on main door lock, only pin code, see above for who has codes.

Yes

Exactly, don't want notifications by any other means than service workers/extended family/etc.

I use a super simple automation from the built-in notifications app to do this on my front door.

Since you have a short list of PIN codes that are the only thing you’re looking to get notified about (assuming I’m following you), I think this should work for you too? This tells me who unlocked the door with the keypad on the outside.