Multi-functional lanthanide-CPs based on tricarboxylphenyl terpyridyl ligand as ratiometric luminescent thermometer and highly sensitive ion sensor with turn on/off effect.