A method for configuring a motorized drive device for a closure or sun-protection home-automation installation, the closure or sun-protection home-automation installation comprising a concealing device, the concealing device comprising at least: - a winding tube, - a screen, a first end of the screen being fastened to the winding tube, and - a load bar, a second end of the screen being fastened to the load bar, the motorized drive device comprising at least: - an electromechanical actuator making it possible to wind and unwind the screen on the winding tube, between a wound position and an unwound position, the electromechanical actuator comprising at least: - an electric motor, - an output shaft connected to the winding tube of the concealing device, and - an electronic control unit, the electronic control unit comprising at least: - a device for measuring the value of a parameter of an electric current traversing the electric motor, and - a memory storing a value of the measured parameter, said method comprises at least: - a step for automatically determining a low end-of-travel position of the screen, characterized in that said method comprises at least the following steps: - measuring the parameter of the electric current traversing the electric motor via the measuring device, - determining a variation (Δ) of the measured parameter (t), ▪ the steps for measuring the parameter of the electric current and for determining the variation (Δ) of the measured parameter being carried out during the performance of the step for automatically determining the low end-of-travel position of the screen, and - determining an obstacle detection threshold value (S O), during the movement of the screen toward the unwound position, based on the variation (Δ) of the measured parameter, determined in step. - a winding tube, - a screen, a first end of the screen being fastened to the winding tube, and - a load bar, a second end of the screen being fastened to the load bar, - an electromechanical actuator making it possible to wind and unwind the screen on the winding tube, between a wound position and an unwound position, - an electric motor, - an output shaft connected to the winding tube of the concealing device, and - an electronic control unit, - a device for measuring the value of a parameter of an electric current traversing the electric motor, and - a memory storing a value of the measured parameter, - a step for automatically determining a low end-of-travel position of the screen, - measuring the parameter of the electric current traversing the electric motor via the measuring device, - determining a variation (Δ) of the measured parameter (t), ▪ the steps for measuring the parameter of the electric current and for determining the variation (Δ) of the measured parameter being carried out during the performance of the step for automatically determining the low end-of-travel position of the screen, and ▪ the steps for measuring the parameter of the electric current and for determining the variation (Δ) of the measured parameter being carried out during the performance of the step for automatically determining the low end-of-travel position of the screen, and - determining an obstacle detection threshold value (S O), during the movement of the screen toward the unwound position, based on the variation (Δ) of the measured parameter, determined in step.