The embodiment of the invention provides a yaw control method and device for a wind generating set, electronic equipment and a storage medium, and belongs to the technical field of control. The method comprises the steps that yaw actions of a draught fan are discretized, an N-way tree about the yaw actions of multiple step lengths is generated, branch sequences meeting sequence invalidation conditions in the N-way tree are cut off, the pruned N-way tree is obtained, and the N-way tree is subjected to yaw control; and according to a set control step length, selecting a control action solution matched with the control step length from the trimmed N-way tree as a target action solution, calculating a control sequence corresponding to each target action solution, and selecting an optimal control sequence from a plurality of control sequences, thereby greatly reducing a searchable solution space of the optimal control sequence, and improving the accuracy of the optimal control sequence. Therefore, the calculation amount and calculation resources in the optimal control sequence acquisition process can be reduced.