Pre-concentration and energy transfer enable the efficient luminescence sensing of transition metal ions by metal-organic frameworks.