I use Kodi to watch movies with a group of friends and family and personally as well. So I have to switch between speakers connected to my TV and my Bluetooth earpphones. And it is a tiresome process to go to settings and change audio device. I added JSON RPC commands in my Yatse remote to do the same.
Toggle-Bluetooth
Settings.SetSettingValue
{“setting”:“audiooutput.audiodevice”,“value”:“PULSE:Default”}
Toggle-HDMI
Settings.SetSettingValue
{“setting”:“audiooutput.audiodevice”,“value”:“PI:HDMI”}
But the issue with this is that there is no way you can verify without playing a media file and listening through the desired audio device.
If there was a label on the Yatse Remote that indicates the active audio device that could make the whole process a lot easier. You can add these JSON RPC commands by default in Yatse or have a dedicated button to toggle between the two.