Engineers have discovered a new phase-transition optical material — samarium nickelate — and demonstrated novel devices that dynamically control light over a much broader wavelength range and with larger modulation amplitude than what has currently been possible. SmNiO3 could potentially transform optoelectronic technologies, including smart windows and infrared camouflage.