Thanks for your detailed reply!
I’m not using Apple Home or Home Assistant at all — I’m only using the Aqara Home app.
Here is exactly what I’m trying to do:
I arm the alarm in Away mode, and I have created an automation in Aqara Home:
IF: my face (Christophe) is recognized by the G5 Pro
THEN: send me a notification AND disarm the alarm.
The problem is that when I test it, as soon as I walk in front of the camera while Away mode is armed, I immediately get the “Lurker detected” message saying that the alarm will be triggered in 40 seconds.
After that, my facial-recognition automation does not seem to execute at all, so the alarm is not disarmed.
I then did another test to make sure facial recognition itself was working. I removed the disarm action and tested a very simple automation:
IF: my face is recognized
THEN: send me a notification.
In that case, it works perfectly: the camera recognizes me as Christophe and I receive the notification.
So facial recognition itself definitely works. The issue seems to be specifically when Away mode is armed. It looks as though the alarm’s entry countdown takes priority, and once the “Lurker detected / alarm will trigger in 40 seconds” sequence has started, my facial-recognition automation is no longer executed.
What I’m trying to achieve is quite simple: when I arrive home, the G5 Pro recognizes my face during the entry delay and automatically disarms the Aqara alarm before the 40-second countdown expires.
Have you ever tried this specific setup entirely within the Aqara Home app?