I’m running HassOS on Raspberry Pi OS Lite. I’m having trouble setting up ZHA. First I tried through the UI via Configuration > Integrations but it just stays stuck on “Installing ZHA” spinner. Second I tried to add:
zha:
usb_path: /dev/ttyUSB1
database_path: /config/zigbee.db
to the configuration.yaml file. It looks like upon boot it tries to setup ZHA but fails. Here is the log output:
2020-12-06 05:35:52 ERROR (SyncWorker_1) [homeassistant.util.package] Unable to install package bellows==0.20.3: WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connecti$
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xb546fb68>: Failed t$
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xb546fc40>: Failed t$
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xb546fd18>: Failed t$
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xb546fdf0>: Failed t$
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/srv/homeassistant/lib/python3.8/site-packages/Crypto'
Consider using the `--user` option or check the permissions.
2020-12-06 05:35:52 ERROR (MainThread) [homeassistant.setup] Setup failed for zha: Requirements for zha not found: ['bellows==0.20.3'].
2020-12-06 05:35:53 ERROR (MainThread) [homeassistant.components.tts] Error on cache init
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/components/tts/__init__.py", line 120, in async_setup
base_url = conf.get(CONF_BASE_URL) or get_url(hass)
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/network.py", line 90, in get_url
request_host = _get_request_host()
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/network.py", line 130, in _get_request_host
raise NoURLAvailableError
homeassistant.helpers.network.NoURLAvailableError
2020-12-06 05:35:53 ERROR (MainThread) [homeassistant.setup] Setup failed for tts: Integration failed to initialize.
Any ideas?