My 2013 27" iMac running 10.12.2 is refusing to sleep on its own. Based on "pmset -g assertions" and activity monitor output, hidd seems to be the culprit. I am using BT Apple keyboard and mouse.
Even when I put it to sleep manually, the Thunderbolt Promise Pegasus R4 RAID array doesn't...