Code Monkey home page Code Monkey logo

broadlinkmanager-docker's People

Contributors

avishayil avatar cadivus avatar clood76ro avatar dimagoltsman avatar eliyabar avatar groto27 avatar jrhbcn avatar roger-rainey avatar t0mer avatar vincentto13 avatar walkerleigh avatar webmonger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

broadlinkmanager-docker's Issues

RM4 mini with Device Type 0x648d not supported ?

Hi,
I have just bought a new RM4 mini that I'm trying to integrate in Home Assistant. I'm trying to record IR-codes through Broadlink Manager. When doing 'Learn IR Code', status changes to 'IR Data Recived' but I don't see the code.

Broadlinkmanager on Portainer for RPi - RM4 mini (0x648d)

Hello,

I want to add broadlinkmanager on portainer on my OMV NAS.

I See that you add RM4 Mini 10 days ago (0x648d)

I tried it with the container from studiofifteen/broadlinkmanager, but this don't seams to have support for 0x648d because it couldn't find my RM4 mini.

Is it possible to put you container on a RPi?
@t0mer

Thank you very much in advance!

Getting BrokenFilesystemWarning error

When using the docker on Ubuntu and/or QNAP NAS and clicking on "Learn IR Code", I get the following message:

BrokenFilesystemWarning: Detected a misconfigured UNIX filesystem:
Will use UTF-8 as filesystem encoding instead of 'ascii'
BrokenFilesystemWarning,

The Dockerfile says:
ENV PYTHONIOENCODING=utf-8

But does that work?

sp4 and sp4b classes not found, discover call fails as a result

Not sure how they're supposed to be implemented, but I get an error when I call the /discover endpoint because they're not defined in init.py.

Removing the lines in get_devices() that refer to them and rebuilding/redeploying the image worked, though at the expense of losing those devices (which I personally didn't care about, but others might).

Cannot scan any Broadlink device

I got these error when running the broadlinkmanager under the docker. And it keep scanning without finding any device.
File "/opt/broadlinkmanager/broadlink/helpers.py", line 15, in get_local_ip
raise exception(-4013) # DNS Error
broadlink.exceptions.DNSLookupError: [Errno -4013] Failed to obtain local IP address

Container cannot access any hosts out side the container.

My local network lan is 192.168.0.0/24.
When this container is run the container IP that is assigned is 192.168.0.3, the host it runs on is 192.168.0.2.
I can use fping to ping the gate way at 192.168.0.1, I can ping itself at 192.168.0.3 and it can ping the host at 192.168.0.2.

What it cant do is ping any other host on the 192.168.0.0/24 network.
If this is by design (docker) then how is the app that is running on 7020 supposed to scan for broadlink devices on the network?

What am I missing here?

Iearnir: after device has returned the IR code, the 'scanning' animation stays

Hi,
My device is rm4 type 0x649b. When launching a 'Learn IR code', the device reacts by turning on red light, and when having pressed a button on an IR remote, the red light turns of, and the status message on the Broadlinkmanager interface also changes to "IR Data Received".
However, the animation stays, and the learned code does not display...
2021-03-06 18_40_44-Broadlink Manager _ Control Your broadlink Devices
I am running broadlinkmanager directly on a RPi3 based on these instructions. (only I have put the application folder in /home/pi instead of /opt).
Anyone who has seen this, or knows which direction to look for a solution?

Exposing the Broadlink RM 4 in BroadLink Manager is possible only after I change location/room in the Broadlink app.

Hello Tomer,
Ma Kore ? : )

Exposing the Broadlink RM 4 in BroadLink Manager is possible only after I change location/room in the Broadlink app.
It works for a few minutes and then it is necessary to change the room again.
I uploaded a video that could illustrate what is being done in the BroadLink app to unveil the Rm-4 BroadLink.
link: https://streamable.com/wwe416
Thanks in advance,

Nissim

Add supported for 0x649b

My broadlink RM4 pro is not supported and it's a 0x649b. I was wondering if support for it can be added.

Cannot scan any Broadlink device

And I check the log,find these message

Traceback (most recent call last):
2021-05-31T14:07:48.566829251Z File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 2464, in call
2021-05-31T14:07:48.566849681Z return self.wsgi_app(environ, start_response)
2021-05-31T14:07:48.566863055Z File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 2450, in wsgi_app
2021-05-31T14:07:48.566876285Z response = self.handle_exception(e)
2021-05-31T14:07:48.566906735Z File "/usr/local/lib/python3.6/dist-packages/flask_restful/init.py", line 272, in error_router
2021-05-31T14:07:48.566926782Z return original_handler(e)
2021-05-31T14:07:48.566939557Z File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1867, in handle_exception
2021-05-31T14:07:48.566952678Z reraise(exc_type, exc_value, tb)
2021-05-31T14:07:48.566965256Z File "/usr/local/lib/python3.6/dist-packages/flask/_compat.py", line 39, in reraise
2021-05-31T14:07:48.566978351Z raise value
2021-05-31T14:07:48.566990811Z File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 2447, in wsgi_app
2021-05-31T14:07:48.567003773Z response = self.full_dispatch_request()
2021-05-31T14:07:48.567016313Z File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1952, in full_dispatch_request
2021-05-31T14:07:48.567055461Z rv = self.handle_user_exception(e)
2021-05-31T14:07:48.567068365Z File "/usr/local/lib/python3.6/dist-packages/flask_restful/init.py", line 272, in error_router
2021-05-31T14:07:48.567114211Z return original_handler(e)
2021-05-31T14:07:48.567127980Z File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1821, in handle_user_exception
2021-05-31T14:07:48.567140935Z reraise(exc_type, exc_value, tb)
2021-05-31T14:07:48.567153122Z File "/usr/local/lib/python3.6/dist-packages/flask/_compat.py", line 39, in reraise
2021-05-31T14:07:48.567165616Z raise value
2021-05-31T14:07:48.567177681Z File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1950, in full_dispatch_request
2021-05-31T14:07:48.567236791Z rv = self.dispatch_request()
2021-05-31T14:07:48.567251795Z File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1936, in dispatch_request
2021-05-31T14:07:48.567265049Z return self.view_functionsrule.endpoint
2021-05-31T14:07:48.567277371Z File "/opt/broadlinkmanager/broadlinkmanager.py", line 427, in autodiscover
2021-05-31T14:07:48.567289780Z if device.auth():
2021-05-31T14:07:48.567301691Z File "/opt/broadlinkmanager/broadlink/init.py", line 271, in auth
2021-05-31T14:07:48.567314166Z check_error(response[0x22:0x24])
2021-05-31T14:07:48.567335301Z File "/opt/broadlinkmanager/broadlink/exceptions.py", line 173, in check_error
2021-05-31T14:07:48.567349068Z raise exception(error_code)
2021-05-31T14:07:48.567361082Z broadlink.exceptions.AuthenticationError: [Errno -1] Authentication failed

RM4C and learning

He guys, just stumbled upon your docker image for the Broadlink Manager as the original app somehow does not support the RM4C anymore (?).
I was able to learn my TV and Mibox commands without issue (via MQTT implementation) whereas I did run into issues with my Samsung AC which somehow has different HEX codes every time I press a button (i.e. ON/OFF). Hence thought the Broadlink manager might be able to help in identifying the right codes.
I got it up and running (Proxmox LXC) and it seems my device is discovered whereas when I click Actions - Learn IR the bar just blinks quickly (showing shortly some bars progressing) whereas then disappearing and just showing "Error occurred while scanning, please try again"

The following appears in the log:

2021-01-09 11:20:38.081 | INFO | __main__:<module>:515 - Broadllink Manager is up and running broadlinkmanager | * Serving Flask app "broadlinkmanager" (lazy loading) broadlinkmanager | * Environment: production broadlinkmanager | WARNING: This is a development server. Do not use it in a production deployment. broadlinkmanager | Use a production WSGI server instead. broadlinkmanager | * Debug mode: on broadlinkmanager | * Running on http://0.0.0.0:7020/ (Press CTRL+C to quit) broadlinkmanager | * Restarting with stat broadlinkmanager | 2021-01-09 11:20:38.280 | INFO | __main__:<module>:515 - Broadllink Manager is up and running broadlinkmanager | * Debugger is active! broadlinkmanager | * Debugger PIN: 240-589-367 broadlinkmanager | 192.168.10.50 - - [09/Jan/2021 11:20:43] "GET / HTTP/1.1" 200 - broadlinkmanager | 2021-01-09 11:20:49.004 | INFO | __main__:learnir:239 - Learning IR Code for device: 192.168.50.102 broadlinkmanager | 2021-01-09 11:20:49.085 | INFO | __main__:learnir:243 - Entering IR Learning Mode broadlinkmanager | /usr/local/lib/python3.6/dist-packages/werkzeug/filesystem.py:60: BrokenFilesystemWarning: Detected a misconfigured UNIX filesystem: Will use UTF-8 as filesystem encoding instead of 'ascii' broadlinkmanager | BrokenFilesystemWarning, broadlinkmanager | 192.168.10.50 - - [09/Jan/2021 11:20:49] "GET /ir/learn?type=0x6539&host=192.168.50.102&mac=a043b01582db HTTP/1.1" 500 - broadlinkmanager | Traceback (most recent call last): broadlinkmanager | File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 2464, in __call__ broadlinkmanager | return self.wsgi_app(environ, start_response) broadlinkmanager | File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 2450, in wsgi_app broadlinkmanager | response = self.handle_exception(e) broadlinkmanager | File "/usr/local/lib/python3.6/dist-packages/flask_restful/__init__.py", line 272, in error_router broadlinkmanager | return original_handler(e) broadlinkmanager | File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1867, in handle_exception broadlinkmanager | reraise(exc_type, exc_value, tb) broadlinkmanager | File "/usr/local/lib/python3.6/dist-packages/flask/_compat.py", line 39, in reraise broadlinkmanager | raise value broadlinkmanager | File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 2447, in wsgi_app broadlinkmanager | response = self.full_dispatch_request() broadlinkmanager | File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1952, in full_dispatch_request broadlinkmanager | rv = self.handle_user_exception(e) broadlinkmanager | File "/usr/local/lib/python3.6/dist-packages/flask_restful/__init__.py", line 272, in error_router broadlinkmanager | return original_handler(e) broadlinkmanager | File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1821, in handle_user_exception broadlinkmanager | reraise(exc_type, exc_value, tb) broadlinkmanager | File "/usr/local/lib/python3.6/dist-packages/flask/_compat.py", line 39, in reraise broadlinkmanager | raise value broadlinkmanager | File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1950, in full_dispatch_request broadlinkmanager | rv = self.dispatch_request() broadlinkmanager | File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1936, in dispatch_request broadlinkmanager | return self.view_functions[rule.endpoint](**req.view_args) broadlinkmanager | File "/opt/broadlinkmanager/broadlinkmanager.py", line 244, in learnir broadlinkmanager | dev.enter_learning() broadlinkmanager | AttributeError: 'device' object has no attribute 'enter_learning' broadlinkmanager | 192.168.10.50 - - [09/Jan/2021 11:20:56] "GET / HTTP/1.1" 200 - broadlinkmanager | 192.168.10.50 - - [09/Jan/2021 11:20:57] "GET /img/broadlink.png HTTP/1.1" 200 - broadlinkmanager | 2021-01-09 11:20:59.595 | INFO | __main__:learnir:239 - Learning IR Code for device: 192.168.50.102 broadlinkmanager | 2021-01-09 11:20:59.625 | INFO | __main__:learnir:243 - Entering IR Learning Mode broadlinkmanager | 192.168.10.50 - - [09/Jan/2021 11:20:59] "GET /ir/learn?type=0x6539&host=192.168.50.102&mac=a043b01582db HTTP/1.1" 500 -

Any advice on how to fix above?

Add Broadlink manager to Home Assistant panel

Is it possible we can update config.yaml to add the mgmt interface link to the side panel? Seems to be a standard thing with addons, but don't know it well enough to submit a PR :)

Can't access Boradlinkmanager on localhost

Hi I followed all the instructions it's running fine on docker. However I can't access it on the localhost:7020 or 0.0.0.0:7020
I am using OSX on a Mac

What am I missing?
Thanks

Screen Shot 2020-10-27 at 5 58 55 pm

Attaching to broadlinkmanager

broadlinkmanager | 2020-10-27 05:41:10.640 | INFO | main::515 - Broadllink Manager is up and running

broadlinkmanager | * Serving Flask app "broadlinkmanager" (lazy loading)

broadlinkmanager | * Environment: production

Also tried port forwarding RW It did not work

2020-10-27 09:38:53.249 | INFO | main::515 - Broadllink Manager is up and running

  • Serving Flask app "broadlinkmanager" (lazy loading)

  • Environment: production

WARNING: This is a development server. Do not use it in a production deployment.

Use a production WSGI server instead.

2020-10-27 09:38:53.570 | INFO | main::515 - Broadllink Manager is up and running

  • Debugger is active!

  • Debugger PIN: 172-009-602

broadlinkmanager | WARNING: This is a development server. Do not use it in a production deployment.

broadlinkmanager | Use a production WSGI server instead.

broadlinkmanager | * Debug mode: on

broadlinkmanager | * Running on http://0.0.0.0:7020/ (Press CTRL+C to quit)

broadlinkmanager | * Restarting with stat

broadlinkmanager | 2020-10-27 05:41:10.950 | INFO | main::515 - Broadllink Manager is up and running

broadlinkmanager | * Debugger is active!

broadlinkmanager | * Debugger PIN: 113-809-217

broadlinkmanager | 2020-10-27 06:50:40.510 | INFO | main::515 - Broadllink Manager is up and running

broadlinkmanager | * Serving Flask app "broadlinkmanager" (lazy loading)

broadlinkmanager | * Environment: production

broadlinkmanager | WARNING: This is a development server. Do not use it in a production deployment.

broadlinkmanager | Use a production WSGI server instead.

broadlinkmanager | * Debug mode: on

broadlinkmanager | * Running on http://0.0.0.0:7020/ (Press CTRL+C to quit)

broadlinkmanager | * Restarting with stat

broadlinkmanager | 2020-10-27 06:50:40.830 | INFO | main::515 - Broadllink Manager is up and running

broadlinkmanager | * Debugger is active!

broadlinkmanager | * Debugger PIN: 113-809-217

Broadlink Manager Windows see invalid device, docker version sees nothing?

Hi,

I have an Broadlink RM4 Pro S. Tried both the Windows Broadlink Manager software and the docker version.

The Windows version reports:
Looking for devices...
Found device : Unknown [192.168.0.42]
Writing compatible device not detected!

The docker version finds nothing when doing a scan.

I can confirm the docker version is setup on the same network, so unsure why it isn't picking anything up?

Any advice?

Unable to find devices using Virtualbox and docker

Hi t0mer,
using VirtualBox as Windows host, and Ubuntu 20.04 as guest,

I have successfully installed broadlink-manager as docker container :
docker run -d -p 7020:7020 --name broadlinkman techblog/broadlinkmanager

then opening dashboard : http://ip-virtualbox:7020
on device list page "Searching For Devices" cannot reach any device.

Also using this command, the same result.
docker run -d --network host --name broadlinkman techblog/broadlinkmanager

I know, you says:
"Broadlink is using MAC Address to communicate with the device and MAC adress cannot be bridged between networks."
and also
"You must use host network mode because Broadlink Manager is working with MAC address to communicate with broadlink devices and MAC address is not working under bridge mode."

But how to solve this use case ?

Thank's

RF Scan does not finish

When the message "RF Scan completed succesfully" shows, there is no hex-code anywhere and the "Continue scannig" button does not work..

RM4 Mini 0x5216 not supported

My RM4 Mini (0x5216 type) is not supported by Broadlink Manager.

Broadlink Manager is installed with Qnap Container Station (docker) on my Qnap TS-653A.

After network scan, Broadlink Manager finds the RM4 mini as "not supported".

As a matter of fact, I can't learn any IR code under "Actions" menu.
When I try, I can see the message "waiting for signal" (just for a second) and then I receive the "Error occurred while scanning, please try again" message.

This is my log after network scan:

2022-06-05 14:13:13.955 | INFO     | __main__:<module>:48 - OS: posix
2022-06-05 14:13:13.960 | DEBUG    | __main__:get_env_ip_list:71 - Environement discovered IP List []
2022-06-05 14:13:13.984 | DEBUG    | __main__:get_local_ip_list:64 - Locally discovered IP List ['192.168.178.101', '172.29.0.1', '10.0.5.1', '10.0.3.1', '10.0.7.1', '253.253.253.253', '172.29.8.1', '172.29.16.1', '172.29.20.1']
2022-06-05 14:13:13.985 | INFO     | __main__:<module>:126 - Broadlink will try to discover devices on the following IP interfaces: ['192.168.178.101', '172.29.0.1', '10.0.5.1', '10.0.3.1', '10.0.7.1', '253.253.253.253', '172.29.8.1', '172.29.16.1', '172.29.20.1']
2022-06-05 14:13:13.988 | INFO     | __main__:<module>:135 - Configuring app
2022-06-05 14:13:13.994 | 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-06-05 14:13:14.025 | INFO     | __main__:<module>:641 - Broadllink Manager is up and running
INFO:     Started server process [1]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://0.0.0.0:7020 (Press CTRL+C to quit)
INFO:     192.168.178.199:52163 - "GET / HTTP/1.1" 200 OK
INFO:     192.168.178.199:52164 - "GET / HTTP/1.1" 200 OK
INFO:     192.168.178.199:52164 - "GET /about HTTP/1.1" 200 OK
INFO:     192.168.178.199:52164 - "GET /index HTTP/1.1" 200 OK
INFO:     192.168.178.199:52164 - "GET /index HTTP/1.1" 200 OK
INFO:     192.168.178.199:52170 - "GET /index HTTP/1.1" 200 OK
INFO:     192.168.178.199:52170 - "GET /index HTTP/1.1" 200 OK
INFO:     192.168.178.199:52170 - "GET /generator HTTP/1.1" 200 OK
INFO:     192.168.178.199:52170 - "GET /index HTTP/1.1" 200 OK
INFO:     192.168.178.199:52170 - "GET /index HTTP/1.1" 200 OK
INFO:     192.168.178.199:52181 - "GET /index HTTP/1.1" 200 OK
INFO:     192.168.178.199:52183 - "GET /index HTTP/1.1" 200 OK
INFO:     192.168.178.199:52196 - "GET /about HTTP/1.1" 200 OK
INFO:     192.168.178.199:52204 - "GET /index HTTP/1.1" 200 OK
INFO:     192.168.178.199:52204 - "GET /index HTTP/1.1" 200 OK
2022-06-05 14:16:19.411 | INFO     | __main__:load_devices_from_file:574 - Reading devices from file
2022-06-05 14:16:22.415 | ERROR    | __main__:load_devices_from_file:579 - Loading devices from file has faild with the following exception: [Errno 2] No such file or directory: 'data/devices.json'
INFO:     192.168.178.199:52214 - "GET /devices/load HTTP/1.1" 200 OK
2022-06-05 14:16:27.579 | INFO     | __main__:search_for_devices:592 - Searcing for devices...
2022-06-05 14:16:27.579 | INFO     | __main__:search_for_devices:594 - Checking devices on interface assigned with IP: 192.168.178.101
2022-06-05 14:16:32.716 | INFO     | __main__:search_for_devices:601 - New device detected: Not Supported (ip: 192.168.178.81  mac: ec0bae990d7b)
2022-06-05 14:16:32.717 | INFO     | __main__:search_for_devices:594 - Checking devices on interface assigned with IP: 172.29.0.1
2022-06-05 14:16:37.720 | INFO     | __main__:search_for_devices:594 - Checking devices on interface assigned with IP: 10.0.5.1
2022-06-05 14:16:42.722 | INFO     | __main__:search_for_devices:594 - Checking devices on interface assigned with IP: 10.0.3.1
2022-06-05 14:16:47.724 | INFO     | __main__:search_for_devices:594 - Checking devices on interface assigned with IP: 10.0.7.1
2022-06-05 14:16:52.726 | INFO     | __main__:search_for_devices:594 - Checking devices on interface assigned with IP: 253.253.253.253
2022-06-05 14:16:57.729 | INFO     | __main__:search_for_devices:594 - Checking devices on interface assigned with IP: 172.29.8.1
2022-06-05 14:17:02.732 | INFO     | __main__:search_for_devices:594 - Checking devices on interface assigned with IP: 172.29.16.1
2022-06-05 14:17:07.734 | INFO     | __main__:search_for_devices:594 - Checking devices on interface assigned with IP: 172.29.20.1
2022-06-05 14:17:12.736 | DEBUG    | __main__:search_for_devices:611 - Devices Found: [{'name': 'Not Supported', 'type': '0x5216', 'ip': '192.168.178.81', 'mac': 'ec0bae990d7b'}]
INFO:     192.168.178.199:52218 - "GET /autodiscover HTTP/1.1" 200 OK
INFO:     192.168.178.199:52218 - "GET /index HTTP/1.1" 200 OK
2022-06-05 14:17:12.987 | DEBUG    | __main__:get_device_status:623 - 192.168.178.81
2022-06-05 14:17:13.085 | DEBUG    | __main__:get_device_status:626 - b'1\n'
INFO:     192.168.178.199:52222 - "GET /device/ping?host=192.168.178.81 HTTP/1.1" 200 OK
2022-06-05 14:17:40.906 | INFO     | __main__:save_devices_to_file:557 - Writing devices to file
2022-06-05 14:17:40.907 | INFO     | __main__:save_devices_to_file:561 - Finished writing devices to file
INFO:     192.168.178.199:52225 - "POST /devices/save HTTP/1.1" 200 OK

And this is my log after trying to learn IR code:

2022-06-05 14:26:59.615 | INFO     | __main__:learnir:428 - Learning IR Code for device: 192.168.178.81
                    2022-06-05 14:26:59.737 | INFO     | __main__:learnir:431 - Entering IR Learning Mode
                                                                                                         INFO:     192.168.178.199:52336 - "GET /ir/learn?type=0x5216&host=192.168.178.81&mac=ec0bae990d7b HTTP/1.1" 500 Internal Server Error
                                                                                                           ERROR:    Exception in ASGI application
               Traceback (most recent call last):
                                                   File "/usr/local/lib/python3.8/dist-packages/uvicorn/protocols/http/h11_impl.py", line 373, in run_asgi
                           result = await app(self.scope, self.receive, self.send)
                                                                                    File "/usr/local/lib/python3.8/dist-packages/uvicorn/middleware/proxy_headers.py", line 75, in __call__
                                                            return await self.app(scope, receive, send)
                                                                                                         File "/usr/local/lib/python3.8/dist-packages/fastapi/applications.py", line 212, in __call__
                                                                      await super().__call__(scope, receive, send)
                                                                                                                    File "/usr/local/lib/python3.8/dist-packages/starlette/applications.py", line 112, in __call__
                                                                                   await self.middleware_stack(scope, receive, send)
   File "/usr/local/lib/python3.8/dist-packages/starlette/middleware/errors.py", line 181, in __call__
                                                                                                          raise exc
                                                                                                                     File "/usr/local/lib/python3.8/dist-packages/starlette/middleware/errors.py", line 159, in __call__
                                                                                         await self.app(scope, receive, _send)
                                                                                                                                File "/usr/local/lib/python3.8/dist-packages/starlette/middleware/cors.py", line 84, in __call__
                                                                                                 await self.app(scope, receive, send)
    File "/usr/local/lib/python3.8/dist-packages/starlette_exporter/middleware.py", line 135, in __call__
                                                                                                             await self.app(scope, receive, wrapped_send)
                        File "/usr/local/lib/python3.8/dist-packages/starlette/exceptions.py", line 82, in __call__
                                                                                                                       raise exc
                                                                                                                                  File "/usr/local/lib/python3.8/dist-packages/starlette/exceptions.py", line 71, in __call__
                                                                                              await self.app(scope, receive, sender)
   File "/usr/local/lib/python3.8/dist-packages/starlette/routing.py", line 656, in __call__
                                                                                                await route.handle(scope, receive, send)
       File "/usr/local/lib/python3.8/dist-packages/starlette/routing.py", line 259, in handle
                                                                                                  await self.app(scope, receive, send)
     File "/usr/local/lib/python3.8/dist-packages/starlette/routing.py", line 61, in app
                                                                                            response = await func(request)
                                                                                                                            File "/usr/local/lib/python3.8/dist-packages/fastapi/routing.py", line 226, in app
                                                                               raw_response = await run_endpoint_function(
                                                                                                                            File "/usr/local/lib/python3.8/dist-packages/fastapi/routing.py", line 161, in run_endpoint_function
                                                                                                 return await run_in_threadpool(dependant.call, **values)
                        File "/usr/local/lib/python3.8/dist-packages/starlette/concurrency.py", line 39, in run_in_threadpool
                                                                                                                                 return await anyio.to_thread.run_sync(func, *args)
                                                  File "/usr/local/lib/python3.8/dist-packages/anyio/to_thread.py", line 28, in run_sync
         return await get_asynclib().run_sync_in_worker_thread(func, *args, cancellable=cancellable,
                                                                                                      File "/usr/local/lib/python3.8/dist-packages/anyio/_backends/_asyncio.py", line 818, in run_sync_in_worker_thread
                                                                                        return await future
                                                                                                             File "/usr/local/lib/python3.8/dist-packages/anyio/_backends/_asyncio.py", line 754, in run
                                                                         result = context.run(func, *args)
                                                                                                            File "broadlinkmanager.py", line 432, in learnir
                             dev.enter_learning()
                                                 AttributeError: 'Device' object has no attribute 'enter_learning'

How to use it with Homeassistant

Hi,

I just bought a Broadlink RM4 and your image looks the perfect addition for a selfhosted smart home solution!
For my automation I use Home Assistant, like you do.

Could you please explain the recommended way to use Boradlinkmanger with HA?

Thx and Regards,
Ex0nuss

Translation for Device Id and Model?

I have 2 Broadlink devices, an "RM Pro" and an "RM4 Pro". I can get to them in broadlink-python (though they're in a different subnet, so no discovery, but I have the mac and IP). In broadlink python, I can get the "devtype" which is 21011 for the RM4 Pro, and 10026 for the RM Pro. Knowing discovery across subnets is out, I've attempted to make my own devices.json file. I have tried the various model ID's on the README but none work; is this because it's in it's own subnet, or am I having trouble translating the devtype to the model needed in the json? Is it possible to map the "0x" ID to the devtype returned from the cli?

Waiting for signal after learning

image

When I try to learn a code either Rf or IR on my RM4 pro, it does not show me the read code. The process works fine until it has to show the code.
any ideas?

Broadlink Manager Version 3.0.5
RM4 Pro - 0x61a2 - Firmware v52079

RF Issue: Can't learn single press

Hi There,

I tried getting this container working on docker on Windows but couldn't connect to the network.

As such, I created a VM for Home Assistant and installed via Portainer and was finally able to successfully connect.

It finds my RM2 Pro Plus_300 with no issues, and it discovers my remote on long press, however when I click "Status: Click The Continue button" and press the button for a single click, it times out with the following error:
Status: To complete learning, single press the button you want to learn _Error occurred while scanning, please try again_

As such, trying multiple solutions to get BroadlinkManager working, it still doesn't seem to be able to learn RF codes as I was hoping. If I can get this working, it would solve a lot of pains for trying to automate my blinds! :)

I am using a DC1602 RF remote (provided by suppliers).

New Version - does not have WebUI

Hi

I used the previous version. Scans worked sometime, others not.

Update to latest version 5.7.6 and the link to WebUI has disappeared.

No interface or no devices

Running broadlinkmanager on docker on synology.
I can get the web-interface working by running the container, but then i cannot find any broadlink devices.
I guess it is due to network_mode is supposed to be set to host. If i set it to host, the web interface disappears.

Does anyone know how to solve this?

Learn IR impossible

image
I try to learn an IR but after-acquired it the system doesn't show the code, remaining in Waiting For Signal..

RM4 pro can not be found on network

Hi,

I use a raspberry pi 4 with hassos and home assistant (latest version as far as I can tell) and installed the broadlinkmanager with portainer. I switched the container to use host network. I can start the broadlink console and the app starts scanning, but does not find the broadlink device on the network. I checked with Fing and the broadlink device is visible and pingable.
I have no idea how to find out the device type.
Is there something else I can check? Thanks

Add new device?

Hello,

Trying to set up my rm pro 3 from a factory reset. How do I do it from this tool? The add device button that was there in the old non docker version of this tool isn't in this one. I'm running docker desktop on windows and have access to the host via localhost:7020.

I can't use the old tool because my ssid password has spaces in it and that throws an error with the old manager.

Unable to find RMpro on another subnet

Hi, my RMpro is connected to wifi on another subnet 192.168.3.125.

My home-assistant is in a docker on a linux box on IP 192.168.1.111. I am able to ping the RMpro on 192.168.3.125 from the linux box.

Broadlink manager has been installed to a docker container on the linux box. Upon launching the web interface, the searching for devices is unable to return with RMpro. It just cannot find the device.

What should I do?

Not able to find my particular RM Mini 3

I've tried a few different apps now but it seems that none of the tools, including the Home Assistant integration, are able to detect my particular RM Mini 3.

Is it possible that I just got a newer version than everyone else and that's why it won't work? Already giving up a bit here :(

Tried the usual stuff, closing the app before adding the device to any room only to get the Mini into my WiFi network and also fully configuring it already. Nothing worked.

Learned code is missing

So after learning remote the screen keeps displaying this

grafik

i expected to get the rf code here

Codes learned are not the same format as whats being converted with this.

For some reason, running this does not give me the correct codes. Maybe it's me, who knows. Broadlink RM4 Pro, latest software on everything.

When running this, in a docker container, on a Synology NAS, I want to convert an extended code, for example, 7A-16.
I can't find a place to input the code by hand.
For example, the HOME button, a standard IR code, I get in Homeassistant, using the remote.learn command, and pressing the button :

"home": "JgBQAAABJJMTNxM3EzYUNhM2FDYUNhQREzcTEhMSEhITEhMSFBEUERMSEzcTNxMSExEUNhQ2ExITNxMRFBEUNhQ2ExISExM3EwAFFAABJkcWAA0F",

  • which works as a remote code using the Broadlink RM4 Pro.
    But when I run the code from the yamaha convert program, for the home button, which is 7F01-66, I get :

0000 006D 0022 0002 0155 00AA 0015 0040 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 0015 0015 0015 0015 0040 0015 0040 0015 0015 0015 0015 0015 0040 0015 0040 0015 0015 0015 0040 0015 0015 0015 0015 0015 0040 0015 0040 0015 0015 0015 0015 0015 0040 0015 05ED 0155 0055 0015 0E47

When running through this, I get :

AAAAbQAiAAIBVQCqABUAQAAVAEAAFQBAABUAQAAVAEAAFQBAABUAQAAVABUAFQBAABUAFQAVABUAFQAVABUAFQAVABUAFQAVABUAFQAVABUAFQBAABUAQAAVABUAFQAVABUAQAAVAEAAFQAVABUAQAAVABUAFQAVABUAQAAVAEAAFQAVABUAFQAVAEAAFQXtAVUAVQAVDkc=

  • which doesn't work as an IR code. So, is it me, or ??
    Thanks!

RM2 Pro Plus learning IR codes

Hi,

I've installed the docker version of the manager and it all went well.

I can get to the instance at ipaddr:7020

The manager detects my RM2 correctly but when I try learning IR codes it says the data is received but then it never displays the data and the animation of the rx'ing data just stays there forever.

I've tried restarting the container and the PC but nothing helps.

Thanks for looking.

image

Unsupported upgrade request

I installed this as a home assistant addon but after starting it up the WebUI shows only the text "Unsupported upgrade request".

Here's 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.

Can I send rf comands throw cli or web call?

Hello,
After some tries and setup proces, the docker works for me in a RM4 PRO (0x649b) and im very happy with it.
Now i can learn all my rf comands.
But i need to send this comand by console comand, or by a web call.

This is because i need to integrate this docker with my domoticz system.

How can i send a RF code (learned) by a script, python, or web call? its posible?
thanks a lot!!!

ERROR: Exception in ASGI application

Broadlink manager running on raspberry pi with RaspianOS Buster, get it to start up but when I go to connect I get an Internal Server Error and this error in the terminal:

pi@raspberrypi:/opt/broadlinkmanager-docker/broadlinkmanager $ python3 /opt/broadlinkmanager-docker/broadlinkmanager/broadlinkmanager.py
2022-04-03 18:41:43.227 | DEBUG | main:GetLocalIP:30 - 192.168.0.132
2022-04-03 18:41:43.237 | INFO | main::76 - Configuring app
2022-04-03 18:41:43.280 | INFO | main::528 - Broadllink Manager is up and running
INFO: Started server process [3097]
INFO: Uvicorn running on http://0.0.0.0:7020 (Press CTRL+C to quit)
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/uvicorn/protocols/http/httptools_impl.py", line 388, in run_asgi
asgi = app(self.scope)
TypeError: call() missing 2 required positional arguments: 'receive' and 'send'
INFO: ('192.168.0.232', 54953) - "GET / HTTP/1.1" 500
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/uvicorn/protocols/http/httptools_impl.py", line 388, in run_asgi
asgi = app(self.scope)
TypeError: call() missing 2 required positional arguments: 'receive' and 'send'
INFO: ('192.168.0.232', 54954) - "GET /favicon.ico HTTP/1.1" 500
^CINFO: Stopping server process [3097]

Any help is apprciated! Note there were multiple modules missing when I first tried to run the .py, uvicorn, starlette_exporter, fastapi, aiofiles, I installed each with sudo pip3 install to get this far

Please add RM4 Mini 0x648d

It looks like this might have been added before, but I see "Unsupported" and also don't see it in broadlinkmanager.py.

Manually enter IP or scan different subnet

My BroadLink device is on another subnet (VLAN just for IOT devices) I currently have no firewall rules setup to block traffic between subnets. So, I can communicate what the BroadLink device just fine using the app, but BroadLink manager can't detect the device because I'm guessing it's only scanning the subnet/VLAN the docker image is on.

I think it would be nice feature to manually put in the IP of the BroadLink device or be able to scan another subnet.

Support for RM4 Pro - 0x653c

Hi!

Would it be possible to add 0x653c device type support (RM4 Pro)?

Device info screen:
image

Error message after trying to learn IR/RF code:
image

Thank you,
Alexander

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.