fix: Improve state handling to avoid stuck triggered cameras (#2348)
- Related: https://github.com/dermotduffy/advanced-camera-card/issues/2342
This commit is contained in:
@@ -471,7 +471,7 @@ export class FrigateCamera extends Camera {
|
||||
|
||||
this._eventCallback?.({
|
||||
cameraID,
|
||||
|
||||
id: ev.after.id,
|
||||
fidelity: 'high',
|
||||
type: ev.type,
|
||||
// In cases where there are both clip and snapshot media, ensure to only
|
||||
|
||||
@@ -85,6 +85,7 @@ export type PTZInfo = z.infer<typeof ptzInfoSchema>;
|
||||
|
||||
const frigateEventChangeBeforeAfterSchema = z.object({
|
||||
camera: z.string(),
|
||||
id: z.string(),
|
||||
snapshot: z
|
||||
.object({
|
||||
frame_time: z.number(),
|
||||
|
||||
Reference in New Issue
Block a user