Spotify Lovelace Card

Thanks for the update.

@iudda I’ll have a look into this the next days.

The spotify-card itself doesn’t show the artwork and title of the current playing track, so this might be unrelated with the spotify-card. Do you have any errors in the developer console of your browser which are caused by the spotify-card?

Thanks! If you need more info, just let me know.

Hello,

same for me, no more cast device, normally i have 5…only the device is running is showned, i have no more “chrome cast devices” in the list, any news about this bug please?

I actually get this:

Schermata 2020-08-04 alle 16.27.14

No error in console, but in the HA log i get this, maybe related?

  File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 882, in get
    data, content_type = await player.async_get_media_image()

You need to run latest spotcast and HA >= 0 113.
Right now in 0.113.3 there seem to be issues with cast in general though. I’m monitoring that and will do some tests when I have time Feel free to help debug it

I am running 0.113.1 and latest spotcast.

It might be that the issue is from 0.113.0 and up.

Does TTS work with your cast devices? If so it is a spotcast issue otherwise a core cast issue

Yes TTS is working as always…
As i posted also in spotcast thread i get this error everytime i try to play something.

2020-08-04 18:09:28 ERROR (SyncWorker_7) [spotipy.client] HTTP Error for PUT to https://api.spotify.com/v1/me/player/play returned 404 due to Player command failed: No active device found

I saw that! The issue is not that. The issue is that spotify is not started in your cast device due to some reason.

Add debug to pychromecast and spotcast and send the complete log using pastebin

Ok can you tell me the exact syntax to add those debug to the logger?

I also noticed the spotcast.service is working as always but it is not shown in spotify-card until i do a reload of UI lovelace interface.

Seems to be an issue with the latest card version. Downgrade to 2.0.1 and it should work.
CC @FL550

Yes, downgrading to 2.0.1 all is working again. But i still have problems with the refreshing of the spotify media player as it doesn’t refresh when the state change. Actually i have stopped music from the UI, but all the cards containing the spotify media player are still showing the device is playing and clicking on the power button (if media-control card or mini media player card) or doing a reload of UI lovelace nothing change. It still is on playing mode.

New version v2.03 is out, which shows the chromecast devices again.

hello @fondberg,

thanks for your work! it show now the chromcast player and, for the first time, when i clic play on my playlists it works!!!

thanks again

have a good day

i have trouble selecting the default device, i tried both 2 lines below, but its still not selected as default ?
i still need to click on dropdown , to select my spotify connect device?

what am i doing wrong? i tried with single , double quote, no quote
the name Denon AVR-X4000 is how its listed on the spotify card

also second question, is it possible to have the select devices at the top of the grid instead below?

            default_device: "Denon AVR-X4000"
            device: "Denon AVR-X4000"

Mine is named precisely “media_player.spotify”, with nothing else in the name.

I choose that entity in the drop down in the general settings in the gui configurator for the card. I can start playlists from the addon, but sthe error still shows "spotify integration needs to be installed for playback information.

I have the spotcast addon installed and the relevant lines in the configuration.yaml.

What else can I try?

Thanks