Skip to content

Commit

Permalink
videoanalysis: changing motion detect mode should restart motion dete…
Browse files Browse the repository at this point in the history
…ction
  • Loading branch information
koush committed Mar 17, 2023
1 parent 6484804 commit 51e66d9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/objectdetector/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ class ObjectDetectionMixin extends SettingsMixinDeviceBase<VideoCamera & Camera
BUILTIN_MOTION_SENSOR_REPLACE,
],
defaultValue: "Default",
onPut: () => {
this.endObjectDetection();
this.maybeStartMotionDetection();
}
},
captureMode: {
title: 'Capture Mode',
Expand Down

0 comments on commit 51e66d9

Please sign in to comment.