Having a similar problem to others with a KKmoon Wireless Wifi 720P HD H.264 P2P 1MP AP IP Network Home IR Security Camera P/T Webcam
I’m using HA 0.53.0 and loaded the custom component but, it doesn’t appear to be providing the debug URL.
(homeassistant) homeassistant@HassPi:~/.homeassistant/custom_components/camera$ ls -l
total 8
-rw-r--r-- 1 homeassistant nogroup 3604 Sep 11 03:21 onvif.py
drwxr-xr-x 2 homeassistant nogroup 4096 Sep 11 03:22 __pycache__
Here is my logger config:
logger:
default: warn
logs:
homeassistant.components.camera: debug
homeassistant.util.package: info
custom_components.camera.onvif: debug
homeassistant.components.camera.onvif: debug
ONVIF Config:
ffmpeg:
ffmpeg_bin: /usr/bin/ffmpeg
camera:
- platform: onvif
host: 192.168.1.219
port: 8080
username: ****
password: ****
Here is my traceback:
Sep 11 03:23:36 HassPi hass[1064]: 2017-09-11 03:23:36 INFO (Thread-11) [homeassistant.util.package] Attempting install of http://github.com/tgaugry/suds-passworddigest-py3/archive/86fc50e39b4d2b8997481967d6a7fe1c57118999.zip#suds-passworddigest-py3==0.1.2a
Sep 11 03:23:50 HassPi hass[1064]: 2017-09-11 03:23:50 INFO (MainThread) [homeassistant.components.camera] Setting up camera.onvif
Sep 11 03:23:57 HassPi hass[1064]: 2017-09-11 03:23:57 ERROR (MainThread) [homeassistant.components.camera] Error while setting up platform onvif
Sep 11 03:23:57 HassPi hass[1064]: Traceback (most recent call last):
Sep 11 03:23:57 HassPi hass[1064]: File “/srv/homeassistant/lib/python3.4/site-packages/suds/transport/http.py”, line 78, in send
Sep 11 03:23:57 HassPi hass[1064]: fp = self.u2open(u2request)
Sep 11 03:23:57 HassPi hass[1064]: File “/srv/homeassistant/lib/python3.4/site-packages/suds/transport/http.py”, line 119, in u2open
Sep 11 03:23:57 HassPi hass[1064]: return url.open(u2request, timeout=tm)
Sep 11 03:23:57 HassPi hass[1064]: File “/usr/lib/python3.4/urllib/request.py”, line 461, in open
Sep 11 03:23:57 HassPi hass[1064]: response = meth(req, response)
Sep 11 03:23:57 HassPi hass[1064]: File “/usr/lib/python3.4/urllib/request.py”, line 571, in http_response
Sep 11 03:23:57 HassPi hass[1064]: ‘http’, request, response, code, msg, hdrs)
Sep 11 03:23:57 HassPi hass[1064]: File “/usr/lib/python3.4/urllib/request.py”, line 499, in error
Sep 11 03:23:57 HassPi hass[1064]: return self._call_chain(*args)
Sep 11 03:23:57 HassPi hass[1064]: File “/usr/lib/python3.4/urllib/request.py”, line 433, in _call_chain
Sep 11 03:23:57 HassPi hass[1064]: result = func(*args)
Sep 11 03:23:57 HassPi hass[1064]: File “/usr/lib/python3.4/urllib/request.py”, line 579, in http_error_default
Sep 11 03:23:57 HassPi hass[1064]: raise HTTPError(req.full_url, code, msg, hdrs, fp)
Sep 11 03:23:57 HassPi hass[1064]: urllib.error.HTTPError: HTTP Error 400: Bad Request
Sep 11 03:23:57 HassPi hass[1064]: During handling of the above exception, another exception occurred:
Sep 11 03:23:57 HassPi hass[1064]: Traceback (most recent call last):
Sep 11 03:23:57 HassPi hass[1064]: File “/srv/homeassistant/lib/python3.4/site-packages/suds/client.py”, line 652, in send
Sep 11 03:23:57 HassPi hass[1064]: reply = transport.send(request)
Sep 11 03:23:57 HassPi hass[1064]: File “/srv/homeassistant/lib/python3.4/site-packages/suds/transport/http.py”, line 178, in send
Sep 11 03:23:57 HassPi hass[1064]: return HttpTransport.send(self, request)
Sep 11 03:23:57 HassPi hass[1064]: File “/srv/homeassistant/lib/python3.4/site-packages/suds/transport/http.py”, line 86, in send
Sep 11 03:23:57 HassPi hass[1064]: raise TransportError(e.msg, e.code, e.fp)
Sep 11 03:23:57 HassPi hass[1064]: suds.transport.TransportError: Bad Request
Sep 11 03:23:57 HassPi hass[1064]: During handling of the above exception, another exception occurred:
Sep 11 03:23:57 HassPi hass[1064]: Traceback (most recent call last):
Sep 11 03:23:57 HassPi hass[1064]: File “/srv/homeassistant/lib/python3.4/site-packages/onvif/client.py”, line 34, in wrapped
Sep 11 03:23:57 HassPi hass[1064]: return func(*args, **kwargs)
Sep 11 03:23:57 HassPi hass[1064]: File “/srv/homeassistant/lib/python3.4/site-packages/onvif/client.py”, line 201, in wrapped
Sep 11 03:23:57 HassPi hass[1064]: return call(params, callback)
Sep 11 03:23:57 HassPi hass[1064]: File “/srv/homeassistant/lib/python3.4/site-packages/onvif/client.py”, line 191, in call
Sep 11 03:23:57 HassPi hass[1064]: ret = func(**params)
Sep 11 03:23:57 HassPi hass[1064]: File “/srv/homeassistant/lib/python3.4/site-packages/suds/client.py”, line 559, in call
Sep 11 03:23:57 HassPi hass[1064]: return client.invoke(args, kwargs)
Sep 11 03:23:57 HassPi hass[1064]: File “/srv/homeassistant/lib/python3.4/site-packages/suds/client.py”, line 618, in invoke
Sep 11 03:23:57 HassPi hass[1064]: result = self.send(soapenv)
Sep 11 03:23:57 HassPi hass[1064]: File “/srv/homeassistant/lib/python3.4/site-packages/suds/client.py”, line 664, in send
Sep 11 03:23:57 HassPi hass[1064]: result = self.failed(binding, e)
Sep 11 03:23:57 HassPi hass[1064]: File “/srv/homeassistant/lib/python3.4/site-packages/suds/client.py”, line 726, in failed
Sep 11 03:23:57 HassPi hass[1064]: raise Exception((status, reason))
Sep 11 03:23:57 HassPi hass[1064]: Exception: (400, ‘Bad Request’)
Sep 11 03:23:57 HassPi hass[1064]: During handling of the above exception, another exception occurred:
Sep 11 03:23:57 HassPi hass[1064]: Traceback (most recent call last):
Sep 11 03:23:57 HassPi hass[1064]: File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py”, line 164, in _async_setup_platform
Sep 11 03:23:57 HassPi hass[1064]: SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
Sep 11 03:23:57 HassPi hass[1064]: File “/usr/lib/python3.4/asyncio/tasks.py”, line 372, in wait_for
Sep 11 03:23:57 HassPi hass[1064]: return fut.result()
Sep 11 03:23:57 HassPi hass[1064]: File “/usr/lib/python3.4/asyncio/futures.py”, line 277, in result
Sep 11 03:23:57 HassPi hass[1064]: raise self._exception
Sep 11 03:23:57 HassPi hass[1064]: File “/usr/lib/python3.4/asyncio/tasks.py”, line 237, in _step
Sep 11 03:23:57 HassPi hass[1064]: result = next(coro)
Sep 11 03:23:58 HassPi hass[1064]: File “/usr/lib/python3.4/asyncio/coroutines.py”, line 141, in coro
Sep 11 03:23:58 HassPi hass[1064]: res = func(*args, **kw)
Sep 11 03:23:58 HassPi hass[1064]: File “/home/homeassistant/.homeassistant/custom_components/camera/onvif.py”, line 48, in async_setup_platform
Sep 11 03:23:58 HassPi hass[1064]: async_add_devices([ONVIFCamera(hass, config)])
Sep 11 03:23:58 HassPi hass[1064]: File “/home/homeassistant/.homeassistant/custom_components/camera/onvif.py”, line 70, in init
Sep 11 03:23:58 HassPi hass[1064]: self._input = media.GetStreamUri().Uri
Sep 11 03:23:58 HassPi hass[1064]: File “/srv/homeassistant/lib/python3.4/site-packages/onvif/client.py”, line 36, in wrapped
Sep 11 03:23:58 HassPi hass[1064]: raise ONVIFError(err)
Sep 11 03:23:58 HassPi hass[1064]: onvif.exceptions.ONVIFError: Unknown error: (400, ‘Bad Request’)
It appears the change was merged, is the custom component even required still?