Giter Club home page Giter Club logo

Comments (14)

acesarewld avatar acesarewld commented on June 8, 2024 2

Hey, it's been some time (and a few updates) later... I upgraded to a Dream Machine Pro - and now I'm unable to make this plugin work. Have there been any updates or progress on this? Thanks!!

from homebridge-unifi-protect.

scoobaspeaz avatar scoobaspeaz commented on June 8, 2024 1

I wasn't aware the UDM Pro could do this with the camera. I thought it had to have a cloud key gen 2 in order for it to work. I know the UDM has a gen 2 cloud key built into it but from everything I read it was not compatible with Unifi Protect yet.

from homebridge-unifi-protect.

hjdhjd avatar hjdhjd commented on June 8, 2024 1

All - I've updated the plugin with support for UDM-Pro and other UniFiOS devices. Please give this a go and confirm things work as they should. I don't have a UDM-Pro to test on, but things should work properly. Thanks!

from homebridge-unifi-protect.

hfagelnour avatar hfagelnour commented on June 8, 2024

anyway to get this working? pls

from homebridge-unifi-protect.

hjdhjd avatar hjdhjd commented on June 8, 2024

Stay tuned...coming shortly.

from homebridge-unifi-protect.

philipsaad avatar philipsaad commented on June 8, 2024

I wasn't aware the UDM Pro could do this with the camera. I thought it had to have a cloud key gen 2 in order for it to work. I know the UDM has a gen 2 cloud key built into it but from everything I read it was not compatible with Unifi Protect yet.

The UDM-Pro has a bay for a 3.5in hard drive, if you install a drive you can use Protect. The regular UDM doesn't have this feature because it does not have a hard drive nor the ability to have one, but it has a built in AP whereas the Pro does not.

Hope that clears it up.

from homebridge-unifi-protect.

hjdhjd avatar hjdhjd commented on June 8, 2024

That’s correct. I don’t have a UDM-Pro to test on...but given that support for Protect on UDM-Pro’s has stabilized somewhat, I’m going to tackle support for it. I’m a bit puzzled why things seem to work differently for Protect on a UDM-Pro versus a CK2+, but hey I’m just trying to get something stable working so we don’t end up with a finicky HomeKit plugin at the end of all this. :)

from homebridge-unifi-protect.

Coice avatar Coice commented on June 8, 2024

@hjdhjd I can confirm this works on UDM-Pro. I needed to remove the port from the controller URL. Also, I created a local account under UDM Users and used that for the login. Great job on this!

from homebridge-unifi-protect.

hjdhjd avatar hjdhjd commented on June 8, 2024

Thanks @Coice - can you share what you were using for your url setting before and after? Including the port shouldn't make a difference, and I'd like to debug it a bit.

from homebridge-unifi-protect.

Coice avatar Coice commented on June 8, 2024

@hjdhjd It does not work if you include the port in the URL, I just tried again with the port included. It throws an api/auth exception:

(node:17505) UnhandledPromiseRejectionWarning: StatusCodeError: 404 - "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<title>Error</title>\n</head>\n<body>\n<pre>Cannot POST /api/auth</pre>\n</body>\n</html>\n" at new StatusCodeError (/usr/lib/node_modules/homebridge-unifi-protect2/node_modules/request-promise-core/lib/errors.js:32:15) at Request.plumbing.callback (/usr/lib/node_modules/homebridge-unifi-protect2/node_modules/request-promise-core/lib/plumbing.js:104:33) at Request.RP$callback [as _callback] (/usr/lib/node_modules/homebridge-unifi-protect2/node_modules/request-promise-core/lib/plumbing.js:46:31) at Request.self.callback (/usr/lib/node_modules/homebridge-unifi-protect2/node_modules/request/request.js:185:22) at Request.emit (events.js:198:13) at Request.<anonymous> (/usr/lib/node_modules/homebridge-unifi-protect2/node_modules/request/request.js:1154:10) at Request.emit (events.js:198:13) at IncomingMessage.<anonymous> (/usr/lib/node_modules/homebridge-unifi-protect2/node_modules/request/request.js:1076:12) at Object.onceWrapper (events.js:286:20) at IncomingMessage.emit (events.js:203:15) at endReadableNT (_stream_readable.js:1145:12) at process._tickCallback (internal/process/next_tick.js:63:19) (node:17505) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)

Also SSL (https) is required. This is the config I am currently using:

"platforms": [
{
"platform": "Camera-UniFi-Protect",
"name": "UniFi Protect",

"controllers": [
  {
    "url": "https://192.168.1.1/",
    "username": "xxx",
    "password": "xxx"
  }
]

}
]

from homebridge-unifi-protect.

hjdhjd avatar hjdhjd commented on June 8, 2024

Updated documentation to reflect the configuration differences between UCK Gen2+ and UnifiOS devices. @Coice - can you update to the latest and verify everything works? It should - you should not specify a port in the URL string on UnifiOS. Thanks!

from homebridge-unifi-protect.

Coice avatar Coice commented on June 8, 2024

@hjdhjd I updated to 1.2.14 and can confirm it is working correctly. 👍

from homebridge-unifi-protect.

hjdhjd avatar hjdhjd commented on June 8, 2024

Terrific! Closing this one out.

from homebridge-unifi-protect.

github-actions avatar github-actions commented on June 8, 2024

This issue is locked to prevent necroposting on closed issues. Please create a new issue for related support requests, bug reports, or feature suggestions.

from homebridge-unifi-protect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.