macro to switch the audio choices?

  • Subject sort of says it all. I have a Kodi in my workshop which I can listen to via TV speakers when I'm not running anything and then need to swap to bluetooth (or back) when I have a project going on. Its rather painful to make the switch. Is there any way to program a button or macro to switch the audio choices?

    Thanks!

    If you turn on debug logging, you'll see the action being taken and then its a case of just mapping that action to a key. I did that for turning my receiver on/off. if you post the steps you are taking with debug log then people will know exactly what you are trying to do.

    Without knowing here is the command that would enable BT, replace with your mac address

    Code
    echo -e "connect 00:0a:95:9d:68:16\nexit" | bluetoothctl
  • Have you looked at the Bluetooth Audio Switcher add-on in our repo? .. this auto-switches Kodi to pulseaudio when BT audio device is paired to the HTPC and reverts to alsa (e.g. HDMI output) when the device un-pairs.