Prevent adding devices with the equal Unique IDs

Plus 4c7cea62a278ea6ee8d90d3dfec8b52ccb8d1169