A method for controlling operation of an occultation device, the occultation device comprising at least: - a screen, - a motorised driving device, - a command unit (14, 15), the command unit (14, 15) being configured to control the motorised driving device, and - a configuration or maintenance terminal, the configuration or maintenance terminal comprising at least one electrical socket, the motorised driving device comprising at least: - an electromechanical actuator, the electromechanical actuator being configured to move the screen, the electromechanical actuator comprising at least: - an electronic control unit, - an electric motor, - an output shaft, and - an electrical connection device, the electrical connection device being electrically connected to the electronic control unit and the electrical connection device being configured to be electrically connected with the electrical socket of the configuration or maintenance terminal, characterised in that the method comprises at least the following steps: - determining of the presence of an electrical connection between the electrical socket of the configuration or maintenance terminal and the electrical connection device of the electromechanical actuator, - depending on the result, obtained in the determining step, if the electrical socket of the configuration or maintenance terminal is determined to be electrically connected to the electrical connection device of the electromechanical actuator, stopping drive of the output shaft of the electromechanical actuator, implemented following receipt of a command order from the command unit (14, 15), or blocking of a command order, from the command unit (14, 15), to drive the output shaft of the electromechanical actuator. the occultation device comprising at least: - a screen, - a motorised driving device, - a command unit (14, 15), the command unit (14, 15) being configured to control the motorised driving device, and - a configuration or maintenance terminal, the configuration or maintenance terminal comprising at least one electrical socket, - a screen, - a motorised driving device, - a command unit (14, 15), the command unit (14, 15) being configured to control the motorised driving device, and - a configuration or maintenance terminal, the configuration or maintenance terminal comprising at least one electrical socket, the motorised driving device comprising at least: - an electromechanical actuator, the electromechanical actuator being configured to move the screen, - an electromechanical actuator, the electromechanical actuator being configured to move the screen, the electromechanical actuator comprising at least: - an electronic control unit, - an electric motor, - an output shaft, and - an electrical connection device, the electrical connection device being electrically connected to the electronic control unit and the electrical connection device being configured to be electrically connected with the electrical socket of the configuration or maintenance terminal, - an electronic control unit, - an electric motor, - an output shaft, and - an electrical connection device, the electrical connection device being electrically connected to the electronic control unit and the electrical connection device being configured to be electrically connected with the electrical socket of the configuration or maintenance terminal, characterised in that the method comprises at least the following steps: - determining of the presence of an electrical connection between the electrical socket of the configuration or maintenance terminal and the electrical connection device of the electromechanical actuator, - depending on the result, obtained in the determining step, if the electrical socket of the configuration or maintenance terminal is determined to be electrically connected to the electrical connection device of the electromechanical actuator, stopping drive of the output shaft of the electromechanical actuator, implemented following receipt of a command order from the command unit (14, 15), or blocking of a command order, from the command unit (14, 15), to drive the output shaft of the electromechanical actuator. - determining of the presence of an electrical connection between the electrical socket of the configuration or maintenance terminal and the electrical connection device of the electromechanical actuator, - depending on the result, obtained in the determining step, if the electrical socket of the configuration or maintenance terminal is determined to be electrically connected to the electrical connection device of the electromechanical actuator, stopping drive of the output shaft of the electromechanical actuator, implemented following receipt of a command order from the command unit (14, 15), or blocking of a command order, from the command unit (14, 15), to drive the output shaft of the electromechanical actuator.