How to autoswith to bluetooth audio output

when i want bluetooth headphone output, i have to perform below steps,
settings->system->audio->audio output device->PULSE: Default, Bluetooth Audio (PULSEAUDIO)
then i want hdmi output, i have to perform same steps,
settings->system->audio->audio output device->ALSA: Defautl(AML-M8AUDIO Analog), PCM.

how to make coreelec autoswitch to bluetooth audio output when bluetooth headphone connected, and autoswitch to hdmi output after bluetooth headphone powered off.

thx

Try installing Kodi addon named Bluetooth Audio Device Changer from CE repository.

1 Like

Trying Audio Profiles addon