fondberg / spotcast

Home assistant custom component to start Spotify playback on an idle chromecast device as well as control spotify connect devices
Apache License 2.0
640 stars 94 forks source link

spotcast/start: ... Could not find device with name ... #416

Closed areolysz closed 6 months ago

areolysz commented 6 months ago

Hi there, I'm trying to integrate spotcast into mini media player. I've been following the instructions from Smart Home Junkie's video he made recently.

However, even trying to play anything through services, I can't get it to work. I'd like to play spotify on Echo dot. But can't get it to play on my homepod mini or google nest mini either. So it seems like it's not an issue with Amazon.

Ive tried to use the Device name as well as id, but nothing seems to work. I've even upgraded to spotify premium to try and see if that'd work, (of course, it didn't).

Here's the mini-media-player test code I'm using:

entity: media_player.living_room
artwork: full-cover
source: icon
sound_mode: icon
info: short
volume_stateless: true
toggle_power: true
group: true
shortcuts:
  columns: 3
  buttons:
    - type: script
      cover: /local/radio/kissfm.gif
      id: script.music_kiss_fm_radio
    - type: script
      name: Colinde
      id: script.music_colinde
    - type: service
      name: 1815
      id: spotcast.start
      data:
        device_name: media_player.living_room
        uri: spotify:playlist:651IqAsXC9ADOMXvoyvrk9
        random_song: true
        shuffle: true

I managed to play spotify dircetly trough alexa media player, but had mixed results (Not the right songs were played).

areolysz commented 6 months ago

Got it working. Had to connect chromcast device via spotify app once and connect alexa app to spotify.

Issue resolved. :-)