I run pmset -g assertions
PreventSystemSleep 1
pid 203(coreaudiod): [0x00000001000001f6] 00:00:29 NoIdleSleepAssertion named: "com.apple.audio.'AppleHDAEngineOutput:1B,0,1,2:0'.noidlesleep"
Run sudo launchctl unload -w /System/Library/LaunchDaemons/org.isc.named.plist
I don't run server or use named (dns server)
After that it sleeps again
PreventSystemSleep 0
If anyone has the same problem like me check if named is causing the problem.