I am fairly new and just got hass.io working on a Pi3B+ using the 32-bit build. One of my main reasons for picking Home Assist was the support for AVI-On Bluetooth switches unfortunately that does not seem to be working.
I think I got the configuration correct and I think I got the right network key. My first error was about a missing file ‘/config/deps/lib/python3.6/site-packages/bluepy/uuids.json’. I went to github and added the file. After this the lights showed up in the Overview screen.
Now when I try to turn on or off a switch I get a new error about; No such file or directory: ‘/config/deps/lib/python3.6/site-packages/bluepy/bluepy-helper’: ‘/config/deps/lib/python3.6/site-packages/bluepy/bluepy-helper’ The only bluepy-helper file in Github is bluepy-helper.c which did not make much sense but I added it as a test and the error did not change. Here is the whole error message:
Error doing job: Task exception was never retrieved
6:00 PM deps/lib/python3.6/site-packages/bluepy/btle.py (ERROR)
Press the button to load the full Home Assistant log.
2019-01-09 00:00:40 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/config/deps/lib/python3.6/site-packages/avion/__init__.py", line 141, in set_brightness
self.device.writeCharacteristic(
AttributeError: 'NoneType' object has no attribute 'writeCharacteristic'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/light/avion.py", line 120, in set_state
self._switch.set_brightness(brightness)
File "/config/deps/lib/python3.6/site-packages/avion/__init__.py", line 146, in set_brightness
raise AvionException("Unable to send brightness command")
avion.AvionException: Unable to send brightness command
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/service.py", line 277, in _handle_service_platform_call
await getattr(entity, func)(**data)
File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/light/avion.py", line 138, in turn_off
self.set_state(0)
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/light/avion.py", line 123, in set_state
self._switch.connect()
File "/config/deps/lib/python3.6/site-packages/avion/__init__.py", line 106, in connect
addrType=btle.ADDR_TYPE_PUBLIC)
File "/config/deps/lib/python3.6/site-packages/bluepy/btle.py", line 353, in __init__
self._connect(deviceAddr, addrType, iface)
File "/config/deps/lib/python3.6/site-packages/bluepy/btle.py", line 388, in _connect
self._startHelper()
File "/config/deps/lib/python3.6/site-packages/bluepy/btle.py", line 246, in _startHelper
universal_newlines=True)
File "/usr/local/lib/python3.6/subprocess.py", line 709, in __init__
restore_signals, start_new_session)
File "/usr/local/lib/python3.6/subprocess.py", line 1344, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/config/deps/lib/python3.6/site-packages/bluepy/bluepy-helper': '/config/deps/lib/python3.6/site-packages/bluepy/bluepy-helper'
Any suggestions?