ONVIF camera integration?

Hello!

I searched the forum and other sites for solutions to use cheap onvif cameras with Home Assistant on a Raspberry Pi 4B with 4GB RAM.
But sadly I found nowhere a solution!

The URL to see the cameras is always like this:

Copy to clipboard

rtsp://username:[email protected]:554/onvif2   (or onvif1)

This is working in VLC without any problem, but I didn’t managed to get it to work with Home Assistant.

I used platform ffmpeg, onvif, mjpeg and generic but always there is no video.
I tried it also with motionEye but there was no luck too!

I used this cameras:
https://www.amazon.de/gp/product/B07R232BVW

The only camera I can get to work with Home Assistant is this one:
https://www.amazon.de/gp/product/B07H8YXKK7

I am using there the following configuration:

  - platform: mjpeg
    mjpeg_url: http://192.168.178.57/media/?user=admin&pwd=&action=stream

Is there someone out there who can help me get those onvif cameras to work with Home Assistant?

First try to add this to your code:

   verify_ssl: false

If this doesn’t work, try platform generic,

- Platform: generic
  still_image_url: http://YOUR_URL:PORT
  verify_ssl: false

did you manage to add these cameras?
try the following:

Try to use the following, I have managed to add camera!

  - platform: generic
    name: doorbell1
    stream_source: rtsp://login:[email protected]:554/onvif1
    still_image_url: rtsp://login:[email protected]:554/onvif1
    rtsp_transport: udp
    authentication: digest
    username: login
    password: pass
    verify_ssl: False

in the lovelace:

type: picture-elements
title: Door Bell 2 Camera
camera_image: camera.doorbell1
elements:
  - type: state-icon
    tap_action:
      action: more-info
    entity: camera.doorbell1
    icon: mdi:arrow-expand-all
    style:
      top: 5%
      right: 5%
      color: white
      opacity: 0.5
      transform: ' scale (1.5, 1.5) '
camera_view: live

image

1 Like