I had this working for quite a while. I was on a mission to create a music player dashboard using alexa media player, and mini-media-player card. The weird part is in the editor it works perfectly, but once I save it, all I see is the input select. Does anyone know why?
Input select:
configuration.yaml:
input_select:
media_player_device:
name: Media Player Device
options:
- media_player.living_room_echo
- media_player.bedroom_echo
- media_player.office_echo
- media_player.all_echos
initial: media_player.living_room_echo
icon: mdi:speaker
media_player_device_friendly:
name: Media Player Device
options:
- Living Room Echo
- Bedroom Echo
- Office Echo
- All Echos
initial: Living Room Echo
icon: mdi:speaker
media_player_devices:
name: Media Player Devices
options:
- Living Room Echo
- Bedroom Echo
- Office Echo
- Everywhere
initial: Living Room Echo
icon: mdi:speaker
Dashboard view:
type: vertical-stack
cards:
- type: entities
entities:
- entity: input_select.media_player_device_friendly
name: Media Player Device
- type: custom:state-switch
entity: input_select.media_player_device_friendly
states:
Living Room Echo:
type: custom:mini-media-player
entity: media_player.living_room_echo
artwork: full-cover
volume_step: '1'
toggle_power: false
show_state: true
group: true
hide:
power: false
play_stop: false
shuffle: false
shortcuts:
columns: 3
buttons:
- name: 70’s Rock
type: service
id: script.play_music_on_device
data:
name_of_music: 70s Rock From Amazon Music
device_name: Living Room Echo
- name: 90’s Alt
type: service
id: script.play_music_on_device
data:
name_of_music: 90s Alternative From Amazon Music
device_name: Living Room Echo
- name: Alt Hits
type: service
id: script.play_music_on_device
data:
name_of_music: Alternative Hits From Amazon Music
device_name: Living Room Echo
Script
alias: play_music_on_device
sequence:
- service: media_player.play_media
target:
entity_id: media_player.living_room_echo
data:
media_content_id: play {{ name_of_music }} on {{ device_name }}
media_content_type: custom
mode: single
icon: mdi:music