Just got this working with...
An ABS plastic - aftermarket Xiaomi Mi Box remote or the USA spec Xiaomi Mi Box remote and LibreELEC Kodi Krypton 17.4 running on an S805 ODROID C1 with a v4.0 CSR Bluetooth Dongle:
Those with inbuilt Bluetooth will not even need a USB dongle.
Accessing LibreELEC Help (click)
So far user tested and working on these LE devices:
- RPi's with a BT dongle
- WeTek Hub / Play2
- Generic S9xx devices with inbuilt Bluetooth
- MECOOL M8S Pro+ with a v4.0 CSR BT dongle
- MINIX U9
- ODROID C2 with a v4.0 CSR BT dongle using this
test .tar update
How to Set it all up:
1) Kodi Settings > LibreELEC > Services > Bluetooth > Enable
2) Kodi Settings > LibreELEC > Bluetooth > Xiaomi Remote > Trust and Connect
3) Then simply copy and paste this:
Code:
curl -sL http://wrxtasy.libreelec.tv/LE-Xiaomi/xbt.sh | bash -
4) You can check connected devices (USA Spec remote here) with:
Code:
cat /proc/bus/input/devices
I: Bus=0005 Vendor=2717 Product=32b2 Version=1026
N: Name="Xiaomi Remote"
P: Phys=00:15:83:CC:84:04
S: Sysfs=/devices/virtual/misc/uhid/input3
U: Uniq=08:EB:29:36:60:3C
H: Handlers=kbd event3
B: PROP=0
B: EV=120013
B: KEY=10000 7 ff9f207a c14057ff febeffdf ffefffff fff80f80 3c00f002
B: MSC=10
B: LED=1f
5) Xiaomi remote remapping is found here, use a Kodi debug log (enable in Kodi settings > System) to see KEY press events:
Code:
cat .kodi/temp/kodi.log
and custom edit them if needed:
Code:
nano .config/xiaomibtremote.evmap
CTRL-O to save CTRL-X to exit
6) Want to further custom remap remote buttons for particular individual areas of Kodi use ?
Kodi Settings > Addons > Install from Repository > Programs > Keymap Editor
Two suggested remote buttons that definitely need remapping to increase Kodi functionality:
KeyMap Editor:
Fullscreen Video > Playback > Stop > press Xiaomi remote Back button
Fullscreen Live TV > Playback > Stop > press Xiaomi remote Back button
Global > Navigation > Context Menu > press Xiaomi remote Context (hamburger) button
These Xiaomi BT remotes make an excellent addition to dual boot LibreELEC / Android TV ROM boxes like the WeTek Hub & Play2 that can now use the Bluetooth Xiaomi remotes with both Operating Systems
The following Xiaomi BT remotes work as well because they all use the same 2717 VendorID.
Beware the dirt cheap ones with rubber keys and a Coin type battery, as they will not be as good or easy to use
Original Genuine Xiaomi Bluetooth Remote - $11.19
or
Xiaomi Bluetooth Remote Control 2 $11.50
W.