Integration of smart technologies in the grid