grabbed the file what do i do with it?
There were several separate issues with broadlink related to HA and also the broadlink library.
https://github.com/home-assistant/home-assistant/issues/14024
For me sp2 stop working after 0.65.5.
It is ok again with 0.68
put it in your custom_components folder:
Hey all, I just upgraded to Hassio 0.68.0 and 0.68.1 and all my Broadlink Switches disappeared.
It seems the breaking change that has occurred is the “switch.broadlink_device” entity names have all changed so they’re no longer the “friendly names”. Have a look for your new broadlink entity IDs and make the relevant changes to your YAML file to make them appear.
NOTE: no need to change any custom components, at least for me!
im having a problem with my broadlink device connecting to home assistant at all.
Here are the errors i’m getting
2018-05-01 14:31:26 WARNING (MainThread) [homeassistant.components.switch] Setup of platform broadlink is taking over 10 seconds.
2018-05-01 14:31:31 ERROR (SyncWorker_3) [homeassistant.components.switch.broadlink] Failed to connect to device
Is this the result of an upgrade? What version? Rolled back?
I’m having logs with similar issues here: Broadlink SP3 Mini stops working after potentially a few days
Did you ever get this fixed on .67 or did you upgrade to a working version? I read the breaking change, but I don’t understand what needs to be done to fix it
I receive this error now
2018-06-11 12:01:21 ERROR (SyncWorker_15) [homeassistant.util.package] Unable to install package broadlink==0.5: Could not find a version that satisfies the requirement pycrypto==1000000000.0.0 (from -c /usr/lib/python3.6/site-packages/homeassistant/package_constraints.txt (line 18)) (from versions: 2.0.1, 2.1.0, 2.2, 2.3, 2.4, 2.4.1, 2.5, 2.6, 2.6.1)
No matching distribution found for pycrypto==1000000000.0.0 (from -c /usr/lib/python3.6/site-packages/homeassistant/package_constraints.txt (line 18))
2018-06-11 12:01:21 ERROR (MainThread) [homeassistant.requirements] Not initializing sensor.broadlink_power because could not install requirement broadlink==0.5
2018-06-11 12:01:21 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform sensor.broadlink_power: Could not install all requirements.
2018-06-11 12:01:30 ERROR (SyncWorker_18) [homeassistant.util.package] Unable to install package lxml==4.1.1: Command “/usr/bin/python3 -u -c “import setuptools, tokenize;file=’/tmp/pip-build-dwtlybtf/lxml/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record /tmp/pip-u4hkzi93-record/install-record.txt --single-version-externally-managed --prefix --compile --user --prefix=” failed with error code 1 in /tmp/pip-build-dwtlybtf/lxml/
2018-06-11 12:01:30 ERROR (MainThread) [homeassistant.requirements] Not initializing sensor.amazon_price because could not install requirement lxml==4.1.1
2018-06-11 12:01:30 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform sensor.amazon_price: Could not install all requirements.
2018-06-11 12:01:31 DEBUG (Thread-8) [xiaomi_gateway] MCAST (heartbeat) << {‘cmd’: ‘heartbeat’, ‘model’: ‘plug’, ‘sid’: ‘158d000128c617’, ‘short_id’: 15873, ‘data’: ‘{“voltage”:3600,“status”:“off”,“inuse”:“0”,“power_consumed”:“1592”,“load_power”:“0.00”}’}
2018-06-11 12:01:42 ERROR (SyncWorker_12) [homeassistant.util.package] Unable to install package broadlink==0.5: Could not find a version that satisfies the requirement pycrypto==1000000000.0.0 (from -c /usr/lib/python3.6/site-packages/homeassistant/package_constraints.txt (line 18)) (from versions: 2.0.1, 2.1.0, 2.2, 2.3, 2.4, 2.4.1, 2.5, 2.6, 2.6.1)
No matching distribution found for pycrypto==1000000000.0.0 (from -c /usr/lib/python3.6/site-packages/homeassistant/package_constraints.txt (line 18))
2018-06-11 12:01:42 ERROR (MainThread) [homeassistant.requirements] Not initializing media_player.broadlink because could not install requirement broadlink==0.5
2018-06-11 12:01:42 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform media_player.broadlink: Could not install all requirements.
What version are you running and what kind of installation?
I’m on hassio with 0.71.0 and everything works fine.
HASSIO on NUC 0.71 (but had the problem also with previous versions of HASS, but forgot to post it here)
I have problems also with Broadlink component.
on 0.63.3 everything works fine. and after upgrade several different versions, Broadlink devices disappeared form HA.
so I’m stuck with 0.63.3
Running Hassio on Intel NUC
Is this issue not being officially addressed? Obviously it was a hassio/ha update that caused the problem. Definitely wasnt an update to my broadlink. its been down over a month now.
I remember also faced problem with some of 0.6x version (can’t remember now), but it was fixed several versions after that…
@anon35356645 I see you failed installing Unable to install package lxml==4.1.1
can you try to do it manually? Which version are you trying to updade from ?
I am on HASSIO, i never know how to update things besides using addon.
The component stopped working some version ago (can’t remember when).
Recently I updated from 0.69.1 to 0.71
Il
I have had no problem with any of my broadlink components from any version after 0.67 I think and then fixed in 0.67.1. I am on Hassio 0.69.1 now and all has been fine since on every upgrade.
I had to do the fix in this thread i.e. remove friendly names for every broadlink device from within the config file. Once I did that and restarted home assistant all my switches reappeared. I could then customize them from within the customize.yaml to give them the friendly name from there. This was the breaking change mentioned by others.
The broadlink component is seperate from the custom broadlink IR and media component. I had to do a separate fix for that a while back. Also mentioned in this thread - i.e. copying over the latest version of the broadlink.py I think.
Hi I was wondering if you have managed to fix your broadlink integration with Hassio.Reason for the question is that I cannot find any detailed info on how to import the codes into Hassio
Everything you need to know about importing the codes is on the component page under How to obtain IR/RF packets
If the component has been set up properly when you restart home assistant you will find a new service call service instruction in developer tools switch.broadlink_learn_command_ipaddress of broadlink.
I did find that importing codes through home assistant was a bit laborious and only really worked best after a restart of home assistant and only do a few at a time. Also hold the remote right on top of the broadlink.
I used some of the instructions for exporting commands from the E link app. Luckily I was using the elink app and not the new IHC app as I’m not sure if that works.
I wasn’t sure about any of the instructions for importing the py library and HASSIO, but luckily I have an android phone so I could run the data dump on that then copy the three files mentioned onto my laptop. I then found the commands manually and used the hex tool to convert them.
Hope that helps.
Hi I have read through this document but i am getting stuck at the following point.
I go into the developer tools of HA , then select the broadlink in the service section.
I then press call service and press the remote button i want to learn the code from.
The question in this step is were do i retrieve the code from.
You get whats called a persistent notification with the code in. You can see that by clicking on entities in developer tools scroll down to Persistant notification and in the attributes you can copy and paste the code from there to your config.