Getting errors when trying to integrate DeCONZ

Hi, trying to integrate DeCONZ into HA, but having some problems. When I click add new integration --> DeCONZ Zigbee gateway, it just spins for a second and then I see errors in the logs. I never get the window popping up to confirm / submit the integration request.

I’ve tried doing this on several versions of HA (0.94.3, 0.93.2), and also tried an completly fresh HA-installation, same errors.

HA (not Hass.io) running in a container. Deconz running on a seperate Ubuntu virtual machine. Any ideas?

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start
    resp = await task
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl
    return await handler(request)
  File "/usr/src/app/homeassistant/components/http/real_ip.py", line 33, in real_ip_middleware
    return await handler(request)
  File "/usr/src/app/homeassistant/components/http/ban.py", line 67, in ban_middleware
    return await handler(request)
  File "/usr/src/app/homeassistant/components/http/auth.py", line 216, in auth_middleware
    return await handler(request)
  File "/usr/src/app/homeassistant/components/http/view.py", line 115, in handle
    result = await result
  File "/usr/src/app/homeassistant/components/config/config_entries.py", line 120, in post
    return await super().post(request)
  File "/usr/src/app/homeassistant/components/http/data_validator.py", line 46, in wrapper
    result = await method(view, request, *args, **kwargs)
  File "/usr/src/app/homeassistant/helpers/data_entry_flow.py", line 57, in post
    handler, context={'source': config_entries.SOURCE_USER})
  File "/usr/src/app/homeassistant/data_entry_flow.py", line 71, in async_init
    return await self._async_handle_step(flow, flow.init_step, data)
  File "/usr/src/app/homeassistant/data_entry_flow.py", line 123, in _async_handle_step
    result = await getattr(flow, method)(user_input)  # type: Dict
  File "/usr/src/app/homeassistant/components/deconz/config_flow.py", line 76, in async_step_user
    self.bridges = await async_discovery(session)
  File "/usr/local/lib/python3.7/site-packages/pydeconz/utils.py", line 66, in async_discovery
    response = await async_request(session.get, URL_DISCOVER)
  File "/usr/local/lib/python3.7/site-packages/pydeconz/utils.py", line 91, in async_request
    "Invalid content type: {}".format(res.content_type))
pydeconz.errors.ResponseError: Invalid content type: text/html

Never seen that before. Enable debug per deconz component documentation and share those logs

Will do in a few minutes, thanks. Tried again now and suddenly I get this:

Tried to restart the Deconz vm and HA several times before I posted this thread - on the tenth restart it somehow suddenly worked. No idea why, but at least it works now :slight_smile:

1 Like

Great you got past the issue