I keep getting this message. I have a very standard configuration shown below. I got my client id and password, put in the URI below and I still keep getting this message when I click on unused entitites and try to configure Spotify. I’m not using the HTTP: component and I don’t access my device outside of my network. Is that the issue, or could this be something else?
The spotify component will only work if spotify are able to access the page outside of your network. It won’t work with a 192.168.x.x (internal) IP address.
I have external access via Home Assistant Cloud. When it sends me to the error page it always shows the internal IP in the redirect, But have only the external address set in the Spotify Developers Console???
I even tried doing the auth while connected to my mobile and the error still showed the internal IP of my HASS.
Not sure what the issue is. Will try tomorrow doing it with duckdns.
Any idea how to solve this issue? I do have the same problem: I have access from the outside via https, I set the base_url correct and I also set the callback url in the spotify developer acc, but I still get the error: INVALID_CLIENT: Invalid redirect URI
sorry for my late reply. I am using a reverse proxy to reach my HA from the outside. Therefore I have set my base url under the http part in configuration.yaml with the port number. Then you also have to set callback url at the Spotify dev acc without port number. This works fine now for me.
Just a moment ago I had the same problem and that led me to this topic.
I also used private IP address in the Redirect URI field. It turned out that the thing that prevented the configuration from working was a lack of port on which I access my instace of HA stated in the address.
So I had http://192.168.x.y/api/spotify instead of http://192.168.x.y:8123/api/spotify. After adding the port everything worked perfectly.
I know that this story can’t help solve the problems described above, but surely it disproves the statement that it’s not possible to have spotify working on a private IP address.
Moreover, the spotify’s documentation says: http://<your_home_assistant_url_or_**local_ip**>/api/spotify.