Ubiquiti Unifi Protect cameras

Do you think it is possible to connect to Unifi Protect with 2.1.8 firmware?

Release notes...
Added optional flag to ignore SSL issues (ie: self signed certificates) with http calls (httpGet, httpPost, etc)

1 Like

I don't understand your question -- connect in what way?

Tell us more PLEASE!
how did you get an RTSP stream into the app?

It's not RTSP. It's image with 1 second refresh on the dashboard.

It’s like @Navat604 said, it is not a continuous stream but a 1 second refresh. You need to enable the stream from the camera’s IP address, it’s not in the Unifi Protect app. Then plug it in to your dashboard.

I'm confused, do you mean I can take the stream IP and add it to the dashboard?
Where? Virtual Device, LAN Discovery?

Is my post from above enough?

I hardly use my dashboard and haven’t touched it in months. I also moved and haven’t reinstalled all my components.

Enable the camera’s RTSP stream (go to the camera’s IP address). Copy and paste the address into the dashboard image tile, as mentioned in the posts above.

If you still need help I will go through my system again and try to refresh my memory. Sorry if I didn’t get what you are looking for.

I'm a new Hubitat C7 user migrating from Smartthings and I have the Unifi Protect SmartApp and Device Handler from GitHub - project802/smartthings: This is a collection of device handlers, SmartApps and other things relating to the Samsung SmartThings platform.. Could this be rewritten to work with Hubitat? It works well in that it can notify on Camera Motion events and also can capture a screenshot. It would be nice to tie in my Unifi cameras with Hubitat.

3 Likes

There’s probably a good chance that it could be done.

This thread is always a good place to start:

2 Likes

To start ...
I am no way a Dev...
more of a Copy Paste guy...

One of the things I miss the most from moving away from ST is the Unifi integration...

Based on project802 github i've ported the App and the driver onto Hubitat.

The App it seems it's working fine since it discovered and added all the cameras

But the Camera driver ..... well not so much..

Any proper coder that would like to give it a go?

Feel Free to help yourself

3 Likes

What are you using for the NVR? The cloud key, UDMP, or NVR, NVR Pro?

@Bago I'm using the Cloud Key v2

Thanks. I tried it with the NVR, but it can't login. I'll mess around with it if (when) I get some time.

1 Like

Let me know if you get it working. I am not so good at coding either.

FYI - I'm running the new Cloud Key firmware (v2) and the assigned port usage per controller is gone. It's likely that once you upgrade whatever is working will break.

I wrote a new UniFi Protect driver to provide camera, chime, doorbell, light, and viewport functionality.

I added it to HPM (search for "unifiprotect"). Here's the code:

There are many more features that could be supported, so let me know if you have any requests.

5 Likes

Wanted to drop the note that I've been testing this with my UI Protect setup and its working great. I haven't done much with rules, but the polling works fine. I'm running the http script on one of my RPis.

1 Like

Thanks again for your help with testing, @jhciotti!

Just wanted to mention that this doesn't do polling for status and state (other than once at startup) but rather uses the websocket events for all updates. So, it will work for motion and doorbell press events only if the external script is running. @Bago figured out the special sauce to get it running automatically in a Node.js (like RPi) environment.

1 Like

Sounds like a job for Home Assistant. https://www.youtube.com/watch?v=JdW14cKp43U if your not interested in HA you can still see how he gets the stream info from the unifi cams.