Onvif is failing to connect

I’m unable to get Onvif up an running with a DAHUA IPC-HDBW4431R-ZS, I’m keep getting the following error:

2017-08-21 20:47:52 ERROR (MainThread) [homeassistant.components.camera] Error while setting up platform onvif
Traceback (most recent call last):
  File "/srv/docker/config/home-assistant/deps/lib/python3.6/site-packages/onvif/client.py", line 34, in wrapped
    return func(*args, **kwargs)
  File "/srv/docker/config/home-assistant/deps/lib/python3.6/site-packages/onvif/client.py", line 201, in wrapped
    return call(params, callback)
  File "/srv/docker/config/home-assistant/deps/lib/python3.6/site-packages/onvif/client.py", line 191, in call
    ret = func(**params)
  File "/srv/docker/config/home-assistant/deps/lib/python3.6/site-packages/suds/client.py", line 559, in __call__
    return client.invoke(args, kwargs)
  File "/srv/docker/config/home-assistant/deps/lib/python3.6/site-packages/suds/client.py", line 618, in invoke
    result = self.send(soapenv)
  File "/srv/docker/config/home-assistant/deps/lib/python3.6/site-packages/suds/client.py", line 652, in send
    reply = transport.send(request)
  File "/srv/docker/config/home-assistant/deps/lib/python3.6/site-packages/suds/transport/http.py", line 178, in send
    return HttpTransport.send(self, request)
  File "/srv/docker/config/home-assistant/deps/lib/python3.6/site-packages/suds/transport/http.py", line 78, in send
    fp = self.u2open(u2request)
  File "/srv/docker/config/home-assistant/deps/lib/python3.6/site-packages/suds/transport/http.py", line 119, in u2open
    return url.open(u2request, timeout=tm)
  File "/usr/lib/python3.6/urllib/request.py", line 526, in open
    response = self._open(req, data)
  File "/usr/lib/python3.6/urllib/request.py", line 544, in _open
    '_open', req)
  File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.6/urllib/request.py", line 1346, in http_open
    return self.do_open(http.client.HTTPConnection, req)
  File "/usr/lib/python3.6/urllib/request.py", line 1321, in do_open
    r = h.getresponse()
  File "/usr/lib/python3.6/http/client.py", line 1331, in getresponse
    response.begin()
  File "/usr/lib/python3.6/http/client.py", line 297, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.6/http/client.py", line 266, in _read_status
    raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py", line 164, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
  File "/usr/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
    return fut.result()
  File "/usr/lib/python3.6/asyncio/futures.py", line 245, in result
    raise self._exception
  File "/usr/lib/python3.6/asyncio/tasks.py", line 180, in _step
    result = coro.send(None)
  File "/usr/lib/python3.6/asyncio/coroutines.py", line 210, in coro
    res = func(*args, **kw)
  File "/usr/lib/python3.6/site-packages/homeassistant/components/camera/onvif.py", line 49, in async_setup_platform
    async_add_devices([ONVIFCamera(hass, config)])
  File "/usr/lib/python3.6/site-packages/homeassistant/components/camera/onvif.py", line 70, in __init__
    self._input = media.GetStreamUri().Uri
  File "/srv/docker/config/home-assistant/deps/lib/python3.6/site-packages/onvif/client.py", line 36, in wrapped
    raise ONVIFError(err)
onvif.exceptions.ONVIFError: Unknown error: Remote end closed connection without response

Configuration:

camera:
   - platform: onvif
     host: 192.168.0.115
     username: "admin"
     password: "PASS"

ffmpeg:

I have tried different ports, here are the ports configuration:
image

I’m missing something?

did u ever resolve this, having same issue

No I haven’t. I use zoneminder now.

I tried port 80 and it worked for me.

yeah i lost connection to my cameras too… :frowning: