Cameras show up as "Unknown Device" in unifi-protect v3 #374
zzzbatmand
started this conversation in
Show and tell
Replies: 1 comment
-
This solution also works for unifi-protect v4.0.33 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Intro
I have made a few discoveries these past couple of days, and have decided to share them with the community.
I will be splitting them up in different discussions, please tell me if I should merge them.
Problem
There are currently some issues with unifi-protect v4 and u-c-p #372 so I use v3.0.26 instead.
But apparently unifi-protect v3 don't read the camera type correctly and instead shows them as "Unknown Device"
I have these few days read through a lot of logs, as well as the source code for unifi-protect and have found the issue.
It appears that the TYPE is missing from the "ubnt_avclient_hello" adoption handler in unifi-protect.
Here is the code from v2.11.21
And here is the v3.0.26
Solution
This can be fixed, by manually patching the unifi-protect source at "/usr/share/unifi-protect/app/service.js"
The file is minified so a steady hand is needed for this.
Find the following code:
connectionHost:o.connectionHost,connectionPort:o.connectionSecurePort,
And add
type:o.model,
to the end.Save and close the file, then restart the unifi-protect from the web interface. (Just stop and start unifi-protect)
Beta Was this translation helpful? Give feedback.
All reactions