Hi there. I'm an experienced Arduino coder and program who has created many hardware devices and applications including motion sensing, light controls, RF control of applicances. nRF communication among nodes, and others.
I can definitely write the sketch for you to achieve exactly what you need.
I would suggest that you consider writing the Device ID to a spot in the device's EEPROM. You have 1024 empty EEPROM bytes on the Uno and more on a Mega. They have a 100,000-write limit each, however.
Thank you for your consideration.
Regards,
Steve McDonnell