Complete solution for smart grid and smart city architecture