An optical assembly for an optical device. The optical assembly comprises a first substrate and a second substrate opposite the first substrate. A dimming structure is disposed between the first substrate and the second substrate. A light shielding structure is disposed on a surface of the second substrate opposite to the first substrate. The light shielding structure is configured to absorb at least one of ultraviolet light, near-ultraviolet light, infrared light, or far-infrared light in the sunlight and output an electrical control signal, and the dimming structure is configured to adjust light transmittance in response to the electrical control signal.