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

Hello @Tomer_Klein,

Thank you so much for your amazing. May I ask if (or) when could we expect support for 0x653a?

one more request from @Mio3000

Oh bugger!
I have just gotten my first Broadlink and now realise that the rm4 pro, that I got, is a version/type that is not supported by the Broadlinkmanager. It’s version/type 0x649b.
So this is my question: Is there a fix or workaround?
I saw somewhere that someone had made a workaround by what I understood to be based on change of some lines in a local copy of the source code and local compilation. It’s been ages since I coded (and never under linux), so it’ll be quite an effort for me to understand without a step-by-step guide. Moreover, it appeared that the fix didn’t fully work. (I managed to install Broadlinkmanager on a headless RPi, though. But that was because I couldn’t get it going in a docker container on my WinPC, and @Tomer_Klein 's guide was really easy to follow - thanks!)

Wanted to give it a go, but noob as I am, I failed just trying to edit a text file on my RPi4. First I tried to edit the broadlinkmanageer.py in the /opt/broadlinkmanager-docker/broadlinkmanager, but obviously it was locked. I then learned that one should not mess with permissions in the /opt folder, so I installed the repo under /usr/local. Same thing: Couldn’t change permission. Finally, I tried to put the repo in a folder under /home/pi - still couldn’t change the permission. Buh.
Will probably try some more searching/learning and will post if I find a solution to get 0x649b working.

trying to scan for the rm mini3 and this is all i get

OK, I have progress: If one acquires code from github using sudo, then the files end up being owned by root - makes sense. So, I did a ‘chown’ on the folder+files on my /home/pi/Broadlinkmanager and then I could edit the files.
In the two files broadlinkmanager.py and init.py I added lines to reflect the rm4 type of 0x649b.
Ran my updated project: Heureka, my device is now recognized:


…but when trying to ‘learn’ an IR command, the received code is not shown. My device is entering learn mode (constant red light) and when I have hit the button on my remote, the red light turns off. Further, the broadlinkmanager reports that something has been received (Status: IR Data Recived), but it stays “Waiting For Signal”, so I cannot see what was received:

Hi, it’s taking me longer then i expected but yes,
It’s in my Todo List.

Hey, I’m also having the same issue as reported by F2three and beside that one, also when trying to scan an RF code it gets stuck


Anything we can do to make it work?

Thank you so much.

Been looking at a node-red-contrib-broadlink-control, that had the same issue with the aforementioned deviceId.

They seem to have figured it out. Maybe it might help you out.

Cheers!

Hi there i’m having the same problems as many others here:
buyed my rm4c from aliexpress
device type 0x6539
i have added it in both broadlinkmanager.py and init.py
first it was not supported
now its ‘supported’
But the IR learn doesn’t work:
Status: IR Data Recived
Waiting For Signal…
and till it times out i think

Is there anything i could do?
Many thanks greets alex

Try the command line version as I couldn’t get the gui version to work with my old RM Pro, the command line version worked very well.

I got into the same problem, codes are changing each time when they are learned. I used the PI version of the Broadlink Manager but still, same problem. Did you managed to figured it out and fix it?

If anybody out there figured out how to make the TC2 working, please let us know. Thanks.

Details on what I’ve done, current success and failures here: Broadlink RM-PRO and TC2 switch

I did the same for my rm4 pro added the device in the two files and it is working fine for ir but not for rf

![image|666x500]

I forked the project in git then changed it there and installed it from my changed repository dont think it matters but i dont know… ir is working great and my device was also unsupported.

Sorry for the slow reply I was not paying attention!

I used this on my pi4 (64bit raspbian) in docker on a host network via docker compose

version: "2.1"
services:
  broadlinkmanager:
    image: studiofifteen/broadlinkmanager:latest
    container_name: broadlinkmanager
    network_mode: host
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/London
    volumes:
      - /home/pi/DockData/filebrowser:/config
      - /home/pi:/data
    restart: unless-stopped

your environment values and volumes will vary with your personal setup but you should get the gist. The next issue for me was that this doesn’t seem to work in chrome or edge browsers on Win 10, but was fine on firefox. Navigate to http://:7020

Probably this is too late to help you but I’ll leave it here in case someone else finds it useful.

F

I finally got it working by using Edge instead of my otherwise preferred browsers: Firefox and Chrome.
Also a hint to @mantaalex, perhaps

Hello, i tried the pi version but it’s not working. I am getting this result:

2021-04-18 09:07:37.620 | INFO     | __main__:discover:444 - Searching for devices...
192.168.3.30 - - [18/Apr/2021 09:07:42] "GET /discover HTTP/1.1" 500 -
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/flask/app.py", line 2309, in __call__
    return self.wsgi_app(environ, start_response)
  File "/usr/lib/python3/dist-packages/flask/app.py", line 2295, in wsgi_app
    response = self.handle_exception(e)
  File "/usr/local/lib/python3.7/dist-packages/flask_restful/__init__.py", line 272, in error_router
    return original_handler(e)
  File "/usr/lib/python3/dist-packages/flask/app.py", line 1741, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/lib/python3/dist-packages/flask/_compat.py", line 35, in reraise
    raise value
  File "/usr/lib/python3/dist-packages/flask/app.py", line 2292, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/lib/python3/dist-packages/flask/app.py", line 1815, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python3.7/dist-packages/flask_restful/__init__.py", line 272, in error_router
    return original_handler(e)
  File "/usr/lib/python3/dist-packages/flask/app.py", line 1718, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/lib/python3/dist-packages/flask/_compat.py", line 35, in reraise
    raise value
  File "/usr/lib/python3/dist-packages/flask/app.py", line 1813, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/lib/python3/dist-packages/flask/app.py", line 1799, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/opt/broadlinkmanager-docker/broadlinkmanager/broadlinkmanager.py", line 449, in discover
    if device.auth():
  File "/opt/broadlinkmanager-docker/broadlinkmanager/broadlink/__init__.py", line 271, in auth
    check_error(response[0x22:0x24])
  File "/opt/broadlinkmanager-docker/broadlinkmanager/broadlink/exceptions.py", line 173, in check_error
    raise exception(error_code)
broadlink.exceptions.AuthenticationError: [Errno -1] Authentication failed

Hi … just . .gently asking … any progress by chance? :slight_smile:

Did you get it working?

Not through the manager. I had to set it up manually button by button. Super annoying but worth it in the end

Thanks for pointing this out, I’ve recently use the latest broadlink app to add my mitsubishi ac from their database.
Since there’s still no method of importing the codes directly from broadlink app for now, this will do.

If it helps anybody I forked the repo and added support for the 0x653c RM4 Pro here and it works (at least worked for me). This could be a work around until the support is officially added.

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