brianjking / homeassistant-config

Configuration for @brianjking Home Assistant
https://home-assistant.io
82 stars 8 forks source link

Add Spotify Media Player #149

Closed brianjking closed 5 years ago

brianjking commented 5 years ago

https://www.home-assistant.io/components/media_player.spotify/

e9c99ea37a9596ab6c0d06221a513fdb7c3854a5

brianjking commented 5 years ago

When I attempt to link and authorize the Spotify component I receive a INVALID_CLIENT: Invalid redirect URI message.

https://accounts.spotify.com/authorize?client_id=5ad031944d3a43c381ced4b3a2f05341&redirect_uri=http%3A%2F%2Fraptorbot.ddns.net%2Fapi%2Fspotify&scope=user-modify-playback-state+user-read-playback-state+user-read-private&response_type=code

image

brianjking commented 5 years ago

Seems possibly related to these issues in the Home Assistant repo:

brianjking commented 5 years ago

Created new issue in Home Assistant repository https://github.com/home-assistant/home-assistant/issues/16585.

brianjking commented 5 years ago

Adding https:// prefix to my secrets.yaml file fixed the inability to authorize Spotify API connection.

Now have 2 other issues to diagnose & resolve:

aliases (Optional): Dictionary of device ids to be aliased, handy for devices that Spotify cannot properly determine the device name of. New devices will be logged to the info channel for ease of aliasing.

      - media_player.spotify
      - media_player.spotify_2
media_player 4:
  platform: spotify
  client_id: !secret spotify_client_id
  client_secret: !secret spotify_client_secret