Buildings account for as high as 30% of the global energy consumption and emit 10% of global greenhouse gas, which causes environmental and economic challenges for a sustainable future. Among such colossal energy consumption, approximately 48% is for space heating and cooling alone , calling for innovation to sustainably manage the building temperature and create net-zero-energy buildings. Radiative cooling materials have been developed to provide an effective approach to utilizing the coldness of outer space. By reflecting the solar radiation and emitting heat to the sky, radiative cooling material can save the air-conditioning energy consumption of buildings in the hot summer. Apart from supplying cooling power to cool the buildings, low-emissivity (low-e) building envelopes can also conserve the HVAC (heating, ventilation, and air-conditioning) energy consumption by suppressing the radiative heat loss in cold climates. However, the applicability of the abovementioned roof/wall envelopes with static radiative properties is restricted by the spatially and temporally variable weather. Additionally, global warming causes increasingly frequent extreme weather events, urgently demanding smarter and wider adaptability to different weather for buildings. A promising future net-zero-energy building should be able to dynamically tune its thermal emissivity in accordance with the weather conditions and occupants' demands. To provide buildings with weather adaptability, Wang et al. and Tang et al. successfully demonstrated thermochromic materials based on tungsten-doped vanadium dioxide to passively shut down the radiative cooling in cold seasons, showing promising energy saving potential and functionality. The tuning criterion is a fixed phase change temperature, and it would be a step further to develop dynamically on-demand programmable radiative thermoregulation. Mechanical methods have been demonstrated to dynamically switch between solar heating and radiative cooling, but the requirement of mechanical moving parts inevitably results in challenges in wide employment, such as transportation, storage, and installation.