How can I obtain the temperature of a specific group?

You need to correct for constraints. See Extract Temperature of a group - #5 by jalemkul