Broadlink Manager - Nicer way to Learn and Send IR/RF commands

I didn’t have enough time to fully test this but here’s what I’ve found out. The power toggle works as expected in home assistant. But when I try any other function such as temp up, temp down, mode, etc, it turns off the Daikin Aircon unit. I decided to test this further with the physical remote. I first turned on the Daikin using a service call and broadlink which works as expected. I then tried to adjust the temp up and it instead turned off the Daikin. I tested temp down and same thing. I’ll test other functions later when I have more time but this leads me to my question.

Has anyone else experienced this? I’m thinking the Daikin and physical remote have two way communication so perhaps this is causing the issue? Any other thoughts?

The Switchbot Mini hub works fine. I would continue to use this but because their API is closed (for now) I had to configure it through IFTTT using webhooks and Home Assistant. As you may know, IFTTT is moving to a paid service and that it’s already a cloud service which I didn’t want in the first place, I would much rather get this broadlink working. Any help is much appreciated.

I was having the same issue and wasn’t getting anywhere. I’m using the add-on “File Editor” and the guides I’m watching all show the user going to the .storage folder inside the web browser, but all the responses in the forums talk about SSH or Samba.

If you go to Supervisor–> Dashboard and select the “File editor” add-on, there will be a tab for configuration. You’ll see a block of text that looks like this:

> dirsfirst: false
> enforce_basepath: true
> ignore_pattern:
>   - __pycache__
>   - .cloud
>   - .storage 
>   - deps
> ssh_keys: []

Delete the line that says .storage

This comes with the perfunctory warning that the reason this folder is hidden is because you can seriously scramble some eggs if you lick the wrong light sockets while digging around inside this folder. Best to “read only” and not change any names or contents.

Thanks mate

1 Like

Hello! Any chance this can be used to “suck” already learned commands from a RM Mini 3? I found out that the Broadlink integration for HA only allows me to send commands learned through HA, but I have my LG TV already set up with the Broadlink app and I’d rather not go through the hassle of pressing all the buttons again.

Great instuctions. worked 100% for my rm4 pro. Now can control all the fans in my home!!! Thank you Ahmed.

See here

2 Likes

Cheers matey

Thanks for this. I tried setting up this up on a raspberry pi in docker using docker compose.

https://hub.docker.com/r/techblog/broadlinkmanager

Getting the error

standard_init_linux.go:211: exec user process caused "exec format error"

Any thoughts.

I might have missed something obvious, but is this some device/integration you’re using? How do you get each fan speed to show up like that in the frontend?

I’m new at using docker on windows. I’m trying to set up Broadlink manager through Compose, but it’s not working. Anyone who can help?

Container is running:

which I did with command “docker-compose -f D:\compose\docker-compose.yml up”, the yml being exactly what Tomer_Klein suggests:

version: “3.6”
services:
broadlinkmanager:
image: techblog/broadlinkmanager
network_mode: host
container_name: broadlinkmanager
restart: always
restart: unless-stopped
volumes:
- ./broadlinkmanager:/opt/broadlinkmanager/data

When I try http://localhost:7020 though, I get ERR_CONNECTION_REFUSED, same when I try my local 192.168.1.x:7020 IP.

HI
In my case It worked only one time (I think because I accepted code on broadlink app and I was able to open my gate via broadlink app.)
In any case I get code on file “broadlink_remote_xxxxxxxxxxxxx_codes”, so.
Now I resetted broadlink to default and re-putted the wifi data on it. I stopped procedure and I can found rem4 into my wifi.
I’m trying to activate remote sending via this config

entity_id: remote.broirrf
device: cancello dk1
command: “b64:JgAcAAsIDAAMOxEAAhAUAAHiJgAB9BAACCQRDgkADQUAAAAAAAAAAAAA”
num_repeats: 1
delay_secs: 0.75
hold_secs: 2.5

But nothing changed

How can I use propertly rf code acquired (if that code will ok, of course)…
Thank you

Did you ever get this to work?

Hello mate

You should never accept the RM4 if it learns before Home Assistant, in such case you reject the code and redo the learning again, but now because you accepted the code, you need to restart the process from step 1 as stated in my lengthy post

Cheers

