With poor peak load regulating capacity, renewable energy generation is intermittent and fluctuating, which results in the insufficient acceptance capacity of the power grid. Based on the state-queuing model of aggregate air conditioning loads, this paper develops a control algorithm to achieve renewable energy consumption and output tracking. The load curves of the aggregate air conditioning loads can be controlled by changing the initial temperature distribution. Under different temperature distributions, the load curves represent a fixed fluctuation, which is the basis of output tracking. A virtual load curve set is established based on the state-queuing model. Regarding the load curves as basic signals, the expected renewable energy output can be tracked via an optimal combination of the basic load curves. The validity of the algorithm is testified by numerical emulation data.