Artificial molecular switches and machines that enable the directional movements of molecular components by external stimuli have undergone rapid advances over the past several decades. Particularly, overcrowded alkene-based artificial molecular motors are highly attractive from the viewpoint of chirality switching during rotational steps. However, the integration of these molecular switches into solid-state devices is still challenging. Herein, we present an example of a solid-state spin-filtering device that can switch the spin polarization direction by light irradiation or thermal treatment. This device utilizes the chirality inversion of molecular motors as a light-driven reconfigurable spin filter owing to the chiral-induced spin selectivity effect. Through this device, we found that the flexibility at the molecular scale is essential for the electrodes in solid-state devices using molecular machines. The present results are beneficial to the development of solid-state functionalities emerging from nanosized motions of molecular switches.