For those of us with surround sound receivers or sound bars, it would be nice to be able to map the buttons on a media player card to do the action from a different media card, script, switch, etc (namely volume and power.)
I have my Kodi media player card, but I don’t want the power button to turn on/off the Kodi computer, I want it to run my on or off script for my tv, receiver, etc. I also don’t want the volume buttons to turn down the virtual volume of the Kodi computer but the actual volume of my (networked and added as a media player) Yamaha receiver.
If (either via the integration or in Lovelace yaml) I could map that media-player’s volume and power buttons to a custom action then that would be tremendously helpful (extra points if you can also edit icon).
I am using mini-media player as a band-aid solution.
I configured it to hide the default buttons and add (clunky) shortcut buttons on top of the player card to do what I want, but as soon as you touch the card to expand it, now the volume and power buttons are the default ones of the normal media player.
Thus mini-media player is truly a band-aid solution for this.
Ok, I just looked into universal player more and looks like that will do what I want.
When I looked at it some time ago I thought it was a from scratch template, not one that you can build off from a child template.
I have been playing with universal player and it does allow me to map things as desired (although built into the UI would have been quite nice).
I opted to use mini-media player card linked to my universal template player that way I can actually have a stop button since the default kodi player does not .