Broadlink RM Mini 3

Hi there,
im trying to configure my first device with home assistant that is Broadlink RM Mini3 and having trouble so far. The switch simply doesn’t appear in the interface.
Here is my config (host and macaddress below are device’s ip address and mac address.):
switch:
- platform: broadlink
host: 192.168.1.28
mac: ‘34:EA:34:E3:BC:F2’
switches:
projector:
friendly_name: ‘Big Screen’
command_on: ‘JgAyAXI5Dg4PKg8ODw4ODg8ODg4PDg8ODg4PDg8ODg4PKg8ODw4ODg8ODg4PDg8ODg4PDg8qDw4ODg8ODw4ODg8ODw4ODg8qDw4PKg8qDysOKw8NDw4PKg8ODyoPKw4rDisPDg4rDgAJmHI5Dg4PKw4ODw4ODg8ODw4ODg8ODw4ODg8ODg4PKw4ODw4PDQ8ODw4ODg8ODw4ODg8rDg4PDg4ODw4PDQ8ODw4ODg8rDg4PKw4rDisPKg8ODg4PKw4ODysOKw4rDyoPDg4rDwAJl3I5Dw4OKw4PDg4PDg4ODw4PDg4ODw4ODg8ODw4OKw8ODg4PDg4ODw4PDg4ODw4ODw4rDg4PDg8ODg4PDg4ODw4PDg4rDg4PKw4rDyoPKg8ODw4OKw4PDisOKw8qDyoPDg8qDwANBQAAAAAAAA=’
command_off: ‘JgAyAXI5Dg4PKg8ODw4ODg8ODg4PDg8ODg4PDg8ODg4PKg8ODw4ODg8ODg4PDg8ODg4PDg8qDw4ODg8ODw4ODg8ODw4ODg8qDw4PKg8qDysOKw8NDw4PKg8ODyoPKw4rDisPDg4rDgAJmHI5Dg4PKw4ODw4ODg8ODw4ODg8ODw4ODg8ODg4PKw4ODw4PDQ8ODw4ODg8ODw4ODg8rDg4PDg4ODw4PDQ8ODw4ODg8rDg4PKw4rDisPKg8ODg4PKw4ODysOKw4rDyoPDg4rDwAJl3I5Dw4OKw4PDg4PDg4ODw4PDg4ODw4ODg8ODw4OKw8ODg4PDg4ODw4PDg4ODw4ODw4rDg4PDg8ODg4PDg4ODw4PDg4rDg4PKw4rDyoPKg8ODw4OKw4PDisOKw8qDyoPDg8qDwANBQAAAAAAAA=’

Here is what i have in logs:
2017-09-08 08:49:42 ERROR (MainThread) [homeassistant.components.switch] Error while setting up platform broadlink
Traceback (most recent call last):
File “/Applications/Anaconda/anaconda/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py”, line 164, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
File “/Applications/Anaconda/anaconda/lib/python3.6/asyncio/tasks.py”, line 352, in wait_for
return fut.result()
File “/Applications/Anaconda/anaconda/lib/python3.6/asyncio/futures.py”, line 244, in result
raise self._exception
File “/Applications/Anaconda/anaconda/lib/python3.6/concurrent/futures/thread.py”, line 55, in run
result = self.fn(*self.args, **self.kwargs)
File “/Applications/Anaconda/anaconda/lib/python3.6/site-packages/homeassistant/components/switch/broadlink.py”, line 130, in setup_platform
device_config.get(CONF_COMMAND_OFF)
File “/Applications/Anaconda/anaconda/lib/python3.6/site-packages/homeassistant/components/switch/broadlink.py”, line 156, in init
self._command_on = b64decode(command_on) if command_on else None
File “/Applications/Anaconda/anaconda/lib/python3.6/base64.py”, line 87, in b64decode
return binascii.a2b_base64(s)
binascii.Error: Incorrect padding

I spent hours already trying to configure it so any help very much appreciated.
Thanks,
Alex

You need to specify the ‘type: rm_mini’ for the system to know which type of device you are using.

It works for me fine.

This how I set up my RM mini 3:

- platform: broadlink
    host: 192.168.0.33
    mac: '34:EA:34:88:D5:B9'
    timeout: 15
    switches:
      tv:
        friendly_name: "Samsung TV Power"
        command_on: 'JgBGAJKVDzsQOhA6EBUQFRAVERQRFBE5EDoSOBEUERQRFBAVEBURFBE5ERQRFBAVERQRFBEUETkRFBE5ETkRORE5EToQOg8ADQUAAA=='
        command_off: 'JgBGAJKVDzsQOhA6EBUQFRAVERQRFBE5EDoSOBEUERQRFBAVEBURFBE5ERQRFBAVERQRFBEUETkRFBE5ETkRORE5EToQOg8ADQUAAA=='
       
      stereo:
        friendly_name: "Samsung Blu-ray Power"
        command_on: 'JgAwApKVETkRORETExIRFBETETkRFBE5ETkRExEUEzcRExI4EhMROREUERMRFBMRERQRFBISExIRORE5ETkRORE5ETkROREABeKSlRM3EzcSExEUERMRFBE5ERMRORE5EhMRFBE5ERMROREUETkRExEUERQRExEUERMRFBETEjgTNxI5ETkRORE5ETkTAAXgkpUTNxE5ERQRExITExIRORETETkROREUERMSOBITETkTEhE5ExETEhMREhMRFBETExIRExE5ETkRORM3EjgSOBI5EQAF4JSVETkROREUERMRFBETEjkRExE5ETkRFBETETkRFBE5ERQRORETERQRExITERMSExEUERMTNxM3ETkRORE5EzcTNxEABeOSlRM3EzcRFBMRERQTERI4EhMRORE5ExITERE5ERQRORETEzcTEhMSERMRFBETERQRFBETETkTNxE5ETkTNxE5ETkRAAXjkpUTNxE5ERQRExEUERMTNxEUETkROREUERMTNxEUETkTERM3ExITERMSERQSEhEUERMRFBM3ETkRORE5ETkTNxE5EwAF4ZOUETkRORETEhMRFBETETkRFBE5ETkRExEUETkTEhE5EhITNxMSExERFBEUERMRFBETERQRORE5EzcTNxE5EzcTNxEABeKSlRI4EjgSExEUERMRFBE5ERMRORE5ExIRFBE5ERMRORMSETkRExITERMSExEUERMTEhETETkRORE5EzcRORM3EzcSAA0FERQRExI5ERM=='
        command_off: 'JgAwApKVETkRORETExIRFBETETkRFBE5ETkRExEUEzcRExI4EhMROREUERMRFBMRERQRFBISExIRORE5ETkRORE5ETkROREABeKSlRM3EzcSExEUERMRFBE5ERMRORE5EhMRFBE5ERMROREUETkRExEUERQRExEUERMRFBETEjgTNxI5ETkRORE5ETkTAAXgkpUTNxE5ERQRExITExIRORETETkROREUERMSOBITETkTEhE5ExETEhMREhMRFBETExIRExE5ETkRORM3EjgSOBI5EQAF4JSVETkROREUERMRFBETEjkRExE5ETkRFBETETkRFBE5ERQRORETERQRExITERMSExEUERMTNxM3ETkRORE5EzcTNxEABeOSlRM3EzcRFBMRERQTERI4EhMRORE5ExITERE5ERQRORETEzcTEhMSERMRFBETERQRFBETETkTNxE5ETkTNxE5ETkRAAXjkpUTNxE5ERQRExEUERMTNxEUETkROREUERMTNxEUETkTERM3ExITERMSERQSEhEUERMRFBM3ETkRORE5ETkTNxE5EwAF4ZOUETkRORETEhMRFBETETkRFBE5ETkRExEUETkTEhE5EhITNxMSExERFBEUERMRFBETERQRORE5EzcTNxE5EzcTNxEABeKSlRI4EjgSExEUERMRFBE5ERMRORE5ExIRFBE5ERMRORMSETkRExITERMSExEUERMTEhETETkRORE5EzcRORM3EzcSAA0FERQRExI5ERM==' 
      stereo_vol_up:
        friendly_name: "Stereo Volume Up" 
        command_on: 'JgDqAZSTEzcSORISExISEhMSEzcTERI4EzgSEhEUEjgSEhM3ExITNxE5ExISEhM3EzcTEhMRExITERM3EzcTEhMSETkSOBIABeGUkxM3EzcTEhMRExITEhI4EhITNxM3ExITERM3ExITNxMSEzcSOBMRExITNxM3ExETEhMSExETNxM3ExITERM3EzcTAAXhlJMTNxM3ExISEhMSExETNxMSEzcTNxMSEhITNxMSEzcTERM3EzcTEhMSEjcTOBISExITERMSEzcTNxMRExITNxM3EwAF4JSUEjgTNxMSEhITERMSEzcTEhI4EjgSEhMSEzcTERM3ExITNxM3ExISEhM3EzcTEhMRExITERM3EzcTEhMSEjgSOBIABeGUkxM3EzcTEhMRExITERM3ExITNxM3ExITERM3ExITNxMREzcTNxMSExITNxM3ExETEhMRExITNxM3ExISEhM3EzcTAAXglJQTNxM3ExETEhMSEhITNxMSEzcTNxMRExITNxMREzcTEhM3EzcTEhMREzcTNxMSExETEhMSEzcTNxMRExITNxM3EwAF4JSTEzcTNxMSExETEhMREzcTEhM3EzcTEhMREzcTEhM3ExETNxM3ExITEhM3EzcTERMSExETEhM3EzcTERMSEzcUNhMADQUTEhMSEjgSEhM3EzcTEg=='
      stereo_vol_down:
        friendly_name: "Stereo Volume Down"
        command_off: 'JgCEAxETERQRORETETkRORITERQRORETETkRFBE5ETkRFBE4EjkRORETERQRExEUETkRExITERQRORE5EQAF4pKVETkROREUERMRFBETEjgSExE5ETkRFBETETkRFBE5ERMSOBI4EhMRORE5ETkRFBETERQRExE5ERQRExITETkROREABeKSlRE5ETkRFBETEhMRFBE5ERMRORE5ERQRExE5ERQRORETEjgSOBITETkRORE5ERQRExEUERMSOBITERQRExE5ETkRAAXikpURORE5ERQRFBETERQRORETETkROREUERMSOBITETkRFBE5ETkRExE5ETkROREUERMRFBEUETgSExEUERMRORE5EQAF4pKWETkRORETERQRFBETETkRFBE5ETkRExEUETkRExI4EhMRORE5ERQRORE5ETkRExEUERMSExE5ERQRExEUETkROREABeKSlRE5ETkRFBETERQRExE5ERQRORE5ERMSExE5ERQRORETETkROREUETkRORE5ERMSExEUERMROREUERMRFBE5ETkRAAXikpURORE5ERQRExITERQRORETETkROREUERMROREUETkRFBE5ETkRExE5ETkROREUERMRFBETEjgSExEUERMRORE5EQAF4pKVEjgSOBITERQRExEUETkRExI4EjgSExEUETkRExE5ERQRORE5ERMRORE5ETkSExEUERMRFBE5ERMRFBETEjgSOBIABeGTlRE5ETkRExEUERQRExE5ERQRORE5ERMRFBE5ERMROREUETkROREUETkROBI5ERMRFBETERQRORETERQRFBE4EjkRAAXikpURORE5ERMRFBEUERMROREUETkRORETERQRORETEjgSExE5ETkRFBE5ETkRORETERQRExEUETkRFBETERQRORE5EQAF4pKVETkROREUERMRFBETETkRFBE5ETkRExITETkRFBE5ERMRORE5ERQRORE5ETkRExITERQRExE5ERQRExEUETkROREABeKSlRE5ETkRFBETERQRExE5ERQRORE5ERQRExE5ERQRORETETkROREUETkRORE5ERQRExEUERMROREUERMRFBE5ETkRAAXikpURORE5ERQRExEUERQROBITETkROREUERMROREUETkRExI4EjgSExE5ETkROREUERMRFBETETkRFBETEhMRORE5EQANBQAAAAA=='

