Skip to content

Add support for Broadlink RM4 pro (0x653C) - #472

Merged
felipediel merged 1 commit into
mjg59:masterfrom
felipediel:patch-23
Jan 9, 2021
Merged

Add support for Broadlink RM4 pro (0x653C)#472
felipediel merged 1 commit into
mjg59:masterfrom
felipediel:patch-23

Conversation

@felipediel

@felipedielfelipediel commented Nov 9, 2020

Copy link
Copy Markdown
Collaborator

Add support for Broadlink RM4 pro (0x653C)
home-assistant/core#42983

@KTibow

Copy link
Copy Markdown
Contributor

You should re-sort the list sometime. Are you sure that's the location where it goes?

@felipediel

Copy link
Copy Markdown
CollaboratorAuthor

Yes, we are sorting by class and devtype, in this order.

@lukeclx

Copy link
Copy Markdown

Seems like it's not supported again for Broadlink RM4 pro (0x653C)

@yfands

Copy link
Copy Markdown

Hey felipediel, thanks for opening, but it says Add support for Broadlink RM4 pro (0x653C)
But my device is a RM mini 3. with that device number 0x653C
Regards Frank

@felipediel

felipediel commented Nov 24, 2020

Copy link
Copy Markdown
CollaboratorAuthor

Are you sure? Please double check the type. The official app says RM4 pro.

@yfands

yfands commented Nov 25, 2020 via email

Copy link
Copy Markdown

@yfands

yfands commented Nov 25, 2020 via email

Copy link
Copy Markdown

@felipediel

Copy link
Copy Markdown
CollaboratorAuthor

Thanks for reporting back! The PRs are open, now we just need to wait a bit for the next release.

@opep

opep commented Dec 11, 2020

Copy link
Copy Markdown

Thanks for reporting back! The PRs are open, now we just need to wait a bit for the next release.

Do you expect that it is going to be merged with HA 1.0? It´s getting pretty near (13/12) and despite it has successful checks and no conflicts, it still didn't get merged. (I have no way to integrate my new broadlink).

@KTibow

Copy link
Copy Markdown
Contributor

Steps for HA:

  • Someone buys the thing
  • Someone makes an issue here
  • Someone figures out how to fix it
  • Someone makes a PR
  • PR needs to be looked at
  • PR needs to be merged
  • python-broadlink new release
  • Update HA requirements for new release, same PR process
  • New HA release

It takes a while. Hopefully the maintainers can merge soon.

@xblackedemonx

xblackedemonx commented Dec 13, 2020

Copy link
Copy Markdown

Is it possible that it is not integrated yet? I try to add my RM4 Pro+ and it says Unsupported device: 0x653c. thanks

@KTibow

Copy link
Copy Markdown
Contributor

This PR is open, as you can see. That means that it's not added yet. It is definitely not integrated.

@opep

opep commented Dec 14, 2020

Copy link
Copy Markdown

Is it possible that it is not integrated yet? I try to add my RM4 Pro+ and it says Unsupported device: 0x653c. thanks

Same here, We will have to wait a bit longer.

@xblackedemonx

Copy link
Copy Markdown

Ok thank you.

@oferbar

Copy link
Copy Markdown

Hi,
The same error happens for two different devices I was trying to add to HA: RM4 Pro and RM4C mini:

Logger: homeassistant.components.broadlink.config_flow
Source: components/broadlink/config_flow.py:48
Integration: Broadlink (documentation, issues)
First occurred: 2:49:35 AM (4 occurrences)
Last logged: 10:57:59 AM

Unsupported device: 0x653c. If it worked before, please open an issue at https://github.com/home-assistant/core/issues
Unsupported device: 0x6539. If it worked before, please open an issue at https://github.com/home-assistant/core/issues

@xblackedemonx

Copy link
Copy Markdown

When is this patch planned to go live?

@KTibow

Copy link
Copy Markdown
Contributor

When one of the maintainers is available.

@kaskagorry

Copy link
Copy Markdown

Otro por aqui con este modelo RM4 Pro '0x653c' con el mismo problema para poder integrarlo.

En cuanto tengamos novedades sobre este asunto, soy el primero en probar

@felipediel

Copy link
Copy Markdown
CollaboratorAuthor

Hi @kaskagorry. If you want to patch your installation before the release:

  1. Open Home Assistant and install "SSH & Web Terminal" add-on
  2. Disable Protection mode
  3. Connect to the device via SSH and install the patch:
ssh USER@IPADDRESS
docker exec -it homeassistant /bin/bash
pip3 install git+https://github.com/felipediel/python-broadlink.git@patch-23 --force-reinstall --no-deps
  1. Restart the server.

