Prussian blue
Researchers have experimented replacing some of the iron atoms in Prussian blue with cobalt. When the Prussian blue compound is lit with a red light at -150 C, the compound shifts from being non-magnetic (off) to magnetic (on). The magnetic shift does not change back except if deliberately reversed (or undone) with heat.