core icon indicating copy to clipboard operation
core copied to clipboard

Broadlink RM4C Mini device not supported 0x520d

Open hauser123 opened this issue 2 years ago • 23 comments

The problem

Device not supported error message when adding a new device. Device is: Bestcon RM4C Mini Universal WiFi Infrared Remote Control.

What version of Home Assistant Core has the issue?

2022.5.5

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Broadlink

Link to integration documentation on our website

https://www.home-assistant.io/integrations/broadlink/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.components.broadlink.config_flow
Source: components/broadlink/config_flow.py:38 
Integration: Broadlink (documentation, issues) 
First occurred: May 24, 2022, 11:06:25 PM (4 occurrences) 
Last logged: 3:56:07 PM

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

Additional information

Similar issue: https://github.com/home-assistant/core/issues/72538 (just the device number is different).

hauser123 avatar May 31 '22 13:05 hauser123

Hey there @danielhiversen, @felipediel, @l-i-am, mind taking a look at this issue as it has been labeled with an integration (broadlink) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)

same as me Logger: homeassistant.components.broadlink.config_flow Source: components/broadlink/config_flow.py:38 Integration: Broadlink (documentation, issues) First occurred: 14:06:36 (2 occurrences) Last logged: 14:06:46

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

a000a498 avatar Jun 01 '22 06:06 a000a498

Please note the different device id 0x520c vs 0x520d. Or does it matter?

hauser123 avatar Jun 01 '22 09:06 hauser123

Please note the different device id 0x520c vs 0x520d. Or does it matter?

I know ,uust want let them know ,have another device id cannot support😅

a000a498 avatar Jun 01 '22 09:06 a000a498

You can use this to solve your issue image

I just tested and it works

a000a498 avatar Jun 01 '22 09:06 a000a498

Hi, i found the same issue when purchased new RM4C mini device.

But just adding of new device ID in init.py was solved the issue. Here the device's box & software version.

2022-06-03_13-17-10 photo_2022-06-03_13-25-13 photo_2022-06-03_13-25-23

kpblca avatar Jun 03 '22 10:06 kpblca

Thanks guys, it will come in the next version of python-broadlink. If you want to have it before the release...

  1. Open Home Assistant and install "SSH & Web Terminal" add-on
  2. Disable Protection mode
  3. Click "Terminal" on the sidebar and install the patch:
docker exec -it homeassistant /bin/bash
pip3 install git+https://github.com/mjg59/python-broadlink.git@new_product_ids --force-reinstall --no-deps
  1. Restart the server.

You need to reinstall the patch if you update Home Assistant. It's not permanent.

felipediel avatar Jun 07 '22 12:06 felipediel

Thanks guys, it will come in the next version of python-broadlink. If you want to have it before the release...

1. Open Home Assistant and install "SSH & Web Terminal" add-on

2. Disable Protection mode

3. Click "Terminal" on the sidebar and install the patch:
docker exec -it homeassistant /bin/bash
pip3 install git+https://github.com/mjg59/python-broadlink.git@new_product_ids --force-reinstall --no-deps
4. Restart the server.

You need to reinstall the patch if you update Home Assistant. It's not permanent.

@felipediel Thanks for this solution, it's working fine! =)

jerrychong25 avatar Jul 04 '22 16:07 jerrychong25

Hi, i found the same issue when purchased new RM4C mini device.

But just adding of new device ID in init.py was solved the issue. Here the device's box & software version.

2022-06-03_13-17-10 photo_2022-06-03_13-25-13 photo_2022-06-03_13-25-23

Thank you dude! I have the very exact model and firmware and adding that worked here as well!

adocampo avatar Jul 06 '22 21:07 adocampo

But just adding of new device ID in init.py was solved the issue. Here the device's box & software version. Where is located init.py file? thx

gianlucaf81 avatar Jul 08 '22 12:07 gianlucaf81

I wondered the same thing ☝️ Is it created when the Broadlink integration is installed?

simonbrunton avatar Jul 08 '22 23:07 simonbrunton

You can use this to solve your issue image

I just tested and it works

Doesn't work for me.

kevinkey619 avatar Jul 12 '22 02:07 kevinkey619

Doesn't work for me.

Which code did you tried? My RM4C mini worked with the code 0x520D For those wondering where __init__.py is located, if you're using the docker version, you should follow the instructions on the screenshot, in my screnario, the code 0x6539 was already set, but I added a new line with the code 0x520D, and then it start working. imagen

adocampo avatar Jul 13 '22 15:07 adocampo

Thanks guys, it will come in the next version of python-broadlink. If you want to have it before the release...

  1. Open Home Assistant and install "SSH & Web Terminal" add-on
  2. Disable Protection mode
  3. Click "Terminal" on the sidebar and install the patch:
