Integrating Onvif camera with NO password?

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!

Have you tried adding password with some random value in hass config

Yes I have, no dice :-/

Hi I have similar cam with the same app.
Manage to enable password when I enabled the rtsp stream in the app the first time

Here is how I tapped to the stream

  - platform: ffmpeg
    input: rtsp://admin:<passhere>@ip:port/
    name: Door

Hi, I have used motionEye. I can then add that to Lovelace but I didn’t get to it yet. I have a motionEye icon in HA sidebar and it works.

I managed to get my YCC365 camera working without password, just don’t mention it in the inputstring!

camera:
  - platform: ffmpeg
    name: Camera 1
    input: rtsp://admin:@<CameraIP>:554
1 Like

Doesn’t work on mine. I can create the integration but it’s always “idle” with blank image.

It starts up blank & idle, but on my system (pretty default as i am new to this) it refreshes every 10 seconds or so. Just click on it once and active ‘preload stream’ (i don’t know if this has any relation to the blank image though…)

I have diferent model for Tuya, but I have same problem. I have no username and no password. I’ve beeen tried new ONVIF integration, but not possible to continue without username and password. MotionEye working, Apps on mobile (tinyCam Pro), Synology, works without any problems too.

I found this, but still does not work in hassio.

Check this article:

I have downloaded the ONVIF Device Manager from here:

I have input the IP and voilá, stream was retrieved correctly.
Checking in the User Management section I could see my user/pass was admin/12345. In the Network section I saw the HTTP port was 80 and the RTSP port was 554.

I have had problems with the ONVIF integration. The ONVIF Device Manager application detects my cameras and I can use PTZ. From Home Assistant it is not integrated.
My solution was to use this custom component:

1 Like

Can I set up the camera without using their app?

And is 192.168.1.244 in your example the IP address of the hassio instance?

You must configure your camera with another component. My component only works with pan and tilt

So probably the YCC365 app to set up WiFi address (and other settings?), basic HA integration with something else (MotionEye perhaps) and then your component for PTZ overlay?

Thanks

Yes. My camera is not detected by the Onvif integration but if it is Onvif. I have integrated my camera in HA with motionEye and to control pan and tilt I use ptz_camera. This component creates services for pan and tilt movements.

Ordered the camera to join a Wyze (on its own app) and a Eufy (on HomeKit); let’s see how long it takes to get to me so I can try HA.

Thanks

I have the same YCC365 camera but I´m unable to add it in MotionEye, how did you set it up? I don´t see a RTSP protocol in the “Add camera” dialog in MotionEye. Thanks!

Add network camera.

Hi there,
Have anybody tried to add PTZ functionality for YCC360 cameras through motionEye addon?
If so - please share your experience.

Your addon works like a charm. Great!