Broadlink RM4C mini configuration

This solution worked for me to reconnect RM Mini 4 with Home Assistant

Setup RM mini 4 into AP Mode to connect with Broadlink app:
1- Long press the reset button until the blue LED is blinking quickly (like 7 seconds).
2- Long press again until blue LED is blinking slowly (like 14 seconds).

Configure RM mini 4 with Broadlink mobile application
1- Install broadlink app in your cellphone: https://play.google.com/store/apps/details?id=cn.com.broadlink.econtrol.international
2- First Open Press plus sign (+) to open menu then press Add device
3- Press Add a new device then press Universal Remote
4- Select your RM Version then press Next (My case RM4 mini - 2019 version)
5- Press button to confirm you are already connected

Add Air conditioner to RM Mini 4
1- Press RM mini already configured then press plus sign (+) to open menu
2- Select AC Remote Full Display
3- Press Add appliance button

Unlock RM Mini and Get IP address for Home Assistant
1- Press RM mini already configured
2- Press elipsis sign (…) to open menu
3- Press property
4- Disable toggle with label Unlock device
5- Press Device information then get IP Address displayed into their corresponding section

Docker configuration
1- Install docker in Raspberry with get.docker.sh script with curl

curl -fsSL https://get.docker.com/ | sh

2- Verify docker installation

docker --version

My Docker compose file

version: '3'
services:
  homeassistant:
    container_name: homeassistant
    image: "homeassistant/home-assistant:2023.6.2"
    volumes:
      - /home/admin/Repos/domotic-server/container/config:/config
      - /etc/localtime:/etc/localtime:ro
    restart: unless-stopped
    privileged: true
    network_mode: host
  • Start Home Assistant using docker-compose.yml

docker compose up -d

Home Assistant configuration

1- Navigate to http://localhost:8123/ in the raspberry or http://<raspberry.pi.ip.address>:8123/
2- Let Home Assistant to autodetect your location
3- Add Broadlink integration and set RM mini’s ip address given by broadlink mobile application
4- Click the device labeled with Chinese characters then click the gear icon and finally set a better readable name (My case RM Mini 4)
5- Stop Home Assistant Container from domotic-server directory with command: docker compose down
6- Clone repo GitHub - smartHomeHub/SmartIR: Integration for Home Assistant to control climate, TV and fan devices via IR/RF controllers (Broadlink, Xiaomi, MQTT, LOOKin, ESPHome)
7- Copy custom_components into container/config directory generated by docker
8- Open container/configuration.yml then paste example configuration, below existing configuration
9- Set name and unique_id with values set on Broadlink mobile app for the Air Conditioner device

# put below Home Assistant existing configuration in container/configuration.yml

smartir:

climate:
  - platform: smartir
    name: <Name of the device defined in the app>
    unique_id: <name_of_the_device_defined_in_the_app_separated_by_underscore>
    device_code: 2100
    controller_data: remote.zhi_neng_yao_kong


# For further information visit https://github.com/smartHomeHub/SmartIR/blob/48d7f1ff3865aeddb5bcb493177df7e868193b7d/docs/CLIMATE.md