The energy management in urban and interurban lighting is currently, mainly, based on a centralised or clustered model. The control is mainly based on the level of brightness needed to circulate, without taking into account the presence or not of pedestrians or vehicles. This thesis proposes to review the solutions implemented and to use the Industry 4.0 paradigm as a basis for the design of a highly distributed architecture that efficiently controls the lighting of the roads of urban environments, and is extensible to interurban environments. As results it is expected to be able to verify the hypothesis of, how the distribution of the intelligence at the level of control node, together with the communication between nearby control nodes, allows to optimise the consumption in front of the current solutions.