Mono/bimetallic water-stable lanthanide coordination polymers as luminescent probes for detecting cations, anions and organic solvent molecules.