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 of determination of an available electric power which said electric energy supply system can provide; - a step of evaluation of a suitable number N e of electrolyser modules to be used according to the determined available electric power; - a step 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 of determination of the temperature of each of the selected electrolyser modules; - a step 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 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 of selection of the electrolyser modules comprises a step of determination of a current number of active electrolyser modules, and in that the step of selection of the electrolyser modules comprises a step of determination of temperatures of at least some of the electrolyser modules. - a step of determination of an available electric power which said electric energy supply system can provide; - a step of evaluation of a suitable number N e of electrolyser modules to be used according to the determined available electric power; - a step 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 of determination of the temperature of each of the selected electrolyser modules; - a step 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 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 of selection of the electrolyser modules comprises a step of determination of a current number of active electrolyser modules, and in that the step of selection of the electrolyser modules comprises a step of determination of temperatures of at least some of the electrolyser modules.