Virtually no anemones are nocturnal. Most of them are photosynthetic and get the majority of their nutrition by light. The exception to this would be the tube anemones, cerianths.
If the anemone shrinks during the day, maybe the lighting is not to its liking. What sort of nem and what kind of lighting? Does anything else happen when lights come on, like changes in water flow?