@felipediel
felipediel merged commit b40cd40 into mjg59:masterJan 9, 2021
@xblackedemonx

Copy link
Copy Markdown

felipediel thank you very much!

@oferbar

Copy link
Copy Markdown

Hi @kaskagorry. If you want to patch your installation before the release:

  1. Open Home Assistant and install "SSH & Web Terminal" add-on
  2. Disable Protection mode
  3. Connect to the device via SSH and install the patch:
ssh USER@IPADDRESS
docker exec -it homeassistant /bin/bash
pip3 install git+https://github.com/felipediel/python-broadlink.git@patch-23 --force-reinstall --no-deps
  1. Restart the server.

Hi, in which release is this going to be included?
Thanks!

@felipedielfelipediel mentioned this pull request Jan 20, 2021
Merged
@WarlaxZ

Copy link
Copy Markdown

patch 23 annoyingly doesnt add the '0x6539' device (RM4 Mini)

@felipediel

Copy link
Copy Markdown
CollaboratorAuthor

This branch has all the patches together:

pip3 install git+https://github.com/felipediel/python-broadlink.git --force-reinstall --no-deps

@xblackedemonx

Copy link
Copy Markdown

I don't use Docker. How can I install this?

@felipediel

felipediel commented Mar 15, 2021

Copy link
Copy Markdown
CollaboratorAuthor

Which installation method did you choose?

If you are running HassOS or a manual installation of the Supervisor, this will set you up.
If you are running on a Python venv, activate the virtual environment and install the patch:

source venv/bin/activate
pip3 install git+https://github.com/felipediel/python-broadlink.git --force-reinstall --no-deps

@xblackedemonx

Copy link
Copy Markdown

I installed it on the microSD using the Pi 4 image and Balena Etcher.

@felipediel

Copy link
Copy Markdown
CollaboratorAuthor

Check if you have a Supervisor button on the sidebar. If so, click the button, go to the add-ons store and perform the first procedure. If not, do it the second way. If you don't feel safe doing this, waiting a while won't hurt. v0.17.0 is already merged into the dev branch, we're almost there.

@xblackedemonx

xblackedemonx commented Mar 15, 2021 via email

Copy link
Copy Markdown

@felipediel

Copy link
Copy Markdown
CollaboratorAuthor

You're welcome!

@luigipius

Copy link
Copy Markdown

hi @felipediel, how I can do to install the 0.17.0?
when I try with:
pip3 install git+https://github.com/felipediel/python-broadlink.git --force-reinstall --no-deps
I receive "Successfully installed broadlink-0.16.0"

@felipediel

felipediel commented Mar 17, 2021

Copy link
Copy Markdown
CollaboratorAuthor

You shouldn't install v0.17.0 directly, it comes with several breaking changes.

@greghesp

Copy link
Copy Markdown

Hey @felipediel

I've tried this twice now. It looks like its successfully installed:

image

but discover still fails

image

Any ideas?

@felipediel

Copy link
Copy Markdown
CollaboratorAuthor

Those instructions are for the Broadlink Integration (Home Assistant). Looks like you are using something different. You need to find out where the library is installed and patch it correctly.

@greghesp

Copy link
Copy Markdown

Those instructions are for the Broadlink Integration (Home Assistant). Looks like you are using something different. You need to find out where the library is installed and patch it correctly.

Im using Home Assistant and Node-Red with node-red-contrib-broadlink-control

@felipediel

Copy link
Copy Markdown
CollaboratorAuthor

node-red-contrib-broadlink-control doesnt't depend on this module. The patch will not work.

@KTibow

Copy link
Copy Markdown
Contributor

Raise an issue over there, as the message says.

@dum-skywalker

Copy link
Copy Markdown

Check if you have a Supervisor button on the sidebar. If so, click the button, go to the add-ons store and perform the first procedure. If not, do it the second way. If you don't feel safe doing this, waiting a while won't hurt. v0.17.0 is already merged into the dev branch, we're almost there.

I have the supervisor version as installation mode, nevertheles I can't disable the Protection mode on the config. any advice? I have the problem with "Unsupported device: 0x653c" for a Broadlink RM4pro
Thanks in advance.

@palbent

Copy link
Copy Markdown

Hi @felipediel
I guess I'm doing something wrong. I'm trying to install my new RM4 pro (firmware v52079), I started to manually add the line 0x653C: (rm4, "RM4 pro", "Broadlink") to the __init__.py file. After restarting, my HA didn't restart or even start correctly, so after checking I have seen that I got an error on the log file and reverted the change (removed the line).
Then I tried to install the line pip3 install git+https://github.com/felipediel/python-broadlink.git@patch-23 --force-reinstall --no-deps. I wrote this directlz into the TERMINAL.
inst_broadlink|690x203

