Method for controlling an electrolysis system which comprises a plurality of electrolyser modules and is designed to cooperate with an electric energy supply system which uses an intermittent energy source, said method comprising: - a step (E1) of determination of an available electric power which said electric energy supply system can provide; - a step (E2) of evaluation of a suitable number N e of electrolyser modules to be used according to the determined available electric power; - a step (E3) of selection of electrolyser modules to be supplied electrically among the electrolyser modules of the plurality of electrolyser modules of the electrolysis system that are functional, taking into account said evaluated number N e , said evaluated number N e being strictly lower than the total number of functional electrolyser modules of the electrolysis system; - a step (E4) of determination of the temperature of each of the selected electrolyser modules; - a step (E5) of electric supply of the electrolyser modules selected by said electric energy supply system according to a distribution of the available electric power determined depending on the determined temperatures (E4) of each of the selected electrolyser modules , the method being characterised in that , with each electrolyser module being configured such as to adopt an active state when it is supplied by said electric energy supply system , or an inactive state when it is not supplied by said electric energy supply system , said step (E3) of selection of the electrolyser modules comprises a step (E6) of determination of a current number of active electrolyser modules, and in that the step (E3) of selection of the electrolyser modules comprises a step of determination of temperatures of at least some of the electrolyser modules . - a step (E1) of determination of an available electric power which said electric energy supply system can provide; - a step (E2) of evaluation of a suitable number N e of electrolyser modules to be used according to the determined available electric power; - a step (E3) of selection of electrolyser modules to be supplied electrically among the electrolyser modules of the plurality of electrolyser modules of the electrolysis system that are functional, taking into account said evaluated number N e , said evaluated number N e being strictly lower than the total number of functional electrolyser modules of the electrolysis system; - a step (E4) of determination of the temperature of each of the selected electrolyser modules; - a step (E5) of electric supply of the electrolyser modules selected by said electric energy supply system according to a distribution of the available electric power determined depending on the determined temperatures (E4) of each of the selected electrolyser modules , the method being characterised in that , with each electrolyser module being configured such as to adopt an active state when it is supplied by said electric energy supply system , or an inactive state when it is not supplied by said electric energy supply system , said step (E3) of selection of the electrolyser modules comprises a step (E6) of determination of a current number of active electrolyser modules, and in that the step (E3) of selection of the electrolyser modules comprises a step of determination of temperatures of at least some of the electrolyser modules . <EOS>