Getting back to original entity in group

I have a motion flow in node-red. I’m trying to get back to the originating entity in a group of 5 motion detectors.

I can see the entities, but I feel like the payload of which one started it is getting dropped somewhere.

image

I should add, in the end I will have more than 5 (otherwise I’d just put 5 and skip the group). I hope to have about 25 different calling entities that share the flow between motion sensors/door sensors/camera triggers/etc. I was hoping to group them into logical containers to simplify the flows. Thanks.

Also…

I’m passing the motion trigger into a function to (what I’d hoped was the friendly name).

var state = msg.payload
node.status({text: friendlyName});
return {
        "payload": {
           "data": {
               "message": "Motion on " +  friendlyName
           } 
    }
};```