log show | grep -i "wake reason”. Use terminal Sierra or High Sierra
EHC or XHC — The Enhanced Host Controller (or Extended Host Controller) code generally is followed by a number (e.g., “EHC1” or “EHC2”). This indicates the specific input device (USB, Bluetooth, or otherwise)but can also be wireless devices and bluetooth since they are also on the USB bus of a Mac.. Generally this code indicates a button has been pressed on the device. To troubleshoot this issue, try unplugging all of your external devices and see if doing so stops the system wakes, then systematically add them back to see if you can find the one that is causing the issue.
OHC — The Open Host Controller suggests peripheral USB or Firewire interfaces, either for storage, audio, printing, or otherwise, might have been the cause for the issue. As with other controller-based wake events like EHCs, this calls for testing each separately to see what might be the cause for the problem.
USB# — This suggests an attached USB device caused the wake event. The number in this code is the enumerated USB device ID, which will not mean much to you, but simply indicates some hub, interface, controller, or other USB device you have attached to your system was the cause for the wake event.
EC.cause — This code includes a specific phrase of what caused it, including things like “EC.LidOpen” or “EC.PowerButton” which tell you what the reason for the wake event was.
GIGE — This stands for “Gigabit Ethernet” and suggests you might have Wake for Network Access checked in the Energy System preferences
LID0 — On some MacBook systems, this indicates the lid was opened.
PWRB — As the code suggests, this means the power button was used to wake your Mac.
RTC — This stands for Real Time Clock, meaning your Mac was scheduled to start up at a specified time in the Energy Saver system preferences. Either try checking your system’s wake schedule in the System Preferences, or reset your Mac’s SMC to keep this from happening.