Solar energy is a new clean energy with many advantages compared with traditional energy, and the range of its application is becoming wider. This paper aims to combine the power technology based on solar energy with windows, so as to alleviate stuffiness indoors in summer and save energy. For this purpose, a novel solar glass window is designed, which reduces indoor temperature through air flow, a solar energy panel is installed in the window frame to provide power to the indoor air conditioner used for auxiliary cooling, and the air-conditioning switch is automatically controlled according to room temperature, dust on the solar energy panel is removed according to dust deposition, so as to improve the photoelectric conversion efficiency.