Electrical system (100; 600) comprising: - a stator inverter intended to be connected, on the one hand, to a positive terminal of a voltage source in order to receive a stator inverter current (i OS) and, on the other hand, to an electrical machine comprising stator phases (U, V, W), in order to supply power to the electrical machine from the voltage source, - an auxiliary electrical device (110; 602) intended to be connected to the positive terminal of the voltage source in order to receive an auxiliary current (i AUX), the auxiliary electrical device (110; 602) being designed to selectively adopt a first configuration in which the auxiliary current (i AUX) is positive and a second configuration in which the auxiliary current (i AUX) is negative or zero, characterized in that it furthermore comprises: - a detection device designed to detect whether the stator inverter current (i OS) is positive or whether it is zero, - a control device (118; 605) designed to control the auxiliary electrical device (110; 602) in a first control mode in which the control device (118; 605) is designed to place the auxiliary electrical device (110; 602): • in its first configuration when the stator inverter current (i OS) is detected as being zero, and • in its second configuration when the stator inverter current (i OS) is detected as being positive, the control device (118; 605) furthermore being designed to control the auxiliary electrical device (110; 602) in the second control mode, different from the first control mode, the control device (118; 605) being designed to alternately control the auxiliary electrical device (110; 602) in the first control mode over a first time interval and in the second control mode over a second time interval. - a stator inverter intended to be connected, on the one hand, to a positive terminal of a voltage source in order to receive a stator inverter current (i OS) and, on the other hand, to an electrical machine comprising stator phases (U, V, W), in order to supply power to the electrical machine from the voltage source, - an auxiliary electrical device (110; 602) intended to be connected to the positive terminal of the voltage source in order to receive an auxiliary current (i AUX), the auxiliary electrical device (110; 602) being designed to selectively adopt a first configuration in which the auxiliary current (i AUX) is positive and a second configuration in which the auxiliary current (i AUX) is negative or zero, characterized in that it furthermore comprises: - a detection device designed to detect whether the stator inverter current (i OS) is positive or whether it is zero, - a control device (118; 605) designed to control the auxiliary electrical device (110; 602) in a first control mode in which the control device (118; 605) is designed to place the auxiliary electrical device (110; 602): • in its first configuration when the stator inverter current (i OS) is detected as being zero, and • in its second configuration when the stator inverter current (i OS) is detected as being positive, the control device (118; 605) furthermore being designed to control the auxiliary electrical device (110; 602) in the second control mode, different from the first control mode, the control device (118; 605) being designed to alternately control the auxiliary electrical device (110; 602) in the first control mode over a first time interval and in the second control mode over a second time interval. - a detection device designed to detect whether the stator inverter current (i OS) is positive or whether it is zero, - a control device (118; 605) designed to control the auxiliary electrical device (110; 602) in a first control mode in which the control device (118; 605) is designed to place the auxiliary electrical device (110; 602): • in its first configuration when the stator inverter current (i OS) is detected as being zero, and • in its second configuration when the stator inverter current (i OS) is detected as being positive, the control device (118; 605) furthermore being designed to control the auxiliary electrical device (110; 602) in the second control mode, different from the first control mode, the control device (118; 605) being designed to alternately control the auxiliary electrical device (110; 602) in the first control mode over a first time interval and in the second control mode over a second time interval. • in its first configuration when the stator inverter current (i OS) is detected as being zero, and • in its second configuration when the stator inverter current (i OS) is detected as being positive, the control device (118; 605) furthermore being designed to control the auxiliary electrical device (110; 602) in the second control mode, different from the first control mode, the control device (118; 605) being designed to alternately control the auxiliary electrical device (110; 602) in the first control mode over a first time