With the method in my lengthy post, you don’t need to even use the code, you only use the command you specified while learning, like On, Off, Speed1, etc, these commands will be replaced by the learned codes in the "broadlink_remote_xxxxxxxxxxxxx_codes” file

For me work only if I put codes, with b64: before
I tried to write a script with command “Open” and device “cancello dk2”
but didn’t work.

[quote=“Danros3, post:374, topic:58770”]
“broadlink_remote_xxxxxxxxxxxxx_codes”, so.
Now I resetted broadlink to default and re-putted the wifi data on it. I stopped procedure and I can found rem4 into my wifi.
I’m trying to activate remote sending via this config

entity_id: remote.broirrf
device: cancello dk1
command: “b64:JgAcAAsID
[/quote]’’

If you have the broadlink_remote_xxxxxxxxxxxxx_codes file already after learning. The command should be the command you use during the learn portion. So should look like:

entity_id: remote.broirrf
device: cancello dk1
command: Open

I got the Broadlink Manager running in Docker, but I can’t get it to learn any RF codes. I click the “Learn RF Code” button and then hold down the button on my remote, but eventually it just says “RF Frequency not found!”

This is the same RF remote that I used the Broadlink iOS app to learn just fine. What am I missing here?

Did you ever figure out a way to do this? It’s incredibly annoying to have to use Home Assistant or these alternative methods to learn RF codes instead of just importing them/using the devices setup in the Broadlink app. Almost every other integration works the way you’re describing, but I’m guessing this is a limitation of the Broadlink API.

I made a bit of progress, but it’s a workaround rather than a solution. Someone made a Python utility that parses the database of the old e-Control app and outputs a file that can be used with HA: https://github.com/NightRang3r/Broadlink-e-control-db-dump

It works, but there’s a caveat: only the custom remotes allow you to specify a name for the buttons. So, if you downloaded the codes for a specific remote (say, LG TV), or used something like a “TV generic” and then cloned the codes for the physical remote, you get a file full of hex codes and you don’t know which one is which.

However, something that the e-Control database does register for every type of remote is the icon of each button. So I figured I could extend the functionality of the utility to create a name for each button based on its icon if a name hadn’t been specified, but I haven’t got to it yet.

1 Like

Thanks, that sounds like it would work just fine for me (I only have custom remotes)…except I don’t have an Android device. Will look into emulator I suppose.

1 Like

I have quite strange problem when recording RF codes using RM4 Pro and broadlink_cli running on Power Shell.

Until recently I have used my RM4 Pro with newest Broadlink app (blue icon), programmed to work with Google Assistant via IFTTT. It worked OK with all my devices (IR aircon, TV and RF courtain motors). Even tried pro IFTTT account for a while, but I have decided to move fully to HA in order to integrate with other devices and services.

I run broadlink_cli using Power Shell because it seemed to be the quickest setup on hardware available to me. RM4 Pro is working fine, and python is fetching RF codes - but here starts the problem.

The first two RF devices (courtain motors in my case) work properly. Both python via Power Shell (–send hex) and Home Assistant script are closing and opening blinds without problems, utilizing RF codes learnt by RM4 Pro from the RF remote.

However the next few motors which worked OK with Broadlink app (fixed 433 codes) do not answer to RF codes fetched by broadlink_cli and then send by the same script or HA through RM4 Pro. Everything seems to be exactly the same: same motors, same remote (different channels, but still the first 2 devices work fine, so it shall not play any role), same RM4 Pro, etc.

I noticed that hex/base64 codes that are learnt by broadlink_cli differs depending on the pressing time of the button (in the 1st phase of learning). The codes are 100% fixed, not rolling, because all the devices worked flawlessly with Broadlink app, until I decided to move to HA.

The most frustrating part is that 2 out of 10 same devices work all right, RM4 Pro sends the signal (led indicates action), but next devices (let’s call them 3 and up) don’t react. The learnt codes seems to be incorrect, but they come from the dedicated remote.

Any suggestions?

Edit:
Managed to make the 3rd one working with @AhmedBahgat procedure. HA recorded a pair of b64 codes which started to control the device through HA panel.

I also modified broadlink_cli code to bulk-record the same RF remote button over 30 times and all hex were different. My remote operates in 24bit, 433.92 MHz RF.