Nowadays smart cities are becoming more and more a hot topic in the technological world. Some different approaches emerged and many city departments approved investigation and implementation of the smart city technology in their cities. The implementation of these processes is becoming a landmark for the modern cities. This paper proposes a generic semantic model to easily plug and manage heterogeneous smart devices and areas of cities, in order to integrate all the diverse components that constitute a fully integrated and functional smart city environment. This semantic model can be used in the most diverse city scenarios; to demonstrate it, a specific scenario is presented in this paper, describing the usage of the proposed semantic model to detect new components and share information among the smart components.