Do not wakeup Mac on mouse movements

Solution 1:

Go to System Preferences » Bluetooth » Advanced and turn off "Allow Bluetooth devices to wake this computer."

To wake the computer, you'll have to press the power button.

I do this because my iMac wakes itself up in the middle of the night.

Solution 2:

Kind of a dumb answer but whenever you step away from the desk you can flip the mouse upside down.