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
- Unifi NVR running minimum firmware version 3.1.1
- Unifi Cameras of your choice.
- Control4 Automation System (OS 2.7.1 as of writing)
SETUP THE UBIQUITI NVR
Install YATUNS Generic IP camera driver into control4
- Download from Yatun website (create a user account).
Check you have the correct Driver
NVR network SETTings INTO DRIVER
Get the SNAPSHOT URL for the camera
GEt the API Key from the Ubiquiti NVR
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:
- Delete https://10.0.0.79:7443/
- Replace /recording/ with /camera/
- Delete 2015/ and everything following it.
- 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
The URL that you will paste into the Control4 Driver Properties RTSP H264 Stream URL should look like:
33d3d3d-3333-0a0a-vrfw-wd3d3fwfw4f4f_0