Hi,
I’ve got a cheap IP camera from Aliexpress (model Y4A-ZA2, also labelled YCC 365, skill in Amazon is called Closeli). I’m able to instantly see the stream in vlc with this (without entering any password):
rtsp://[email protected]:554/onvif1
but I’m unable to integrate it into HA. I have this in config yaml as per forum suggestions:
ffmpeg:
camera:
- platform: onvif
host: 192.168.0.XX
port: 554
- platform: ffmpeg
name: Front Window
input: rtsp://[email protected]:554/onvif1
It does create the entity but there’s no image and I’m getting this in error log:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 150, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
File "/usr/src/homeassistant/homeassistant/components/onvif/camera.py", line 118, in async_setup_platform
await hass_camera.async_initialize()
File "/usr/src/homeassistant/homeassistant/components/onvif/camera.py", line 166, in async_initialize
await self._camera.update_xaddrs()
File "/usr/local/lib/python3.7/site-packages/onvif/client.py", line 233, in update_xaddrs
capabilities = await self.devicemgmt.GetCapabilities({'Category': 'All'})
File "/usr/local/lib/python3.7/site-packages/zeep/asyncio/bindings.py", line 20, in send
return self.process_reply(client, operation_obj, response)
File "/usr/local/lib/python3.7/site-packages/zeep/wsdl/bindings/soap.py", line 170, in process_reply
doc = parse_xml(content, self.transport, settings=client.settings)
File "/usr/local/lib/python3.7/site-packages/zeep/loader.py", line 54, in parse_xml
forbid_entities=settings.forbid_entities,
File "/usr/local/lib/python3.7/site-packages/defusedxml/lxml.py", line 146, in fromstring
elementtree = rootelement.getroottree()
AttributeError: 'NoneType' object has no attribute 'getroottree'
I suspect the null password is the culprit but I can’t fix it. I tried adding "password: " into config but that’s not permitted.
EDIT: I have tried Onvif Device Manager, it does connect but that’s it. I don’t see image (“no signal”) nor can I edit settings like user accounts.
I’m on Hassio 0.103 on RPi4. Any ideas? Thanks!