Broadlink RM Pro setup failure and error after latest upgrade of hassio

I’m seeing below error in log after latest upgrade. All my broadlink switches in hassio have stopped working.

please advise how to fix this problem.

2018-02-26 21:16:12 INFO (MainThread) [homeassistant.components.switch] Setting up switch.broadlink
2018-02-26 21:16:12 ERROR (MainThread) [homeassistant.components.switch] Error while setting up platform broadlink
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/broadlink/init.py”, line 5, in
from Crypto.Cipher import AES
File “/usr/lib/python3.6/site-packages/Crypto/Cipher/init.py”, line 3, in
from Crypto.Cipher._mode_ecb import _create_ecb_cipher
File “/usr/lib/python3.6/site-packages/Crypto/Cipher/_mode_ecb.py”, line 29, in
from Crypto.Util._raw_api import (load_pycryptodome_raw_lib,
File “/usr/lib/python3.6/site-packages/Crypto/Util/_raw_api.py”, line 32, in
from Crypto.Util.py3compat import byte_string
ImportError: cannot import name ‘byte_string’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py”, line 84, 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/asyncio/futures.py”, line 245, in result
raise self._exception
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 74, in setup_platform
import broadlink
File “/usr/lib/python3.6/site-packages/broadlink/init.py”, line 7, in
import pyaes
ModuleNotFoundError: No module named ‘pyaes’

2018-02-26 22:15:35 INFO (MainThread) [homeassistant.components.updater] Submitted analytics to Home Assistant servers. Information submitted includes {‘arch’: ‘armv7l’, ‘dev’: False, ‘docker’: True, ‘os_name’: ‘Linux’, ‘python_version’: ‘3.6.3’, ‘timezone’: ‘Asia/Singapore’, ‘version’: ‘0.64.0’, ‘virtualenv’: False, ‘hassio’: True, ‘distribution’: ‘alpine’, ‘os_version’: ‘3.7.0’, ‘huuid’: ‘5dedae959f20463ea904a98c621956e7’}
2018-02-26 22:15:35 INFO (MainThread) [homeassistant.components.updater] You are on the latest version (0.64.0) of Home Assistant

Also seeing this error here after updating.

You are missing the pyaes package. In a virtualenv environment setup, you would install it with following commands:
source /srv/homeassistant/bin/activate
(homeassistant) pip3 install pyaes

Man, mine too. 3 Broadlink stopped working

And in hassio?

Same here!! Hassio 0.64

Yep - broken for me too Hassio 0.64 !

broken and can’t downgrade :\

fuh, finally downgraded, back to normal…

How do you downgrade?

docker exec homeassistant curl -d '{"version": "0.63.3"}' http://hassio/homeassistant/update

running on Hassio - assume there is a different process for downgrading. Can you help with downgrading on Hassio ?

Thanks, but where?

Most hassio related posts where someone bitched because something broke in a .0 system update tells you how. Can’t remember exactly as I let everyone else do the testing before I jump :slight_smile:

Will post it if I find it again first.

have a look at this thread to downgrade.

Followed the instructions on downgrading - worked fine. The important thing to note was the replacement of the single and double quotes

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

try the above code as I encapsulated it as reformatted text.

1 Like

It says curl command not found

See my updated comment. Cut and paste that or just manually type it in.