Enable/disable Bluetooth service from CLI / Python script or Kodi built-in function?

  • I would like to enable and disable the Bluetooth service without going into the LibreELEC settings menu. What are my options for that?

    I will try to elaborate a little more: I want to enable/disable the Bluetooth service based on specific events in Kodi. For this I would like to use the plugin Kodi Callbacks. Basically the plugin can execute a script (Bash / shell / Python) or one of Kodi's builtin functions upon certain events.

    In addition it would also be nice if I can configure a button in Yatse (Android remote control app) to do the same thing. From Yatse it's easy

    If it's possible via one of the builtin functions, for example the RunPlugin function it would be fairly simply to set it up in both the Kodi Callbacks plugin and in Yatse.