Provided are a rotary state warning device and an electrical cabinet, the rotary state warning device comprises a lock body and a blocking cover which are connected with each other, and the blocking cover is provided with an opening used for being matched with a switch
handle; the lock body is provided with a sliding groove, the blocking cover is provided with a side wall, the side wall is in sliding fit with the sliding groove, the blocking cover can rotate between a first angle and a second angle, the rotating type state warning device further comprises a
control circuit, a first magnetic induction unit, a second magnetic induction unit and a spring bolt, and the spring bolt can be controlled to stretch out and draw back; the rotary state warning device further comprises a first
magnet and a second
magnet which are installed on the side wall, a first inserting hole and a second inserting hole are further formed in the side wall, and when the blocking cover is located at the first angle, the spring bolt is inserted into the first inserting hole and limits rotation of the blocking cover. When the blocking cover is located at the second angle, the spring bolt is inserted into the second
insertion hole and limits rotation of the blocking cover. The electrical cabinet is provided with a rotary state warning device. Tedious operations of cover dismounting
storage management and next searching are avoided, and the problem that the blocking cover is dismounted and lost is solved.