As you can see on the picture, the terminal says it was correctly installed, but when I try to integrate again the RM4pro I'm still getting that the device isn't supported.

Can you help me understanding what I'm doing wrong?

Many thanks

@felipediel

Copy link
Copy Markdown
CollaboratorAuthor

This will set you up: #472 (comment). Don't skip any step.

@TjakBak

TjakBak commented Apr 7, 2021

Copy link
Copy Markdown

Hi @felipediel ,

Thanks a lot for all the help you are giving in this thread.
Unfortunately just like palbent above I am also still unable to get the RM4 Pro running with hassio.
I am running the set up through a pi4, and used SSH to get into the pi, i ran the line which you suggested in #472 (comment) as well as all the other lines that were suggested in the different threads.

But still, I get the unknown device error.

I did try to install the broadlink component including the dependencies, however, then I seem to run into an error with updating cryptography. Not sure if this is related somehow.

Do you maybe have any other ideas how I could get the RM4 Pro addedto my home assistant?

Cheers!!

@felipediel

felipediel commented Apr 7, 2021

Copy link
Copy Markdown
CollaboratorAuthor

Hi @Heijt771. Thank you!

Did you install the "SSH and Web Terminal" add-on? Did you access the container shell before installing the patch? This is important: docker exec -it homeassistant /bin/bash.

I have nothing to add to those instructions. The only thing I can emphasize is not skipping any step.

@Madelinot

Copy link
Copy Markdown

Yes, make sure you used the right SSH client. That was my problem initially and I could not figure out why it would not work, until I read and followed the instructions EXACTLY.

@palbent

Copy link
Copy Markdown

Thanks you all.... I'm using the SSH&Webterminal. I did the procedure but it didn't work for me for any reason that I don't know.... but today I was able to manually add the line to the ini.py and probably an issue with the C instead c.... but it's working now.

Thanks again for zour attention and support.

@felipediel

Copy link
Copy Markdown
CollaboratorAuthor

Hello everybody. The update is finally released. The patch is no longer necessary, you just need to update Home Assistant.

@xblackedemonx

xblackedemonx commented Apr 7, 2021 via email

Copy link
Copy Markdown

@felipediel

Copy link
Copy Markdown
CollaboratorAuthor

You're welcome!

@oferbar

Copy link
Copy Markdown

Hi,
I'm running the HA OS and just got the latest updates for Apr 10, 2021:

  • core-2021.4.3
  • supervisor-2021.03.9
  • Home Assistant OS 5.13

Still, when I try to add both Broadlink devices (mini, Pro) I get a failure error' like:

2021-04-11 00:55:53 ERROR (MainThread) [homeassistant.components.broadlink.config_flow] Failed to connect to the device at 192.168.X,Y: Device not found

Did I miss anything?

Thanks

@felipediel

Copy link
Copy Markdown
CollaboratorAuthor

The IP addreses are wrong or you are not connected to the same network.

@mintjberry

Copy link
Copy Markdown

If anyone is stuck on this like I was, if you have set up the Broadlink in your phone's app, be sure to switch off 'Lock Device'. That was stopping Home Assistant from being able to connect to it via IP address.

@M2ar10

Copy link
Copy Markdown

I just have a new broadlink RM4 pro and have the latest version of ha running on my synology (docker). And i still have the issue device not suported ... Help pleas :(

@sevagjb

sevagjb commented Mar 18, 2022

Copy link
Copy Markdown

BroadLink problem,
i bot new Broadlink RM4 pro , its not supported can you help ???
when i add the Integration i receive this message:
Aborted
Device not supported,
This is device datils:
Device info : S/N code
PID ; 00000000000000000000000013520000
DID : 00000000000000000000ecObae6edc02
loT Cloud : World
MAC: XX:XX:XX:XX:XX:XX
Firmware :
V62092
Device IP : 192.168.1.60@80
Data Cloud : European server
SDK : 2.17
Plug-in version : 1.6.7.2
Routine traits : Trigger
Connector Type: ‎Wi-Fi, Radio Frequency
ASIN: ‎B083LLLVPN

can i fix it??
Thanks

@palbent

palbent commented Mar 18, 2022 via email

Copy link
Copy Markdown

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

20 participants

@felipediel@KTibow@lukeclx@yfands@opep@xblackedemonx@oferbar@kaskagorry@WarlaxZ@lordraiden@DangerD1024@pemoamsiiot@bakovari@FlexxFR@steelincable@tyjtyj@YevhenPavliuchek@kylemd@bergetun@luigipius