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.