@lerroy_b one additional question, I’ve changed this Redirect URI to the link http://mydomain.no-ip.org:8123/lovelace/1 (where this card is) :), and I’ve cleaned browser, but when I’m trying to authenticate Spotify there is still the old link with old adres and with old client ID…
Please look: https://accounts.spotify.com/authorize?client_id=34b2fab688be49dfb26e5374809ea0cc&redirect_uri=http://192.168.1.71:8123/lovelace/1&scope=playlist-read-private%20user-read-playback-state%20user-modify-playback-state&response_type=token
What and how it should be changed?
Is it possible in one way or another to stylish this card? Using CSS styles with card-mod?
don’t want to ask silly questions (sorry if I do…)but last release is still august 3d?: https://github.com/custom-cards/spotify-card/releases
Unfortunately not as this was written first for non HASS. This question is asked and answered a couple of times in this thread
Yes. That is the last release. It is open source so anyone can contribute with PRs
Dear All
Plese help
I’ve changed this Redirect URI to the link http://mydomain.no-ip.org:8123/lovelace/1 (where this card is) :), and I’ve cleaned browser, but when I’m trying to authenticate Spotify there is still the old link with old adres and with old client ID…
Please look: https://accounts.spotify.com/authorize?client_id=34b2fab688be49dfb26e5374809ea0cc&redirect_uri=http://192.168.1.71:8123/lovelace/1&scope=playlist-read-private%20user-read-playback-state%20user-modify-playback-state&response_type=token
What and how it should be changed?
of course, it was merely because I saw you post about an update and thought is was of a more recent date. Thanks for confirming.
Hi
First of all, great work on creating this!
I use the card to play my lists on my google home.
However i can’t seem to switch between any list.
When i select another one, it won’t play anymore.
Anything to do with that i’m a spotify free user perhaps?
Looking forward
I just tried this card which seems great, I just ran into a little issue.
All my devices show up and no worries there, but I can´t switch devices to any other than the default player. It just says “Failed to call the service spotcast/start. Could not find device with name Google Home köket”.
Do I need to change the display name of my devices or anything? I have added the Spotcast card as well and configured my spotify login.
Edit: My “Spotify Connect” devices works as expected and I can choose between two computers right now. But how can I start playing music on an idling Chromecast or Google Home device?
I noticed that i no longer can get my playlist to play a random song then playing a new playlist.
My current config:
client_id: myid
limit: 25
random_song: true
transfer_playback: true
type: 'custom:spotify-card'
Does anyoneelse have this issue?
I changed the name of my two google home from the app ‘Home’ and now i still get in the list of connected devices the old name so how i can have the new names in this list?
What is the meaning of the option transfer_playback ?
With transfer_playback: true
i can transfer playback. For example, if i have music playing on my phone (or other device) i can choose a direrent speaker (or chromecast group) and playback will continue on (without interuption) on that speaker.
Ok, good to know, but where did you get those info? In the repository there is nothing about these options.
BTW, thanks a lot…
It´s an option in Spotcast . I just tested it on Spotify Lovelace card and it worked.
Hello ha community !
I jumped on the ha train for about a month now and i’ve came accross your card that really fits my needs.
Thanks for making it !
I’m trying to make it work properly and i think i got really close but still got one problem:
First of all, i did make sure that client_id and secret_id were both set to the right values, i also hav a premium spotify subscription.
configuration.yaml:
http:
base_url: https://mydaomain.duckdns.org:443
The card is set up like so:
/config/lovelace/views/lovelace_media_view.yaml
title: media
icon: mdi:spotify
cards:
- type: 'custom:spotify-card'
client_id: !secret spotify_client_id
limit: 5
device: media_player.bluray
ui-lovelace.yaml
title: Home
views:
- !include '/config/lovelace/views/lovelace_media_view.yaml'
lovelace_media_view.yaml is the 5th view and so is url is:
https://mydomain.duckdns.org/lovelace/4
In my spotify dev apps, i’ve set the redirect url like so:
https://mydomain.duckdns.org:443/lovelace/4
Now here’s the thing that i can’t get around:
When i go to the page where there’s my spotify card, it redirct me instantly to the ‘INVALID_CLIENT: Invalid redirect URI’ page BUT when i look in the url bar i can see this:
https://accounts.spotify.com/authorize?client_id=myclientid&redirect_uri=https://mydomain.duckdns.org/lovelace/4&scope=playlist-read-private%20user-read-playback-state%20user-modify-playback-state&response_type=token
The port doesn’t appear to be there, but if i manually add it in the url bar adress like so:
https://accounts.spotify.com/authorize?client_id=myclientid&redirect_uri=https://mydomain.duckdns.org:443/lovelace/4&scope=playlist-read-private%20user-read-playback-state%20user-modify-playback-state&response_type=token
It now redirect me to my ha media view and the card bring my spotify playlist and work for a bit of time before happening again.
Any help would be appreciated, thanks !
@fondberg Hi Niklas
I am still having trouble setting this custom card up.
I believe it could be the Spotify API
Make sure you edit the settings and adds the redirect URL for the tab the card is one.
Example: `https://<your public home assistant hostname>:8123/lovelace/media` .
I use Nabu Casa for my external access, so is this the address i put in before the :8123/lovelace/media?
Thanks so much
@fondberg
Also getting the following with the card
No Card Type Found
cards:
- client_id: !secret here
limit: 10
type: 'custom:spotify-card'
this._configElement is undefined
Hope you can help please, Thanks heaps
Hello Guys,
i’m trying to install the lovelace cards properly.
It shows my playlists and i can’t switch the playlists but my Sonos box is not showing up. Only if i start the playback from somewhere else (from inside the spotify app e.g.)
As soon as i switch the playback to my smartphone for example, i can’t go back. Any idea what could cause that?
Maybe deleting all the spotify cookies and app data would fix it. Otherwise I don’t know. Sorry