The invention provides a wind solar heating, cooling and power-generation three-function machine, which is a multi-purpose multifunctional device which utilizes wind energy and solar energy to directly supply hot air in the winter and supply cool air in the summer, and generates power all year round. The machine includes a special collecting lens, a power generation box, a heat collector, a circulating pipeline, and an energy storage which are carried by an automatic sun-following machine; the machine uses solar energy to generate cold air and power; wind heating and power generation are combined skillfully, multi-energy compensation is achieved, and automatic switching is achieved; the machine can operate all year round, can replace coal, natural gas and electrical heating in regions having sufficient wind and solar energy, and can supply cold air in summer and generate power all year round; the wind solar heating and cooling three-function machine can be used in families, villages, schools, hospitals, mine workers, factories, office buildings, border guard posts, military barracks, northern islands, etc., can be used for building zero-energy buildings, can achieve intelligent automatic control, can prevent haze, reduce carbon dioxide, save energy, and create an indoor comfortable and hygienic environment, and can achieve long-term free warming and cooling in winter and summer, and sell electricity by being purchased once.