Hotend Fan - Rotor lock Alarm -

Check out this post for a possible solution: "Long press" button Macro

It sounds like you’ve configured your system so that the fan “alarm” system acts like a gcode button press, and that you want the system to react if it is “pressed” for at least a certain amount of time. The post I linked above offers a way to implement gcode button “long press,” which sounds like what you want.