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)

https://community.ezlo.com/t/i-can-now-create-a-meshbot-notification-on-an-object-from-a-camera-from-a-specific-zone/218898