I linked to the code on GitHub in this post, which has configuration instructions: Ubiquiti Unifi Protect cameras - #37 by tomw
There's also discussion in that thread after my post about the progress when adding various features.
It's pretty easy to set up. I recommend installing using Hubitat Package Manager (HPM) and then configuring and using it as described in my readme. Let me know in the other thread if you have any issues.