Add support for Broadlink RM4C mini (0x6539) - #476
Conversation
guieiras-dev
commented
Dec 3, 2020
Awesome!! That is exactly what I need. |
mmakaay
commented
Dec 9, 2020
Manually patched my local code, and I can confirm that the solution is working for me. Thanks. |
zaberxxx
commented
Dec 9, 2020
May I ask how to manually patch the code? |
|
mmakaay
commented
Dec 10, 2020
Note that this patch is only required during the discovery phase in Home Assistant. I followed pretty much the route that @felipediel describes above, to patch the code inside the running container. When this all was setup and working, I fully restarted the container, bringing back the original code for the python-broadlink library. I was happy to see that my integration kept working. |
centromedicointer
commented
Dec 10, 2020
Thank you it worked for mee!! |
blavak68
commented
Dec 10, 2020
Thx, it worked for mee!! (0x6539) |
jonastep
commented
Dec 18, 2020
Not able to make it work. First thing is that the folder broadlink is was not created, so I created manually (is this correct?). I am still getting Unsupported device: 0x6539. If it worked before, please open an issue at https://github.com/home-assistant/core/issues Any advice on what to check or what could be blocking this integration? |
The folder exists, but elsewhere. You can find it with: find / -name broadlinkAnother installation option: 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 |
Thanks for the help @felipediel. I was able to install the device with another method: 1.- Open SSH & Web Terminal Thank you for the support works great. |
KTibow
commented
Dec 18, 2020
Given how many PRs there are for devices that aren't merged, would it make sense to just have something in the UI to manually specify the device type, or some kind of auto-detection? That would save some of the hassle. |
hasan-fardan
commented
Dec 26, 2020
it didn't work for me is still get device not supported (0x6539) |
i changed the code proovided by @felipediel by adding new line " 0x6539: (rm4, "RM4 mini", "Broadlink"), ". i saved this code in repository : https://raw.githubusercontent.com/hasan-fardan/python-broadlink/main/__init__.py Then I did the same steps:
Finally, restart Home assistant |
hasan-fardan
commented
Dec 26, 2020
After I added my broadlink rm4 mini I can't learn codes anymore. When I run the service to learn code it runs as usual but when I send the command I just learned it does nothing. Also, when I searched for the learned codes I didn't see the folder ".storage" |
The .storage folder is hidden. If you are on Windows, you need to check that box to show hidden files and folders. Do you see any errors in the logs? Check if the entity is turned on. There is a button. |
hasan-fardan
commented
Dec 27, 2020
thanks. i saw them |
bulutsemih
commented
Dec 30, 2020
you are great felipediel ,Thanks to everyone who contributed |
hasan-fardan
commented
Dec 31, 2020
my broadlink rm4 mini stopped working. its state changed to unavailable. in the broadlink app I can control it normally but in home assistant I cant. when I try to add it again it says device not available even though I followed the same steps as before. |
this method works ssh USER@IPADDRESS edit: it worked on the rm4 mini but stopped my rm4 pro |
jonastep
commented
Dec 31, 2020
For me the RM4C Mini stopped working after the update. I had to learn again the commands and now it's working again, did you try it? |
hasan-fardan
commented
Dec 31, 2020
it's unavailable in my case |
hasan-fardan
commented
Dec 31, 2020
now both the pro and the mini works. I copied felipediel code and and added both devices (0x653c , 0x6539) for the setup install "ssh and web terminal" then restart home assistant |
wojciechczyz
commented
Jan 7, 2021
2021.1 Is still missing this definition. |
KTibow
commented
Jan 7, 2021
@mjg59 might be on vacation. |
Arturasm
commented
Jan 12, 2021
Help please - I do via terminal or putty - after i do login no such command "docker...". |
KTibow
commented
Jan 12, 2021
@Arturasm did you:
docker exec -it homeassistant /bin/bash
pip3 install git+https://github.com/hasan-fardan/python-broadlink.git@patch-24 --force-reinstall --no-deps
|
Arturasm
commented
Jan 12, 2021
I do not get what is turn off protection mode. Is it in SSH/Terminal add-on config? I use Putty. Tried on web terminal, the same. |
hasan-fardan
commented
Jan 12, 2021
Arturasm
commented
Jan 12, 2021
Add support for Broadlink RM4C mini (0x6539) (mjg59#476) Add support for Broadlink RM4 pro (0x653C) (mjg59#472) Add support for Broadlink RM4S (0x6364) (mjg59#475) Add support for Broadlink MCB1 (0x756F) (mjg59#478) Add support for Broadlink MCB1 (0xA56A) (mjg59#478) Add support for Broadlink RM mini 3 (0x6508) (mjg59#479) Add support for Efergy Ego (0x271D) (mjg59#481) Add support for Broadlink SCB1E (0x5115) (mjg59#514) Add support for Broadlink SCB1E (0x6113) (mjg59#488) Add support for Broadlink SP4L-EU (0x618B) (mjg59#489) Add support for Broadlink SP4L-UK (0xA589) (mjg59#491) Add support for Broadlink RM3 mini (0x27d3) (mjg59#493) Add support for Broadlink SP4L-AU (0x6489) (mjg59#498) Add support for BG Electrical AHC/U-01 (0x51E2) (mjg59#497) Add support for Broadlink MCB1 (0x6111) (mjg59#509)
Add support for Broadlink RM4C mini (0x6539) (mjg59#476) Add support for Broadlink RM4 pro (0x653C) (mjg59#472) Add support for Broadlink RM4S (0x6364) (mjg59#475) Add support for Broadlink MCB1 (0x756F) (mjg59#478) Add support for Broadlink MCB1 (0xA56A) (mjg59#478) Add support for Broadlink RM mini 3 (0x6508) (mjg59#479) Add support for Efergy Ego (0x271D) (mjg59#481) Add support for Broadlink SCB1E (0x5115) (mjg59#514) Add support for Broadlink SCB1E (0x6113) (mjg59#488) Add support for Broadlink SP4L-EU (0x618B) (mjg59#489) Add support for Broadlink SP4L-UK (0xA589) (mjg59#491) Add support for Broadlink RM3 mini (0x27d3) (mjg59#493) Add support for Broadlink SP4L-AU (0x6489) (mjg59#498) Add support for BG Electrical AHC/U-01 (0x51E2) (mjg59#497) Add support for Broadlink MCB1 (0x6111) (mjg59#509)
Arturasm
commented
Feb 5, 2021
2021.2 still does not have RM4C mini? As well github asks for user/pass: |
It was not tagged yet. We need to wait until maiteiners release a new version on PyPi. |
NikitaKorneev
commented
Mar 1, 2021
Thanks everyone, the advice helped. You guys are awesome! |
Arturasm
commented
Mar 4, 2021
Hi guys, help me to update 2021.03 HA version with working latest Broadlink solution. Older one in up here is not working anymore. |
NikitaKorneev
commented
Mar 4, 2021
Are you saying that solution proposed above doesn’t work anymore? |
Arturasm
commented
Mar 4, 2021
Log says succeeded, but I integration says no correct device. |
felipediel
commented
Mar 4, 2021
Hi @Arturasm. You need to re-patch your installation when you update Home Assistant. You can use this branch: ssh USER@IPADDRESS
docker exec -it homeassistant /bin/bash
pip3 install git+https://github.com/felipediel/python-broadlink.git --force-reinstall --no-depsThis is what is happening: we skipped v0.16.1 and with v0.17.0 almost ready it makes no sense to release the previous version, which has already been tested by many people informally and would be just another obstacle for many important updates that are coming. We need to think about the whole. So I ask everyone to be patient while waiting. I am working daily to make this happen. If you see people in trouble, please copy and paste the instructions to help them. |
kylemd
commented
Mar 4, 2021
@felipediel might be worth adding to the readme for now until the new version is ready. You can definitely see you're working every day on it, speed of development is blowing me away at the moment! |
felipediel
commented
Mar 4, 2021
It won't be necessary, we're almost there. |
Hey, the workaround at the moment is still isntalling 0.16.0 for me: Was 0.16.1 cancelled while waiting for 0.17.0? |

Add support for Broadlink RM4C mini (0x6539)
#411 (comment)
home-assistant/core#42983 (comment)