Giter Club home page Giter Club logo

Comments (7)

burnflare avatar burnflare commented on June 8, 2024 1

Yup, you're right! I disabled my inter-VLAN firewall entirely and this fixed the issue. Time to go tweaking my firewall setup again.

Thanks again @hjdhjd

from homebridge-unifi-protect.

hjdhjd avatar hjdhjd commented on June 8, 2024

Thanks for the note. Try v3.3.1 please instead and see if that helps. To install it...uninstall the plugin and reinstall with

npm -g —unsafe-perm install [email protected]

Let me know...and thanks for the report!

from homebridge-unifi-protect.

burnflare avatar burnflare commented on June 8, 2024

Alright so I downgraded to 3.3.1 and I'm still running into the same timeout (slightly redacted logs):

[8/19/2020, 12:04:29] Loaded plugin: [email protected]
[8/19/2020, 12:04:29] Registering platform 'homebridge-unifi-protect2.UniFi Protect'
[8/19/2020, 12:04:29] ---
[8/19/2020, 12:04:29] Loading 2 platforms...
[8/19/2020, 12:04:29] [Config] Initializing config platform...
[8/19/2020, 12:04:29] [Config] Running in Service Mode
[8/19/2020, 12:04:29] [UniFi Protect] Initializing UniFi Protect platform...


[8/19/2020, 12:04:29] Homebridge is running on port 51266.
[8/19/2020, 12:04:30] [UniFi Protect] Protect [UCK-G2-PLUS]: Connected to the Protect controller API (address: 192.168.10.10 mac: XXXXXXXXXXX).
[8/19/2020, 12:04:30] [UniFi Protect] Protect [UCK-G2-PLUS]: Discovered camera: Doorbell [UVC G4 Doorbell] (address: 192.168.10.32 mac: YYYYYYYYY).
[8/19/2020, 12:04:30] [UniFi Protect] Protect [UCK-G2-PLUS]: Discovered camera: Garage [UVC G3 Micro] (address: 192.168.10.31 mac: ZZZZZZZZZZZZ).
[8/19/2020, 12:04:30] [UniFi Protect] Protect [UCK-G2-PLUS]: Controller refresh interval set to 30 seconds.
[8/19/2020, 12:04:30] [UniFi Protect] Protect [UCK-G2-PLUS] Garage [UVC G3 Micro]: Stream quality configured: High.
[8/19/2020, 12:04:30] [UniFi Protect] Protect [UCK-G2-PLUS] Doorbell [UVC G4 Doorbell]: Stream quality configured: High.
[8/19/2020, 12:05:00] [UniFi Protect] Protect [UCK-G2-PLUS]: A doorbell has been detected. Setting the controller refresh interval to 2 seconds.
[8/19/2020, 12:05:29] [UniFi Protect] Garage: HomeKit video stream request received: 1280x720, 30 fps, 299 kbps.
[8/19/2020, 12:05:59] [UniFi Protect] Garage: Stopped video stream.

Oh question: Does HomeBridge need direct access to the Cameras (192.168.10.31 & 192.168.10.32)? Right now, my USG firewall is setup so that HomeBridge can only talk to the Protect Controller (192.168.10.10).

from homebridge-unifi-protect.

hjdhjd avatar hjdhjd commented on June 8, 2024

@burnflare Go back to the latest version. 😄

As to your question...the RTSP streams are always coming from the NVR (controller)...never the camera directly. Homebridge needs to access the NVR. If you've got a firewall setup, enable all traffic UDP + TCP between the controller and Homebridge for the time being.

I'm guessing it's a firewall configuration issue. Thanks.

from homebridge-unifi-protect.

hjdhjd avatar hjdhjd commented on June 8, 2024

Good luck. Closing.

from homebridge-unifi-protect.

rvanbaalen avatar rvanbaalen commented on June 8, 2024

@burnflare have you managed to tweak the firewall settings? My issue was resolved as well when I disabled the firewall settings but I do want to enable the firewall again.

Edit:

I managed to resolve it myself by monitoring all denied firewall rules I discovered that communication from the Raspberry Pi to the HomeKit device (in this case, my iPhone) was blocked.

I created a firewall group for all HomeKit devices in my network (Apple TVs and iPhones) and allowed UDP communication from Raspberry to this group. That did the trick.

So allowing Raspberry to communicate with the controller is not enough, you also need to allow it to communicate with the HomeKit devices that are going to consume the stream.

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.