Broadlink RM IR device api

Not a device driver but since I've seen it come up here before I wrote a http api for broadlink devices that will work with the http get switch driver in hubitat. It has a web ui for learning and listing the commands and simple get api for communication. Supports multiple devices and macro requests. I'm using this myself and have been quite happy with it.

If this is the wrong place for this, apologies.


Dude, 1000 thumbs up. Thank yo so much. I love my broadlink rm pro and was waiting for someone smarter than me to integrate it.

Can this run on my Rpi?

Yes, if you check out the releases on github I made one that is compiled for raspi!

1 Like

Hey rob, I'm brand new to this so please excuse my ignorance, not many of the words make sense to me around here yet. Are you saying that you're able to use your Broadlink remote with Hubitat without internet?

The software needs to be installed on a machine on your home network, but yes, using a simple http request you can send commands to broad link devices. I use the http get switch driver to send the requests.

1 Like

Latest update adds more automation to allow recovery when devices dissapear (been having some fun dealing with power outages due to storms!)

Hi Rob,
Is there a version for Mac?

There sure is!

Anything usually labeled "darwin" is for Mac OSX.

Can you please advise me step by step how to get this with HE.
i read comments but its not clear to me. i have done so far is this
and added drivers code of HTTP get switch. What im i doing after?
please help

1 Like

awesome work! it work very well thanks for sharing this !

Great Job! thanks a lot! I have installed here and it works very fine. Is it possible to learn RF signals?

how do I install it? new to go stuff

Can please post instructions for building and installing this Rpi2 - never done and go stuff and your github page assumes knowledge of rice and go

1 Like

@rob121 could you please let me know what file I should use in a raspberry Pi 4 (ARM v8)? Tks

Ditto this. Instructions would be very much appreciated :slight_smile:

doesn't look like he is into sharing with ordinary users, its probably a geeky bragging/showoff thing, not for people not in the club.

Anyway I did something slightly different and got Broadlink working with my echo system. I am mostly Homekit and use it with homebridge. There is a Broadlink plugin for Homekit. There is also a web based config plugin which lets you control Homekit via web, and there is an Alexa plugin for homebridge with those three things you can control devices with iPhones etc and use Alexa to control things. So while I cant use it directly with Hubitat it doesn't really matter

That's a pretty unfortunate way to look at it.

There is some troubleshooting and setup discussion in this other thread: Hubitat and Broadlink RM Pro + WIFI + IR + RF Remote Controller - #54 by rob121

Setup is not too bad if you are using one of the platforms that builds are pre-supplied for. I recommend Raspberry Pi personally, because it was easier to setup a startup service using the supplied systemd service file.

  1. Grab the appropriate files from the latest release: Releases · rob121/broadlinkgo · GitHub

  2. Transfer files to your Raspberry Pi and extract everything. Set file permissions to be executable if necessary, and then make sure you can invoke the main service from the command line. Just use default options (i.e. ./broadlinkgo)

  3. Verify everything works on the server side by browsing to http://(IP of Raspberry Pi):8000/ . Test drive some of the functionality described in the readme, including capturing commands from remotes (you'll need this to try anything out with Hubitat): broadlinkgo/ at master · rob121/broadlinkgo · GitHub

  4. If everything works in the web portal, try it with Hubitat. Install this driver code (or similar), and create a virtual device of that type. Then enter the onURI and offURI options to match the URL format for commands described in the broadlinkgo readme. HubitatPublic/examples/drivers/httpGetSwitch.groovy at master · hubitat/HubitatPublic · GitHub

  5. If all of that works, you can use the supplied broadlinkgo.service file to get things running automatically at startup. Be sure to edit the .service file if you changed any options and to reflect where the main broadlinkgo program is stored on your Raspberry Pi. Here's a useful systemd intro if needed: systemd/Services - Debian Wiki

1 Like

On Github under releases there is already a raspberry pi version compiled! You don't have to do anything special

Rumors of my death have been greatly exaggerated!

Sorry all - I've been absolutely consumed with work for the last few months (talking mostly 18-20 hour days and 1 very fun 26 hour day!) I've pushed through on those projects and so life is slowing down now with the holidays over.

1 Like

I wish I was that snarky, in reality I've just been so busy I haven't had a chance to come in here. My hub was acting up as well so the whole home automation thing really fell by the way side. I've been turning on my lights manually (gasp)

1 Like