Managed to get it working after much playing around! Seems like missing out the ‘-’ before type was my issue! Here is my revised code incase anyone else stumbles across this with the same problem.
entity: media_player.pioneer
type: 'custom:mini-media-player'
hide_when_off: false
shortcuts:
columns: 2
buttons:
- type: service
icon: 'mdi:cast'
name: Chromecast
id: switch.toggle
data:
entity_id: switch.chromecast
- type: service
icon: 'mdi:xbox'
name: Xbox One
id: switch.toggle
data:
entity_id: switch.xboxone
- type: service
name: Playstation 3
icon: 'mdi:playstation'
id: switch.toggle
data:
entity_id: switch.playstation_2
- type: service
icon: 'mdi:xbox'
name: Xbox 360
id: switch.toggle
data:
entity_id: switch.xbox360
One more question - I’m hoping it’s possible! How would I go about having the button highlighted, or change colour when that activity is in use?
So if Chromecast is being use, it would look different to the other three buttons?