The air source cold and heat energy unit is a multi-functional air conditioning unit, which has three working conditions of refrigeration, heating and domestic hot water production. It can be automatically switched according to the ambient temperature and hot water demand, which is energy efficient.