That's twisting the semantics, I think. Anything in the game that does something is an "effect" whether it's a spell, SLA, monster ability, or anything else. If you're immune to sleep effects, you're immune to sleep and deep slumber, a dragon's sleep breath, sleep poison, and anything else...