core: ONVIF: Transport Error 404 with gm8135_v2 camera
The problem
I tried adding a Winees IP camera to my Homeassistant installation with the ONVIF integration. The integration detects the camera and lists it as “IPCAM”. When trying to add the camera, I receive an error and the camera cannot be added.
This might be related to https://github.com/home-assistant/core/issues/36523.
The software Agent DVR recognizes the camera and allows streaming the video:
Discovery (GetServices): Camera 3: ONVIF v2.4
Discovery: Camera 3: Using Media Version 1
Discovery: Camera 3: Media available at http://192.168.2.138:80/onvif/media
Discovery: Camera 3: Events available at http://192.168.2.138:80/onvif/events
Discovery: Camera 3: PTZ available at http://192.168.2.138:80/onvif/events
PTZ Discovery: Camera 3: Could not get PTZ config for Onvif Device - using defaults
Two video streams are recognized: 1920x1080: rtsp://:PW@192.168.2.138:554/live/XX_p0_XX
I tried using the stream URLs with VLC media player but couldn’t get it to work.
What version of Home Assistant Core has the issue?
2022.12.8
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
ONVIF
Link to integration documentation on our website
https://www.home-assistant.io/integrations/onvif/
Diagnostics information
home-assistant_onvif_debug-logs.log
Example YAML snippet
No response
Anything in the logs that might be useful for us?
2022-12-25 14:37:47.903 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry IPCAM - AE:CA:06:04:XX for onvif
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 372, in async_setup
result = await component.async_setup_entry(hass, self)
File "/usr/src/homeassistant/homeassistant/components/onvif/__init__.py", line 30, in async_setup_entry
if not await device.async_setup():
File "/usr/src/homeassistant/homeassistant/components/onvif/device.py", line 110, in async_setup
self.capabilities = await self.async_get_capabilities()
File "/usr/src/homeassistant/homeassistant/components/onvif/device.py", line 283, in async_get_capabilities
media_capabilities = await media_service.GetServiceCapabilities()
File "/usr/local/lib/python3.10/site-packages/zeep/proxy.py", line 64, in __call__
return await self._proxy._binding.send_async(
File "/usr/local/lib/python3.10/site-packages/zeep/wsdl/bindings/soap.py", line 164, in send_async
return self.process_reply(client, operation_obj, response)
File "/usr/local/lib/python3.10/site-packages/zeep/wsdl/bindings/soap.py", line 181, in process_reply
raise TransportError(
zeep.exceptions.TransportError: Server returned HTTP status 404 (no content available)
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (8 by maintainers)
Commits related to this issue
- Handle 404 for media/ptz/image onvif services to allow setup to proceed fixes #84551 — committed to home-assistant/core by bdraco a year ago
- Fix onvif setup when time set service is not functional fixes #84551 — committed to home-assistant/core by bdraco a year ago
Also you’ll likely need to integrate all my open onvif PRs into a branch to get it to work
camera showed up. going to see if I can fix it now