@camstack/addon-provider-homematic 1.2.1 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +68 -7
- package/dist/addon.mjs +68 -7
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -12330,7 +12330,8 @@ var PipelineStepInputSchema = lazy(() => object({
|
|
|
12330
12330
|
modelId: string().optional(),
|
|
12331
12331
|
enabled: boolean().default(true),
|
|
12332
12332
|
children: array(PipelineStepInputSchema).optional(),
|
|
12333
|
-
settings: record(string(), unknown()).optional()
|
|
12333
|
+
settings: record(string(), unknown()).optional(),
|
|
12334
|
+
jumpDeviceKey: string().optional()
|
|
12334
12335
|
}));
|
|
12335
12336
|
var ModelSubstitutionSchema = object({
|
|
12336
12337
|
addonId: string(),
|
|
@@ -12669,8 +12670,24 @@ var NativeCropBboxSchema = object({
|
|
|
12669
12670
|
});
|
|
12670
12671
|
/** Result of a best-effort native-resolution crop (`getNativeCrop`). */
|
|
12671
12672
|
var NativeCropResultSchema = object({
|
|
12672
|
-
/**
|
|
12673
|
-
|
|
12673
|
+
/**
|
|
12674
|
+
* Packed rgb (24-bit) pixels of the crop. Present on the DEFAULT (raw) path —
|
|
12675
|
+
* same-node (in-process / UDS) callers get zero-copy RGB and encode locally.
|
|
12676
|
+
* OMITTED when the caller requested `encodeJpeg` (the cross-node compressed
|
|
12677
|
+
* path below), where shipping raw RGB is both an invariant violation and, for
|
|
12678
|
+
* a native full frame (~26 MB at 4K), larger than Moleculer's 10 MB
|
|
12679
|
+
* `maxPacketSize` → the packet is dropped and the call 60s-times-out. That is
|
|
12680
|
+
* the cross-node native-media miss: `bytes` is replaced by `jpeg`.
|
|
12681
|
+
*/
|
|
12682
|
+
bytes: _instanceof(Uint8Array).optional(),
|
|
12683
|
+
/**
|
|
12684
|
+
* Base64 JPEG of the crop — the COMPRESSED cross-node payload. The OWNING node
|
|
12685
|
+
* (which holds the native surface) encodes it in-process, so a native 4K frame
|
|
12686
|
+
* ships as ~0.5–2 MB (well under `maxPacketSize`) and NO raw pixels ever cross
|
|
12687
|
+
* a process boundary (CLAUDE.md invariant #21). Present ONLY when the request
|
|
12688
|
+
* set `encodeJpeg: true`; `bytes` is then absent.
|
|
12689
|
+
*/
|
|
12690
|
+
jpeg: string().optional(),
|
|
12674
12691
|
width: number().int().positive(),
|
|
12675
12692
|
height: number().int().positive(),
|
|
12676
12693
|
/**
|
|
@@ -12816,6 +12833,20 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
12816
12833
|
hubHostnameOverride: string().optional()
|
|
12817
12834
|
})]).describe("Per-camera frame-source mode for the runner (P2c)");
|
|
12818
12835
|
/**
|
|
12836
|
+
* One ENABLED inference device on the runner's node, as the step-tree
|
|
12837
|
+
* device-jump resolver sees it (phase 1). The orchestrator populates this
|
|
12838
|
+
* roster on the attach payload whenever the camera is elected onto a specific
|
|
12839
|
+
* `deviceKey` and the node has ≥2 enabled devices — it is the candidate set the
|
|
12840
|
+
* runner auto-jumps an enrichment step to when the elected device's format
|
|
12841
|
+
* cannot run that step's model. `weight`/`maxSessions` mirror the balancer's
|
|
12842
|
+
* per-device knobs so the auto choice is weighted-least-loaded.
|
|
12843
|
+
*/
|
|
12844
|
+
var RunnerInferenceDeviceSchema = object({
|
|
12845
|
+
deviceKey: string(),
|
|
12846
|
+
weight: number().positive().default(1),
|
|
12847
|
+
maxSessions: number().int().positive().nullable().default(null)
|
|
12848
|
+
});
|
|
12849
|
+
/**
|
|
12819
12850
|
* Camera assignment payload sent by `addon-pipeline-orchestrator` to a
|
|
12820
12851
|
* specific runner instance via `attachCamera`. Carries everything the
|
|
12821
12852
|
* runner needs to subscribe to the local broker and execute inference.
|
|
@@ -12933,7 +12964,16 @@ var RunnerCameraConfigSchema = object({
|
|
|
12933
12964
|
* omitted ⇒ the runner's default device. The engine itself stays node-local —
|
|
12934
12965
|
* this only selects WHICH device pool of that node runs the session.
|
|
12935
12966
|
*/
|
|
12936
|
-
deviceKey: string().optional()
|
|
12967
|
+
deviceKey: string().optional(),
|
|
12968
|
+
/**
|
|
12969
|
+
* Step-tree device-jump roster (phase 1): the node's ENABLED inference
|
|
12970
|
+
* devices, populated by the orchestrator ONLY when `deviceKey` is set and the
|
|
12971
|
+
* node has ≥2 enabled devices. The runner uses it to AUTO-jump an enrichment
|
|
12972
|
+
* step whose model has no build for the elected device's format onto another
|
|
12973
|
+
* enabled device of the SAME node (weighted-least-loaded). Absent/single-entry
|
|
12974
|
+
* ⇒ no jump possible; the step runs on `deviceKey`.
|
|
12975
|
+
*/
|
|
12976
|
+
inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
|
|
12937
12977
|
});
|
|
12938
12978
|
motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
|
|
12939
12979
|
/**
|
|
@@ -12989,7 +13029,18 @@ var RunnerLocalMetricsSchema = object({
|
|
|
12989
13029
|
method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number()).readonly()), method(object({
|
|
12990
13030
|
handle: FrameHandleSchema,
|
|
12991
13031
|
bbox: NativeCropBboxSchema,
|
|
12992
|
-
maxWidth: number().int().positive().optional()
|
|
13032
|
+
maxWidth: number().int().positive().optional(),
|
|
13033
|
+
/**
|
|
13034
|
+
* When `true`, the runner encodes the resolved crop to JPEG ON THE
|
|
13035
|
+
* OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
|
|
13036
|
+
* Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
|
|
13037
|
+
* agent) so the compressed payload fits Moleculer's `maxPacketSize` and
|
|
13038
|
+
* no raw pixels cross the process boundary. Same-node callers omit it
|
|
13039
|
+
* and keep the zero-copy raw `bytes` path. Additive + optional: a
|
|
13040
|
+
* pre-encode runner (version skew) ignores it and returns `bytes`, so
|
|
13041
|
+
* the caller falls back to encoding locally.
|
|
13042
|
+
*/
|
|
13043
|
+
encodeJpeg: boolean().optional()
|
|
12993
13044
|
}), NativeCropResultSchema.nullable()), method(object({
|
|
12994
13045
|
deviceId: number(),
|
|
12995
13046
|
frameHandle: FrameHandleSchema.optional(),
|
|
@@ -19526,7 +19577,8 @@ var MediaFileKindEnum = _enum([
|
|
|
19526
19577
|
"faceCrop",
|
|
19527
19578
|
"plateCrop",
|
|
19528
19579
|
"keyFrame",
|
|
19529
|
-
"keyFrameSmall"
|
|
19580
|
+
"keyFrameSmall",
|
|
19581
|
+
"thumbnailSmall"
|
|
19530
19582
|
]);
|
|
19531
19583
|
var MediaFileSchema = object({
|
|
19532
19584
|
key: string(),
|
|
@@ -19857,7 +19909,16 @@ var PipelineTemplateSchema = object({
|
|
|
19857
19909
|
});
|
|
19858
19910
|
var DeviceStepConfigSchema = object({
|
|
19859
19911
|
modelId: string().optional(),
|
|
19860
|
-
settings: record(string(), unknown()).optional()
|
|
19912
|
+
settings: record(string(), unknown()).optional(),
|
|
19913
|
+
/**
|
|
19914
|
+
* Step-tree device jump (same-node, phase 1) — OPTIONAL manual override.
|
|
19915
|
+
* When set, this step runs on the named enabled device of the SAME node
|
|
19916
|
+
* (`<backend>:<device>`) instead of the camera's elected device, bypassing
|
|
19917
|
+
* the runtime AUTO-jump. The orchestrator rejects a `jumpDeviceKey` pointing
|
|
19918
|
+
* at a disabled/absent device on that node at save time. Absent ⇒ the runner
|
|
19919
|
+
* auto-jumps only when the effective device's format cannot run the step.
|
|
19920
|
+
*/
|
|
19921
|
+
jumpDeviceKey: string().optional()
|
|
19861
19922
|
});
|
|
19862
19923
|
var AgentPipelineSettingsSchema = object({
|
|
19863
19924
|
maxCameras: number().int().nonnegative().nullable().default(null),
|
package/dist/addon.mjs
CHANGED
|
@@ -12331,7 +12331,8 @@ var PipelineStepInputSchema = lazy(() => object({
|
|
|
12331
12331
|
modelId: string().optional(),
|
|
12332
12332
|
enabled: boolean().default(true),
|
|
12333
12333
|
children: array(PipelineStepInputSchema).optional(),
|
|
12334
|
-
settings: record(string(), unknown()).optional()
|
|
12334
|
+
settings: record(string(), unknown()).optional(),
|
|
12335
|
+
jumpDeviceKey: string().optional()
|
|
12335
12336
|
}));
|
|
12336
12337
|
var ModelSubstitutionSchema = object({
|
|
12337
12338
|
addonId: string(),
|
|
@@ -12670,8 +12671,24 @@ var NativeCropBboxSchema = object({
|
|
|
12670
12671
|
});
|
|
12671
12672
|
/** Result of a best-effort native-resolution crop (`getNativeCrop`). */
|
|
12672
12673
|
var NativeCropResultSchema = object({
|
|
12673
|
-
/**
|
|
12674
|
-
|
|
12674
|
+
/**
|
|
12675
|
+
* Packed rgb (24-bit) pixels of the crop. Present on the DEFAULT (raw) path —
|
|
12676
|
+
* same-node (in-process / UDS) callers get zero-copy RGB and encode locally.
|
|
12677
|
+
* OMITTED when the caller requested `encodeJpeg` (the cross-node compressed
|
|
12678
|
+
* path below), where shipping raw RGB is both an invariant violation and, for
|
|
12679
|
+
* a native full frame (~26 MB at 4K), larger than Moleculer's 10 MB
|
|
12680
|
+
* `maxPacketSize` → the packet is dropped and the call 60s-times-out. That is
|
|
12681
|
+
* the cross-node native-media miss: `bytes` is replaced by `jpeg`.
|
|
12682
|
+
*/
|
|
12683
|
+
bytes: _instanceof(Uint8Array).optional(),
|
|
12684
|
+
/**
|
|
12685
|
+
* Base64 JPEG of the crop — the COMPRESSED cross-node payload. The OWNING node
|
|
12686
|
+
* (which holds the native surface) encodes it in-process, so a native 4K frame
|
|
12687
|
+
* ships as ~0.5–2 MB (well under `maxPacketSize`) and NO raw pixels ever cross
|
|
12688
|
+
* a process boundary (CLAUDE.md invariant #21). Present ONLY when the request
|
|
12689
|
+
* set `encodeJpeg: true`; `bytes` is then absent.
|
|
12690
|
+
*/
|
|
12691
|
+
jpeg: string().optional(),
|
|
12675
12692
|
width: number().int().positive(),
|
|
12676
12693
|
height: number().int().positive(),
|
|
12677
12694
|
/**
|
|
@@ -12817,6 +12834,20 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
12817
12834
|
hubHostnameOverride: string().optional()
|
|
12818
12835
|
})]).describe("Per-camera frame-source mode for the runner (P2c)");
|
|
12819
12836
|
/**
|
|
12837
|
+
* One ENABLED inference device on the runner's node, as the step-tree
|
|
12838
|
+
* device-jump resolver sees it (phase 1). The orchestrator populates this
|
|
12839
|
+
* roster on the attach payload whenever the camera is elected onto a specific
|
|
12840
|
+
* `deviceKey` and the node has ≥2 enabled devices — it is the candidate set the
|
|
12841
|
+
* runner auto-jumps an enrichment step to when the elected device's format
|
|
12842
|
+
* cannot run that step's model. `weight`/`maxSessions` mirror the balancer's
|
|
12843
|
+
* per-device knobs so the auto choice is weighted-least-loaded.
|
|
12844
|
+
*/
|
|
12845
|
+
var RunnerInferenceDeviceSchema = object({
|
|
12846
|
+
deviceKey: string(),
|
|
12847
|
+
weight: number().positive().default(1),
|
|
12848
|
+
maxSessions: number().int().positive().nullable().default(null)
|
|
12849
|
+
});
|
|
12850
|
+
/**
|
|
12820
12851
|
* Camera assignment payload sent by `addon-pipeline-orchestrator` to a
|
|
12821
12852
|
* specific runner instance via `attachCamera`. Carries everything the
|
|
12822
12853
|
* runner needs to subscribe to the local broker and execute inference.
|
|
@@ -12934,7 +12965,16 @@ var RunnerCameraConfigSchema = object({
|
|
|
12934
12965
|
* omitted ⇒ the runner's default device. The engine itself stays node-local —
|
|
12935
12966
|
* this only selects WHICH device pool of that node runs the session.
|
|
12936
12967
|
*/
|
|
12937
|
-
deviceKey: string().optional()
|
|
12968
|
+
deviceKey: string().optional(),
|
|
12969
|
+
/**
|
|
12970
|
+
* Step-tree device-jump roster (phase 1): the node's ENABLED inference
|
|
12971
|
+
* devices, populated by the orchestrator ONLY when `deviceKey` is set and the
|
|
12972
|
+
* node has ≥2 enabled devices. The runner uses it to AUTO-jump an enrichment
|
|
12973
|
+
* step whose model has no build for the elected device's format onto another
|
|
12974
|
+
* enabled device of the SAME node (weighted-least-loaded). Absent/single-entry
|
|
12975
|
+
* ⇒ no jump possible; the step runs on `deviceKey`.
|
|
12976
|
+
*/
|
|
12977
|
+
inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
|
|
12938
12978
|
});
|
|
12939
12979
|
motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
|
|
12940
12980
|
/**
|
|
@@ -12990,7 +13030,18 @@ var RunnerLocalMetricsSchema = object({
|
|
|
12990
13030
|
method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number()).readonly()), method(object({
|
|
12991
13031
|
handle: FrameHandleSchema,
|
|
12992
13032
|
bbox: NativeCropBboxSchema,
|
|
12993
|
-
maxWidth: number().int().positive().optional()
|
|
13033
|
+
maxWidth: number().int().positive().optional(),
|
|
13034
|
+
/**
|
|
13035
|
+
* When `true`, the runner encodes the resolved crop to JPEG ON THE
|
|
13036
|
+
* OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
|
|
13037
|
+
* Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
|
|
13038
|
+
* agent) so the compressed payload fits Moleculer's `maxPacketSize` and
|
|
13039
|
+
* no raw pixels cross the process boundary. Same-node callers omit it
|
|
13040
|
+
* and keep the zero-copy raw `bytes` path. Additive + optional: a
|
|
13041
|
+
* pre-encode runner (version skew) ignores it and returns `bytes`, so
|
|
13042
|
+
* the caller falls back to encoding locally.
|
|
13043
|
+
*/
|
|
13044
|
+
encodeJpeg: boolean().optional()
|
|
12994
13045
|
}), NativeCropResultSchema.nullable()), method(object({
|
|
12995
13046
|
deviceId: number(),
|
|
12996
13047
|
frameHandle: FrameHandleSchema.optional(),
|
|
@@ -19527,7 +19578,8 @@ var MediaFileKindEnum = _enum([
|
|
|
19527
19578
|
"faceCrop",
|
|
19528
19579
|
"plateCrop",
|
|
19529
19580
|
"keyFrame",
|
|
19530
|
-
"keyFrameSmall"
|
|
19581
|
+
"keyFrameSmall",
|
|
19582
|
+
"thumbnailSmall"
|
|
19531
19583
|
]);
|
|
19532
19584
|
var MediaFileSchema = object({
|
|
19533
19585
|
key: string(),
|
|
@@ -19858,7 +19910,16 @@ var PipelineTemplateSchema = object({
|
|
|
19858
19910
|
});
|
|
19859
19911
|
var DeviceStepConfigSchema = object({
|
|
19860
19912
|
modelId: string().optional(),
|
|
19861
|
-
settings: record(string(), unknown()).optional()
|
|
19913
|
+
settings: record(string(), unknown()).optional(),
|
|
19914
|
+
/**
|
|
19915
|
+
* Step-tree device jump (same-node, phase 1) — OPTIONAL manual override.
|
|
19916
|
+
* When set, this step runs on the named enabled device of the SAME node
|
|
19917
|
+
* (`<backend>:<device>`) instead of the camera's elected device, bypassing
|
|
19918
|
+
* the runtime AUTO-jump. The orchestrator rejects a `jumpDeviceKey` pointing
|
|
19919
|
+
* at a disabled/absent device on that node at save time. Absent ⇒ the runner
|
|
19920
|
+
* auto-jumps only when the effective device's format cannot run the step.
|
|
19921
|
+
*/
|
|
19922
|
+
jumpDeviceKey: string().optional()
|
|
19862
19923
|
});
|
|
19863
19924
|
var AgentPipelineSettingsSchema = object({
|
|
19864
19925
|
maxCameras: number().int().nonnegative().nullable().default(null),
|
package/package.json
CHANGED