core: Problem with onvif integration
The problem
After installing the onvif integration in a venv, scanning my network finds my cameras, but upon entering password \ username it fails with unknown error
Environment
- Home Assistant Core release with the issue: 0.110.1
- Last working Home Assistant Core release (if known): None
- Operating environment (Home Assistant/Supervised/Docker/venv): venv
- Integration causing this issue: onvif
- Link to integration documentation on our website:
Problem-relevant configuration.yaml
Traceback/Error logs
2020-05-23 20:22:25 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start
resp = await task
File "/srv/homeassistant/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle
resp = await handler(request)
File "/srv/homeassistant/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl
return await handler(request)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/http/real_ip.py", line 39, in real_ip_middleware
return await handler(request)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/http/ban.py", line 73, in ban_middleware
return await handler(request)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/http/auth.py", line 127, in auth_middleware
return await handler(request)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/http/view.py", line 125, in handle
result = await result
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/config/config_entries.py", line 145, in post
return await super().post(request, flow_id)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/http/data_validator.py", line 54, in wrapper
result = await method(view, request, *args, **kwargs)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/data_entry_flow.py", line 103, in post
result = await self._flow_mgr.async_configure(flow_id, data)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/data_entry_flow.py", line 153, in async_configure
result = await self._async_handle_step(flow, cur_step["step_id"], user_input)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/data_entry_flow.py", line 201, in _async_handle_step
result: Dict = await getattr(flow, method)(user_input)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/onvif/config_flow.py", line 170, in async_step_auth
return await self.async_step_profiles()
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/onvif/config_flow.py", line 195, in async_step_profiles
await device.update_xaddrs()
File "/srv/homeassistant/lib/python3.7/site-packages/onvif/client.py", line 277, in update_xaddrs
capabilities = await self.devicemgmt.GetCapabilities({"Category": "All"})
File "/srv/homeassistant/lib/python3.7/site-packages/zeep/asyncio/bindings.py", line 20, in send
return self.process_reply(client, operation_obj, response)
File "/srv/homeassistant/lib/python3.7/site-packages/zeep/wsdl/bindings/soap.py", line 195, in process_reply
return self.process_error(doc, operation)
File "/srv/homeassistant/lib/python3.7/site-packages/zeep/wsdl/bindings/soap.py", line 322, in process_error
detail=etree_to_string(doc),
zeep.exceptions.Fault: Unknown fault occured
Additional information
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 39 (11 by maintainers)
I succeeded to add my Dahua only after I added a different user than the admin in ONVIF camera configuration. I then used this user in homebridge integration
I have the same problem with Xiaomi flashed custom firmware https://github.com/roleoroleo/yi-hack-Allwinner
same here
Latest HA version and ONVIF still not working
+1 for this problem
I have the exact same error.