A method for controlling a drainage pump, the drainage pump comprising a drive unit having an electric motor and a drive shaft and comprising a hydraulic unit having an impeller operatively connected to said electric motor via said drive shaft, said drainage pump being configured to be operated at a variable operational speed [rpm], wherein said method is characterized by the steps of: - continuously operating the drainage pump at a positive operational speed, the impeller being driven in rotation by said electric motor in a positive direction of rotation, - default operating the drainage pump at an operational speed equal to a predetermined idle operational speed (OPidle), and - periodically increasing the operational speed of the drainage pump from the idle operational speed (OPidle) to a predetermined snoring detection threshold (OPdetect) and detecting whether the drainage pump is snoring or not at the snoring detection threshold (OPdetect): a) when snoring is detected at the snoring detection threshold (OPdetect), the operational speed of the drainage pump is decreased to the idle operational speed (OPidle) whereby the default operation of the drainage pump at the idle operational speed (OPidle) is resumed, and b) when snoring is not detected at the snoring detection threshold (OPdetect), proceed to stepwise change of the operational speed of the drainage pump and at each new operational speed detecting whether the drainage pump is snoring or not, wherein the stepwise change of the operational speed involves: i) increasing the operational speed one step each time snoring is not detected, at most up to a predetermined maximum operational speed (OPmax), and ii) decreasing the operational speed one step each time snoring is detected, at most down to the idle operational speed (OPidle) whereby the default operation of the drainage pump at the idle operational speed (OPidle) is resumed. - continuously operating the drainage pump at a positive operational speed, the impeller being driven in rotation by said electric motor in a positive direction of rotation, - default operating the drainage pump at an operational speed equal to a predetermined idle operational speed (OPidle), and - periodically increasing the operational speed of the drainage pump from the idle operational speed (OPidle) to a predetermined snoring detection threshold (OPdetect) and detecting whether the drainage pump is snoring or not at the snoring detection threshold (OPdetect): a) when snoring is detected at the snoring detection threshold (OPdetect), the operational speed of the drainage pump is decreased to the idle operational speed (OPidle) whereby the default operation of the drainage pump at the idle operational speed (OPidle) is resumed, and b) when snoring is not detected at the snoring detection threshold (OPdetect), proceed to stepwise change of the operational speed of the drainage pump and at each new operational speed detecting whether the drainage pump is snoring or not, wherein the stepwise change of the operational speed involves: i) increasing the operational speed one step each time snoring is not detected, at most up to a predetermined maximum operational speed (OPmax), and ii) decreasing the operational speed one step each time snoring is detected, at most down to the idle operational speed (OPidle) whereby the default operation of the drainage pump at the idle operational speed (OPidle) is resumed. a) when snoring is detected at the snoring detection threshold (OPdetect), the operational speed of the drainage pump is decreased to the idle operational speed (OPidle) whereby the default operation of the drainage pump at the idle operational speed (OPidle) is resumed, and b) when snoring is not detected at the snoring detection threshold (OPdetect), proceed to stepwise change of the operational speed of the drainage pump and at each new operational speed detecting whether the drainage pump is snoring or not, wherein the stepwise change of the operational speed involves: i) increasing the operational speed one step each time snoring is not detected, at most up to a predetermined maximum operational speed (OPmax), and ii) decreasing the operational speed one step each time snoring is detected, at most down to the idle operational speed (OPidle) whereby the default operation of the drainage pump at the idle operational speed (OPidle) is resumed. i) increasing the operational speed one step each time snoring is not detected, at most up to a predetermined maximum operational speed (OPmax), and ii) decreasing the operational speed one step each time snoring is detected, at most down to the idle operational speed (OPidle) whereby the default operation of the drainage pump at the idle operational speed (OPidle) is resumed.