A device for managing the supply of electric energy to a user belonging to a community of users, said community having available at least one system for producing electric energy from a local source and at least one system for supplying electric energy managed by an external distributor, comprising:
- combining means for combining electric energy coming from said at least one system for producing energy from a local source and from said at least one system for distributing energy managed by an external distributor;
- adjusting means for adjusting the fraction of electric energy supplied to said user from said local source as a function of the electric energy coming from said local source that must be supplied to the other users of said community of users;
- said adjusting means being configured to give priority to taking electric energy directly from said system for producing energy from a local source over said at least one system for supplying electric energy managed by an external distributor.