sceneMonitor
The sceneMonitor router: 10 methods of the scene-monitor capability, with tier, scope, input and output.
Capability scene-monitor · scope device · mode singleton · source packages/types/src/capabilities/scene-monitor.cap.ts:301.
Every method is called at /trpc/sceneMonitor.<method> — queries with GET, mutations with POST. See How to call and Authorization. Device methods take deviceId in their input.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
getStatus | query | protected | view | with the scenes feature |
listScenes | query | protected | view | with the scenes feature |
listScenesBatch | query | protected | view | with the scenes feature |
createScene | mutation | admin | admin only | with the scenes feature |
updateScene | mutation | admin | admin only | with the scenes feature |
deleteScene | mutation | admin | admin only | with the scenes feature |
captureReference | mutation | admin | admin only | with the scenes feature |
deleteReference | mutation | admin | admin only | with the scenes feature |
recheckNow | mutation | admin | admin only | with the scenes feature |
resetScene | mutation | admin | admin only | with the scenes feature |
sceneMonitor.getStatus
- Kind: query —
GET /trpc/sceneMonitor.getStatus(added by the framework) - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityscene-monitor, or categorydevice, or a device grant coveringdeviceId - Viewer: with the
scenesfeature - Try it: open
/system/api-explorer?method=sceneMonitor.getStatuson your hub
Input
{ deviceId: number }Output
SceneMonitorStatusSchemaShapes: SceneMonitorStatusSchema
sceneMonitor.listScenes
- Kind: query —
GET /trpc/sceneMonitor.listScenes - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityscene-monitor, or categorydevice, or a device grant coveringdeviceId - Viewer: with the
scenesfeature - Try it: open
/system/api-explorer?method=sceneMonitor.listSceneson your hub
Input
{ deviceId: number }Output
SceneMonitorStatusSchemaShapes: SceneMonitorStatusSchema
sceneMonitor.listScenesBatch
- Kind: query —
GET /trpc/sceneMonitor.listScenesBatch - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityscene-monitor, or categorydevice, or a device grant coveringdeviceId - Viewer: with the
scenesfeature - Try it: open
/system/api-explorer?method=sceneMonitor.listScenesBatchon your hub
Input
{ deviceIds: number[] }Output
SceneMonitorStatusForDeviceSchema[]Shapes: SceneMonitorStatusForDeviceSchema
sceneMonitor.createScene
- Kind: mutation —
POST /trpc/sceneMonitor.createScene - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: with the
scenesfeature - Try it: open
/system/api-explorer?method=sceneMonitor.createSceneon your hub
Input
{ deviceId: number; label: string; roi: MaskRectShapeSchema; check: SceneCheckSchema; triggerMode?: "periodic" | "on-motion" | "both"; checkIntervalSec?: number }Output
SceneMonitorSchemaShapes: MaskRectShapeSchema · SceneCheckSchema · SceneMonitorSchema
sceneMonitor.updateScene
- Kind: mutation —
POST /trpc/sceneMonitor.updateScene - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: with the
scenesfeature - Try it: open
/system/api-explorer?method=sceneMonitor.updateSceneon your hub
Input
{ deviceId: number; monitorId: string; patch: { label?: string; roi?: MaskRectShapeSchema; enabled?: boolean; triggerMode?: "periodic" | "on-motion" | "both"; checkIntervalSec?: number; check?: SceneCheckSchema; emit?: "latched" | "live"; quietSeconds?: number; minObservationSpacingSec?: number; anchorThreshold?: number; autoRestore?: boolean; onUncoveredCondition?: SceneUncoveredPolicySchema; confirm?: SceneConfirmSchema | null } }Output
voidShapes: MaskRectShapeSchema · SceneCheckSchema · SceneUncoveredPolicySchema · SceneConfirmSchema
sceneMonitor.deleteScene
- Kind: mutation —
POST /trpc/sceneMonitor.deleteScene - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: with the
scenesfeature - Try it: open
/system/api-explorer?method=sceneMonitor.deleteSceneon your hub
Input
{ deviceId: number; monitorId: string }Output
voidsceneMonitor.captureReference
- Kind: mutation —
POST /trpc/sceneMonitor.captureReference - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: with the
scenesfeature - Try it: open
/system/api-explorer?method=sceneMonitor.captureReferenceon your hub
Input
{ deviceId: number; monitorId: string; stateId?: string; label?: string; condition?: string }Output
{ stateId: string; referenceCount: number }sceneMonitor.deleteReference
- Kind: mutation —
POST /trpc/sceneMonitor.deleteReference - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: with the
scenesfeature - Try it: open
/system/api-explorer?method=sceneMonitor.deleteReferenceon your hub
Input
{ deviceId: number; monitorId: string; stateId: string; index: number }Output
voidsceneMonitor.recheckNow
- Kind: mutation —
POST /trpc/sceneMonitor.recheckNow - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: with the
scenesfeature - Try it: open
/system/api-explorer?method=sceneMonitor.recheckNowon your hub
Input
{ deviceId: number; monitorId: string }Output
voidsceneMonitor.resetScene
- Kind: mutation —
POST /trpc/sceneMonitor.resetScene - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: with the
scenesfeature - Try it: open
/system/api-explorer?method=sceneMonitor.resetSceneon your hub
Input
{ deviceId: number; monitorId: string; recapture?: boolean }Output
void