change device_type_name to device_type in addDeviceType