Only create a device if the devicename value is given