Passive power generation has recently stimulated interest in thermoelectric generators (TEGs) using the radiative cooling mechanism. However, the limited and unstable temperature difference across the TEGs significantly degrades the output performance. In this study, an ultra-broadband solar absorber with a planar film structure is introduced as the hot side of the TEG to increase the temperature difference by utilizing solar heating. This device not only enhances the generation of electrical power but also realizes all-day uninterrupted electrical output due to the stable temperature difference between the cold and hot sides of the TEG. Outdoor experiments show the self-powered TEG obtains maximum temperature differences of 12.67 °C, 1.06 °C, and 5.08 °C during sunny daytime, clear nighttime, and cloudy daytime, respectively, and generates output voltages of 166.2 mV, 14.7 mV, and 95 mV, respectively. Simultaneously, the corresponding output powers of 879.25 mW/m2, 3.85 mW/m2, and 287.27 mW/m2 are produced, achieving 24-hour uninterrupted passive power generation. These findings propose a novel strategy to combine solar heating and outer space cooling by a selective absorber/emitter to generate all-day continuous electricity for unsupervised small devices.