haze.1986
(Hay Kay)
August 19, 2021, 8:05am
1
Hi all, I have a xiaomi android TV, the mi TV 4s and I know that it has an IR receiver. I do not have an IR remote and the default remote is bluetooth. I also do not have a device with IR emitter that I can send the code to turn it on and off. Could I trouble someone to help share the code to turn it on please? I am using the rm4 mini.
Thank you.
Xiaomi Mi Box IR Codes
Power:
JgA0ACMRFhEWLRYtFhEWLRYRFi0WERUuFi0WAAFTIhEWERYtFi0WERYtFhEVLhYRFS4VLhYADQUAAAAA
Up:
JgA0ACISFSQWERUbFiQWERURFhoWGxUkFi0WAAGMJREWJBYRFRsWIxYRFhEWGhYaFiQWLRYADQUAAAAA
Down:
JgA0ACMRFiQVEhUbFiMWERYRFhoWJBUkFhEWAAGgIxEWJBURFhsVJBYRFhEWGhYkFSQWERYADQUAAAAA
Left:
JgA2ABQmExQTHRMmFBMUExMnEzATHRMdFAABkCETEycTExQdEyYUExMUEyYULxQdEx0TAAioDQANBQAA
Right:
JgA0ACQRFSQWERYaFiQWERYQFi4VERYRFiQVAAGhIxEVJBYRFhoWJBYRFREWLRYRFhEWJBUADQUAAAAA
OK:
JgA0ACMRFiQVERYbFSQWERYRFS4WGhYRFi0WAAGOIxEVJBYRFhoWJBYRFhAWLhUbFREWLhUADQUAAAAA
Back:
JgA0ACMRFSQWERUbFiQWERURFhoWLhUkFhoWAAGPIhEWJBYRFRsWIxYRFhEWGhYtFiQWGhYADQUAAAAA
Home:
JgA0ACYSFSQWERUbFiQWERURFiQWERUbFiMWAAGhIhEWJBYRFRsWJBURFhEWJBYQFhsVJBYADQUAAAAA
Vol+:
JgA0ACMRFSUVERYaFiQWERYRGikVJBYRFhEVAAGhIxEVJBYRFhoWJBYRFREWLhUkFhEWERUADQUAAAAA
Vol-:
JgA0ACMRFSUVERYaFiQWERYRFS4VLhYRFRsWAAGOIxEVJBYRFhoWJBYRFREWLRYuFREWGhYADQUAAAAA
haze.1986
(Hay Kay)
August 21, 2021, 4:01am
3
krskrab:
QUAAAAA
Hi thanks for sharing but from my understanding the codes should be longer than that? Is it due to encryption? May I know how do get my set of codes?
EDIT *
The codes work. My mistake.
On a tangent, have you tried enabling ADB on the android TV and using the HA AndroidTV integration ? The documentation makes it look a lot harder than I found it … and it does allow you to send the keystrokes as though from a remote control.
haze.1986
(Hay Kay)
August 21, 2021, 6:16am
5
You are right, I managed to set up using this ADB method as well, the controls feels quite laggy though compared to using the android tv remote control app to control. Even like changing the volume takes about 2-3 seconds on average.
Do you know why?
Also, there is no way to use adb to power it from an off state correct? the only way seems to be IR
I would also add that I have already tried the ANDROIDTV.LEARN_SENDEVENT (FOR FASTER ADB COMMANDS), while it does improve the speed for basic buttons like navigation, home and back, it usually does not work for buttons like “channel list” and changing of input source where you will need to default back to using the normal keyworks.For the channel list button especially, it will not be recognised after a restart of the TV
uzer123
December 22, 2021, 8:00am
6
I tried the codes above but they dont seem to work for me.
I go to Developer Tools, Services and i try to call this service:
service: remote.send_command
target:
entity_id: remote.rm4mini_remote
data:
command: b64:JgA0ACMRFhEWLRYtFhEWLRYRFi0WERUuFi0WAAFTIhEWERYtFi0WERYtFhEVLhYRFS4VLhYADQUAAAAA
device: mibox
I also tried to run all the commands without success:
service: remote.send_command
target:
entity_id: remote.rm4mini_remote
data:
command:
- b64:JgA0ACYSFSQWERUbFiQWERURFiQWERUbFiMWAAGhIhEWJBYRFRsWJBURFhEWJBYQFhsVJBYADQUAAAAA
- b64:JgA0ACMRFhEWLRYtFhEWLRYRFi0WERUuFi0WAAFTIhEWERYtFi0WERYtFhEVLhYRFS4VLhYADQUAAAAA
- b64:JgA0ACISFSQWERUbFiQWERURFhoWGxUkFi0WAAGMJREWJBYRFRsWIxYRFhEWGhYaFiQWLRYADQUAAAAA
- b64:JgA0ACMRFiQVEhUbFiMWERYRFhoWJBUkFhEWAAGgIxEWJBURFhsVJBYRFhEWGhYkFSQWERYADQUAAAAA
- b64:JgA2ABQmExQTHRMmFBMUExMnEzATHRMdFAABkCETEycTExQdEyYUExMUEyYULxQdEx0TAAioDQANBQAA
- b64:JgA0ACQRFSQWERYaFiQWERYQFi4VERYRFiQVAAGhIxEVJBYRFhoWJBYRFREWLRYRFhEWJBUADQUAAAAA
- b64:JgA0ACMRFiQVERYbFSQWERYRFS4WGhYRFi0WAAGOIxEVJBYRFhoWJBYRFhAWLhUbFREWLhUADQUAAAAA
- b64:JgA0ACMRFSQWERUbFiQWERURFhoWLhUkFhoWAAGPIhEWJBYRFRsWIxYRFhEWGhYtFiQWGhYADQUAAAAA
- b64:JgA0ACYSFSQWERUbFiQWERURFiQWERUbFiMWAAGhIhEWJBYRFRsWJBURFhEWJBYQFhsVJBYADQUAAAAA
- b64:JgA0ACMRFSUVERYaFiQWERYRGikVJBYRFhEVAAGhIxEVJBYRFhoWJBYRFREWLhUkFhEWERUADQUAAAAA
- b64:JgA0ACMRFSUVERYaFiQWERYRFS4VLhYRFRsWAAGOIxEVJBYRFhoWJBYRFREWLRYuFREWGhYADQUAAAAA
Any idea? (R4mini IR led blinks when i run the service)
krskrab
December 22, 2021, 12:11pm
7
- platform: broadlink
host: 192.168.68.145
mac: 34:EA:34:C7:B6:F7
switches:
- name: Samsung tv
command_on: JgDqAZWTEzYUNhM2FBETEhMSExITERQ2EjcUNhMSEhMSEhMSEhMTEhM2ExISExMSEhITEhMSEzYUERM3EzYTNxM2EzcTNhMABf+VkxM3EzYTNxMRExITEhMSEhMSNxM3EzYTEhITEhMTERMSEhMTNhQRExITEhMSEhIUERI4ExISNxM3EjcTNxM2EzcSAAYAlJMUNhM3EzYTEhITExETEhMSEjgSNhQ3EhITEhITExITEhMREzcTEhISFBETEhITEhMTNhMSEjcTNxI3FDYTNxM2EgAGAJSUEzYUNhM2FBETEhMSEhMTERM3EjcTNxMSEhITEhMSEhMTEhI3ExITEhITEhITEhMSEjcTEhM3EjcTNxI3EzcTNhMABf+VkxM3EjcTNxMRExITEhITExITNhI4EzYSExITEhIUERMSExISNxMSEhMTEhISFBETEhM3ExETNxM2EzcTNhQ2EzYUAAX+lZMTNxM2EzcTEhISExISExMSEjcTNxM2ExISExMSEhIUERITEjcTEhMSExISExMRFBETNxMSEzYSOBM2EjgTNhM3EwAF/5WTEzYTNxI3ExISExITExETEhI4EzYSOBISFBESExITExISEhM3EhMTERMSExITEhITEjcTEhM2EzcTNhM3EjcUNhIADQUTEhMSExISExI3EzcTNg==
command_off: JgDqAZWTEzYUNhM2FBETEhMSExITERQ2EjcUNhMSEhMSEhMSEhMTEhM2ExISExMSEhITEhMSEzYUERM3EzYTNxM2EzcTNhMABf+VkxM3EzYTNxMRExITEhMSEhMSNxM3EzYTEhITEhMTERMSEhMTNhQRExITEhMSEhIUERI4ExISNxM3EjcTNxM2EzcSAAYAlJMUNhM3EzYTEhITExETEhMSEjgSNhQ3EhITEhITExITEhMREzcTEhISFBETEhITEhMTNhMSEjcTNxI3FDYTNxM2EgAGAJSUEzYUNhM2FBETEhMSEhMTERM3EjcTNxMSEhITEhMSEhMTEhI3ExITEhITEhITEhMSEjcTEhM3EjcTNxI3EzcTNhMABf+VkxM3EjcTNxMRExITEhITExITNhI4EzYSExITEhIUERMSExISNxMSEhMTEhISFBETEhM3ExETNxM2EzcTNhQ2EzYUAAX+lZMTNxM2EzcTEhISExISExMSEjcTNxM2ExISExMSEhIUERITEjcTEhMSExISExMRFBETNxMSEzYSOBM2EjgTNhM3EwAF/5WTEzYTNxI3ExISExITExETEhI4EzYSOBISFBESExITExISEhM3EhMTERMSExITEhITEjcTEhM2EzcTNhM3EjcUNhIADQUTEhMSExISExI3EzcTNg==
- name: TV Program
command_on: JgBAAQgcCEEIJghcCCoIKgghCEUIAAGqCB0IJQgYCCYIGAhBCBgIGAgAClUIHAhBCCYIXAgqCCoIIQpDCAABqggdCEoIPAglCBgIQQgYCBgIAApVCB0IQQglCFwKKAgrCCEIRQgAAaoIHAhKCDwKJAgYCEEJFwgYCAAKVQoaCEEIJglbCCoIKgofCEUKAAGoChsISgg8CiQJFghBCBgIGAgAClUKGwhBCSQKWgooCikIIQhFCgABqAkbCkgKOgokCBgKPwkXCBgIAApVCB0IQAokCloKKAooCCEIRgkAAagKGwlJCTsIJgkXCT8KFgoWCAAKVggcCj8IJQhcCikJKQghCUQIAAGqCBwISgg9CSQIGAo/ChYIGAgAClUIHQhACiQJWwooCCoIIQhGCAABqQgdCUkIPAgmCBgIQAoWCBgIAA0FAAAAAAAAAAA=
command_off: JgBAAQgcCEEIJghcCCoIKgghCEUIAAGqCB0IJQgYCCYIGAhBCBgIGAgAClUIHAhBCCYIXAgqCCoIIQpDCAABqggdCEoIPAglCBgIQQgYCBgIAApVCB0IQQglCFwKKAgrCCEIRQgAAaoIHAhKCDwKJAgYCEEJFwgYCAAKVQoaCEEIJglbCCoIKgofCEUKAAGoChsISgg8CiQJFghBCBgIGAgAClUKGwhBCSQKWgooCikIIQhFCgABqAkbCkgKOgokCBgKPwkXCBgIAApVCB0IQAokCloKKAooCCEIRgkAAagKGwlJCTsIJgkXCT8KFgoWCAAKVggcCj8IJQhcCikJKQghCUQIAAGqCBwISgg9CSQIGAo/ChYIGAgAClUIHQhACiQJWwooCCoIIQhGCAABqQgdCUkIPAgmCBgIQAoWCBgIAA0FAAAAAAAAAAA=
Or
1 Like
uzer123
December 24, 2021, 4:32pm
8
the problem is i cannot make it work with mibox…
The RM4mini works fine with my AC for example…