This is complicated, but on the upgrade from UniFi 1.x to 2.x, suddenly the UniFi Protect to Homebridge gateway failed. When I logged in to the dedicated Home application, I couldn’t see any of the cameras.
So you have to change the permissions, go to the UniFi OS console > Admins > Roles and create a Protect Admin > Settings > Permissions and turn off all the Permissions except for Protect and make it Full since this needs to be able to set status lights.
Create a local user with the password called to say “Protect Admin” and then connect it to that user.
Then go to the Homebridge.local console in the UniFi Protect plugin and enter the password for the user. Check the console and you should see it discover the cameras.