I’d suggest using scripts for those actions
An example script
alias: Volume Down
sequence:
- data: {}
action: media_player.volume_down
target:
device_id:
- 00000000000000000000000000
mode: single
For the card
You’ll need to add the buttons that reference the scripts under custom_actions
custom_actions:
- type: button
name: v-down
icon: mdi:volume-minus
tap_action:
action: toggle
target:
entity_id: script.volume_down