If I recall correctly, an imac consumes about 45 Watts at idle. There's no need to put it to sleep in my opinion. Does yours consume markedly more power than that?
Sleeping machines and turning them off causes no end to trouble and extra configuration. If you want the most reliable solution with the least amount of messing around and experimentation, just leaving it on is the safest bet.
Good luck.
Brian.