A series of photofunctional polymer hybrid thin films based on rare earth ion-functionalized MOFs have been synthesized and can display multi-colors (red, blue, blue-green and white). Interestingly, Tb0.999Eu0.001-2 thin film can be used as ratiometric luminescent thermometer in a wide temperature range.