Hello @Devanl
Did you ever find a solution and got a connection?
I am getting the following problems:
Error while setting up platform onvif
Traceback (most recent call last):
File "/usr/lib/python3.5/urllib/request.py", line 1254, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/lib/python3.5/http/client.py", line 1106, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python3.5/http/client.py", line 1151, in _send_request
self.endheaders(body)
File "/usr/lib/python3.5/http/client.py", line 1102, in endheaders
self._send_output(message_body)
File "/usr/lib/python3.5/http/client.py", line 934, in _send_output
self.send(msg)
File "/usr/lib/python3.5/http/client.py", line 877, in send
self.connect()
File "/usr/lib/python3.5/http/client.py", line 849, in connect
(self.host,self.port), self.timeout, self.source_address)
File "/usr/lib/python3.5/socket.py", line 711, in create_connection
raise err
File "/usr/lib/python3.5/socket.py", line 702, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ubuntu/homeassistant/lib/python3.5/site-packages/onvif/client.py", line 34, in wrapped
return func(*args, **kwargs)
File "/home/ubuntu/homeassistant/lib/python3.5/site-packages/onvif/client.py", line 201, in wrapped
return call(params, callback)
File "/home/ubuntu/homeassistant/lib/python3.5/site-packages/onvif/client.py", line 191, in call
ret = func(**params)
File "/home/ubuntu/homeassistant/lib/python3.5/site-packages/suds/client.py", line 559, in __call__
return client.invoke(args, kwargs)
File "/home/ubuntu/homeassistant/lib/python3.5/site-packages/suds/client.py", line 618, in invoke
result = self.send(soapenv)
File "/home/ubuntu/homeassistant/lib/python3.5/site-packages/suds/client.py", line 652, in send
reply = transport.send(request)
File "/home/ubuntu/homeassistant/lib/python3.5/site-packages/suds/transport/http.py", line 178, in send
return HttpTransport.send(self, request)
File "/home/ubuntu/homeassistant/lib/python3.5/site-packages/suds/transport/http.py", line 78, in send
fp = self.u2open(u2request)
File "/home/ubuntu/homeassistant/lib/python3.5/site-packages/suds/transport/http.py", line 119, in u2open
return url.open(u2request, timeout=tm)
File "/usr/lib/python3.5/urllib/request.py", line 466, in open
response = self._open(req, data)
File "/usr/lib/python3.5/urllib/request.py", line 484, in _open
'_open', req)
File "/usr/lib/python3.5/urllib/request.py", line 444, in _call_chain
result = func(*args)
File "/usr/lib/python3.5/urllib/request.py", line 1282, in http_open
return self.do_open(http.client.HTTPConnection, req)
File "/usr/lib/python3.5/urllib/request.py", line 1256, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 111] Connection refused>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ubuntu/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 84, in async_setup
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File "/usr/lib/python3.5/asyncio/tasks.py", line 392, in wait_for
return fut.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
raise self._exception
File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
result = coro.send(None)
File "/usr/lib/python3.5/asyncio/coroutines.py", line 206, in coro
res = func(*args, **kw)
File "/home/ubuntu/homeassistant/lib/python3.5/site-packages/homeassistant/components/camera/onvif.py", line 51, in async_setup_platform
async_add_devices([ONVIFCamera(hass, config)])
File "/home/ubuntu/homeassistant/lib/python3.5/site-packages/homeassistant/components/camera/onvif.py", line 72, in __init__
self._input = media.GetStreamUri().Uri
File "/home/ubuntu/homeassistant/lib/python3.5/site-packages/onvif/client.py", line 36, in wrapped
raise ONVIFError(err)
onvif.exceptions.ONVIFError: Unknown error: <urlopen error [Errno 111] Connection refused>