seydx / homebridge-camera-ui

Homebridge plugin for RTSP Cameras with HSV, motion detection support, Image Rekognition, Web UI to manage/watch streams and WebApp support
MIT License
638 stars 92 forks source link

Videoanalysis settings in UI different than reported via logs #588

Closed dnomotron closed 1 year ago

dnomotron commented 2 years ago

Describe the bug The only way to set videoanalysis settings is via the UI, where I set the Reset Motion After to 0. However, in the homebridge UI logs, I see that "forceclose" is set to 3m, different from my configuration in the UI (I have confirmed the settings were saved, and when I close an re-open the camera.ui and navigate to the settings, it remains set at 0 on the slider). Additionally, the motion is reset forcibly after 3 minutes of detected motion. I also notice that while I have the sensitivity setting set to 90, its reported as set to 91 in the log.

To Reproduce

Expected behavior When I set the Reset Motion After slider to 0, the configuration should mirror that. When I set the Sensitivity slider to 90, the configuration should mirror that.

Logs

[6/17/2022, 12:58:48 AM] [CameraUI] VIDEOANALYSIS: New message: Data: [{"zone":"region0","percent":10.33506965637207,"sensitivity":91,"dwell":90,"forceClose":3}] - Motion: detected - Camera: Master Bedroom
[6/17/2022, 12:58:48 AM] [CameraUI] Master Bedroom: Motion ON
[6/17/2022, 1:01:48 AM] [CameraUI] VIDEOANALYSIS: New message: Data: {"time":"2022-06-17T01:01:48.640Z","event":"forceClose (3m)"} - Motion: resetted - Camera: Master Bedroom
[6/17/2022, 1:01:48 AM] [CameraUI] Master Bedroom: Motion OFF
[6/17/2022, 1:01:49 AM] [CameraUI]  WARNING  Master Bedroom: The recording process has been running for 3 minutes and is now being forced closed!

Screenshots Screen Shot 2022-06-16 at 19 05 20 Screen Shot 2022-06-16 at 19 13 28 Screen Shot 2022-06-16 at 19 05 58

Environment

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

dnomotron commented 2 years ago

@seydx Can you clarify whether the wontfix label is accurate?

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

dnomotron commented 1 year ago

@seydx, Any updates for this Issue?

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

dnomotron commented 1 year ago

@seydx Any updates?

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

dnomotron commented 1 year ago

@seydx ^

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

ghost commented 1 year ago

I have the same issue

ghost commented 1 year ago

In Camera.Ui Interface i have the motion detection on 85. Reset motion is on 0.

[28/08/2023, 08:16:59] [CameraUI] Auffahrt: Configuring unbridged accessory... [28/08/2023, 08:16:59] [CameraUI] Auffahrt: Setting up accessory... [28/08/2023, 08:16:59] [CameraUI] Eingang: Configuring unbridged accessory... [28/08/2023, 08:16:59] [CameraUI] Eingang: Setting up accessory... [28/08/2023, 08:16:59] [CameraUI] Accessories refreshed and config.json saved! [28/08/2023, 08:16:59] Homebridge v1.6.1 (HAP v0.11.1) (Homebridge 7276) is running on port 51164. [28/08/2023, 08:16:59] Auffahrt 1626 is running on port 33349. [28/08/2023, 08:16:59] Please add [Auffahrt 1626] manually in Home app. Setup Code: 211-28-303 [28/08/2023, 08:16:59] Eingang 3737 is running on port 44457. [28/08/2023, 08:16:59] Please add [Eingang 3737] manually in Home app. Setup Code: 211-28-303 [28/08/2023, 08:17:05] [CameraUI] Auffahrt: Setting up camera, please be patient... [28/08/2023, 08:17:05] [CameraUI] Eingang: Setting up camera, please be patient... [28/08/2023, 08:17:08] [CameraUI] camera.ui v5.0.27 is listening on port 8081 (http) [28/08/2023, 08:17:14] [CameraUI] VIDEOANALYSIS: New message: Data: [{"zone":"region1","percent":19.044605255126953,"sensitivity":82,"dwell":60,"forceClose":3}] - Motion: detected - Camera: Auffahrt [28/08/2023, 08:17:14] [CameraUI] Auffahrt: Motion ON [28/08/2023, 08:17:15] [CameraUI] VIDEOANALYSIS: New message: Data: [{"zone":"region0","percent":19.421545028686523,"sensitivity":82,"dwell":60,"forceClose":3}] - Motion: detected - Camera: Eingang [28/08/2023, 08:17:15] [CameraUI] Eingang: Motion ON [28/08/2023, 08:20:14] [CameraUI] VIDEOANALYSIS: New message: Data: {"time":"2023-08-28T06:20:14.549Z","event":"forceClose (3m)"} - Motion: resetted - Camera: Auffahrt [28/08/2023, 08:20:14] [CameraUI] Auffahrt: Motion OFF [28/08/2023, 08:20:14] [CameraUI] VIDEOANALYSIS: New message: Data: [{"zone":"region0","percent":16.272024154663086,"sensitivity":85,"dwell":60,"forceClose":3},{"zone":"region1","percent":21.248550415039062,"sensitivity":80,"dwell":60,"forceClose":3}] - Motion: detected - Camera: Auffahrt [28/08/2023, 08:20:14] [CameraUI] Auffahrt: Motion ON [28/08/2023, 08:20:14] [CameraUI] WARNING Auffahrt: The recording process has been running for 3 minutes and is now being forced closed! [28/08/2023, 08:20:16] [CameraUI] VIDEOANALYSIS: New message: Data: {"time":"2023-08-28T06:20:16.130Z","event":"forceClose (3m)"} - Motion: resetted - Camera: Eingang [28/08/2023, 08:20:16] [CameraUI] Eingang: Motion OFF [28/08/2023, 08:20:16] [CameraUI] WARNING Eingang: The recording process has been running for 3 minutes and is now being forced closed! [28/08/2023, 08:20:16] [CameraUI] VIDEOANALYSIS: New message: Data: [{"zone":"region0","percent":18.07600212097168,"sensitivity":83,"dwell":60,"forceClose":3}] - Motion: detected - Camera: Eingang [28/08/2023, 08:20:16] [CameraUI] Eingang: Motion ON [28/08/2023, 08:20:24] [CameraUI] Eingang: Closing recording process [28/08/2023, 08:20:24] [CameraUI] Eingang: Motion OFF [28/08/2023, 08:20:24] [CameraUI] Auffahrt: Closing recording process