A chemically triggered and thermally switched dielectric constant transition in a metal cyanide based crystal.