Macbook Pro 2016 with Harmon Kardon Soundsticks connected over USB
macOS 10.13.4 17E202
My Question or Issue
Spotify registers a pmset assertion PreventUserIdleSystemSleep while music is playing, but this assertion is not released when music is paused. Therefore when the spotify app is launched, music is played, and then music is paused the computer will never sleep. pmset -g assertions lists a PreventUserIdleSystemSleep assertion which is only released when the spotify app is quit.
$ pmset -g assertions
pid 167(coreaudiod): [0x0000f24d00019e01] 00:00:08 PreventUserIdleSystemSleep named: "com.apple.audio.AppleUSBAudioEngine:harman/kardon:SoundSticks:14700000:1.context.preventuseridlesleep"
Created for PID: 33284.