feat: Add support for Frigate reviews / detections [initial PR] (#2315)
- Add support for Frigate reviews / detections. - Add support for GenAI metadata. - Significant internal refactor to more flexible "UnifiedQuery" to allow mixing cameras with simple metadata and review metadata (e.g. a timeline view of a Frigate camera with reviews, and a Reolink camera with simple metadata). - Add support for folder media as camera media. There are a few more PRs to commit prior to this going live, but commiting this for now due to the scale of the change. BREAKING CHANGE: `media_type` and `events_type` are retired under `live`, `viewer` and `timeline` configuration sections, instead media type is associated (once) with the camera under `media`.
This commit is contained in:
+10
-1
@@ -24,6 +24,7 @@ import {
|
||||
PTZActionConfig,
|
||||
PTZActionPhase,
|
||||
} from '../config/schema/actions/custom/ptz.js';
|
||||
import { SetReviewActionConfig } from '../config/schema/actions/custom/set-review.js';
|
||||
import { SubstreamSelectActionConfig } from '../config/schema/actions/custom/substream-select.js';
|
||||
import { ViewActionConfig } from '../config/schema/actions/custom/view.js';
|
||||
import { PerformActionActionConfig } from '../config/schema/actions/stock/perform-action.js';
|
||||
@@ -34,7 +35,7 @@ import {
|
||||
} from '../config/schema/actions/types.js';
|
||||
import { AdvancedCameraCardUserSpecifiedView } from '../config/schema/common/const.js';
|
||||
import { ServiceCallRequest } from '../ha/types.js';
|
||||
import { EffectName } from '../types.js';
|
||||
import type { EffectName } from '../types.js';
|
||||
import { arrayify } from './basic.js';
|
||||
|
||||
export function createGeneralAction(
|
||||
@@ -260,6 +261,14 @@ export function createEffectAction(
|
||||
};
|
||||
}
|
||||
|
||||
export function createSetReviewAction(reviewed?: boolean): SetReviewActionConfig {
|
||||
return {
|
||||
action: 'fire-dom-event',
|
||||
advanced_camera_card_action: 'set_review',
|
||||
reviewed,
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Get an action configuration given a config and an interaction (e.g. 'tap').
|
||||
* @param interaction The interaction: `tap`, `hold` or `double_tap`
|
||||
|
||||
Reference in New Issue
Block a user