SANNCE 4CH 1080P HD XPOE in HA as generic camera

Hello as always I want to help the community by sharing my configuration for the cheap Chinse security systems. I got this SANNCE 4CH 1080P HD XPOE from Alliexpress

Step 1 (This is assuming your DVR is up and working normally outside HA)
Log in to your DVR and enable RSTP (change de default port if you want)

Create new user for HA in your DVR

Step2 (you can skip it if you think DVR config is good)
Test the stream in VLC
ADDRESS <— change to DVR IP
USER <— change to user name used to access the DVR
PASS <— change to your password
channel=1 <— used to rotate all 4 channels
example: rtsp://–rtp-caching=100

Step3 (if all is good in step2)
Add generic camera to HA configuration.yaml
I do not know the still image URL of the DVR so I just added an image in the “www” folder in HA, I use the live view anyway.

  - platform: generic
    name: test cam
    still_image_url: ""
    stream_source: "rtsp://"
    verify_ssl: false
    username: "USER"
    password: "PASS"
    authentication: digest

After that save and restart HA or reload only the generic camera entity from config, build your Lovelace using the picture entity

For some reason my tests did not work if the username created in the DVR is short or simple, but might be just my luck.

1 Like

thanks, I can confirm that you have to use a long password like for example 'hassio2022 to get it working. how ever the connection isn’t stable into VLC or HA, many dropouts or not showing at all.