@camstack/addon-agent-ui 1.2.160 → 1.2.161
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 +153 -89
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
2
|
import { fileURLToPath } from "node:url";
|
|
3
|
-
//#region ../types/dist/event-category-
|
|
3
|
+
//#region ../types/dist/event-category-BGmz_oxW.mjs
|
|
4
4
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
5
5
|
EventCategory["SystemBoot"] = "system.boot";
|
|
6
6
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -533,6 +533,15 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
533
533
|
*/
|
|
534
534
|
EventCategory["PipelineAudioInferenceResult"] = "pipeline.audio-inference-result";
|
|
535
535
|
EventCategory["DetectionPhaseTransition"] = "detection.phase-transition";
|
|
536
|
+
/**
|
|
537
|
+
* A camera provider's RAW onboard motion push (D673): the `MotionOnMotionChanged`
|
|
538
|
+
* data shape without `triggeredBy`, built by `providerMotionEvent`. Its one
|
|
539
|
+
* consumer is the orchestrator's camera-sensors bridge, which re-emits the
|
|
540
|
+
* camera's EFFECTIVE onboard motion as `MotionOnMotionChanged` (a pass-through
|
|
541
|
+
* for a camera with no attached sensor). Providers must not emit
|
|
542
|
+
* `MotionOnMotionChanged` themselves; `scripts/check-onboard-motion-emitters.ts`
|
|
543
|
+
* keeps it so (camera-grid is a named, deferred exception).
|
|
544
|
+
*/
|
|
536
545
|
EventCategory["ProviderMotion"] = "provider.motion";
|
|
537
546
|
EventCategory["ProviderDetection"] = "provider.detection";
|
|
538
547
|
EventCategory["EnrichmentEmbeddingStored"] = "enrichment.embedding.stored";
|
|
@@ -5371,7 +5380,7 @@ var ZodIssueCode = {
|
|
|
5371
5380
|
var ZodFirstPartyTypeKind;
|
|
5372
5381
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5373
5382
|
//#endregion
|
|
5374
|
-
//#region ../types/dist/sleep-
|
|
5383
|
+
//#region ../types/dist/sleep-CDCONfkt.mjs
|
|
5375
5384
|
/**
|
|
5376
5385
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5377
5386
|
* window to float samples (D455).
|
|
@@ -7418,7 +7427,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
7418
7427
|
return DeviceRole;
|
|
7419
7428
|
}({});
|
|
7420
7429
|
//#endregion
|
|
7421
|
-
//#region ../types/dist/composition-
|
|
7430
|
+
//#region ../types/dist/composition-43aqsZQj.mjs
|
|
7422
7431
|
/**
|
|
7423
7432
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
7424
7433
|
*
|
|
@@ -7475,13 +7484,12 @@ portable("linux64"), portable("linuxarm64"), portable("macarm64"), portable("mac
|
|
|
7475
7484
|
* LA tabella "quale booleano di questo tipo di device conta come ALTO", e il
|
|
7476
7485
|
* valutatore puro del suo FRONTE.
|
|
7477
7486
|
*
|
|
7478
|
-
*
|
|
7479
|
-
*
|
|
7480
|
-
*
|
|
7481
|
-
*
|
|
7482
|
-
*
|
|
7483
|
-
* fa suonare il campanello ma non registra" — è esattamente D62.
|
|
7484
|
-
* SPOSTA qui e il doorbell la ri-esporta.
|
|
7487
|
+
* UNA tabella per tutti quelli che chiedono "questo device è ALTO?": il
|
|
7488
|
+
* trigger `RecordingTriggers.sensorDeviceIds` del recorder, i marker dei
|
|
7489
|
+
* sensori della post-analysis, il bridge camera-sensors dell'orchestratore e
|
|
7490
|
+
* le sorgenti di un campanello composto (`doorbellFeatureSources`, D671).
|
|
7491
|
+
* Una seconda copia divergerebbe alla prima cap aggiunta, e il sintomo — "il
|
|
7492
|
+
* sensore fa suonare il campanello ma non registra" — è esattamente D62.
|
|
7485
7493
|
*
|
|
7486
7494
|
* ⚠ NON è `DEVICE_STATE_READERS` (`catalogs/device-state-vocabulary.ts`), e le
|
|
7487
7495
|
* due non vanno unificate: quella risponde a "qual è la PAROLA di stato per una
|
|
@@ -9216,7 +9224,7 @@ var RecordingTriggersSchema = object({
|
|
|
9216
9224
|
*
|
|
9217
9225
|
* Cosa vuol dire "alto" dipende dal TIPO di device e non è deciso qui:
|
|
9218
9226
|
* `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) è LA tabella,
|
|
9219
|
-
* la stessa
|
|
9227
|
+
* la stessa del campanello composto (D671). Ed è il FRONTE, non
|
|
9220
9228
|
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
9221
9229
|
* registrare.
|
|
9222
9230
|
*/
|
|
@@ -15302,28 +15310,10 @@ method(object({
|
|
|
15302
15310
|
deviceIds: array(number()).readonly(),
|
|
15303
15311
|
caps: array(string()).readonly().optional()
|
|
15304
15312
|
}), record(string(), record(string(), unknown().nullable())));
|
|
15305
|
-
|
|
15306
|
-
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
15307
|
-
lastPressedAt: number().nullable(),
|
|
15308
|
-
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
15309
|
-
pressCountSinceStart: number()
|
|
15310
|
-
});
|
|
15311
|
-
object({
|
|
15312
|
-
deviceId: number(),
|
|
15313
|
-
timestamp: number()
|
|
15314
|
-
});
|
|
15315
|
-
/**
|
|
15316
|
-
* The `doorbell-source` extension slot's editable value (D648): the camera's
|
|
15317
|
-
* virtual-doorbell trigger devices, exactly what the wrapper's
|
|
15318
|
-
* `doorbellSources` persists (as `{ deviceId }` records).
|
|
15319
|
-
*/
|
|
15320
|
-
var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
|
|
15313
|
+
var ExtensionSlotIdSchema = _enum(["linked-devices"]);
|
|
15321
15314
|
DeviceType.Camera;
|
|
15322
|
-
DeviceType.Button, DeviceType.Camera;
|
|
15323
|
-
var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
|
|
15324
|
-
DeviceType.Camera, DeviceType.Camera;
|
|
15325
15315
|
/** A slot's editable value, discriminated on `slot`. */
|
|
15326
|
-
var ExtensionSlotValueSchema = discriminatedUnion("slot", [
|
|
15316
|
+
var ExtensionSlotValueSchema = discriminatedUnion("slot", [LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
|
|
15327
15317
|
DeviceType.Camera;
|
|
15328
15318
|
var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
|
|
15329
15319
|
state: literal("unreachable"),
|
|
@@ -15360,10 +15350,11 @@ var ExtensionSlotSourceSchema = object({
|
|
|
15360
15350
|
});
|
|
15361
15351
|
/**
|
|
15362
15352
|
* A DIFFERENT authority that gates whether the slot's sources do anything —
|
|
15363
|
-
* reported read-only, named, never written through this contract (D62).
|
|
15364
|
-
*
|
|
15365
|
-
*
|
|
15366
|
-
* `unknown` means the gate could
|
|
15353
|
+
* reported read-only, named, never written through this contract (D62) — e.g.
|
|
15354
|
+
* a slot whose sources act only while a wrapper is bound to the host, a
|
|
15355
|
+
* binding that belongs to `deviceManager.setWrapperActive`. No slot reports
|
|
15356
|
+
* one today (`linked-devices` answers `null`). `unknown` means the gate could
|
|
15357
|
+
* not be read; it is not "inactive" (D315).
|
|
15367
15358
|
*/
|
|
15368
15359
|
var ExtensionSlotActivationSchema = object({
|
|
15369
15360
|
state: _enum([
|
|
@@ -15379,7 +15370,7 @@ var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
|
|
|
15379
15370
|
/** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
|
|
15380
15371
|
slotRef: string(),
|
|
15381
15372
|
slot: ExtensionSlotIdSchema,
|
|
15382
|
-
/** Names the store written (D62), e.g. `
|
|
15373
|
+
/** Names the store written (D62), e.g. `device-manager:_linkedDeviceIds`. */
|
|
15383
15374
|
authority: string(),
|
|
15384
15375
|
activation: ExtensionSlotActivationSchema.nullable(),
|
|
15385
15376
|
value: ExtensionSlotValueSchema,
|
|
@@ -20463,12 +20454,26 @@ var CameraSensorRefSchema = object({
|
|
|
20463
20454
|
function cameraSensorRefKey(ref) {
|
|
20464
20455
|
return `${ref.addonId}/${ref.stableId}`;
|
|
20465
20456
|
}
|
|
20466
|
-
/**
|
|
20467
|
-
|
|
20468
|
-
|
|
20469
|
-
|
|
20470
|
-
|
|
20471
|
-
|
|
20457
|
+
/**
|
|
20458
|
+
* A sensor's mode (D673). `in-addition`: its motion is the camera's motion too.
|
|
20459
|
+
* `replace`: its motion is the camera's, and while one is READY the camera's
|
|
20460
|
+
* own motion no longer counts on its own. `confirm`: while one is READY the
|
|
20461
|
+
* camera's own motion counts only while a confirm sensor is active — with or
|
|
20462
|
+
* without a replace sensor (spec C2, the controller's ruling on Q1).
|
|
20463
|
+
*/
|
|
20464
|
+
var CameraSensorModeSchema = _enum([
|
|
20465
|
+
"in-addition",
|
|
20466
|
+
"confirm",
|
|
20467
|
+
"replace"
|
|
20468
|
+
]);
|
|
20469
|
+
/** A stored sensor with no mode — every CS-1 row — is in addition. */
|
|
20470
|
+
var DEFAULT_CAMERA_SENSOR_MODE = "in-addition";
|
|
20471
|
+
/**
|
|
20472
|
+
* A camera's attached sensors. A CS-1 row carried an envelope
|
|
20473
|
+
* `mode: 'in-addition'`: `z.object` drops it on parse, and the PARSED value is
|
|
20474
|
+
* what the write stores (D672 rule 3), so it is never written again.
|
|
20475
|
+
*/
|
|
20476
|
+
var CameraSensorsConfigSchema = object({ sensors: array(CameraSensorRefSchema.extend({ mode: CameraSensorModeSchema.default(DEFAULT_CAMERA_SENSOR_MODE) })).min(1).max(8) }).superRefine((value, ctx) => {
|
|
20472
20477
|
const seen = /* @__PURE__ */ new Set();
|
|
20473
20478
|
value.sensors.forEach((ref, index) => {
|
|
20474
20479
|
const key = cameraSensorRefKey(ref);
|
|
@@ -20480,39 +20485,41 @@ var CameraSensorsConfigSchema = object({
|
|
|
20480
20485
|
seen.add(key);
|
|
20481
20486
|
});
|
|
20482
20487
|
});
|
|
20483
|
-
|
|
20488
|
+
/** Every attachment names its mode; an older orchestrator that does not is in addition. */
|
|
20489
|
+
var AttachmentFields = {
|
|
20484
20490
|
addonId: string(),
|
|
20485
|
-
stableId: string()
|
|
20491
|
+
stableId: string(),
|
|
20492
|
+
mode: CameraSensorModeSchema.default(DEFAULT_CAMERA_SENSOR_MODE)
|
|
20486
20493
|
};
|
|
20487
20494
|
var CameraSensorAttachmentSchema = discriminatedUnion("state", [
|
|
20488
20495
|
object({
|
|
20489
|
-
...
|
|
20496
|
+
...AttachmentFields,
|
|
20490
20497
|
state: literal("ready"),
|
|
20491
20498
|
deviceId: number(),
|
|
20492
20499
|
name: string(),
|
|
20493
20500
|
caps: array(string()).readonly()
|
|
20494
20501
|
}),
|
|
20495
20502
|
object({
|
|
20496
|
-
...
|
|
20503
|
+
...AttachmentFields,
|
|
20497
20504
|
state: literal("offline"),
|
|
20498
20505
|
deviceId: number(),
|
|
20499
20506
|
name: string(),
|
|
20500
20507
|
reason: _enum(["offline", "disabled"])
|
|
20501
20508
|
}),
|
|
20502
20509
|
object({
|
|
20503
|
-
...
|
|
20510
|
+
...AttachmentFields,
|
|
20504
20511
|
state: literal("missing"),
|
|
20505
20512
|
reason: string()
|
|
20506
20513
|
}),
|
|
20507
20514
|
object({
|
|
20508
|
-
...
|
|
20515
|
+
...AttachmentFields,
|
|
20509
20516
|
state: literal("unsupported"),
|
|
20510
20517
|
deviceId: number(),
|
|
20511
20518
|
name: string(),
|
|
20512
20519
|
reason: string()
|
|
20513
20520
|
}),
|
|
20514
20521
|
object({
|
|
20515
|
-
...
|
|
20522
|
+
...AttachmentFields,
|
|
20516
20523
|
state: literal("unreadable"),
|
|
20517
20524
|
reason: string()
|
|
20518
20525
|
})
|
|
@@ -20525,17 +20532,49 @@ var CameraSensorAttachmentSchema = discriminatedUnion("state", [
|
|
|
20525
20532
|
* say.
|
|
20526
20533
|
*/
|
|
20527
20534
|
var CameraSensorsNotForwardedSchema = _enum(["onboard-not-listed", "no-active-detection"]);
|
|
20535
|
+
/** Whether the camera's OWN motion counts on its own (D673 C2), from its READY sensors (C3). */
|
|
20536
|
+
var CameraOwnMotionSchema = _enum([
|
|
20537
|
+
"always",
|
|
20538
|
+
"when-confirmed",
|
|
20539
|
+
"never"
|
|
20540
|
+
]);
|
|
20541
|
+
/** Confirm / Replace cannot suppress this camera's motion: its provider still emits it directly (D673 C13). */
|
|
20542
|
+
var CameraSensorsNotEnforcedSchema = _enum(["provider-not-split"]);
|
|
20543
|
+
/**
|
|
20544
|
+
* The camera's OWN onboard motion (D696): the raw input the bridge combines,
|
|
20545
|
+
* never the effective value. The camera's `motion` slice is the effective one,
|
|
20546
|
+
* so a view of the camera's own row reads this.
|
|
20547
|
+
* - `atMs`: when the bridge received the camera's last own edge.
|
|
20548
|
+
* - `detected`: evaluated WHEN THE STATUS IS ASKED — the last edge said `true`
|
|
20549
|
+
* AND it is younger than the window the bridge counts the camera's own motion
|
|
20550
|
+
* for (`motionCooldownMs`, floored at two sustain ticks). A camera that never
|
|
20551
|
+
* sends a clear (heartbeats only) therefore reads `false` once no push came
|
|
20552
|
+
* within the window; a status read is a snapshot, so a live view re-asks.
|
|
20553
|
+
* Absent = this orchestrator has not received the camera's own motion since it
|
|
20554
|
+
* started (unknown, never "quiet"), or an orchestrator older than D696.
|
|
20555
|
+
*/
|
|
20556
|
+
var CameraRawLevelSchema = object({
|
|
20557
|
+
detected: boolean(),
|
|
20558
|
+
atMs: number()
|
|
20559
|
+
});
|
|
20528
20560
|
var CameraSensorsStatusSchema = discriminatedUnion("state", [
|
|
20529
|
-
object({
|
|
20561
|
+
object({
|
|
20562
|
+
state: literal("not-configured"),
|
|
20563
|
+
cameraLevel: CameraRawLevelSchema.optional()
|
|
20564
|
+
}),
|
|
20530
20565
|
object({
|
|
20531
20566
|
state: literal("unreadable"),
|
|
20532
|
-
reason: string()
|
|
20567
|
+
reason: string(),
|
|
20568
|
+
cameraLevel: CameraRawLevelSchema.optional()
|
|
20533
20569
|
}),
|
|
20534
20570
|
object({
|
|
20535
20571
|
state: literal("configured"),
|
|
20536
|
-
|
|
20572
|
+
cameraLevel: CameraRawLevelSchema.optional(),
|
|
20537
20573
|
sensors: array(CameraSensorAttachmentSchema).readonly(),
|
|
20538
|
-
|
|
20574
|
+
/** Absent = an orchestrator older than CS-2: it does not say (D315). */
|
|
20575
|
+
cameraMotion: CameraOwnMotionSchema.optional(),
|
|
20576
|
+
notForwarded: CameraSensorsNotForwardedSchema.optional(),
|
|
20577
|
+
notEnforced: CameraSensorsNotEnforcedSchema.optional()
|
|
20539
20578
|
})
|
|
20540
20579
|
]);
|
|
20541
20580
|
Object.freeze({
|
|
@@ -23726,8 +23765,10 @@ var RunnerCameraConfigSchema = object({
|
|
|
23726
23765
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
23727
23766
|
* analyzer providers) running on decoded frames in this runner.
|
|
23728
23767
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
23729
|
-
* analytics). The provider emits ProviderMotion
|
|
23730
|
-
*
|
|
23768
|
+
* analytics). The provider emits its raw push as `ProviderMotion`
|
|
23769
|
+
* (D673); the orchestrator's camera-sensors bridge re-emits the camera's
|
|
23770
|
+
* effective motion as `MotionOnMotionChanged`, which is what reaches
|
|
23771
|
+
* `reportMotion`.
|
|
23731
23772
|
*/
|
|
23732
23773
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
23733
23774
|
/**
|
|
@@ -23904,7 +23945,15 @@ var RunnerLocalLoadSchema = object({
|
|
|
23904
23945
|
hasGpu: boolean(),
|
|
23905
23946
|
inferenceBackend: string().optional(),
|
|
23906
23947
|
cpuCores: number().optional()
|
|
23907
|
-
})
|
|
23948
|
+
}),
|
|
23949
|
+
/**
|
|
23950
|
+
* Who writes a camera's `motion` runtime slice (D696). `'orchestrator'`: this
|
|
23951
|
+
* runner never writes it. ABSENT = a runner older than D696, which still
|
|
23952
|
+
* writes the slice from its phase machine; the orchestrator does not write
|
|
23953
|
+
* while any runner node is absent-or-unanswered, so one slice never has two
|
|
23954
|
+
* writers.
|
|
23955
|
+
*/
|
|
23956
|
+
motionSliceWriter: literal("orchestrator").optional()
|
|
23908
23957
|
});
|
|
23909
23958
|
/**
|
|
23910
23959
|
* Aggregate runtime metrics for the runner's whole local pool. Mirrors the
|
|
@@ -28745,6 +28794,17 @@ object({
|
|
|
28745
28794
|
deviceId: number(),
|
|
28746
28795
|
status: DeviceStatusSchema
|
|
28747
28796
|
});
|
|
28797
|
+
object({
|
|
28798
|
+
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
28799
|
+
lastPressedAt: number().nullable(),
|
|
28800
|
+
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
28801
|
+
pressCountSinceStart: number()
|
|
28802
|
+
});
|
|
28803
|
+
object({
|
|
28804
|
+
deviceId: number(),
|
|
28805
|
+
timestamp: number()
|
|
28806
|
+
});
|
|
28807
|
+
DeviceType.Button, DeviceType.Camera;
|
|
28748
28808
|
/**
|
|
28749
28809
|
* Enum-state sensor — a string value picked from a finite option set.
|
|
28750
28810
|
* Drives HA `sensor` entries with `state_class: enum` (HVAC action
|
|
@@ -30389,9 +30449,9 @@ object({
|
|
|
30389
30449
|
/** Ms epoch of the last detected-true observation. Null if never detected. */
|
|
30390
30450
|
lastDetectedAt: number().nullable(),
|
|
30391
30451
|
/**
|
|
30392
|
-
* `MOTION_CLOSE_AFTER_MS` while `detected: true` on a `Camera` device
|
|
30393
|
-
* `null` while false and on every `Sensor`
|
|
30394
|
-
* constant's doc for the one-authority rule.
|
|
30452
|
+
* `MOTION_CLOSE_AFTER_MS` while `detected: true` on a `Camera` device (the
|
|
30453
|
+
* orchestrator writes it, D696), `null` while false and on every `Sensor`
|
|
30454
|
+
* device (D475) — see that constant's doc for the one-authority rule.
|
|
30395
30455
|
*
|
|
30396
30456
|
* ## Reading this field still arms nothing
|
|
30397
30457
|
*
|
|
@@ -30409,38 +30469,41 @@ object({
|
|
|
30409
30469
|
* `addon-export-alexa/src/motion-clear-hold.ts` and
|
|
30410
30470
|
* `addon-export-hap`'s `RESET_DEBOUNCE_MS` both do.
|
|
30411
30471
|
*
|
|
30412
|
-
* ## Who writes it
|
|
30413
|
-
*
|
|
30414
|
-
* - **Cameras** — the
|
|
30415
|
-
*
|
|
30416
|
-
* `
|
|
30417
|
-
* `
|
|
30418
|
-
*
|
|
30419
|
-
*
|
|
30420
|
-
* a
|
|
30421
|
-
*
|
|
30422
|
-
*
|
|
30423
|
-
*
|
|
30424
|
-
*
|
|
30425
|
-
*
|
|
30426
|
-
*
|
|
30427
|
-
*
|
|
30428
|
-
*
|
|
30429
|
-
*
|
|
30430
|
-
* `
|
|
30431
|
-
*
|
|
30432
|
-
*
|
|
30433
|
-
*
|
|
30434
|
-
*
|
|
30435
|
-
*
|
|
30436
|
-
*
|
|
30437
|
-
* This predates D475 and is not fixed there: the fix touches every
|
|
30438
|
-
* camera provider. Recorded in D475's Consequences. Do not restore the
|
|
30439
|
-
* "sole writer" wording without also removing the other writers.
|
|
30472
|
+
* ## Who writes it (D696)
|
|
30473
|
+
*
|
|
30474
|
+
* - **Cameras** — the orchestrator, and nothing else. It writes the camera's
|
|
30475
|
+
* EFFECTIVE motion (`addon-pipeline-orchestrator`
|
|
30476
|
+
* `camera-sensors/motion-slice.ts`), alongside the effective
|
|
30477
|
+
* `MotionOnMotionChanged` it emits or receives: the camera-sensors bridge
|
|
30478
|
+
* for a split camera, an unsplit emitter's direct event, the analyzer and
|
|
30479
|
+
* device activity, as the camera's `motionSources` counts them. A source
|
|
30480
|
+
* that never sends a clear falls one window after its last `true`.
|
|
30481
|
+
* `lastDetectedAt` moves only on an effective rise. No camera provider
|
|
30482
|
+
* writes this slice (not even a boot seed), and neither does the runner's
|
|
30483
|
+
* phase machine: its phase is "a session is attached" for every on-motion
|
|
30484
|
+
* session, not motion, and it now has its own `DetectionPhaseTransition`.
|
|
30485
|
+
* A provider's `isDetected` answers from the hub's slice.
|
|
30486
|
+
* - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
|
|
30487
|
+
* imports) — the provider pushes both edges itself, from the upstream
|
|
30488
|
+
* system's own state change. That is the sensor's own fact.
|
|
30489
|
+
*
|
|
30490
|
+
* `scripts/check-onboard-motion-emitters.ts` refuses any other writer of a
|
|
30491
|
+
* `motion` slice; each sensor writer is a named exemption.
|
|
30492
|
+
*
|
|
30493
|
+
* This replaces the D475 §4 rule ("the phase machine is the sole writer").
|
|
30494
|
+
* That rule was never true: Hikvision and Amcrest wrote the slice raw beside
|
|
30495
|
+
* it, every provider seeded it at boot, and every session left it
|
|
30496
|
+
* `detected: true` after its detach.
|
|
30440
30497
|
*/
|
|
30441
30498
|
autoClearAfterMs: number().nullable()
|
|
30442
30499
|
});
|
|
30443
|
-
|
|
30500
|
+
/**
|
|
30501
|
+
* Payload of `motion.onMotionChanged` event + the corresponding bus
|
|
30502
|
+
* event `EventCategory.MotionOnMotionChanged`. Single source of truth
|
|
30503
|
+
* — both the cap event surface and the bus payload type alias to this
|
|
30504
|
+
* schema.
|
|
30505
|
+
*/
|
|
30506
|
+
var MotionOnMotionChangedDataSchema = object({
|
|
30444
30507
|
deviceId: number(),
|
|
30445
30508
|
detected: boolean(),
|
|
30446
30509
|
timestamp: number(),
|
|
@@ -46917,6 +46980,7 @@ TimelapseRuleInputSchema.extend({
|
|
|
46917
46980
|
createdAt: number(),
|
|
46918
46981
|
updatedAt: number()
|
|
46919
46982
|
});
|
|
46983
|
+
MotionOnMotionChangedDataSchema.omit({ triggeredBy: true });
|
|
46920
46984
|
object({
|
|
46921
46985
|
/**
|
|
46922
46986
|
* Fraction of the box's own size added on EACH side before cutting.
|
|
@@ -47120,7 +47184,7 @@ var AgentUIAddon = class extends BaseAddon {
|
|
|
47120
47184
|
capability: adminUiCapability,
|
|
47121
47185
|
provider: {
|
|
47122
47186
|
getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
|
|
47123
|
-
getVersion: async () => ({ version: "1.2.
|
|
47187
|
+
getVersion: async () => ({ version: "1.2.161" })
|
|
47124
47188
|
}
|
|
47125
47189
|
}];
|
|
47126
47190
|
}
|