Unless the device triggered the rule (and in your case it won't), you'd need a conditional for each device and the name, manually typed, to add to your string. Not impossible, but it gets complicated with lots of devices.
This complexity is one of the reasons I wrote this app, so feel free to take a look if you want:
But if you don't want a custom app, I have an example of a rule similar to the one you want in that post as well.