A shading device for a home automation installation for closing or sun protection of a building, the shading device comprising at least: - a box , - a screen , the screen comprising a first end , a second end , a first lateral edge and a second lateral edge , - a winding tube , the first end of the screen being attached to the winding tube , - a first and a second lateral slide , the first lateral slide being configured to receive the first lateral edge of the screen and the second lateral slide being configured to receive the second side edge of the screen , - a motorized drive device , and - an electrical connection device , the motorized drive device comprising at least: - an electromechanical actuator , the electromechanical actuator being configured to wind and unwind the screen on the winding tube , between a wound position and an unwound position, and - an electrical energy storage device , the electrical energy storage device being configured to supply electrical energy to at least the electromechanical actuator , the electrical energy storage device comprising at least: - a battery , the winding tube , the motorized drive device , and the electrical energy storage device are arranged inside the box , characterized in that the electrical connection device is arranged between one of the first and second lateral slides and the box , in an assembled configuration of the shading device . the shading device comprising at least: - a box , - a screen , the screen comprising a first end , a second end , a first lateral edge and a second lateral edge , - a winding tube , the first end of the screen being attached to the winding tube , - a first and a second lateral slide , the first lateral slide being configured to receive the first lateral edge of the screen and the second lateral slide being configured to receive the second side edge of the screen , - a motorized drive device , and - an electrical connection device , - a box , - a screen , the screen comprising a first end , a second end , a first lateral edge and a second lateral edge , - a winding tube , the first end of the screen being attached to the winding tube , - a first and a second lateral slide , the first lateral slide being configured to receive the first lateral edge of the screen and the second lateral slide being configured to receive the second side edge of the screen , - a motorized drive device , and - an electrical connection device , the motorized drive device comprising at least: - an electromechanical actuator , the electromechanical actuator being configured to wind and unwind the screen on the winding tube , between a wound position and an unwound position, and - an electrical energy storage device , the electrical energy storage device being configured to supply electrical energy to at least the electromechanical actuator , - an electromechanical actuator , the electromechanical actuator being configured to wind and unwind the screen on the winding tube , between a wound position and an unwound position, and - an electrical energy storage device , the electrical energy storage device being configured to supply electrical energy to at least the electromechanical actuator , the electrical energy storage device comprising at least: - a battery , - a battery , the winding tube , the motorized drive device , and the electrical energy storage device are arranged inside the box , characterized in that the electrical connection device is arranged between one of the first and second lateral slides and the box , in an assembled configuration of the shading device . <EOS>