Flirc USB Keyboard Remote
Use Flirc GUI to record and pair remote buttons in Windows.
Controllers > Full Keyboard
Q = Volume Up
W = Volume Down
E = Mute
Move Flirc USB to Home Assistant and add this to configuration.yaml:
In Home Assistant > Developer Tools > Events
Listen for events: keyboard_remote_command_received
Press the recorded keys to get the key_code.
Create automation: