t0mer / broadlinkmanager-docker

Broadlink Manager is a python based project that allows you to contorol your broadlink devices. Discover, Leran and send command in a very easy way
Apache License 2.0
261 stars 56 forks source link

Does not work with new RMPro 4 #16

Open digitalMedic opened 3 years ago

digitalMedic commented 3 years ago

This program does not work with the new RMPro 4 (type 649b). States unsupported device and will not connect.

MightyWomble2020 commented 3 years ago

Doesn't work with a new RM4 Pro from AliExpress with a device type of 0x653c either.

FreekBos commented 3 years ago

Ahaaa... I'm not the only one... same problem here. Have docker up and running, stable. RM4pro in different subnet with multi-cast back and forth. No way to add the RM4pro to the docker (discover doesn't work, manual doesn't seem to be available) It would be wonderful to have the features running in Home Assistant so question remains: is there any life in this development?

DangerD1024 commented 3 years ago

Mine rm pro plus stopped to work after firmware update...(

lordraiden commented 3 years ago

Please could you add support for the RM4 PRO? It can detect my Mini R3 but not the new RM4Pro

imagen

lordraiden commented 3 years ago

More info here: https://github.com/mjg59/python-broadlink/pull/472 https://github.com/home-assistant/core/pull/45394

@t0mer

gregorskii commented 3 years ago

I got this to connect by changing these lines:

https://github.com/t0mer/broadlinkmanager-docker/blob/master/broadlinkmanager/broadlinkmanager.py#L91

Change to: 0x649b

https://github.com/t0mer/broadlinkmanager-docker/blob/master/broadlinkmanager/broadlink/__init__.py#L64

Change to: 0x649b

And running it locally.

git clone git@github.com:t0mer/broadlinkmanager-docker.git
python3 -m venv env // create virtualenv
source env/bin/activate // activate it
python3 -m pip install flask flask_restful loguru cryptography==2.6.1 // packages
python3 broadlinkmanager.py

It connects and shows the name correctly. But any time I try to learn a command the App does not stop counting down. I can LEARN from the box to my laptop.

You have to make sure you go to the app under the universal remote settings "..." on the top right of the device, and click "Lock Device" to off.

I am just trying to get discrete inputs for my Sony TV. Which arguably is the most obvious thing a product like the RM should support.

Screen Shot 2021-02-28 at 1 14 31 PM

IMG_951FF9979132-1

Any ideas on simpler ways? I have a Sony x900h and a Sonos, so the simplest setup to automate ever.

Best

KDYR commented 3 years ago

@gregorskii : I did almost the same thing, but instead of replacing, I added new lines for the type 0x649b and it also works. I later discovered, that there is actually an init.py with more type definitions available as a 'revert commit'. Anyway. Now, I wonder why are you using the App? Isn't the idea that Broadlinkmanager provides a server that you access via a browser, and you then learn in that browser?

gregorskii commented 3 years ago

I clicked the learn in the web app, but I didn’t understand how it corresponds to the buttons on devices remote. I assumed the device needed to be in learn mode for the button pressed in the app.

How is it supposed to work?

KDYR commented 3 years ago

As presented in the project wiki, the idea with the broadlinkmanager-docker is that you can obtain/record signals and perform test-sends of signals - both for IR and RF - without the use of the app. When you have installed broadlinkmanager-docker in one of the ways described, you then control the manager by accessing port 7020 on the server where you installed the broadlinkmanager-docker with a browser of your choice. Using the web-interface, you can then scan the network for Broadlink devices and record / send signals from each of them - if it was working as intended. The only thing you may need the app for is getting the Broadlink device connected to your WiFi.

gregorskii commented 3 years ago

As described all of those things work. However I still do not understand how to use this application to send a IR signal build from a hex code (as base64) to the device and store it as a button. Is that not possible?

KDYR commented 3 years ago

Ah - OK. I misunderstood. Apologies. My reply to your question: "No, I would not expect so". I think the idea is that you can learn codes that you can then use for instance in the Broadlink HA integration or in Node-Red. You state "those things work". So you have a rm4 Pro type 649b and you can acquire IR signals with broadlinkmanager-docker? The IR code is displayed in the broadlinkmanager-docker interface? If so, which browser are you using?

gregorskii commented 3 years ago

I updated the code myself to accept the device's hex code. I was getting successful messages from the UI when sending commands to it, and I tried learning a command from a remote back to my laptop and it worked.

Given the use case I have would this tool ever be expected to work?

I found the IR files on the broadlink device store to be lacking a lot in terms of "discrete codes", I used to program remotes a long time ago and automations are pretty pointless if you can't get the TV to go to a discrete input. My plan here was to send the discrete commands to the device and learn them on the HDMI (1/2/3/4) buttons in the UI.

I don't need the broadlink for anything really except creating Alexa and Siri voice commands to turn the TV on. We only use it for "Alexa turn on Switch" or "Alexa turn on the TV". But that is pretty pointless without discrete commands.

KDYR commented 3 years ago

Hi @gregorskii
I would not think that use case is part of what is being attempted with the project, but then again, I am also rather new here. BTW: I have now found a solution to my own problem: When accessing the server via Edge, it works. When using Firefox or Chrome, it doesn't (for me, with my settings; that is)