Nmap action on trigger

Hey all,
I’d like to set the device tracker to run a nmap scan every time the front door opens up but can’t find the correct Action to set. How do I set it?

Thanks from advance!

I’m interested in this too. Nmap seems to have a few seconds delay when a device is connected which could be solved with a scan on a door sensor trigger.