Xiaomi Mi Box IR Codes

The Mi Box is a wonderful piece of Hardware. It comes with a Bluetooth Remote Control, and has also a built-in IR-Receiver. I’ve been looking to use my Broadlink RM Mini to remote control the Mi Box (via some nice Automations in Home Assistant). As I did not find the Base64 encoded codes on the Internet, I thought I’d publish them here, for anyone needing the codes.

I have skipped the “Voice Search” Button, I don’t think that this is necessary

Here they are, enjoy!












Permanent link to this article: https://www.hiscorebob.lu/2018/07/xiaomi-mi-box-ir-codes/


Skip to comment form

    • Nguyễn Quốc Vũ on October 26, 2018 at 1:45 pm
    • Reply

    looks like home and left button has the same code?!
    Do you have IR code for Voice button?

    1. Hi, I finally managed to re-learn the code for the left command:
      It’s fixed in the list above

    • Marian on December 3, 2018 at 1:49 pm
    • Reply

    How can I insert these codes to the IHC app?

    1. Sorry, I do not use IHC App.

    • Ben on January 23, 2019 at 9:25 am
    • Reply

    What do you use instead of IHC? I’m trying to look for other options since IHC is not very flexible.

    1. Hi,
      I’m not using a proprietary system. I mostly use Zigbee and Wi-Fi connected devices. Wifi is powered by Ubiquiti Unifi. Devices are controlled via Home Assistant.

        • Ben on January 23, 2019 at 10:56 am
        • Reply

        You mentioned above that you used broadlink rm mini? How were you able to add the codes mentioned?

        1. I added the codes using Home Assistant. There is a service called switch.broadlink_learn_command which puts the Broadlink RM Device in “learning” mode. Simply press the key on the original remote and the code is displayed in Home Assistant.

    • Desi on March 3, 2019 at 2:57 pm
    • Reply

    Do you know how to add the mi box for alexa? I use the official app

    1. Sorry I do not use Amazon’s Alexa.

    • nn on March 23, 2019 at 4:55 pm
    • Reply

    How did you figure out what are the codes ?

    1. I used the Android App “Sure”, where the Xiaomi Mi Box Codes can be downloaded from the Web. Then I simply pointed the Smartphone to my Broadlink RM Mini Device to capture the codes.

        • nn on March 23, 2019 at 7:58 pm
        • Reply

        Thanks! One more question. Do you how to convert these into hex format ? Like 0xa8bca

    • jose silva on April 9, 2019 at 5:50 pm
    • Reply

    where did you put the codes in home assistant?

    1. Hi,
      I use them in scripts. A script can also be a sequence of codes. Each script is then mapped to a Button in Home Assistant,and some are also exposed to voice assistant.

        • José Silva on April 10, 2019 at 8:51 pm
        • Reply

        ok. could you please show me how you have your this code in homeassistant?

        1. Here are 2 examples of my scripts.yaml, using the broadlink_send_packet service to send the rfcode to the devices.
          alias: Watch TV
          – service: switch.broadlink_send_packet
          – JgBIACAbPBsgODwbHxsgGx8bHzggGzwbHwALjR8cPBsfOD0bHxsfGyAbHzgfGz0bHwALjSAaPRsfODwcHxsfGx8bIDgfGzwcHwANBQ==
          alias: Watch DVD
          – service: switch.broadlink_send
          – JgBIACAbPBsgODwbHxsgGx8bHzggGzwbHwALjR8cPBsfOD0bHxsfGyAbHzgfGz0bHwALjSAaPRsfODwcHxsfGx8bIDgfGzwcHwANBQ==

  1. i’ve got mi box 3 s and it has a bluetooth remote control
    i tried your codes in HA and had no luck controling my mi box using that

    from what i’ve read there are conflict data about if the mi box 3 s has an ir receiver
    if it has, untill now i couldn’t find any relevant IR codes for it to work..

    1. Have you ever found the correct codes? I have the Mi Box S, but these codes don’t seem to work

      1. Sorry, no, I only have the Mi Box 3.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: