✅Fibaro HC3 (v5.040 or greater)
✅Fibaro HC2
✅Fibaro HCL

This guide assumes that you have already setup the Unifi Protect device and cameras on your network and have it working with the UniFi App. 

This plugin is only available in the PRO version of the automationbridge.

You also need to make sure that the following settings have been updated in the Unifi Protect interface and/or network.

- CloudKey has been assigned a static IP address, or a statically assigned IP address via your DHCP Server.
- All cameras have been assigned a static IP address, or a statically assigned IP address via your DHCP Server.
- Anonymous Snapshot enabled (On the Camera Settings)
- RTSP (Medium) enabled on the Unifi Protect Admin console.

Step 1 - Add the plugin via the Network Devices/Plugins page

Step 2 - Enter the IP address of the cloud key, and then the user details for your Unifi account. 

Step 3 - Click Next to proceed, the plugin will then try to connect to your Unifi Protect, verify your login details and then retrieve the available cameras.

Step 4 - If the connection is successful, then the following page will be displayed, listing the cameras found, and setup in your Fibaro controller 

This will show that the base camera object has been created, this is the native Fibaro camera device. 

For HC2/HCL - It will also create another VD to show the state and motion state of the camera, along with the global variable for the motion detection.

For HC3 - It will create a native motion object, that will also contain information fields.

Click OK to proceed to the Settings page.

From here you can perform a Sync, this updates the Fibaro objects with any name changes of the cameras.

If you are using the Fibaro HCL/HC2 controller, you will find two new objects.

You will also find the Global variable, this will be updated to 1 when motion is detected, so that you can use this in your scenes as a trigger.

If you are using a Fibaro HC3 controller, the two devices created are the Camera and the Motion Device.

At this time, cameras are only supported and presented into the HomeKit platform, you will now be able to do this from the home page of the automationbridge pro, just enable and then restart HomeKit using the blue button at the top of the page.

You will now find this listed on the iOS Homekit page as a camera, and also as a motion sensor

The Motion sensor will have already shown up in your iOS Home app

The actual Camera itself, needs to be added in a different way, this is due to home to how HomeKit works with cameras.

Step 1 - Press the Add (+) icon at the top right of the iOS Home app, then choose Accessory.

Step 2 - Press the button 'I Dont Have a code...'

Step 3 - You will find that the camera is listed in the available accessories

Step 4 - You will get a warning that this is an uncertified accessory, click Add Anyway.

Step 5 - Enter the HomeKit code, this can be found on the iOS HomeKit page of the automationbridge pro.

Step 6 - The camera will now be added to the Home platform, assign to the correct room then click Done.

This completes the setup and use of the Unifi Protect plugin. If you add more cameras in the future, just navigate to the Settings page, perform a Sync, enable the camera from the home page of the bridge, restart HomeKit and then add as above.

Further actions will be made available shortly with Alexa, where you will be able to select this VD, and it will go into Alexa as a Motion Sensor, that can be used to trigger the Alexa Routines.