Hi all, help needed. My HA showed the below error log after I sudo reboot the raspberry pi3:
The following errors have been logged this session:
17-03-28 22:31:06 ERROR (MainThread) [homeassistant.loader] Unable to find component wave
17-03-28 22:31:16 ERROR (MainThread) [homeassistant.components.switch] Error while setting up platform broadlink
Traceback (most recent call last):
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 151, in _async_setup_platform
entity_platform.add_entities, discovery_info
File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
value = future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/switch/broadlink.py", line 62, in setup_platform
import broadlink
File "/home/homeassistant/.homeassistant/deps/broadlink/__init__.py", line 4, in <module>
from Crypto.Cipher import AES
File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
File "<frozen importlib._bootstrap>", line 1129, in _exec
File "<frozen importlib._bootstrap>", line 1467, in exec_module
File "<frozen importlib._bootstrap>", line 1570, in get_code
File "<frozen importlib._bootstrap>", line 656, in _compile_bytecode
ValueError: bad marshal data (unknown type code)
17-03-28 22:31:16 ERROR (MainThread) [homeassistant.components.switch] Error while setting up platform broadlink
Traceback (most recent call last):
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 151, in _async_setup_platform
entity_platform.add_entities, discovery_info
File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
value = future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/switch/broadlink.py", line 144, in setup_platform
broadlink_device = broadlink.sp2((ip_addr, 80), mac_addr)
AttributeError: 'module' object has no attribute 'sp2'
17-03-28 22:31:22 WARNING (Thread-5) [homeassistant.components.emulated_hue] When targetting Google Home, listening port has to be port 80
17-03-28 22:31:40 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
I have tried renaming the database, and it still does not work. The error log is fine once I took out the Broadlink config from my config file. It comes back once I put them in. I am on HA 0.39.3.
At my wits end. Any help please? Much thanks in advance.