I try this configuration:
- platform: onvif
host: 192.168.X.XX
username: user
password: pass
port: 10554
But return this track/error:
2017-09-04 14:32:01 ERROR (MainThread) [homeassistant.components.camera] Error while setting up platform onvif
Traceback (most recent call last):
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/onvif/client.py”, line 34, in wrapped
return func(*args, **kwargs)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/onvif/client.py”, line 201, in wrapped
return call(params, callback)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/onvif/client.py”, line 191, in call
ret = func(**params)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/suds/client.py”, line 559, in call
return client.invoke(args, kwargs)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/suds/client.py”, line 618, in invoke
result = self.send(soapenv)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/suds/client.py”, line 652, in send
reply = transport.send(request)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/suds/transport/http.py”, line 178, in send
return HttpTransport.send(self, request)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/suds/transport/http.py”, line 78, in send
fp = self.u2open(u2request)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/suds/transport/http.py”, line 119, in u2open
return url.open(u2request, timeout=tm)
File “/usr/lib/python3.4/urllib/request.py”, line 455, in open
response = self._open(req, data)
File “/usr/lib/python3.4/urllib/request.py”, line 473, in _open
‘_open’, req)
File “/usr/lib/python3.4/urllib/request.py”, line 433, in _call_chain
result = func(*args)
File “/usr/lib/python3.4/urllib/request.py”, line 1202, in http_open
return self.do_open(http.client.HTTPConnection, req)
File “/usr/lib/python3.4/urllib/request.py”, line 1177, in do_open
r = h.getresponse()
File “/usr/lib/python3.4/http/client.py”, line 1172, in getresponse
response.begin()
File “/usr/lib/python3.4/http/client.py”, line 351, in begin
version, status, reason = self._read_status()
File “/usr/lib/python3.4/http/client.py”, line 333, in _read_status
raise BadStatusLine(line)
http.client.BadStatusLine: RTSP/1.0 200 OK