Latest Nmap device detected

Hey guys, I’m trying to get my google home minis to tell me who just entered.
I already have a Nmap system going on.
But I can’t find a way to find the latest detected device as to use this to tell Google Home who to announce.
Did anyone ever tried something similar?