it all works as it should. I didn’t need to add rm_mini. You may want to add another “=” sign to the end of your ir code string.

2 Likes

Hello… I very very very new to Home Assistant and I´m just curious about all that bunch of letters and numbers after the comand line… how do I get that string of characters???

@clauserg On the service tab in Home Assistant image just click dropdown then select broadlink.learn_command_SHOULD_BE_THE_BROADLINK_IP Aim that remote and press the button to learn this will create a Persistent message in HA front end make sure you grab the complete message so also under the developers tool section click on the states page < > and copy that super long string.

4 Likes

I had to add two “=” signs to make RM mini 3 working. But you gave me the hint!

I am having troubles with the broadlink platform as the switches are disappearing from the frontend everytime i add one new switch… i followed all instructions and the config is validated… i also added two == signs after the commands, but no success…

Old thread, sorry, but how do you present volume buttons in HA? In Openab using broadlink-mqtt, I was using a roller shutter control, which presents an up and down arrow, which worked well for volume and channels.

Am I right that in HA I need to use a switch? or two switches? Can they be presented “nicer”?

You could create a scene with the volume command and then use customize to display the icon you wish to use. If you would like an example of how this is done have a look at my repo.

1 Like

Hi
I have 2x RM3 and 1x RM Pro+. RM Pro+ work great with all IR and RF devices added to HA. I got one RM3 working in HA but none of my second RM3’s entities are recognized in HA. I can confirm that the Mac address and IP are correct
I restarted and try to refresh several times but entities of my second RM3 are not getting added. All devices controlled via the second RM3 work with IHC and E-control app
Running HA ver 0.71 or latest
Much appreciate your help
My switches.YAML and Scripts.YAML attaches. I include the script in Groups and the call in front end

scripts.yaml (2.1 KB)
switches.yaml (17.1 KB)

2 Likes

I too have trouble adding my RM Mini. Is there something wrong with the newest version of Home Assistant? Running 0.75.2.

Got this in the log:

Setup of platform broadlink is taking over 10 seconds.

Can’t see that anything is wrong with my config: - platform: broadlink host: 192.168.1.7 mac: !secret BL_mac_rm_mini - Pastebin.com

How did you guys get the Infrared codes? Did you get them from the app? Or did you use a script to capture them?

Thanks in advance!

From the services tab there is a learn function in the available services if you have your mini loaded in hass already.

From there you should be able to get a persistent notification on the front end after the code is captured. It is easier to copy the string from the states tab though. I had troubles getting the whole string from the persistent notification.

Some tips…

Put the remote close to the mini.

Push the button once and quickly. (Holding a button sometimes got me duplicate codes or only parts of codes)

Explore the functions of your remote to get the best button codes to use. (On my amplifier choosing a source/input will also turn it on, and not off if on. This is a much more useful button than the power button for some automations. I only use power for off now)

how do you show this onto the gui ? without getting 10x activate buttons ?

so any luck ?

I made automations and scripts for all my remote codes to turn back off after button press took a while, but worth it overall.

As for remote codes I am using these in addition to using the learn remote feature in call service. Broadlink codes for various device

I was succesful in adding the broadlink to my Home Assistant setup. I used the IR commands that were already in the e-connect app. Unfortunately the python script didn’t work with version 3, but in the github repository there is a pull request which adds support for v3 too.

I was wondering if it’s possible to add a switch without state. Buttons like volume up and down actually don’t have a state. So I’d rather have a button I can just press without HA turning it on or off.

Any suggestions?

how do you guys combine a broadlink with an actual remote?
the beauty with harmony hub, was that the remote always was in sync with the hub, always in the same activity also
so if you only have a broadlink hub? how do you guys still use a remote? a harmony i i think not possible, since the activity is not started, and you shut all devices down, if they were fired with a broadlink device :slight_smile:

can someone help me? little bit confused here

sono giorni che sto litigando con HA perchè non riesco a lanciare il comando remote.learn_command. Il bello è che riesco a dare un comando ir (fasullo )
all’ rm mini3 accendendo uno swich, ma non riuscendo a prendere i comandi giusti non so come fare.
ovviamente funziona perfettamente con l’app broadlink.
qualche anima buona saprebbe dirmi come fare?
grazie.