I can't integrate Dahu camera 5 K Model: DH-H5A into Home Assistant

Good afternoon! I bought a Dahu camera, Model: DH-H5A, S/N: AH104F7PAG00021, but I can’t integrate it into Home Assistant. The camera is detected by Onvif and its IP address is detected. ConfigTool detects both the IP and port, which I enter when integrating it into Home Assistant. I get the same error in both the mobile app and on my PC: “Unknown error occurred” (see screenshot).
Moreover, ports 80/8080/5000/8899, which are generally accepted by Onvif, are not supported and are immediately rejected by the system. With the port 37777 detected by ConfigTool, the program takes about three minutes to resolve.

Can you tell me how to fix this? If possible, please provide a step-by-step guide to properly integrating it into Home Assistant. Thank you.

This is probably because, according to the technical specifications, the DH-H5A only supports H.265,


and the HA Onvif integration only supports H.264.

Using HA Generic camera integration, you could at least integrate the camera’s RTSP stream.

Connect camera with go2rtc integration and use the stream from go2rtc in HA if h.265 is the issue

Where should I get this go2rtc integration in hacs?

No need

Setup instruction are horrible but I think you need to add go2rtc config yaml in HA config folder. I never set this up (I use frigate which bundles go2rtc) but will test today and confirm