Closed mhankosky closed 4 years ago
This is the UNVR-4 appliance by the way.
Have the same issue on a UCK-G2-Plus. Has been working great for a while, then just stopped working likely after some firmware upgrade on the UCK. Unfortunately i don't know exactly when it stopped working and at what version both plugin and Protect were at. Using a local user for authentication. I'm only seeing the RTSP bootstrap errors, but RTSP enabled on all cameras and tested via VLC.
I have a friend of mine that made an Apple TV app for protect and he updated his code recently to allow the new firmware changes. Maybe he can chime in?
Sent from my iPhone
On Jun 11, 2020, at 11:55 AM, Gonzalo Escarrá notifications@github.com wrote:
Have the same issue on a UCK-G2-Plus. Has been working great for a while, then just stopped working likely after some firmware upgrade on the UCK. Unfortunately i don't know exactly when it stopped working and at what version both plugin and Protect were at. Using a local user for authentication. I'm only seeing the RTSP bootstrap errors, but RTSP enabled on all cameras and tested via VLC.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/hjdhjd/homebridge-unifi-protect2/issues/19#issuecomment-642807239, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC5RF3FJL3X5TDIN5ITSIKTRWED6ZANCNFSM4N3BPJLQ.
The company accepts no liability for the content of this email, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.
Tagging @gescarra
I have nothing to add, but can I get a link to the Apple TV app? I find the official one, while functional to be wholly inadequate.
The app is CCTV Viewer. and was made by @PlasmaSoftUK
I've looked at the UniFi UNVR-4 login sequence using Fiddler, and it looks the same as the UCK2+
Auth is done using .. https://10.0.0.1:7443/api/auth Bootstrap is got with .. https://10.0.0.1:7443/api/bootstrap
Plasma
@mhankosky The correct setting for UNVR (which I just got this week myself actually...nice device!) is:
That's it. Once you're up and running, you will need to go and add the cameras individually in the Home app.
See here:
I'm having the same issue. Cameras that were working with the plugin have stopped after a recent UNVR firmware update.
The message is the same as OP: Unable to bootstrap cameras from UniFi Protect controller: Error: No cameras with enabled RTSP channels found. Only cameras with RTSP streams enabled can be used with this plugin. Please enable RTSP on at least one camera in UniFi Protect.
I have verified that my controllers[0].url is correct. Another protect plugin (homebridge-unifi-protect-camera-motion
) is able to connect with the same controller url and credentials, so I don't think I'm looking at a UNVR-side issue.
Protect controller version: 1.14.10 UNVR firmware version: 1.3.12
I'm running UNVR v1.3.12 and running Protect 1.14.10...and I can't recreate the issues you are mentioning.
Post the relevant portion of your config.json please, as well as an explanation fo your Protect hardware setup, and let's see if we can debug this shall we?
From the platforms section of my config.json...
{
"name": "UniFi Protect",
"controllers": [
{
"url": "https://<unvr_hostname_or_ip>",
"username": "domicileoverpass",
"password": "hunter2"
}
],
"videoConfig": {
"sourcePrefix": "-re -rtsp_transport tcp",
"additionalCommandline": "-preset slow -profile:v high -level 4.2 -x264-params intra-refresh=1:bframes=0",
"mapaudio": "0:0",
"mapvideo": "0:1",
"maxStreams": 4,
"maxWidth": 1920,
"maxHeight": 1080,
"maxFPS": 30,
"packetSize": 564,
"audio": true
},
"platform": "Camera-UniFi-Protect"
}
Homebridge details...
Homebridge plugins installed...
UNVR details...
Protect cameras...
Here's console output pertaining to the plugin...
[7/19/2020, 20:55:57] [UniFi Protect] Unable to bootstrap cameras from UniFi Protect controller: Error: No cameras with enabled RTSP channels found. Only cameras with RTSP streams enabled can be used with this plugin. Please enable RTSP on at least one camera in UniFi Protect.
[7/19/2020, 20:55:57] [UniFi Protect] Unable to register cameras with HomeKit: TypeError: Cannot read property 'forEach' of undefined
Note: There doesn't seem to be any change in console output when I set "debug": "yes"/true
in config.json.
Other info... The cameras are all configured with the the medium RTSP stream enabled. I have also enabled anonymous snapshot on all cameras since other plugins I've tested require this.
I just "fixed" this today somehow. Not sure what made the difference, but I disabled all RTSP streams on all cams then only enabled the high res one, and also signed in to Protect using the local username/password combo for homebridge. It started working after those were done, but maybe one of the two did the trick (login perhaps?)
I was going to say...at the moment, if you have multiple RTSP streams, the plugin may get confused. Enable only a single stream on each camera and see if that does the trick. I am overdue to refactor some of the functionality in this plugin...it's on my TODO list in the coming days!
I deleted an re-created the local account used for Homebridge access, no change.
I cycled off, and then back on all the RTSP settings for all cameras, no change. To be clear, only the medium stream is enabled on each camera.
I even rebooted the UNVR appliance for good measure, no change.
That's dedication to troubleshooting @crkochan! :smile:
How many RTSP streams are enabled per camera?
Only one stream per camera. The medium stream.
I finally figured out the config switch is debugProtect
not debug
as stated in the README.md.
I've got a huge block of json text to look through. Once I sanitize of sensitive info, I'll post it.
Can you try enabling just the high one?
Tried enabling just the high quality RTSP stream on each camera, no difference.
Here is the debug output from when I had only the medium quality streams enabled.
Console output...
[7/20/2020, 13:48:14] [UniFi Protect] Configuration URL: https://<hostname_of_appliance_here>
...other output...
[7/20/2020, 13:48:15] [UniFi Protect] UniFi Protect endpoint type identified: UnifiOS.
[7/20/2020, 13:48:15] [UniFi Protect] <PAYLOAD BELOW>
[7/20/2020, 13:48:15] [UniFi Protect] Unable to bootstrap cameras from UniFi Protect controller: Error: No cameras with enabled RTSP channels found. Only cameras with RTSP streams enabled can be used with this plugin. Please enable RTSP on at least one camera in UniFi Protect.
[7/20/2020, 13:48:15] [UniFi Protect] Unable to register cameras with HomeKit: TypeError: Cannot read property 'forEach' of undefined
In the interest of not pasting 1.5K lines worth of json into the thread, here's a link to the gist I dumped the payload into with all (I hope) potentially sensitive information redacted.
I seem to have sussed out what the problem is by looking through index.js
and came to line 207.
When it comes to the RTSP streams, it's an all-or-nothing thing. I added a G3 Micro to the system where I had not enabled the RTSP stream because it was only being used temporarily, and I did not want to expose it to Homebridge, and in fact I had recently powered off the camera without removing it from Protect.
After plugging it back in, and enabling a stream, the plugin loaded properly on Homebridge restart.
Correct. That's why when you answered you enabled one stream per camera, I thought it was covered already. :smile:
This limitation will be eliminated in a future version in the not so distant future. :smile:
Closing.
This issue is locked to prevent necroposting on closed issues. Please create a new issue for related support requests, bug reports, or feature suggestions.
Unifi Protect Controller 1.13.3 Web UI 1.20.0 Node.js Version | v12.18.0 NPM Version | v6.14.5
I can not get any of my cameras to show up in HomeBridge. [6/11/2020, 05:20:49] [UniFi Protect] Unable to bootstrap cameras from UniFi Protect controller: Error: No cameras with enabled RTSP channels found. Only cameras with RTSP streams enabled can be used with this plugin. Please enable RTSP on at least one camera in UniFi Protect. [6/11/2020, 05:20:49] [UniFi Protect] Unable to register cameras with HomeKit: TypeError: Cannot read property 'forEach' of undefined
I have tried for the URL https://CONTROLLERIP and https://ControlerIP:7443
I have created a local user account on the Protect System and can login fine with that. I know my RTSP streams work as I can view them in VLC just fine.