I installed Home Assistant on Raspbian following the instructions on the web page. I then installed the marthoc/deconz
Docker image. I can successfully connect to the Phoscon app, and go to Settings/Gateway/Advanced/Authenticate App. However, when I go to the HomeAssistant DeCONZ integration configurator, and click on “Configure”, nothing happens. Looking at syslog, I see the following error:
Oct 13 18:16:17 raspberrypi hass[1522]: INFO:homeassistant.core:Bus:Handling <Event system_log_event[L]: timestamp=1602612977.7396617, message=Error handling request, source=components/deconz/__init__.py, level=ERROR, exception=Traceback (most recent call last):
Oct 13 18:16:17 raspberrypi hass[1522]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/aiohttp/web_protocol.py", line 381, in start
Oct 13 18:16:17 raspberrypi hass[1522]: resp = await self._request_handler(request)
Oct 13 18:16:17 raspberrypi hass[1522]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/aiohttp/web_app.py", line 322, in _handle
Oct 13 18:16:17 raspberrypi hass[1522]: resp = await handler(request)
Oct 13 18:16:17 raspberrypi hass[1522]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/aiohttp/web_middlewares.py", line 88, in impl
Oct 13 18:16:17 raspberrypi hass[1522]: return await handler(request)
Oct 13 18:16:17 raspberrypi hass[1522]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/http/static.py", line 68, in staticresource_middleware
Oct 13 18:16:17 raspberrypi hass[1522]: return await handler(request)
Oct 13 18:16:17 raspberrypi hass[1522]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/http/real_ip.py", line 27, in real_ip_middleware
Oct 13 18:16:17 raspberrypi hass[1522]: return await handler(request)
Oct 13 18:16:17 raspberrypi hass[1522]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/http/ban.py", line 68, in ban_middleware
Oct 13 18:16:17 raspberrypi hass[1522]: return await handler(request)
Oct 13 18:16:17 raspberrypi hass[1522]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/http/auth.py", line 28, in auth_middleware
Oct 13 18:16:17 raspberrypi hass[1522]: return await handler(request)
Oct 13 18:16:17 raspberrypi hass[1522]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/http/view.py", line 104, in handle
Oct 13 18:16:17 raspberrypi hass[1522]: result = await result
Oct 13 18:16:17 raspberrypi hass[1522]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/http/data_validator.py", line 47, in wrapper
Oct 13 18:16:17 raspberrypi hass[1522]: result = await method(view, request, *args, **kwargs)
Oct 13 18:16:17 raspberrypi hass[1522]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/config/config_entries.py", line 110, in post
Oct 13 18:16:17 raspberrypi hass[1522]: data['domain'])
Oct 13 18:16:17 raspberrypi hass[1522]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/config_entries.py", line 405, in async_init
Oct 13 18:16:17 raspberrypi hass[1522]: return await self._async_handle_step(flow, step, data)
Oct 13 18:16:17 raspberrypi hass[1522]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/config_entries.py", line 437, in _async_handle_step
Oct 13 18:16:17 raspberrypi hass[1522]: result = await getattr(flow, method)(user_input)
Oct 13 18:16:17 raspberrypi hass[1522]: File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/deconz/__init__.py", line 206, in async_step_init
Oct 13 18:16:17 raspberrypi hass[1522]: from pydeconz.utils import async_discovery
Oct 13 18:16:17 raspberrypi hass[1522]: ImportError: No module named 'pydeconz'
I then installed pydeconz using pip3 install pydeconz
, which made no difference. I saw that pydeconz was installed in /usr/local/lib/python3.7/site-packages/pydeconz
, whereas Home Assistant was looking for it in /srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/pydeconz
. I created a symlink from /srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/pydeconz
to /usr/local/lib/python3.7/site-packages/pydeconz
, but Python then reported a syntax error in syslog. So now I am stumped. Any advice would be appreciated. Thank you.