GithubHelp home page GithubHelp logo

Comments (21)

mhankosky avatar mhankosky commented on June 12, 2024

This is the UNVR-4 appliance by the way.

from homebridge-unifi-protect.

gescarra avatar gescarra commented on June 12, 2024

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.

mhankosky avatar mhankosky commented on June 12, 2024

from homebridge-unifi-protect.

philipsaad avatar philipsaad commented on June 12, 2024

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.

mhankosky avatar mhankosky commented on June 12, 2024

The app is CCTV Viewer.
and was made by @PlasmaSoftUK

https://plasmasoft.co.uk/apps/cctv-viewer

from homebridge-unifi-protect.

PlasmaSoftUK avatar PlasmaSoftUK commented on June 12, 2024

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.

hjdhjd avatar hjdhjd commented on June 12, 2024

@mhankosky The correct setting for UNVR (which I just got this week myself actually...nice device!) is:

https://1.2.3.4

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.

crkochan avatar crkochan commented on June 12, 2024

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.

hjdhjd avatar hjdhjd commented on June 12, 2024

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.

crkochan avatar crkochan commented on June 12, 2024

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.

gescarra avatar gescarra commented on June 12, 2024

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.

hjdhjd avatar hjdhjd commented on June 12, 2024

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.

crkochan avatar crkochan commented on June 12, 2024

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.

hjdhjd avatar hjdhjd commented on June 12, 2024

That's dedication to troubleshooting @crkochan! πŸ˜„

How many RTSP streams are enabled per camera?

from homebridge-unifi-protect.

crkochan avatar crkochan commented on June 12, 2024

Only one stream per camera. The medium stream.

from homebridge-unifi-protect.

crkochan avatar crkochan commented on June 12, 2024

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.

hjdhjd avatar hjdhjd commented on June 12, 2024

Can you try enabling just the high one?

from homebridge-unifi-protect.

crkochan avatar crkochan commented on June 12, 2024

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.

crkochan avatar crkochan commented on June 12, 2024

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.

hjdhjd avatar hjdhjd commented on June 12, 2024

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.

github-actions avatar github-actions commented on June 12, 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.