btw this Automation a webhook debugger helped me to see what protect actually sends in the webhook. you can filter for several other variables.
Oh there is one more issue. For some reason unifi protect only acts on a recognised face at the end of smart detection, think same goes for licenses plates. So standing infront of the cam and waiting for the webhook finally to trigger won’t work. The detection event/process has to stop.
Not happy with it, but I did a messy workaround by defining Smart detection zones. Stepping out of the zone ends the event and sends the webhook.