A camera at the front door tells Home Assistant that someone is there, but not who. Face recognition adds the name, so the notification can say "Lena is home" and the hallway light only comes on when someone from the family walks in. Home Assistant can't do that by itself anymore, the names have to come from an NVR or a face service. And the camera matters more than the software you pick. Here's how the names get into Home Assistant, plus a ready-made automation to try.
Detecting a face is not recognizing it
Many cameras already detect faces on their own. A Reolink camera, for example, gives Home Assistant a "Face" sensor. It switches on when a face is in the picture, no matter whose. Recognition goes a step further: it compares the face with the people you taught it and returns a name, or "unknown". Only that second step lets an automation react to a specific person.
Object detection finds a person first, then the software cuts out the face and turns it into a long row of numbers. Faces of the same person end up with similar numbers, so comparing them with the numbers of the people you enrolled gives the name. With an NVR like camera.ui or Frigate all of this runs on your own hardware, and the pictures stay with you.
Ways to get it into Home Assistant
Home Assistant no longer recognizes faces by itself. Its last face integrations, dlib and Microsoft Face, were removed in 2025.12 and 2026.7. Today the names come from an NVR or a separate face service, and Home Assistant reacts to them.
- camera.ui Recognition comes with Pro, no MQTT needed. Each camera gets a Face sensor, and every recognition fires an event with the names. Unknown faces are collected and grouped, so naming a person takes one click.
- Frigate Free since version 0.16, trained in its Face Library. The integration, which needs MQTT, adds a "Last Recognized Face" sensor per camera and a "Last Camera" sensor per person. The camera sensor already shows Frigate's best guess, the confirmed name arrives as a sub label in Frigate's MQTT events.
- Scrypted NVR Part of the paid NVR subscription. You label faces in its detections, then create a Smart Motion Sensor per person, which Home Assistant sees as a motion sensor.
- Double Take and CompreFace The classic route from a few years back. Double Take has had one security fix since 2022, Frigate's docs point to a fork instead, and CompreFace's last release dates from 2023. Frigate advises against running Double Take next to its own face recognition.
camera.ui is ours, so keep that in mind. How these NVRs compare beyond faces, from MQTT to price, is in our comparison of NVRs for Home Assistant. You'll also come across LLM Vision. It shows reference pictures to a language model and lets it describe what it sees. That can put a name to a familiar face, but it isn't face recognition in the strict sense, and its own docs warn against using it to unlock doors.
The camera matters more than the software
- At head height, not under the eaves A camera that looks steeply down sees hair and foreheads, and then siblings start to look alike. A doorbell camera or one mounted at about head height, looking at people from the front, does far better.
- Enough pixels on the face A face that's too small in the picture can't be recognized. camera.ui, for example, needs about 40 pixels. A wide-angle camera covering the whole driveway rarely gets there, a camera aimed at the front door does.
- More than one picture per person camera.ui recommends at least ten per person, Frigate 20 to 30. Mix them: different days, with a cap, with glasses. A single passport photo gets you a recognition now and then, not a reliable one.
- Night is the hard part In the dark most cameras switch to black and white infrared, while face models learn from color pictures. camera.ui recommends enrolling night pictures too, Frigate advises against training on infrared. Either way, a lamp at the door that comes on with motion helps more than any setting.
- Patience beats one perfect photo The easiest way to collect good pictures is to let the system collect them. Unknown faces pile up for a few days, then you assign them to the right person.
Setting it up with camera.ui
- Turn on face recognition In the camera's settings, on the Plugins tab, pick an AI backend for Face and one for Face Recognition. The first finds faces, the second makes them comparable. See Face recognition in the docs.
- Enroll people In the Faces view, Add Face takes a name and a clear photo. Or wait a few days: faces camera.ui doesn't know yet collect under Unknown Faces, grouped by person, and you assign a whole group with one click.
- Connect Home Assistant Install the camera.ui integration, if you haven't yet. The steps are at the end of our Home Assistant NVR guide.
- Use the names Every camera gets a Face sensor that shows who it recognizes right now, and an "Object recognized" trigger in the automation editor. Each recognition also fires a
cameraui_eventwith the names infaces. A face camera.ui doesn't know shows up as "unknown".
Finding faces is part of the free detection. Recognizing them by name comes with Pro, from $39 a year.
An automation to start with
This one sends a notification when the front door camera recognizes Lena. Swap in your camera's name, the person and your phone's notify action:
alias: Lena is home
triggers:
- trigger: event
event_type: cameraui_event
event_data:
state: recognized
camera_name: Front door
conditions:
- condition: template
value_template: "{{ 'Lena' in trigger.event.data.faces }}"
actions:
- action: notify.mobile_app_your_phone
data:
message: Lena is homeFrom there it's small steps: the hallway light only for people you know, no doorbell chime when the kids come home. You can also send yourself a picture when the front door sees someone who isn't enrolled. Treat it as a hint, though, because someone you know can show up as "unknown" until a clearer picture confirms the name.
Don't open the door with it
Type "home assistant face recognition" into Google and "door lock" is one of the first suggestions. It's a bad idea. Face recognition makes mistakes in both directions, and it works on a flat camera picture, so a photo held up to the lens can pass for the real face. camera.ui doesn't check for that. A wrong name on a notification does no harm. A wrong name that unlocks your front door lets a stranger in.
Use names for comfort: lights, notifications, a greeting on the speaker. For the lock, stick to your phone, an NFC tag or a code, and let face recognition add at most a second condition.
Faces are personal data
A face that a system can recognize counts as biometric data in the EU, and it gets special protection in many other places too. Enroll the people who live with you and agree to it. If a camera covers the street or a neighbor's entrance, face recognition doesn't belong on it, and in many countries the camera itself already needs a good reason. Rules differ a lot, so check what applies where you live.
In camera.ui, Ignore stops collecting a face for good, and Delete Person removes someone's pictures and takes their name out of every recording.
Try it with your cameras
camera.ui runs on Mac, Windows and Linux, in Docker and as a Home Assistant app.
All logos and names are trademarks of their respective owners.