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!
Power: JgA0ACMRFhEWLRYtFhEWLRYRFi0WERUuFi0WAAFTIhEWERYtFi0WERYtFhEVLhYRFS4VLhYADQUAAAAA Up: JgA0ACISFSQWERUbFiQWERURFhoWGxUkFi0WAAGMJREWJBYRFRsWIxYRFhEWGhYaFiQWLRYADQUAAAAA Down: JgA0ACMRFiQVEhUbFiMWERYRFhoWJBUkFhEWAAGgIxEWJBURFhsVJBYRFhEWGhYkFSQWERYADQUAAAAA Left: JgA2ABQmExQTHRMmFBMUExMnEzATHRMdFAABkCETEycTExQdEyYUExMUEyYULxQdEx0TAAioDQANBQAA Right: JgA0ACQRFSQWERYaFiQWERYQFi4VERYRFiQVAAGhIxEVJBYRFhoWJBYRFREWLRYRFhEWJBUADQUAAAAA OK: JgA0ACMRFiQVERYbFSQWERYRFS4WGhYRFi0WAAGOIxEVJBYRFhoWJBYRFhAWLhUbFREWLhUADQUAAAAA Back: JgA0ACMRFSQWERUbFiQWERURFhoWLhUkFhoWAAGPIhEWJBYRFRsWIxYRFhEWGhYtFiQWGhYADQUAAAAA Home: JgA0ACYSFSQWERUbFiQWERURFiQWERUbFiMWAAGhIhEWJBYRFRsWJBURFhEWJBYQFhsVJBYADQUAAAAA Vol+: JgA0ACMRFSUVERYaFiQWERYRGikVJBYRFhEVAAGhIxEVJBYRFhoWJBYRFREWLhUkFhEWERUADQUAAAAA Vol-: JgA0ACMRFSUVERYaFiQWERYRFS4VLhYRFRsWAAGOIxEVJBYRFhoWJBYRFREWLRYuFREWGhYADQUAAAAA |
21 comments
Skip to comment form
looks like home and left button has the same code?!
Do you have IR code for Voice button?
Author
Hi, I finally managed to re-learn the code for the left command:
JgA2ABQmExQTHRMmFBMUExMnEzATHRMdFAABkCETEycTExQdEyYUExMUEyYULxQdEx0TAAioDQANBQAA
It’s fixed in the list above
How can I insert these codes to the IHC app?
Author
Sorry, I do not use IHC App.
What do you use instead of IHC? I’m trying to look for other options since IHC is not very flexible.
Author
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.
You mentioned above that you used broadlink rm mini? How were you able to add the codes mentioned?
Author
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.
Do you know how to add the mi box for alexa? I use the official app
Author
Sorry I do not use Amazon’s Alexa.
How did you figure out what are the codes ?
Author
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.
Thanks! One more question. Do you how to convert these into hex format ? Like 0xa8bca
hi
where did you put the codes in home assistant?
Author
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.
ok. could you please show me how you have your this code in homeassistant?
thanks
Author
Here are 2 examples of my scripts.yaml, using the broadlink_send_packet service to send the rfcode to the devices.
‘21512855963735’:
alias: Watch TV
sequence:
– service: switch.broadlink_send_packet
data:
packet:
– JgBIACAbPBsgODwbHxsgGx8bHzggGzwbHwALjR8cPBsfOD0bHxsfGyAbHzgfGz0bHwALjSAaPRsfODwcHxsfGx8bIDgfGzwcHwANBQ==
– JgBWAFkbERsQDREMLikRDRANEQwRDRANEA0RDRANEA0RDBENHwwRGxEMEQAJwFkbERsQDREMERsfDBENEA0RDBENEA0QDRENEA0QDREMEQ0fDBEbEQwRAA0FAAA=
‘21512855963736’:
alias: Watch DVD
sequence:
– service: switch.broadlink_send
data:
packet:
– JgBIACAbPBsgODwbHxsgGx8bHzggGzwbHwALjR8cPBsfOD0bHxsfGyAbHzgfGz0bHwALjSAaPRsfODwcHxsfGx8bIDgfGzwcHwANBQ==
– JgCEAFESFhEqESsQKxAXECoSFxAXESoRFxArECsQFxEqERYRFxAXESoRKhEqAAGFUxEXESsQKxArEBcQKxAXERcQKxAXECsQKxAXESoRFxAXERYRKhIqESoAAYZREhcQKxArECsQFxEqERYRFxArEBcRKhEqERcQKhIXEBcRFhEqESoRKgANBQAAAAA=
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..
Have you ever found the correct codes? I have the Mi Box S, but these codes don’t seem to work
Author
Sorry, no, I only have the Mi Box 3.
Guys, can you help me? I have the same problem but I want to connect a Mi Smart Projector 2 projector. I tried several ways but the only thing I can’t do is turn it on. I downloaded the Sure App but I didn’t find the Mi Box as an infrared option to get the codes and insert them into the HA