Port Apple HomeKit onto a Broadlink RM4 Pro to control a 300 MHz gate

A Redditor used Claude to port esp-homekit and wolfCrypt onto a Broadlink RM4 Pro's Realtek chip, so the IR/RF blaster pairs with Apple Home directly and now runs their 300 MHz gate and office fan daily.

Done withClaude· Nov 25, 2026

What they did

u/pr0tag wanted a 300 MHz gate remote to show up in Apple Home. They opened a Broadlink RM4 Pro, soldered wires to its UART pads and flashed an existing community ESPHome firmware for the device, after which updates went over Wi-Fi. The blaster runs on a Realtek RTL8720CF with 256 KB of RAM and 2 MB of flash. With Claude they ported the esp-homekit library and the wolfCrypt crypto library to that chip, so the RM4 Pro itself acts as a HomeKit bridge with no Homebridge, Home Assistant or extra hardware. Claude also wrote a small web UI that runs on the device for learning and managing IR and RF codes.

How it went

It works and is in daily use: the gate opens from the Home app, and an IR office fan has power, a three-step speed slider and oscillation. Getting there took fixes around mDNS, HomeKit characteristic compliance and the storage limits of FlashDB. Under ESPHome the radio can learn and send at 300 MHz, which the stock firmware does not allow. TV and air conditioner support pass host-side tests but have not been tried on real hardware. The poster calls it experimental and bare bones.

Worth knowing

This needs a hardware step first: opening the case and soldering to UART pads to flash custom firmware, which the agent cannot do for you. The post does not say which Claude product or harness was used, only Claude. No code for the HomeKit port is linked in the post.

Try it

With Claude· 6 parts to fill in

Help me port [a HomeKit accessory library, e.g. esp-homekit] and its crypto dependency to [my microcontroller and its SDK], which has [RAM] of RAM and [flash] of flash, running alongside [my existing firmware, e.g. ESPHome]. Start by listing what the library needs from the platform (mDNS, sockets, storage, random numbers) and how each maps to this chip. Port one piece at a time and write host-side tests for each before I flash anything. Expose [my devices, e.g. a gate relay and an IR fan] as HomeKit accessories with the right characteristics. Stop after each stage and tell me exactly what to flash and what to check in the Home app.

Square brackets are the parts to fill in. The prompt is ours; the story is theirs.

Where they said it

Related