Doesn't quite seem to work. Even when you buy it from the shop, it just goes on a shelf and isn't clickable.
That's not the item you need for the xxx task :)
Once you get the item, just click the pillow. Then it'll solve sleep & xxx.