This component is also not working for me, I removed all mentions of the old broadlink from my configuration. I install the integration, give it the IP address and it brings up the Chinese name, which I change but I get no devices or entities configured. Here is what I do see after I restart homeassistant:
2020-09-18 21:03:02 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry br-rm4pro for broadlink
File "/usr/src/homeassistant/homeassistant/components/broadlink/__init__.py", line 28, in async_setup_entry
File "/usr/src/homeassistant/homeassistant/components/broadlink/device.py", line 97, in async_setup
File "/usr/src/homeassistant/homeassistant/components/broadlink/updater.py", line 24, in get_update_manager
It did work in the old method where I could specify that I had a rm4pro. I think the device is coming back as unknown and I have noticed using other tools that my rm4pro has a different device id: 0x649b
I edited the file /usr/local/lib/python3.8/site-packages/broadlink/__init__.py and added an entry for my broadlink id, this fixed the issue. I saw a change being made to the broadlink python code to add it so later releases should pick it up.
From the link you have provided, it states the smart plugs will automatically be created. What Broadlink device are you using?
The switch entities allow you to control and monitor Broadlink smart plugs, power strips and switches.
You can turn them on and off, and you can monitor their state and power consumption, when available.
These entities are created automatically when you configure a device that has switches.
I finally managed to solve the issues.
The main idea is to not use yaml configuration at all.
Read carefully the information on Release Notes. Sroll to “Breaking Changes/broadlink” section.
It looks like the broadlink integration is going to be controlled via UI, not yaml.
The only yaml configuration is used to create virtual switches to send IR commands.
I had the exact codes you had before the update. After the update, a handful of IR codes did not show up in HA. I, then, redid the code as per their breaking changes. All good now.
Can I be the first that would ask how to use Broadlink anyway? 0.115 was the first time it appeared in my HA. Is there a UK YouView setup anyone can share?
I finally got all my Broadlink devices working again after updating to 0.115.1. This is what I did.
Note: I have the RM4 Pro and RM3 Mini devices. I believe this quick update was a patch fix for the RM3 Mini. The RM4 Pro works on Ver. 0.115.
If these steps do not work for you, you may have a device that isn’t supported yet. Best to check this open issue and see if they have added your device type or include yours to the list.
– Delete any previous Broadlink devices you have troubled with if the integration failed.
– Make sure you have your IR codes in a switch.yaml file in this new format.
– Update HA to 0.115.1 if you haven’t done so and restart Ha.
– After reboot, if HA does not auto discover your Broadlink devices…
– Navigate to configuration -> integrations -> click on orange + sign. Search for Broadlink
– Type the ip address of your device for HOST. Name your device and it should install a remote entity by default and any other sensors you have for Broadlink automatically.
– If you have included your IR codes in a switch.yaml before the device setup, you should see your IR codes in the frontend.
– Repeat the steps to add more devices if you have more than one.
Hi,
After installing version 115.1 I have the similar issue. I have configured Broadlink integration, it seems OK. I have some custom switches, so I modified the configuration.yaml as mentioned above. The config check is OK, but after restarting the home assistant the switches are not shown in the user interface. An example from my configuration.yaml:
It’s Broadlink RM Pro+. It was fine running under 114. Been scratching my hairs off. Hope i don’t get bald over this My missy has been bugging me to fix it.
It should work. My only guess is that your device type isn’t added as support yet. If you look at this post, you will see there are different device type code for RM4 Pro. You may have to wait until the next update.
I’m in the same situation, running a RM Pro+. It’s not on the current list of supported devices, but it is on the list to be included in the next update. Details here: https://github.com/home-assistant/core/issues/40191