docker exec -it homeassistant /bin/bash
pip3 install git+https://github.com/mjg59/python-broadlink.git@new_product_ids --force-reinstall --no-deps
  1. Restart the server.

You need to reinstall the patch if you update Home Assistant. It's not permanent.

Can someone explain how exactly to enter this code into the terminal. I have Terminal and SSH set up in HA but when I copy and paste the patch and hit enter it returns “command not found”. A photo or video of it in the terminal would be greatly appreciated!

zambod24 avatar Jul 21 '22 03:07 zambod24

It must be "SSH & Web Terminal", there are two similar addons, the one you are using cannot access the container.

felipediel avatar Jul 21 '22 04:07 felipediel

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

with a new version of HA (the latest) it works. Thank you.

gianlucaf81 avatar Jul 21 '22 09:07 gianlucaf81

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

with a new version of HA (the latest) it works. Thank you.

still does not work

Boussen avatar Jul 24 '22 08:07 Boussen

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

with a new version of HA (the latest) it works. Thank you.

still does not work

The latest release is still missing the ID for RM4C mini (0x520D) therefore it cannot work for now out of the box. Still, manual adding this ID is required.

But there is an open Pull Request which will add support for RM4C mini

unrat avatar Jul 24 '22 12:07 unrat

I added (0x520D) in init.py and still not working for me after a server restart, any idea why?? Do I still need to add it in configuration.yaml? It's manually added there. I also tried the Broadlink integration, entered the RM4C IP address but still showing not supported.

iamhuman2414 avatar Jul 31 '22 04:07 iamhuman2414

Hi there. Any news about this issue? I'm using version 2022.8 and it still not working.

calcioscacchi avatar Aug 12 '22 16:08 calcioscacchi

https://github.com/mjg59/python-broadlink/issues/689 closed, but device still doesn't work. Version 2022.8.7 (docker stable)

SEVENID avatar Aug 27 '22 22:08 SEVENID

Hi i have the same problem: [homeassistant.components.broadlink.config_flow] Unsupported device: 0x520d

Home Assistant 2022.9.5 Supervisor 2022.09.1 Operating System 9.0 Frontend 20220907.2 - latest

nachomanzano avatar Sep 21 '22 12:09 nachomanzano

Sam problem here as well New out of box RM4C Mini Home Assistant 2022.9.5 Supervisor 2022.09.1 Operating System 9.0 Frontend 20220907.2 - latest

ComputerWarlock avatar Sep 22 '22 02:09 ComputerWarlock

Yes, thats because the pull request was closed without merging it. But there is now another open pull request where the ID will be included. Don't know why he didn't merged the other one, the effort would have been minimal.

As i see it, HA is using the latest release and as long as there is no new one with the ID in it, it can not work out of the box. Please check the Releases page of the other project if the device was added. Only then it will be working without manually adding the device ID.

unrat avatar Sep 22 '22 07:09 unrat

It quite a chore to jump through this with every pushed HA upgrade. How can we expedite this to be incorporated into the new release? I just updated to 2022.9.6… probably another 2022.9.7 in a few days time. The agony.

purplephoenix76 avatar Sep 22 '22 11:09 purplephoenix76

How can we expedite this to be incorporated into the new release?

Wish i could tell you. But to be honnest, i think we have to wait for Felipe to merge it and make a new release. Till then the only choice we have is manually add it after every update or make no updates till it is merged.

Maybe there is a way to make a script in HA itself which is triggered after each update adding the ID automatically to the file. But no idea if or how this is possible, never tried such a thing

unrat avatar Sep 22 '22 11:09 unrat

Bumper. my old RM4CMini just got toasted and i’ve bought a replacement. I followed the above to pull the changes using pip3 and it shows successfully install. However, even after restarting, it still show unsupported for 0x520d. Did i miss out anything?

purplephoenix76 avatar Sep 22 '22 11:09 purplephoenix76

Did i miss out anything?

What does the log say?

unrat avatar Sep 22 '22 11:09 unrat

That's all I get from the logs

2022-09-22 19:25:42.011 ERROR (MainThread) [homeassistant.components.broadlink.config_flow] Unsupported device: 0x520d. If it worked before, please open an issue at https://github.com/home-assistant/core/issues

On Thu, 22 Sept 2022, 7:31 pm unrat, @.***> wrote:

Did i miss out anything?

What does the log say?

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/72762#issuecomment-1254895316, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASTW3C33D4P4LKNIUCIAURLV7Q7QHANCNFSM5XNQS47A . You are receiving this because you commented.Message ID: @.***>

purplephoenix76 avatar Sep 22 '22 12:09 purplephoenix76