hjdhjd / homebridge-unifi-protect

:video_camera: Complete HomeKit integration for all UniFi Protect device types with full support for most features including HomeKit Secure Video, and more. https://homebridge.io
Other
1.48k stars 93 forks source link

Which options are needed for HKSV? #868

Closed tillkruss closed 1 year ago

tillkruss commented 1 year ago

Describe The Problem:

I've read the docs, but not any smarter. What configuration options must be set to get started with HKSV?

I've added Enable.Video.HKSV, but are any other needed?

To Reproduce: N/A

Logs:

[1/13/2023, 8:24:51 AM] Homebridge v1.6.0 (HAP v0.11.0) (Homebridge 023D) is running on port 51551.
[1/13/2023, 8:24:51 AM] [UniFi Protect] Till’s UNVR [UNVR4]: Connected to the UniFi Protect controller API (address: 10.0.1.4 mac: D021F97BDA28).
[1/13/2023, 8:24:51 AM] [UniFi Protect] Till’s UNVR [UNVR4]: Connected to the UniFi Protect realtime update events API.
[1/13/2023, 8:24:51 AM] [UniFi Protect] Till’s UNVR [UNVR4]: Discovered camera: Doorbell [UVC G4 Doorbell] (address: 10.0.1.73 mac: E063DAEFADB3).
[1/13/2023, 8:24:51 AM] [UniFi Protect] Till’s UNVR [UNVR4]: Discovered camera: Backyard [UVC G4 Bullet] (address: 10.0.1.62 mac: E063DA00D600).
[1/13/2023, 8:24:51 AM] [UniFi Protect] Till’s UNVR [UNVR4]: Discovered camera: Access Road [UVC G4 Bullet] (address: 10.0.1.49 mac: E063DA00E8B6).
[1/13/2023, 8:24:51 AM] [UniFi Protect] Till’s UNVR [UNVR4]: Discovered camera: Driveway [UVC AI Bullet] (address: 10.0.1.225 mac: D021F990455C).
[1/13/2023, 8:24:51 AM] [UniFi Protect] Till’s UNVR [UNVR4]: Controller refresh interval set to 10 seconds.
[1/13/2023, 8:24:51 AM] [UniFi Protect] Till’s UNVR [UNVR4] Doorbell [UVC G4 Doorbell]: HomeKit Secure Video support enabled.
[1/13/2023, 8:24:51 AM] [UniFi Protect] Till’s UNVR [UNVR4] Backyard [UVC G4 Bullet]: HomeKit Secure Video support enabled.
[1/13/2023, 8:24:51 AM] [UniFi Protect] Till’s UNVR [UNVR4] Access Road [UVC G4 Bullet]: HomeKit Secure Video support enabled.
[1/13/2023, 8:24:51 AM] [UniFi Protect] Till’s UNVR [UNVR4] Driveway [UVC AI Bullet]: HomeKit Secure Video support enabled.
[1/13/2023, 8:24:51 AM] [UniFi Protect] Till’s UNVR [UNVR4] Doorbell [UVC G4 Doorbell]: Video streaming configured to use only: High.
[1/13/2023, 8:24:51 AM] [UniFi Protect] Till’s UNVR [UNVR4] Backyard [UVC G4 Bullet]: Video streaming configured to use only: High.
[1/13/2023, 8:24:51 AM] [UniFi Protect] Till’s UNVR [UNVR4] Access Road [UVC G4 Bullet]: Video streaming configured to use only: High.
[1/13/2023, 8:24:51 AM] [UniFi Protect] Till’s UNVR [UNVR4] Driveway [UVC AI Bullet]: Video streaming configured to use only: High.
[1/13/2023, 8:24:51 AM] [UniFi Protect] Till’s UNVR [UNVR4] Doorbell [UVC G4 Doorbell]: Discovered doorbell message switch: LEAVE PACKAGE AT DOOR.
[1/13/2023, 8:24:51 AM] [UniFi Protect] Till’s UNVR [UNVR4] Doorbell [UVC G4 Doorbell]: Discovered doorbell message switch: DO NOT DISTURB.
[1/13/2023, 8:24:51 AM] [UniFi Protect] Till’s UNVR [UNVR4] Doorbell [UVC G4 Doorbell]: HomeKit Secure Video event recording enabled: 1600x1200@30fps (High), 2000 kbps with a 4 second timeshift buffer.
[1/13/2023, 8:24:51 AM] [UniFi Protect] Till’s UNVR [UNVR4] Backyard [UVC G4 Bullet]: HomeKit Secure Video event recording enabled: 2688x1512@24fps (High), 2000 kbps with a 4 second timeshift buffer.
[1/13/2023, 8:24:51 AM] [UniFi Protect] Till’s UNVR [UNVR4] Access Road [UVC G4 Bullet]: HomeKit Secure Video event recording enabled: 2688x1512@24fps (High), 2000 kbps with a 4 second timeshift buffer.
[1/13/2023, 8:24:51 AM] [UniFi Protect] Till’s UNVR [UNVR4] Driveway [UVC AI Bullet]: HomeKit Secure Video event recording enabled: 2688x1512@30fps (High), 2000 kbps with a 4 second timeshift buffer.
[1/13/2023, 8:26:09 AM] [UniFi Protect] Till’s UNVR [UNVR4] Driveway [UVC AI Bullet]: Streaming request from 10.0.1.55: 1280x720@30fps, 299 kbps. Using 2688x1512@30fps (High), 10000 kbps.
[1/13/2023, 8:26:16 AM] [UniFi Protect] Till’s UNVR [UNVR4] Driveway [UVC AI Bullet]: Stopped video streaming session.

Homebridge Configuration:

{
   "platforms": [
      {
         "name": "Config",
         "port": 8581,
         "platform": "config"
      },
      {
         "platform": "UniFi Protect",
         "controllers": [],
         "options": [
            "Enable.Video.Stream.Only.High",
            "Enable.Video.HKSV"
         ]
      }
   ]
}

Screenshots: N/A

Environment:

hjdhjd commented 1 year ago

Thanks for the report...you don't need to add any options. You don't even need the ones you've got listed. You can remove all the feature options you've put in there, they're unnecessary.

HKSV is enabled by default.

Your confusion may be how to use HKSV in the Home app. See Apple's documentation:

https://support.apple.com/guide/icloud/set-up-homekit-secure-video-mm7c90d21583/icloud

https://www.imore.com/homekit-secure-video-everything-you-need-know

You need to go into the camera settings in the Home app to enable recording...I'm sure there's more than a few YouTube videos on it as well.

Best of luck.

tillkruss commented 1 year ago

Seems to all work ❤️

github-actions[bot] commented 1 year ago

This issue is locked to prevent necroposting on closed issues. Please create a new issue for related support requests, bug reports, or feature suggestions.