thlucas1 / homeassistantcomponent_spotifyplus

Home Assistant integration for Spotify Player control, services, and soundtouchplus integration support.
MIT License
56 stars 4 forks source link

DJ support #14

Closed fmonday closed 5 months ago

fmonday commented 5 months ago

Checklist

Is your feature request related to a problem? Please describe.

The official integration alleges to have added support for the AI DJ, but it never worked for me.

Describe the solution you'd like

This may be a premature request if the DJ is still rolling out around the world, but it's a great feature.

Describe alternatives you've considered

Do it from an app on a cell phone or maybe try to AppleScript it or something

Additional context

The URI in the pull request doesn't work when called with Spotifyplus

thlucas1 commented 5 months ago

I will take a look at this when I get back from vacation in a couple of weeks.

I am not familiar with the DJ function - is that anything like the Daily Mix features? I have the daily mix function working in the HA Media UI. It’s just a special category that you query, and it returns all of the “Daily Mix x” entries.

thlucas1 commented 5 months ago

@fmonday I looked into this, and have confirmed that the Spotify DJ support has not been enabled in the Spotify Web API, which means that the SpotifyPlus integration cannot retrieve any details for the DJ playlist URI (e.g. spotify:playlist:37i9dQZF1EYkqdzj48dyYq ).

In summary, SpotifyPlus cannot do any of the following functions related to the Spotify DJ playlist:

Note that SpotifyPlus CAN still control the Spotify Connect player when the DJ playlist is playing (initiated from the mobile app or desktop app):

I wish I had better news, but unfortunately we are at the mercy of Spotify developers, waiting for them to integrate DJ support into their Spotify Web API.

On a positive note, I did find a bug in the SpotifyPlus integration that was causing an exception to be thrown every 30 seconds when the Spotify DJ playlist was playing. I was able to correct that in a new release update - check here for more info.

thlucas1 commented 5 months ago

Closing issue - will revisit when Spotify adds DJ support to the Spotify Web API.

fmonday commented 4 months ago

Thank you!