Broadlink RM4 Mini

I had a problem to set mi rm4 mini. It did showed up on the AP, but not in the app.
I must have resetted it like 15 times.

Then, i left for the night to sleep. Try the app next day, and it recognize the thing w/o doing nothing and set it up correctly. Later i learn about this script. Maybe one needs to wait a bit?

I have one working flawlessly in HA i only read the integration documentation, it says you have to avoid attach your rm4 mini to the cloud since it blocks the rm4 to work locally so once you put the wifi credentials close the app and asign a static ip in your router, then add it to configuration.yaml and that’s all

After looking through some of the other Broadlink topics and a lot of trial and error, I managed to get my Broadlink devices added to my network using python-broadlink, so I’m gonna post the steps I took, in case anyone else needs help with it.

Do keep in mind that I’m by no means an expert at this (as is obvious from my helpless posts in this thread alone haha), so there might be better, more efficient methods to do this that I overlooked. This is simply what worked for me.

  1. Run PowerShell as admin in Windows.
  2. Follow these instructions to install Python 3 via Chocolatey https://docs.python-guide.org/starting/install3/win/#install3-windows. You’ll need to install Chocolatey first, then use it to install Python.
  3. Enter pip install --upgrade https://github.com/mjg59/python-broadlink/archive/master.zip to install python-broadlink
  4. Set your Broadlink device to AP mode and connect to it via wifi
  5. Enter python to start Python
  6. In Python, enter import broadlink
  7. Then enter broadlink.setup('myssid', 'mynetworkpass', 3), where the first 2 parameters are your own wifi info. Check the python-broadlink Github for more info on the parameters.
  8. If done correctly, the indicator light on the Broadlink device should stop flashing and it will show up in your local network.
  9. To verify, while still in Python, enter devices = broadlink.discover(timeout=5) and wait it to finish
  10. Then enter devices[0].auth(). It should return true
  11. Finally enter devices[0].host[0] to get the device’s IP address on local network.

That should do it! Hope this will be of use to anyone who encountered issues using the app and is looking to use python-broadlink instead.

3 Likes

this worked fine for me. At the end I could see the IP. Now what?

If your Broadlink device is already connected to your local network, you can either capture IR codes using the broadlink.learn service on HA (search for the HOW TO OBTAIN IR/RF PACKETS section here, or capture RF codes using broadlink_cli (explained here).

Has anyone used the sensor on the rm4 mini hts2?

Managed to install hts2 as sensor but the temperature value is showing as unknown unfortunately. Otherwise, rm4_mini is working good like my rm3 mini.
Hoping for new updates that will make hts2 work wonders.

Anyone managed to succeed in getting the temp and humidity reading from hts2 + rm4_mini combi?

after restarting the raspberry it already works with this configuration

sensor:
  - platform: broadlink
    scan_interval: 60
    host: ip
    type: rm4_mini
    mac: mac
    monitored_conditions:
      - temperature
      - humidity

I use 0.111.4

Thanks for sharing the configuration sample!
It seemed that it might be just the formatting and arranging of the parameter but its all good now :smiley:

I received my HTS2 sensor for my RM4 Pro. Installed it and added the sensor to HA. The digits are displaying as

26.99 C
61.32 %

How can I omit the last digit?

Using templates:

Here is an example where I do a calculation on a raw air pressure vales and convert it to MSL, then limit it to one decimal place:

  # reads 1 hPa high compared to local stations
  - platform: template
    sensors:
      outside_pressure_msl:
        friendly_name: "Outside Air Pressure MSL"
        unit_of_measurement: hPa
        value_template: "{{ '%0.1f'|format(((states('sensor.outside_air_pressure')|float * (1 - (0.0065 * 175) / (states('sensor.outside_temperature')|float + (0.0065 * 175) + 273.15)) ** -5.257) | round(1)) - 1)  }}"
        icon_template: mdi:gauge

This is doing calculations based on the original sensor:

  - platform: mqtt
    name: "Outside Air Pressure"
    state_topic: "tele/extbridge/SENSOR"
    value_template: "{{ value_json['BME280'].Pressure }}"
    unit_of_measurement: "hPa"

If you already have a correct value, you just need to apply the format.

By me everything works fine, i need only advice a lovelace volume button option. I need to do click repeatly on the volume button. I have just now added as switch button but it is not working very fine.

I use the “Compal Connect Box” router from UPC to which I have connected, among others Broadlink RM4 mini and RM4 Pro (I have it connected to Home Assistant). After restarting the router on my phone, I cannot connect to my WiFi network because the message “Getting the IP address …” is still displayed. If I disconnect the Broadlink devices from the power supply, restart the router and then turn on the Broadlink devices, I can connect to the WiFi network without any problems. Have any of you encountered such a problem and know how to solve it?

Hi! I have a problem configuring a rm4 mini to pilot a clima. I use smartIR and have 3 broadlink: one rm4 pro and 2 rm4 mini, all of then to control the same model of Fujitsu clima. The problem is that one of the rm4 mini does not work. When i launch a command via lovelace climate entity, the led of the rm4 mini blinks but the clima does not start. So i think the integration is correct.
I have thought the rm4 mini was broken so i have tried to install it on the android Broadlink app; by the app i can use the clima so the rm4 mini is ok. After the test i deleted the remote in the broadlink app and reset the device to connect it again to the wifi.
This is the smartIR configuration and the integration of that rm4 mini.
The one highlighted is not working.
Someone can help me? (sorry for my english)



my Broadlink is stopped working. Broadlink is online, it trigger the command but nothing happens.Where can i check thinks or logs?

I added my BL into HAS using the python method, added it via integrations and shows up as a remote, I cant seem to get my temp and humidity sensor working though with your code, I have rm4 mini and set the IP and MAC