Closed B-Hartley closed 4 years ago
Could you please describe describe the issue in a bit more detail? Please use the issue template:
Steps to reproduce the behavior:
How to Reproduce Steps to reproduce the behavior:
Remove spotify entity and integration. Re-install spotify integtation, supply API keys. Complete installation. Add entity add to favourites page.
restart remote from ssh. read log....
Your Environment Versions as given above. Running on YIO remote
Does the integration work or you just see error messages in the log?
no, doesn't work
actually, I take that back. it shows the track that is playing, but the pause button etc. don't work.
Could you tail the log and see if there's any error message when you press pause?
tail -f logfile
It says: WARN spotify ERROR WITH PUT REQUEST 403 "{\n \"error\" : {\n \"status\" : 403,\n \"message\" : \"Restricted device\"\n }\n}"
Is that something in the API settings that I should have set ?
Looks like you didn't give permission to control devices or your account is restricted for some reason. Do you have a premium account? These features only work with that.
Yes, premium. Let me make sure I used the right spotify account and that i don't have 2 or something
it's a premium famliy account
That should work. When setting up the your API keys, did you allow control of your devices?
After reading on this Restricted device
thing, I found that there could be some devices that show up and display info, but they are restricted and cannot be controlled. Seems like you have a device like that. However, I should add this to the integration, that it filters out these restricted devices.
I never seemed to have any questions about what I was allowing with the API, where are those options ? I'm playing Spotify on a SONOS btw. and I can control it with other things, so I would expect to be able to control it ?
I don't have Sonos speakers, but I've removed and re-added the integration and it works fine here. I'd suggest to remove the integration. Go to your Spotify Developer Dashboard. Reset the client secret. Then reboot the remote just to be sure. Add the integration again.
I don't know how but managed to reproduce the issue :) I'm on it!
Go to your spotify account page, choose Apps in the left sidebar remove access to the YIO app then update remote software to v0.4.8 spotify integration to v0.4.3 and webconfig to v0.1.9 after this you should be able to add it and it should work
Spotify: 0.4.2 remote: 0.4.7
YIO-remote-software-v0.4.7-12-g5813bbaf-20200531_155953-RPi0-release YIO-integration.spotify-v0.4.2-RPi0-release YIO-integration.home-assistant-v0.4.7-10-g2da234e-20200530_101638-RPi0-release
have removed Spotify entity and integration and re-added it.
Successfully added, but in the log it says......