Today we will accomplish viewing Ubiquiti RTSP camera video streams through our Control4 Automation System. 

Ubiquiti's IP camera system is part of their Unifi platform which delivers an advanced UI and extensive feature set.


WHAT YOU NEED

 
  1. Unifi NVR running minimum firmware version 3.1.1
  2. Unifi Cameras of your choice.
  3. Control4 Automation System (OS 2.7.1 as of writing)

SETUP THE UBIQUITI NVR

 
 

Install YATUNS Generic IP camera driver into control4


Check you have the correct Driver

NVR network SETTings INTO DRIVER


Get the SNAPSHOT URL for the camera

In the Ubiquiti NVR, click Recordings. Right-Click the thumbnail of the camera and copy the image URL.

GEt the API Key from the Ubiquiti NVR

At the top-right corner select your Account Name. Click on API Access.  Select API Usage ON. Copy your API Key.

The URL you copy from the Recordings thumbnail will look something like this:

https://10.0.0.79:7443/api/2.0/snapshot/recording/33d3d3d-3333-0a0a-vrfw-wd3d3fwfw4f4f/2015/05/18/34344430f040r40d3fcewe534a04?thumb=true

You need to edit the URL. Paste it into a text editor and perform the following:

  1. Delete https://10.0.0.79:7443/
  2. Replace /recording/ with /camera/
  3. Delete 2015/ and everything following it.
  4. Where 2015/ existed, input  ?force=true&apiKey=Your_API_Key

The URL that you will paste into the Control4 Driver Properties Snapshot URL should look like: 

api/2.0/snapshot/camera/33d3d3d-3333-0a0a-vrfw-wd3d3fwfw4f4f?force=true&apiKey=aP1K3YG035H3R3

 


GET THE RTSP H264 Stream URL FOR THE CAMERA

 

In the NVR, Click on the Camera. Scroll down until you see RTSP for the Camera. Enable the High (1280X720) RTSP Service.

 

 

The URL that you will paste into the Control4 Driver Properties RTSP H264 Stream URL should look like: 

33d3d3d-3333-0a0a-vrfw-wd3d3fwfw4f4f_0

Refresh Navigators in Composer. Enjoy!

 
 


5 Comments