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

I have installed broadlinkmanager on a Raspberry Pi 4B, and set it up as described at https://en.techblog.co.il/2020/06/24/installing-broadlinkmanager-on-raspberry-pi/
It finds my device, and when I scan for RF codes, it finds the frequency, then when I press continue, it says it has completed scanning, but no display of the received code appears. It just sits with the animation and displaying the continue scanning button. Am I missing something? What should I be doing to get the codes so I can use them in HA?

Hi @MarkScott,
Will Check it up.

Checking my logs, I see messages about an authentication error in relation to files in /opt/broadlinkmanager-docker. That folder doesn’t exist. I am not using the “pi” userid on this system - could that be the cause?

Here’s some more diagnostics. I installed broadlinkmanager on another Pi, and the first trial invocation dumped the following on the console:

2020-12-06 21:01:19.705 | INFO     | __main__:autodiscover:419 - Searcing for devices...
172.28.16.40 - - [06/Dec/2020 21:01:24] "GET /autodiscover HTTP/1.1" 500 -
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 2464, in __call__
    return self.wsgi_app(environ, start_response)
  File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 2450, 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/local/lib/python3.7/dist-packages/flask/app.py", line 1867, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python3.7/dist-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 2447, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 1952, 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/local/lib/python3.7/dist-packages/flask/app.py", line 1821, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python3.7/dist-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/opt/broadlinkmanager-docker/broadlinkmanager/broadlinkmanager.py", line 423, in autodiscover
    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

I had the same issue with Raspbian Chromium. I installed Firefox and it worked fine.

hi, anyone else have issues with broadlink RM4 pro?

Same issue with RM4 pro device type 0x649b, seems BL manager has not been updated and only supports the following RM4 device types:

0x51da,  # RM4 Mini
0x5f36,  # RM Mini 3
0x6026,  # RM4 Pro
0x6070,  # RM4c Mini
0x61a2,  # RM4 Pro
0x610e,  # RM4 Mini
0x610f,  # RM4c
0x62bc,  # RM4 Mini
0x62be  # RM4c Mini

Any clue if developer is still actively updating this application? Last update was June 2020…

I dont know about broadlink manager but i have the same issue for home assistant. I believed they fixed it but its waiting for a hass update ur something,

Hi @hxal,
I’m the developer of the docker.
I’t based on broadlink-cli (python) and i hope to release new version very soon.

1 Like

Okay :+1: very nice job thanks. Could you also add support for rm4 pro model 0x653c.

Looking forward to an update, I’m using the broadlink-cli to get my RF codes from the RM4 Pro 0x649b and it does work, but not as user friendly via the command line, thanks for the update

Check you’re using the correct Docker image for your raspberry pi, you need an image made for the raspberry pi’s ARM architecture, the one you have linked is for linux I believe.

You can check the tags for the image on Docker Hub, for the pi they should include ARM or ARM64.

Try the studiofifteen/broadlinkmanager image, that one worked for me on a pi4 (64bit but should work on 32bit too).

[https://hub.docker.com/r/studiofifteen/broadlinkmanager]

Not by any means an expert here, I’ve just been stuck with the same problem in the past!

Hope this helps


@Tomer_Klein could you please add support for following RM4 mini?
thank you very much for your work

1 Like

@Tomer_Klein your tool is really amazing. On my previous SD card I got it to work directly but now it seems not to find my devices. Here is what I see on the command line

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 421, in autodiscover
    devices = broadlink.discover(timeout=5, local_ip_address=None, discover_ip_address="255.255.255.255")
  File "/opt/broadlinkmanager-docker/broadlinkmanager/broadlink/__init__.py", line 200, in discover
    device = gendevice(devtype, host, mac, name=name, is_locked=is_locked)
  File "/opt/broadlinkmanager-docker/broadlinkmanager/broadlink/__init__.py", line 105, in gendevice
    dev_class, model, manufacturer = get_devices()[dev_type]
  File "/opt/broadlinkmanager-docker/broadlinkmanager/broadlink/__init__.py", line 46, in get_devices
    0x756C: (sp4, "SP4M", "Broadlink"),
NameError: name 'sp4' is not defined

Hi,

I was wondering besides doing a docker pull and a simple run. Did you do something else ?

Regards,
Jens

I read all comment. Still did not find what i want :frowning:

I have RM4Pro. And on my phone, i have broadlink app installed. Inside app, i added RM4Pro remote to app. Insid app, I also added Broadlink switch TC2USPro to remote. Everything is working fine with Broadlink app.

Then, I added RM4Pro to Home Assistant OS (on my Pi4B). Its done.

Now, I dont want to learn any new IR/RF code. I just want to reuse Broadlink switch which already added to RM4Pro.

Here is the guide to get code from that Switch but by e-Control app: https://www.home-assistant.io/integrations/broadlink/#using-e-control-remotes

but i found no guide to get it from Broadlink app.

Is there a way to get code from my Broadlink switch (which is added to RM4Pro remote and is working fine by Broadlink app on my phone)?

Please help me :bowing_man: Thank you very much.

Hey,

I am stuck with broadlink manager - learning RF code.
In windows 10 I can learn IR code but when I try to learn RF code it’s stuck (Attached in the picture - Reply 1)
In pi 4 I run broadlink manager on docker and it’s stuck on scanning device (Attached in the picture).

How can I scan RF code?


Thanks!

After updating rmpro plus firmware, i’m unable to find device in network, but it works fine from mobile app…