I’ve set up my UniFi doorbell to show a small live camera feed in the corner of my TV when someone rings it, while my TV continues playing. No Home Assistant or NAS video converter is needed.
AI helped me set this up and draft these instructions. I’ve reviewed the steps and tested them on my own equipment, including the physical doorbell trigger.
Tested setup: Hubitat Rule Machine, UniFi Protect with a G6 Entry, Sony BRAVIA 9 (Android TV) using its built-in apps, and mhoogenbosch’s PiPup fork v0.26.1. High-resolution H.265 video with Super Encoding enabled works on this combination; other TVs may differ.
How it works
Doorbell ring → Protect alarm → Hubitat rule → PiPup overlay
The TV plays the camera stream directly from Protect. Hubitat sends the instruction to display it.
1. Install PiPup
Use the maintained mhoogenbosch PiPup fork:
Download the release’s PiPup.apk and sideload it onto the TV. I used Downloader.
If another PiPup version is installed, it may need uninstalling first because the fork uses the same app identifier with a different signature.
Open PiPup, grant Display over other apps permission, and note its address:
http://YOUR_TV_IP:7979
Follow the project’s permission instructions if your TV doesn’t expose the setting normally.
2. Get the camera stream
In Protect, select the doorbell and open:
Settings → Share Livestream → Enable Secure RTSPS Output
Enable your preferred quality and copy its URL. Public Share-Link isn’t needed.
Convert the supplied address:
rtsps://YOUR_PROTECT_IP:7441/YOUR_STREAM_TOKEN?enableSrtp
to:
rtsp://YOUR_PROTECT_IP:7447/YOUR_STREAM_TOKEN
Change rtsps to rtsp, change port 7441 to 7447, and remove ?enableSrtp.
Use the Protect console’s IP, not the doorbell’s IP. Each quality has its own stream URL, and disabling/re-enabling output can change the token.
Security note: plain RTSP is unencrypted. Keep it on your trusted home network, keep the complete URL private, and don’t forward the streaming port to the internet.
Super Encoding can remain enabled on my tested setup. If your TV cannot play H.265, disabling Super Encoding under Recording Manager → doorbell → Recording Quality is a possible H.264 fallback.
3. Create the Hubitat action
In Rule Machine, create a rule such as Doorbell ring – TV popup.
Under Select Actions to Run, choose:
Send Message: Notify, Speak, Log; HTTP Request → Send HTTP Post
Set:
-
Content type:
json -
URL:
http://YOUR_TV_IP:7979/notify
Use this POST body, replacing the placeholders:
{
"id": "front-door",
"title": "Someone’s at the door",
"duration": 30,
"position": 3,
"media": {
"video": {
"uri": "rtsp://YOUR_PROTECT_IP:7447/YOUR_STREAM_TOKEN",
"width": 360,
"muted": true
}
}
}
Save the action and test with Run Actions.
This shows a muted live feed in the lower-left corner for 30 seconds, with a heading and no subheading.
width sets the displayed width in pixels. The selected Protect URL determines stream quality.
| Position | Corner |
|---|---|
0 |
Top right |
1 |
Top left |
2 |
Bottom right |
3 |
Bottom left |
4. Create the Hubitat trigger
In the same rule:
-
Open Select Trigger Events.
-
Add a Local End Point trigger.
-
Copy its generated Local End Point URL.
-
Finish and save the rule.
Use Hubitat’s exact URL. It contains an access token, so keep it private.
5. Create the Protect alarm
Open Alarm Manager → Create Alarm and configure:
| Setting | Value |
|---|---|
| Trigger category | Doors |
| Trigger | Ring |
| Run this action | Always |
| Applies to | Include → your doorbell |
| Action | Webhook → Custom Webhook |
| Delivery URL | Hubitat’s Local End Point URL |
| Delivery method | GET |
Use only the webhook action for this new alarm unless you also want additional notifications. Save it.
6. Test
Use Protect’s Test Alarm, then press the actual doorbell while watching your usual TV app.
The feed should appear in the selected corner and disappear after 30 seconds.
A few final details:
-
This configuration doesn’t explicitly turn the TV on from standby.
-
If the TV is displaying its screensaver, PiPup can dismiss it to show the popup.
-
Direct RTSP video keeps its original proportions; this PiPup version has no direct-stream crop setting.
-
If playback fails, testing the same URL in VLC on the TV helps check whether the TV can reach and play the stream.
Thanks to the PiPup developers and maintainers for making this possible.