Video camara & presence sensor

to detect “someone” …you need “object detection”.
So that you can detect a “person”…and perhaps a “Zone” detection…
so that you can detect a “person” in a “Zone”…
You can do all this with https://www.ezvidoo.com/ that is integrated into Ezlogic.
You can write a MeshBot where if a person is detected in a zone etc, do some action…

Here is a post I made in the past showing a MeshBot i created (of course instead of notification you can choose an action like recording or some other action)