Broadlink not working since 0.64

Does anyone know what is the ETA for 0.64.1?

It’s been released just takes a few hours for Hass.io users to get the update… Can be up to 48hours but normally within 24

3 Likes

Not working for me too. Will wait for 0.64.1

I’ve just tried 0.64.1 and still getting issues:

6:41 pm core.py (ERROR)
Unable to prepare setup for platform media_player.broadlink: Could not install all requirements.
6:41 pm setup.py (ERROR)
Not initializing media_player.broadlink because could not install requirement broadlink==0.5
6:41 pm requirements.py (ERROR)
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 20)) (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 20))
6:41 pm util/package.py (ERROR)
Unable to prepare setup for platform climate.broadlink: Could not install all requirements.
6:40 pm setup.py (ERROR)
Not initializing climate.broadlink because could not install requirement broadlink==0.5
6:40 pm requirements.py (ERROR)
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 20)) (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 20))
6:40 pm util/package.py (ERROR)```

Got it working here…
keep in mind I am on Docker :

docker exec -i -t home-assistant /bin/bash

and then:

pip3 uninstall pycrypto
pip3 uninstall pycryptodome
pip3 install pycryptodome 

then I had to edit the MAC adres in the switch.yaml ( here its in secrets.yaml) There I had to remove the ‘:’ in teh macaddress so now the mac address reads : xxxxxxxx instead of xx:xx:xx:xx

Actually, I managed to get it working with the components I’m using by altering the broadlink==0.5 to become broadlink==0.5.1 as per the component in 0.64.1. :slight_smile:

1 Like

I am using hassio. How do i upgrade to 0.64.1 or downgrade to 0.63?

Don’t see anything in the release notes regarding Broadlink?

Not ovbious, but its in this pull request, a few layers deep.

Don’t allow to use a old unsecure library (@pvizeli - #12715)

1 Like

Thanks, updated and all good.

So, did this fix make it into .64.1?

Yes, if u have broadlink switches the dependancy has been resolved. Some users are still reporting climate broadlink issues but they need to create an issue on github.

1 Like

My Broadlink Mini 3 is working fine in 64.1

Yep, mine all good.

Thanks guys! Upgraded to .64.1 and it is still working. I don’t know what I would have done if I had to press a button to turn on and off the tv now. THE HORROR!!!

1 Like

Ha ha ha… That would have been a blast from past!!!

1 Like

How do I do this? How can I alter the broadlink 0.5 to 0.5.1? I am running Hass as a Docker in QNAP Container Station.

I got it! Just have to edit the config/custom_components/climate/broadlink.py, and change the line “REQUIREMENTS = [‘broadlink==0.5’]”

1 Like

Hi!
Today I updated to 0.67.0 and my Broadlink SP3 stopped working. This is the error I got:

2018-04-14 16:31:49 ERROR (SyncWorker_4) [homeassistant.util.package] Unable to install package broadlink==0.5.1: Could not find a version that satisfies the requirement broadlink==0.5.1 (from versions: 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8)
No matching distribution found for broadlink==0.5.1
2018-04-14 16:31:49 ERROR (MainThread) [homeassistant.requirements] Not initializing sensor.broadlink_power because could not install requirement broadlink==0.5.1
2018-04-14 16:31:49 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform sensor.broadlink_power: Could not install all requirements.
2018-04-14 16:32:08 ERROR (MainThread) [homeassistant.components.switch] Error while setting up platform broadlink
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 82, in async_setup
    SLOW_SETUP_MAX_WAIT, loop=hass.loop)
  File "/usr/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
    return fut.result()
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3.6/site-packages/homeassistant/components/switch/broadlink.py", line 164, in setup_platform
    broadlink_device = broadlink.sp2((ip_addr, 80), mac_addr, None)
TypeError: __init__() takes 3 positional arguments but 4 were given
2018-04-14 16:32:27 ERROR (MainThread) [homeassistant.core] Error doing job: Task was destroyed but it is pending!

So I followed @tanabebr’s advice and changed the custom_component to REQUIREMENTS = ['broadlink==0.5'], but then this error raised:

2018-04-14 16:11:52 WARNING (MainThread) [homeassistant.setup] Setup of config is taking over 10 seconds.
2018-04-14 16:12:47 ERROR (MainThread) [homeassistant.components.switch] Error while setting up platform broadlink
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 82, in async_setup
    SLOW_SETUP_MAX_WAIT, loop=hass.loop)
  File "/usr/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
    return fut.result()
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3.6/site-packages/homeassistant/components/switch/broadlink.py", line 164, in setup_platform
    broadlink_device = broadlink.sp2((ip_addr, 80), mac_addr, None)
TypeError: __init__() takes 3 positional arguments but 4 were given
2018-04-14 16:12:53 ERROR (SyncWorker_19) [homeassistant.core] Error doing job: Task was destroyed but it is pending!

I also tried changing the line to:

REQUIREMENTS = [
    'https://github.com/balloob/python-broadlink/archive/'
    '3580ff2eaccd267846f14246d6ede6e30671f7c6.zip#broadlink==0.5.1']

And still no luck. It was working before the update!
Any ideas?

1 Like

I came across similar errors when updating to 0.67 - I downgraded back to 0.66.1

To downgrade, enable the SSH addon, SSH in and run this command:

curl -d '{"version": "0.66.1"}' http://hassio/homeassistant/update

2 Likes