2018-09-24 00:29:34 ERROR (MainThread) [homeassistant.components.sensor] ble_presence: Error on device update!
Traceback (most recent call last):
File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 248, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/app/homeassistant/helpers/entity.py", line 320, in async_device_update
yield from self.async_update()
File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 212, in coro
res = func(*args, **kw)
File "/config/custom_components/sensor/ble_presence.py", line 106, in async_update
devices = scanner.scan(10.0)
File "/usr/local/lib/python3.6/site-packages/bluepy/btle.py", line 734, in scan
self.start(passive=passive)
File "/usr/local/lib/python3.6/site-packages/bluepy/btle.py", line 672, in start
self._mgmtCmd("le on")
File "/usr/local/lib/python3.6/site-packages/bluepy/btle.py", line 279, in _mgmtCmd
rsp = self._waitResp('mgmt')
File "/usr/local/lib/python3.6/site-packages/bluepy/btle.py", line 338, in _waitResp
raise BTLEException(BTLEException.MGMT_ERROR, "Management not available (permissions problem?)")
bluepy.btle.BTLEException: Management not available (permissions problem?)
2018-09-24 00:21:52
ERROR (MainThread) [homeassistant.loader] Error loading custom_components.sensor.ble_presence. Make sure all dependencies are installed
Traceback (most recent call last):
File "/usr/src/app/homeassistant/loader.py", line 94, in get_component
module = importlib.import_module(path)
File "/usr/local/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/config/custom_components/sensor/ble_presence.py", line 11, in <module>
from bluepy.btle import Scanner, DefaultDelegate
ModuleNotFoundError: No module named 'bluepy'