Face recognition triggered by switch

Hi,
i’m new to homeassistant and i really like it.
I’m trying to set up face recognition (using dlib) with my server.
I don’t want that the recognition works continuosly, but only when i trigger a switch/sensor from my doorbel, with MQTT.
But can’t find any way to start face identification by trigger.

Someone has ideas?

Thanks :slight_smile:

Call the camera ‘scan’ service when you need recognition