The present invention relates to a method of controlling a dialysis apparatus, which can be used, e.g., for hemodialysis, hemodiafiltration, or hemofiltration. Numerous alarms occur during treatments creating additional workloads for the operator. The present method of controlling the apparatus allows an automatic switch from a first control mode to another, thus allowing the treatment to continue without operator influence.