It seems that this datatype does not support the fromString/toString feature that's why you're attribute is always empty when you create your object with eZContentFunctions::createAndPublishObject(). The value of an ezyuicolorpicker attribute is stored in the data_text column so if you add the following fromString() method to the datatype class (the same as in the ezstring datatype in fact) it should work :
Maybe it would be great to update the DataType to add the fromString to other users...
But the project seems to be abandoned since a long time.
Do you think we should create a new project on projects.ez.no ? Or maybe the color picker will be added by default with eZ 4.3 ? (as I understood that the admin will be rewritten using AJAX and YUI).
Feel free to create a project on http://projects.ez.no if you want to share your modiication. You can also contact the author of the project (Arnaud Georgin) to tell him that you put the extension on projects.ez.no.
I took a quick look at the extension code, I see some minor issues/possible improvements :
The code should be ported to PHP5 to not throw Strict errors messages
use ezjscore to load Javascript more quickly (if you use eZ Publish 4.2)