A novel photochromic metal-organic framework with good anion and amine sensing.