Broadlink Manager - Docker version

Hi @ohhai-kthxbai
I got it fixed again.
I don’t know why this is happening, I will check it up.

Thanks

Hi
I have installed docker on Fedora 34 and then added the container broadlink manager, which then runs and is available via my browser. When I click rescan it detects no devices even though I have 2 broadlinks on the network, both visible and working in Home Assistant and the RM2 visible to the windows broadlink manager. I was just hoping to replace this with my rm4, but neither of them is detected using the docker implementation of this app. Has anyone got any ideas why this might be happening
Thanks
Richard

replying to myself
I don’t think broadlink manager has proper access to the network but I don’t know what it should be.
If it helps diagnose anything portainer is running just fine so I have information

Hi Everyone,
BroadlinkManager Docker is now available for arm based devices.
Just use the “latest” tag, and that’s it.

Hi @Artdent,
Have you run the docker container with host_mode network?
Because broadlink is using MAC address you can’t run it with bridged network

I too had issues getting it to run on my Docker on Windows; couldn’t get it to run, ended up installing Debian on VMWare.
I guess it is this ‘–network=host’ what causes the issue; that option doesn’t work in windows.

Anyway, once I realized it works nice with Portainer on Debian…I figured why not install it side-by-side with my HA-OS?

  1. Install Portainer addon; start it and open the webui.
  2. Under ‘Images’ enter techblog/broadlinkmanager
  3. Under ‘Containers’ hit ‘Add container’
  4. Under ‘Network port’ hit publish a new network port and use 7020/7020/tcp (not 100% if this is required, but better save then sorrow :stuck_out_tongue: )
  5. Under ‘advanced settings’ / ‘network’, select ‘host’
    image
  6. It is up to you to select a restart policy; I prefer starting/stopping manual when needed
  7. open http://192.168.103.9:7020 (must be IP address of HA; I noted my DNS name doesn’t work?? :thinking: )

    PS: doesn’t seem to run smooth on chrome, if any problems, try edge or firefox :yum:
2 Likes

Hello,

Thank you for your work.
I installed Braodlink Manager on Synology, but impossible to scan my rm3 mini. I use host network.

In log I see that :

192.168.5.15 - - [27/Aug/2021 23:13:58] "GET /discover HTTP/1.1" 500 -          
Traceback (most recent call last):                                              
  File "/opt/broadlinkmanager/broadlink/helpers.py", line 11, in get_local_ip   
    local_ip_address = socket.gethostbyname(socket.gethostname())               
socket.gaierror: [Errno -2] Name or service not known      

I don’t know why, please help :slight_smile:

Have a good day

Is there any way to get this ported to run on Windows?
Whoever got it installed on running on their synology, could you clue me in as to how you got it up and running?
Thanks!

So…no, for now this will not run on windows

HI @SandmanXX,
There is a way to run it under windows, working on detailed guide on how to.

1 Like

Super! Let me know. I’m sure I’m not the only one who would love to see it under windows 10/11.
Thanks!

Hi @SandmanXX,
The guide is ready.

I got it running on Windows 11… Works well in scanning, finding device, etc. Great job!

I’m still having the same problem. Typing in the code, 7E-7E which is a power on button code, at Yamaha IR Hex Converter gives me the hex string.

However, when I put the hex string in either broadlinkmanager, OR Hex to base64 converter (tomeko.net) gives me the exact same code, that does not look like right, or works on the amp.

It may be the yamaha converter giving the problem, I’m not having any luck from typing in the IR code from my sheet.

The hex string from yamaha gives me - 0000 006D 0022 0002 0155 00AA 0015 0015 0015 0040 0015 0040 0015 0040 0015 0040 0015 0040 0015 0040 0015 0015 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0015 0015 0040 0015 0040 0015 0040 0015 0040 0015 0040 0015 0040 0015 0015 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 05ED 0155 0055 0015 0E47

Converting it either way gives me - AAAAbQAiAAIBVQCqABUAFQAVAEAAFQBAABUAQAAVAEAAFQBAABUAQAAVABUAFQBAABUAFQAVABUAFQAVABUAFQAVABUAFQAVABUAQAAVABUAFQBAABUAQAAVAEAAFQBAABUAQAAVAEAAFQAVABUAQAAVABUAFQAVABUAFQAVABUAFQAVABUAFQAVAEAAFQXtAVUAVQAVDkc=

and that doesn’t work. I notice the standard IR codes in homeassistant all look like “JgBQAAABJJMUERM3ExISNxQ2FDYTNxMSEzYUERM3ExITEhMSExITNhMSFDYTNxMSEzYUERQRExITNxMSExITNhQRFDYUNhM3EgAFFQABJUgWAA0F” (I have this code from a button press, another button, not the one I need).

I don’t know what’s wrong.

Here’s a sheet I found on remote codes website.
Extended_IR_Codes_RX-V685RX-A780-RX-A3080CX-A5200_6.pdf (snapav.com)

If you have any input on this, greatly appreciated. Thanks!

As a side note, if I use an actual button on the remote, and then try converting the exact same button detailed above, I get a different code. :frowning:

No luck yet, trying to figure out how to use these hidden codes.

Is Python 3.9.7 a condition? Can the latest release be Python 3 - Python 3.10.0?
Thank you

I managed to install this as an addon for home assistant but I get an error when trying to access the WebUI. This is what I see in the log:

2022-08-15 13:06:56.439 | INFO     | __main__:<module>:48 - OS: posix
2022-08-15 13:06:56.441 | DEBUG    | __main__:get_env_ip_list:71 - Environement discovered IP List []
2022-08-15 13:06:56.444 | DEBUG    | __main__:get_local_ip_list:64 - Locally discovered IP List ['removed for security']
2022-08-15 13:06:56.444 | INFO     | __main__:<module>:126 - Broadlink will try to discover devices on the following IP interfaces: ['removed for security']
2022-08-15 13:06:56.445 | INFO     | __main__:<module>:135 - Configuring app
2022-08-15 13:06:56.447 | INFO     | __main__:get_analytics_code:179 - Content: <script async src="https://www.googletagmanager.com/gtag/js?id=UA-131664523-2"></script>
    <script>
        window.dataLayer = window.dataLayer || [];
        function gtag() { dataLayer.push(arguments); }
        gtag('js', new Date());
        gtag('config', 'UA-131664523-2');
    </script>
2022-08-15 13:06:56.455 | INFO     | __main__:<module>:652 - Broadllink Manager is up and running
INFO:     Started server process [7]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://0.0.0.0:7020 (Press CTRL+C to quit)
WARNING:  Unsupported upgrade request.
WARNING:  No supported WebSocket library detected. Please use 'pip install uvicorn[standard]', or install 'websockets' or 'wsproto' manually.
WARNING:  Unsupported upgrade request.
WARNING:  No supported WebSocket library detected. Please use 'pip install uvicorn[standard]', or install 'websockets' or 'wsproto' manually.

Hi all…got this setup fine following the HACS path however I cannot find my RM4 Pro when doing the scan.
Firewall checks out - HA running on RPi4 in main LAN with connection to all VLAN + RM4 Pro connected to IOT VLAN which has explicit access to the RPi only - and validated against other devices that have some setup and visible in HA.

2022-10-03 08:51:07.033 | INFO     | __main__:search_for_devices:603 - Searcing for devices...
2022-10-03 08:51:07.034 | INFO     | __main__:search_for_devices:605 - Checking devices on interface assigned with IP: 192.168.0.27
2022-10-03 08:51:12.038 | INFO     | __main__:search_for_devices:605 - Checking devices on interface assigned with IP: 172.17.0.1
2022-10-03 08:51:17.041 | INFO     | __main__:search_for_devices:605 - Checking devices on interface assigned with IP: 172.30.32.1
2022-10-03 08:51:22.045 | DEBUG    | __main__:search_for_devices:622 - Devices Found: []
INFO:     172.30.32.2:59500 - "GET /autodiscover HTTP/1.1" 200 OK
INFO:     172.30.32.2:59500 - "GET / HTTP/1.1" 200 OK

I have also tried to use the Broadlink integration and can connect via that so that confirms that firewall is not the issue.

Any assistance here or pointers would be much appreciated.

Hi there!

I’ve been using broadlind and home assistant for some time. I managed to discover the codes corresponding to my Panasonic TV during a period of time when I had an Android phone.

Today I tried capturing the corresponding codes to my Cambridge CXA61 amplifier and after trying multiple options, I managed to sniff the “mute” command using the Node-Red option: Broadlink - Home Assistant

This is what the sniffed code looks like:

38,0,48,0,27,31,58,59,56,31,28,30,27,31,29,30,27,32,27,58,28,31,57,60,27,0,11,123,31,28,56,59,59,30,28,30,28,29,29,29,29,30,29,59,28,30,56,60,29,0,13,5,0,0,0,0,0,0,0,0

I tried converting it to broadlink_base64 using irgen but I did not succeed. Whichever input type that I tried, resulted in an error.

Also, at some point I read that an HA add-on was available but I did not manage to find it in the list of available add-ons after including the repo in my setup: Home Assistant repo added but add-on not found · Issue #66 · t0mer/broadlinkmanager-docker · GitHub

Could somebody help me understand what sort of code format did I sniff, and how I could include it in my configuration.yaml?

Note that by using node-red I managed to sniff the code and I also managed to verify it works using the guidance in the documentation:

I thank you in advance

Hi, same here. Do you fixed it? Device works even with homeassistant, but Broadlink manger cant find it. Tested Windows, Docker and addon version.

EDIT: Just found the solution: run a continous ping from a device to the rm4 pro and then scan. And try iot more than once