Integrating Unifi G4 Doorbell Pro camera stream into HA

Recently, I installed a Unifi G4 Doorbell Pro. The device has been adopted in my UDM Pro, and it’s integrated into HA. The next step is to get the camera stream working. I’ve followed a few how-tos to try and get it working. But, despite best efforts, I can’t get it to display with the custom webrtc HACS add-on. Most have said to remove the ‘s’ from ‘rtsps’, remove ?enableSrtp from the URL, and change the port from 7441 to 7447. I’ve tried all of that but I can’t get the stream to work. Anyone have this working in HA?

Yes I do.

In Unifi Protect make sure jou have enabled the Real Time Streaming Protocol, found under G4 Doorbell Camera → Settings → Advanced.

Select the quality you want shared (in my case I use the high quality)

After that add this integration (if not done already) : UniFi Protect - Home Assistant

When installed you will find the camera(s) and the UDM Pro in the integration page:

After that add a picture card on your dashboard and select the camera entity for your G4 Doorbell.

My Code:

show_state: true
show_name: true
camera_view: live
type: picture-entity
entity: camera.g4_doorbell_high

Were entity is of course your G4 doorbell enity. If you want to know what the exact sensor name is.
Navigate to the Unifi protect integration, select the camera, in its details page you can find the sensor name.

1 Like

Thanks, @DotNet2Web! I wound up not needing to enable RTSP (there was no Advanced menu), but the rest seemed to work. I’ll keep an eye on it, but out of the gate it’s working.

Good to hear!

The advanced settings can be found when you navigate to the Unifi Protect application web application (it is not available in the app).

But it works!

Are either of you able to get the package camera stream to show on your dashboard via recording the stream to NVR and then streaming from that using the Unifi Video integration?