keshavdv / unifi-cam-proxy

Enable non-Ubiquiti cameras to work with Unifi NVR
MIT License
1.59k stars 223 forks source link

Adoption no longer possible #314

Closed Freshhat closed 1 year ago

Freshhat commented 1 year ago

Camera

No response

Firmware version of the camera

No response

Description

As the Add Device button is missing in the newer version as well the URI /protect/devices/add is not working anymore, how should we adopt new cameras?

Also the solution with the QR URL in https://github.com/keshavdv/unifi-cam-proxy/issues/208 also stopped working. Anybody another workaround for this?

How to reproduce

No response

Expected behaviour

No response

Screenshots

No response

Aditional information

No response

d827bcx commented 1 year ago

This still works for me on both my NVR and NVR-Pro with UniFi OS firmware 3.1.9 and Protect 2.7.34 - just tested https://<nvrip>/proxy/protect/api/cameras/qr

Freshhat commented 1 year ago

Just tested it again on my UniFi Dream Router Running UniFi OS v3.1.9 and Protect v2.8.27 But i just get this output {"error":"Camera not found."}

Any idea?

Freshhat commented 1 year ago

For anybody how is also facing this issue you can try it that way:

  1. Connect via SSH to your device, which is hosting UnifiOS + Protect Application, in my case Dream Router
  2. Check available unifi-protect versions
    root@UDR:~# apt list -a unifi-protect
    Listing... Done
    unifi-protect/bullseye,bullseye,bullseye 2.8.28 arm64 [upgradable from: 2.8.27]
    unifi-protect/bullseye,now 2.8.27 arm64 [installed,upgradable to: 2.8.28]
    unifi-protect/bullseye 2.8.26 arm64
    unifi-protect/bullseye 2.8.25 arm64
    unifi-protect/bullseye 2.8.22 arm64
    unifi-protect/bullseye 2.8.15 arm64
    unifi-protect/bullseye 2.8.14 arm64
    unifi-protect/bullseye,bullseye,bullseye 2.7.34 arm64
    unifi-protect/bullseye,bullseye,bullseye 2.7.33 arm64
    unifi-protect/bullseye 2.7.31 arm64
    unifi-protect/bullseye 2.7.28 arm64
    unifi-protect/bullseye 2.7.25 arm64
    unifi-protect/bullseye 2.7.21 arm64
    unifi-protect/bullseye,bullseye,bullseye 2.7.18 arm64
    unifi-protect/bullseye 2.7.15 arm64
    unifi-protect/bullseye 2.7.11 arm64
    unifi-protect/bullseye 2.7.9 arm64
    unifi-protect/bullseye 2.7.7 arm64
    unifi-protect/bullseye 2.7.5 arm64
    unifi-protect/bullseye,bullseye,bullseye 2.6.17 arm64
    unifi-protect/bullseye 2.6.16 arm64
    unifi-protect/bullseye 2.6.14 arm64
    unifi-protect/bullseye 2.6.13 arm64
  3. In my case i choosed the last one "2.6.13" for the downgrade root@UDR:~# apt-get install --reinstall --allow-downgrades unifi-protect=2.6.13 -y

After that the URL https://{NVR-IP}/proxy/protect/api/cameras/qr was working again. Now i'm faced with the Broken Pipe error https://github.com/keshavdv/unifi-cam-proxy/issues/312 but at least this is for now an option to get the adoption token

larcher commented 11 months ago

As mentioned on #248 and #230, there's also /proxy/protect/api/cameras/manage-payload which returns a token directly (not a QR image) and still seems to work, at least as high as Protect 2.8.28