Architecture system of a local grid of the type called smart grid for the bidirectional transfer of energy and information among the nodes of the local grid, in a totally integrated way; said local grid, made up of at least two nodes, which comprise, individually, energy generation, storage and consumption elements constituting energy micro-grids of the producer-consumer-storer type; each node comprising an electronic controller which is adapted to manage with own management logics the energy transfers according to the configuration of the connections and to the behaviour of its own node and of the local grid according to at least one of the following state conditions: a first condition (a) in which the single node is simultaneously connected to said local grid and to the utility grid, or a second condition (b) in which it is connected to the local grid only, or still a third condition (c) in which it is temporarily connected to the utility grid only; said production, being mainly of energy obtained from discontinuous renewable sources; said architecture system of a local grid wherein each node can simultaneously be a generator, consumer and storer of energy for itself and for the other nodes of the grid, transferring energy and information; and wherein the transfers of information occur exclusively through the controller of each node, such information concerning at least the: flow of energy generated in the single node (11, 111), flow of energy consumed in the single node (11, 112), input and output energy flow from the storage elements of the single node, level of charging of said elements; and wherein said node controller has a biunivocal communication capability of the type called one-to-one, is directly connected to the single energy generation, storage and consumption elements of its own node, and is also directly connected to the controllers of other nodes in such a way that, through them, in its turn it is connected to all the other elements and nodes of the local grid interacting with them; and characterized in that said controller is of the self-configurable type so that it adapts itself to its own node and to the local grid, being variable in their configuration of the connections and dynamic in their behaviour of the single elements and wherein each node, through said controller, controls simultaneously and dynamically, according to the instantaneous configuration, the consumption, the generation and the storage of energy; optimizing the conditions and state of service of each of its own generators and accumulators, it being able to add or exclude them at any moment and they being of the type called smart, which is intended to provide information and receive behaviour instructions; and wherein each controller manages its own node and also takes part in the management of the whole local grid operating with management logics which are shared by the controllers of all the nodes in such a way as to self-configure according to said variable connections and to said dynamic behaviour; acting for each of said state conditions (a), (b) and (c) optimizes the energy transfers according to said shared management logics, of the routine type called respectively L/a, if referred to the first state condition (a), or L/b if referred to the second condition (b), or still L/c if referred to the third condition (c); and wherein said management logics L/a, L/b and L/c also refer to some sub-logics of the sub-routine type having specific functions and that are respectively called Logic D, of determination of the first node n to be served, Logic E of choice of the node/nodes which transfer energy, Logic F of reduction and exclusion of the loads at the node, Logic G of self-configuration and Logic H of calculation of energy availability or requirement; and wherein the operating sequences of said logics of the routine and sub-routine type include a plurality of activities and checks, called Phases and Check phases respectively, which are correlated and variously combined with respect to each other in such a way as to allow an optimized management of said nodes also connected in local grids in a system of the type variable in the configuration and dynamic in the behaviour, each controller comprising access gates for the reception and sending of signals with information from/to the node peripheral devices, of the generators, accumulators and loads type, and also of the signals with information from/to the other nodes; each controller, comprising processors intended for the sampling of said signals, with frequencies higher than 1 KHz; each controller comprising processors which are intended for the processing of said signals to manage the behaviour of its own node according to said logics L/a, L/b, L/c, Logic D, Logic E, Logic F, Logic G and Logic H; each controller comprising remote control switches for remote operations and/or switches and/or power disconnecting switches of said connections.