Alert for Unknown Person Detected - NOT a household member

Hi all, could I get some help with some pseudo-code for an Automation please?
I’m having real trouble getting the logic straight in my head.

I want to trigger a simple notification action when my camera detects an unknown person at my front door. The Unifi G5 camera has a “Person Detection” mode and this works well.

But the part I’m struggling with is to make the actions only run when the person detected is an unknown member of the household.

I DO NOT want it to notify when any of my family arrives home.

I have Google Maps, WiFi and Bluetooth LE tracking available.
I do not have facial recognition available.

I already have family/device tracking available to HA, so it knows who is and is not home, distance from home and direction of travel (if that helps).

Any assistance or guidance is gratefully received.

1 Like

Trigger = Person Detection
Condition = house members are all in the house or more than 500m away
Action = Alert

Thanks, that’s where I started as well, but I don’t think that logic will handle the scenario where a stranger comes to the door when some people are home and others are away.

The “or” will handle that.

I have the same interest. For now, I push the video to HomeKit via Scrypted and use face recognition on the Home app with notifications muted for family members.

Problem is that I sometimes get notifications for family members as unknown persons when the camera doesn’t get a clean shot of them.

I’m watching Unifi and their AI camera line to see how their facial recognition functionality progresses.

1 Like