Another trick is to open Activity Monitor, switch to the Energy tab, and sort by the "Preventing sleep" column. Some apps prevent macOS from sleeping.In my case, I've discovered that Devonthink (document/notes management app) is responsible. I've been meaning to file a bug report