Comments (21)
This is the UNVR-4 appliance by the way.
from homebridge-unifi-protect.
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.
from homebridge-unifi-protect.
from homebridge-unifi-protect.
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.
from homebridge-unifi-protect.
The app is CCTV Viewer.
and was made by @PlasmaSoftUK
https://plasmasoft.co.uk/apps/cctv-viewer
from homebridge-unifi-protect.
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
from homebridge-unifi-protect.
@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:
Adding Your Cameras Using The Home App
from homebridge-unifi-protect.
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
from homebridge-unifi-protect.
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 homebridge-unifi-protect.
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...
- Hardware: Raspberry Pi 4b - 4GB model
- OS: Raspbian GNU/Linux 10 (buster)
- Homebridge version: v1.1.1
- Node.js Version: v12.18.2
- NPM version: v6.14.6
Homebridge plugins installed...
- homebridge-config-ui-x v4.23.2
- homebridge-harmony v1.3.12
- homebridge-unifi-protect2 v1.3.5
UNVR details...
- Hardware: Early Access edition, but I'm not aware of substantive changes from EA to GA hardware.
- Storage: Four disk RAID5
- Protect controller version: 1.14.10
- Firmware version: 1.3.12
- Uplink: via SFP+ port
Protect cameras...
- G4 Pro
- G4 Bullet (EA version)
- G4 Door Bell (EA version)
- 2x G3 Micro (cameras are switch on or off based on security system activation)
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.
from homebridge-unifi-protect.
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?)
from homebridge-unifi-protect.
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!
from homebridge-unifi-protect.
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.
from homebridge-unifi-protect.
That's dedication to troubleshooting @crkochan! π
How many RTSP streams are enabled per camera?
from homebridge-unifi-protect.
Only one stream per camera. The medium stream.
from homebridge-unifi-protect.
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.
from homebridge-unifi-protect.
Can you try enabling just the high one?
from homebridge-unifi-protect.
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.
from homebridge-unifi-protect.
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.
from homebridge-unifi-protect.
Correct. That's why when you answered you enabled one stream per camera, I thought it was covered already. π
This limitation will be eliminated in a future version in the not so distant future. π
Closing.
from homebridge-unifi-protect.
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)
- Transcoding based on IP address HOT 3
- HBUP API behaviour is impacting local admin login to Protect (4.0.3) HOT 2
- Live Streaming does not work but works with other tools HOT 2
- Switch to disable doorbell inside HomeKit HOT 2
- Max CPU usage and 32 Protect API errors per second HOT 13
- Why does UP Floodlight require full admin rights? HOT 2
- 2FA SUPPORT HOT 3
- Protect Controller taking too long to respond HOT 8
- Support for enhanced encoding HOT 1
- Enhanced Video Codec not working HOT 1
- API error: 499 HOT 2
- Provide a seperate switch to control Status LED HOT 2
- Verify - Protect Login not working HOT 10
- Enhanced Encoding in Protect 4.0 does not work HOT 6
- Determining Which Crossing Line Triggered HOT 4
- API error: Unable to retrieve the livestream websocket API endpoint from the UniFi Protect controller. HOT 2
- Config screen won't load HOT 4
- AI Bullet camera will take snapshots but not stream HOT 1
- API error: Error: EHOSTUNREACH connect EHOSTUNREACH 192.168.1.196:443. HOT 5
- Errors after upgrade from 6.22.0 to 7.0.1 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-unifi-protect.