A system comprising a plurality of electronic modules, each one of the electronic modules configured for enabling automation of an electrical appliance to be connected to the electronic module, and comprising at least a communication sub-part configured to enable communication over a power-line network with other modules, at least an acting means configured to act on an electrical voltage to be applied to the electrical appliance; and an embedded intelligence means configured to process signals providing from or going to the at least one communication sub-part, the at least one acting means, hierarchical ordering means configured to generate an ordered list of the plurality of modules that comprises the electronic module and the others of the plurality of electronic modules, depending on presentation information from the electronic module and presentation information received from the others of the plurality of electronic modules whereby each one of the plurality of electronic modules is enabled for communication with the others of the plurality of electronic modules over the power-line network by means of its a least one communication sub-part, and the system is characterized in that in each one of the plurality of electronic modules the embedded intelligence means further comprises outgoing message sending means configured to send an outgoing message over the power-line network to at least one of the others of the plurality of electronic modules, ingoing message receiving means configured to receive an ingoing message over the power-line network from at least one of the others of the plurality of electronic modules, identifying means configured to identify an ingoing message relevant to the electronic module, presentation means configured to prepare a presentation message to be sent as outgoing message, the presentation message containing presentation information related to an identity of the electronic module, and electing means for electing from the ordered list a president electronic module, whereby the presentation means, the hierarchical ordering means and the electing means are configured such that the electing means in each of the plurality of electronic modules find the same president electronic module. configured for enabling automation of an electrical appliance to be connected to the electronic module, and comprising at least a communication sub-part configured to enable communication over a power-line network with other modules, at least an acting means configured to act on an electrical voltage to be applied to the electrical appliance; and an embedded intelligence means configured to process signals providing from or going to the at least one communication sub-part, the at least one acting means, hierarchical ordering means configured to generate an ordered list of the plurality of modules that comprises the electronic module and the others of the plurality of electronic modules, depending on presentation information from the electronic module and presentation information received from the others of the plurality of electronic modules outgoing message sending means configured to send an outgoing message over the power-line network to at least one of the others of the plurality of electronic modules, ingoing message receiving means configured to receive an ingoing message over the power-line network from at least one of the others of the plurality of electronic modules, identifying means configured to identify an ingoing message relevant to the electronic module, presentation means configured to prepare a presentation message to be sent as outgoing message, the presentation message containing presentation information related to an identity of the electronic module, and electing means for electing from the ordered list a president electronic module,