I have followed the Smart Home Junkie video on setting up a Spotify player (and the Radio Player). However the mini media card is not showing the artwork when I play from Spotify (although the HA suggested media control card does show it). Secondly, I cannot get any radio stations to work. I am using Echos as speakers, and I am having all sorts of issues with them only being occasionally available, but that is for a separate discussion - I think. Can anyone see the error(s) in the following code please.
type: custom:mini-media-player
entity: media_player.master_bedroom_echo_dot
name: Master Bedroom Echo
icon: mdi:music
artwork: cover
source: full
sound_mode: full
info: scroll
background: /local/community/mini-media-player/spotify/radiobackground.jpg
shortcuts:
columns: 3
buttons:
- name: Spotify Rock'N'Roll
type: service
id: spotcast.start
data:
device_name: Master Bedroom Echo Dot
uri: spotify:playlist:04FQPy2qlfN865yzo3BzgL
random_song: true
shuffle: true
- name: Spotify Party
type: service
id: spotcast.start
data:
device_name: Master Bedroom Echo Dot
uri: spotify:playlist:6Yt6tgQmWnThGDQtWOyoWQ
random_song: true
shuffle: true
- type: script
name: Talksport Radio
id: script.media_play_talksport
- type: script
name: BBC World Service from TuneIn
id: script.bbc_world_service_from_tunein
- type: script
name: BBC Radio 1
id: script.media_play_bbc_radio_1
- type: script
name: BBC Radio 2
id: script.media_play_bbc_radio_2
And here is one of the scripts for the Radio
alias: "Media: Play BBC Radio 1"
sequence:
- service: media_player.play_media
data:
media_content_id: media-source://radio_browser/d97b5842-8e9b-46cc-85f0-d2dff6738c7c
media_content_type: music
enqueue: replace
target:
entity_id: media_player.master_bedroom_echo_dot
mode: single
icon: mdi:play