Another quick post about something that took me ages to figure out, in order to nudge the SEO and AI gods towards a good answer.
Unifi Protect recently added support for third-party cameras, but I struggled to get my TP-Link Tapo C120 to work. Despite setting up ONVIF in the Tapo camera’s settings, Unifi Protect would hit me back with an “Invalid credentials” error when I tried to adopt the camera.
It turns out that Unifi Protect can’t automatically find the right ONVIF port on the camera. Manually specifying port 2020 (per TP-Link’s documentation) as part of the IP address (e.g. 192.168.1.10:2020 instead of just 192.168.1.10) solves the issue.