@camstack/addon-provider-hikvision 1.2.18 → 1.2.20
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 +732 -77
- package/dist/addon.mjs +732 -77
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -10927,7 +10927,14 @@ var cameraStreamsCapability = {
|
|
|
10927
10927
|
low: string().optional()
|
|
10928
10928
|
}),
|
|
10929
10929
|
lastChangedAt: number()
|
|
10930
|
-
})
|
|
10930
|
+
}),
|
|
10931
|
+
/**
|
|
10932
|
+
* Runtime-state durability: **session** — a restored `slotStatuses: streaming` for a camera that has been dark for two hours is a lie the UI renders as truth.
|
|
10933
|
+
*
|
|
10934
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
10935
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
10936
|
+
*/
|
|
10937
|
+
durability: "session"
|
|
10931
10938
|
};
|
|
10932
10939
|
/** Where a block runs. The operator chooses — a block driving a device on an
|
|
10933
10940
|
* agent is the reason placement is not fixed to the hub. */
|
|
@@ -11500,6 +11507,13 @@ var deviceDiscoveryCapability = {
|
|
|
11500
11507
|
kind: "poll"
|
|
11501
11508
|
},
|
|
11502
11509
|
runtimeState: DeviceDiscoveryStatusSchema.extend({ lastFetchedAt: number().int().nonnegative() }),
|
|
11510
|
+
/**
|
|
11511
|
+
* Runtime-state durability: **session** — 5.7 KB of scan output on the largest device, fully re-derivable by re-scanning.
|
|
11512
|
+
*
|
|
11513
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
11514
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
11515
|
+
*/
|
|
11516
|
+
durability: "session",
|
|
11503
11517
|
methods: {
|
|
11504
11518
|
/**
|
|
11505
11519
|
* Snapshot of the current `discovered` list. Returns the
|
|
@@ -13369,11 +13383,33 @@ var NotificationFormatSchema = _enum([
|
|
|
13369
13383
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
13370
13384
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
13371
13385
|
* differently.
|
|
13386
|
+
*
|
|
13387
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
13388
|
+
*
|
|
13389
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
13390
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
13391
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
13392
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
13393
|
+
* decides its glyph, which is the only place that decision can be made
|
|
13394
|
+
* honestly.
|
|
13395
|
+
*
|
|
13396
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
13397
|
+
* `disarm` straight through; iOS feeds that string to
|
|
13398
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
13399
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
13400
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
13401
|
+
*
|
|
13402
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
13403
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
13404
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
13405
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
13406
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
13372
13407
|
*/
|
|
13373
13408
|
var NotificationActionIconSchema = _enum([
|
|
13374
13409
|
"acknowledge",
|
|
13375
13410
|
"dismiss",
|
|
13376
13411
|
"silence",
|
|
13412
|
+
"snooze",
|
|
13377
13413
|
"view",
|
|
13378
13414
|
"play",
|
|
13379
13415
|
"open",
|
|
@@ -13381,9 +13417,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
13381
13417
|
"lock",
|
|
13382
13418
|
"unlock",
|
|
13383
13419
|
"arm",
|
|
13420
|
+
"arm-home",
|
|
13421
|
+
"arm-away",
|
|
13422
|
+
"arm-night",
|
|
13384
13423
|
"disarm",
|
|
13385
13424
|
"light",
|
|
13386
|
-
"alert"
|
|
13425
|
+
"alert",
|
|
13426
|
+
"camera"
|
|
13387
13427
|
]);
|
|
13388
13428
|
/** A single tap-through action button. */
|
|
13389
13429
|
var NotificationActionSchema = object({
|
|
@@ -13399,7 +13439,23 @@ var NotificationActionSchema = object({
|
|
|
13399
13439
|
* else — see `notification-center/action-token.ts` for what that does and
|
|
13400
13440
|
* does not buy.
|
|
13401
13441
|
*/
|
|
13402
|
-
destructive: boolean().optional()
|
|
13442
|
+
destructive: boolean().optional(),
|
|
13443
|
+
/**
|
|
13444
|
+
* How the tap should REACH the url.
|
|
13445
|
+
*
|
|
13446
|
+
* `navigate` (absent, and every button authored before this field) opens it:
|
|
13447
|
+
* the phone leaves the notification and shows whatever the callback returns.
|
|
13448
|
+
* That is right for a button whose answer the operator wants to read.
|
|
13449
|
+
*
|
|
13450
|
+
* `background` fires it as a POST and stays put. It exists for the buttons
|
|
13451
|
+
* whose whole point is not to interrupt — "silence this for 30 minutes" is
|
|
13452
|
+
* an answer to the notification, and being thrown into a browser tab to
|
|
13453
|
+
* confirm it costs more attention than the notification did. A backend that
|
|
13454
|
+
* cannot do a background call renders it as an ordinary link (the adapters
|
|
13455
|
+
* fall back rather than dropping the button), so this is a preference, never
|
|
13456
|
+
* a requirement.
|
|
13457
|
+
*/
|
|
13458
|
+
mode: _enum(["navigate", "background"]).optional()
|
|
13403
13459
|
});
|
|
13404
13460
|
/**
|
|
13405
13461
|
* The canonical notification. `body` is the only hard field (Apprise model).
|
|
@@ -13567,6 +13623,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
13567
13623
|
targetId: string(),
|
|
13568
13624
|
enabled: boolean()
|
|
13569
13625
|
}), _void(), { kind: "mutation" });
|
|
13626
|
+
new Set([
|
|
13627
|
+
{
|
|
13628
|
+
id: "person",
|
|
13629
|
+
name: "Person"
|
|
13630
|
+
},
|
|
13631
|
+
{
|
|
13632
|
+
id: "vehicle",
|
|
13633
|
+
name: "Vehicle"
|
|
13634
|
+
},
|
|
13635
|
+
{
|
|
13636
|
+
id: "animal",
|
|
13637
|
+
name: "Animal"
|
|
13638
|
+
},
|
|
13639
|
+
{
|
|
13640
|
+
id: "package",
|
|
13641
|
+
name: "Package"
|
|
13642
|
+
}
|
|
13643
|
+
].map((l) => l.id));
|
|
13570
13644
|
var COCO_TO_MACRO = {
|
|
13571
13645
|
mapping: {
|
|
13572
13646
|
person: "person",
|
|
@@ -14251,7 +14325,17 @@ var alarmPanelCapability = {
|
|
|
14251
14325
|
* full slice; renders an arm button per `availableModes` entry and
|
|
14252
14326
|
* a PIN field iff `requiresCode === true`.
|
|
14253
14327
|
*/
|
|
14254
|
-
runtimeState: AlarmPanelStatusSchema
|
|
14328
|
+
runtimeState: AlarmPanelStatusSchema,
|
|
14329
|
+
/**
|
|
14330
|
+
* Runtime-state durability: **restored** — armed state is the one thing a panel must not lose across a restart.
|
|
14331
|
+
*
|
|
14332
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
14333
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
14334
|
+
*/
|
|
14335
|
+
durability: "restored",
|
|
14336
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
14337
|
+
* whether persisting is worth a SQLite commit. */
|
|
14338
|
+
volatileStateFields: ["lastChangedAt"]
|
|
14255
14339
|
};
|
|
14256
14340
|
/**
|
|
14257
14341
|
* Shared geometry vocabulary for on-frame shape caps — privacy-mask,
|
|
@@ -14392,6 +14476,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14392
14476
|
"alarm-triggered",
|
|
14393
14477
|
"alarm-armed",
|
|
14394
14478
|
"alarm-disarmed",
|
|
14479
|
+
"alarm-arming",
|
|
14480
|
+
"alarm-arm-refused",
|
|
14395
14481
|
"camera-online",
|
|
14396
14482
|
"camera-offline",
|
|
14397
14483
|
"camera-disabled",
|
|
@@ -14428,6 +14514,9 @@ var NcSystemEventConditionSchema = object({
|
|
|
14428
14514
|
nodeIds: array(string().min(1)).min(1).optional(),
|
|
14429
14515
|
packageNames: array(string().min(1)).min(1).optional()
|
|
14430
14516
|
});
|
|
14517
|
+
/** Hard ceiling on a window (24h). A snooze that could not expire would be an
|
|
14518
|
+
* outage the operator asked for once and forgot. */
|
|
14519
|
+
var NC_SNOOZE_MAX_MINUTES = 1440;
|
|
14431
14520
|
/** Weekly schedule — OR of windows; absence on the rule = always active. */
|
|
14432
14521
|
var NcScheduleSchema = object({
|
|
14433
14522
|
windows: array(object({
|
|
@@ -14804,15 +14893,15 @@ var NcConditionsSchema = object({
|
|
|
14804
14893
|
* (an `immediate` rule naming an `audio-*` class, one notification per
|
|
14805
14894
|
* classified sample) stays exactly as it was for rules that already use it.
|
|
14806
14895
|
*
|
|
14807
|
-
*
|
|
14808
|
-
* rather than an
|
|
14809
|
-
* (`camstack/src/data/notification-center.ts`, guarded by
|
|
14810
|
-
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor
|
|
14896
|
+
* In {@link NC_CONDITION_CATALOG} since P2, and the ORDER it got there is the
|
|
14897
|
+
* rule rather than an accident: the viewer mirrors the descriptor enums BY
|
|
14898
|
+
* HAND (`camstack/src/data/notification-center.ts`, guarded by
|
|
14899
|
+
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor strips the
|
|
14811
14900
|
* condition fields it does not know when a rule is saved from the phone.
|
|
14812
14901
|
* Publishing an editor for a condition the app cannot round-trip is how an
|
|
14813
|
-
* operator loses a rule's conditions by opening it — so the
|
|
14814
|
-
*
|
|
14815
|
-
*
|
|
14902
|
+
* operator loses a rule's conditions by opening it — so the viewer mirror
|
|
14903
|
+
* (P3, shipped) went FIRST, and the descriptor an editor renders from
|
|
14904
|
+
* follows here.
|
|
14816
14905
|
*/
|
|
14817
14906
|
audio: NcAudioConditionSchema.optional()
|
|
14818
14907
|
});
|
|
@@ -15048,6 +15137,30 @@ var NcRuleInputSchema = object({
|
|
|
15048
15137
|
*/
|
|
15049
15138
|
snoozeAllowGlobal: boolean().optional(),
|
|
15050
15139
|
/**
|
|
15140
|
+
* The snooze durations THIS rule's notification offers as buttons, in
|
|
15141
|
+
* minutes.
|
|
15142
|
+
*
|
|
15143
|
+
* Three states, and all three are distinct — which is exactly why this is
|
|
15144
|
+
* `.optional()` and never `.default()`. A Zod default does not run on the
|
|
15145
|
+
* addon cap path (three production failures in one day), so a schema default
|
|
15146
|
+
* would collapse the first two:
|
|
15147
|
+
*
|
|
15148
|
+
* | value | meaning |
|
|
15149
|
+
* | --- | --- |
|
|
15150
|
+
* | absent | the operator never said ⇒ {@link NC_DEFAULT_SNOOZE_MINUTES} |
|
|
15151
|
+
* | `[]` | **no snooze buttons on this rule** — the explicit override |
|
|
15152
|
+
* | a list | these choices, de-duplicated and sorted, at most four |
|
|
15153
|
+
*
|
|
15154
|
+
* `.max(4)` because the notifier's own action budget is small (ntfy allows
|
|
15155
|
+
* three buttons in total) and a rule that spent it all on snooze choices
|
|
15156
|
+
* would push its own tap-through actions off the notification.
|
|
15157
|
+
*
|
|
15158
|
+
* An empty list is NOT an alarm exemption: a rule the alarm is about, or
|
|
15159
|
+
* that arms the panel, is exempt automatically and cannot be silenced by a
|
|
15160
|
+
* window from anywhere (D133).
|
|
15161
|
+
*/
|
|
15162
|
+
snoozeOptions: array(number().int().min(1).max(NC_SNOOZE_MAX_MINUTES)).max(4).optional(),
|
|
15163
|
+
/**
|
|
15051
15164
|
* Devices this rule ACTUATES — arm the alarm, open a gate, turn on a light.
|
|
15052
15165
|
*
|
|
15053
15166
|
* This is what makes the rule set the alarm's trigger set without the alarm
|
|
@@ -15147,6 +15260,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
15147
15260
|
"device",
|
|
15148
15261
|
"package",
|
|
15149
15262
|
"occupancy",
|
|
15263
|
+
"audio",
|
|
15150
15264
|
"system"
|
|
15151
15265
|
]),
|
|
15152
15266
|
label: string(),
|
|
@@ -15165,6 +15279,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
15165
15279
|
"crossingSelect",
|
|
15166
15280
|
"polygonDraw",
|
|
15167
15281
|
"occupancy",
|
|
15282
|
+
"audio",
|
|
15168
15283
|
"deviceState",
|
|
15169
15284
|
"systemEvent"
|
|
15170
15285
|
]),
|
|
@@ -15316,7 +15431,20 @@ var NcSnoozeInputSchema = object({
|
|
|
15316
15431
|
ruleId: string().optional(),
|
|
15317
15432
|
/** Required when `scope: 'device'`. */
|
|
15318
15433
|
deviceId: number().int().optional(),
|
|
15319
|
-
|
|
15434
|
+
/**
|
|
15435
|
+
* Narrow the window to these subject classes — "the cat, not the person".
|
|
15436
|
+
*
|
|
15437
|
+
* ORTHOGONAL to `scope`, deliberately, and absent means EVERY class: that is
|
|
15438
|
+
* what every window authored before this field meant, so no persisted row
|
|
15439
|
+
* changes meaning and no client has to learn anything to keep working.
|
|
15440
|
+
*
|
|
15441
|
+
* It is what makes the window's real key `(deviceId, classes[])` and lets it
|
|
15442
|
+
* cross rules (D133): the operator points at a camera and a kind of thing,
|
|
15443
|
+
* not at whichever of their four rules happened to produce the notification
|
|
15444
|
+
* they are dismissing.
|
|
15445
|
+
*/
|
|
15446
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
15447
|
+
durationMinutes: number().int().min(1).max(NC_SNOOZE_MAX_MINUTES),
|
|
15320
15448
|
/**
|
|
15321
15449
|
* Silence this for EVERY recipient, not just the caller. Permission is
|
|
15322
15450
|
* checked server-side (the rule's `snoozeAllowGlobal`, or admin for the
|
|
@@ -15341,6 +15469,10 @@ var NcSnoozeSchema = object({
|
|
|
15341
15469
|
scope: NcSnoozeScopeSchema,
|
|
15342
15470
|
ruleId: string().optional(),
|
|
15343
15471
|
deviceId: number().int().optional(),
|
|
15472
|
+
/** Subject classes this window covers. ABSENT = every class — see
|
|
15473
|
+
* {@link NcSnoozeInputSchema.shape.classes}. Lives in the JSON blob and has
|
|
15474
|
+
* no SQLite column: nothing queries a window by class. */
|
|
15475
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
15344
15476
|
startedAt: number(),
|
|
15345
15477
|
/** Exclusive: at exactly this instant the snooze is over. Expiry is a
|
|
15346
15478
|
* COMPARISON, not a job — no sweeper can leave the operator silenced. */
|
|
@@ -17441,7 +17573,14 @@ var zonesCapability = {
|
|
|
17441
17573
|
* handle. Slice shape is `{ zones: Zone[] }` so future extensions
|
|
17442
17574
|
* (e.g. zone groupings) can sit alongside the polygon list.
|
|
17443
17575
|
*/
|
|
17444
|
-
runtimeState: object({ zones: array(ZoneSchema).readonly() })
|
|
17576
|
+
runtimeState: object({ zones: array(ZoneSchema).readonly() }),
|
|
17577
|
+
/**
|
|
17578
|
+
* Runtime-state durability: **restored** — written only on operator mutation, so a camera that never had one has nothing to re-derive from. This is the slice `zone-mirror-hydration.ts` exists to paper over.
|
|
17579
|
+
*
|
|
17580
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
17581
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
17582
|
+
*/
|
|
17583
|
+
durability: "restored"
|
|
17445
17584
|
};
|
|
17446
17585
|
/**
|
|
17447
17586
|
* A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
|
|
@@ -17611,6 +17750,22 @@ var detectionFpsField = {
|
|
|
17611
17750
|
default: 10,
|
|
17612
17751
|
step: 1
|
|
17613
17752
|
};
|
|
17753
|
+
/**
|
|
17754
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
17755
|
+
*
|
|
17756
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
17757
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
17758
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
17759
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
17760
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
17761
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
17762
|
+
*
|
|
17763
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
17764
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
17765
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
17766
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
17767
|
+
* that ships with an addon deploy.
|
|
17768
|
+
*/
|
|
17614
17769
|
var occupancyRecheckSecField = {
|
|
17615
17770
|
min: 0,
|
|
17616
17771
|
max: 300,
|
|
@@ -17812,15 +17967,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
17812
17967
|
*/
|
|
17813
17968
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
17814
17969
|
/**
|
|
17815
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
17816
|
-
*
|
|
17817
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
17818
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
17819
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
17970
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
17971
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
17820
17972
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
17821
17973
|
* (and only render) when this is enabled.
|
|
17822
|
-
|
|
17823
|
-
|
|
17974
|
+
*
|
|
17975
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
17976
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
17977
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
17978
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
17979
|
+
* object is counted only while the stationary registry holds it, and the
|
|
17980
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
17981
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
17982
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
17983
|
+
*/
|
|
17984
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
17824
17985
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
17825
17986
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
17826
17987
|
/**
|
|
@@ -20335,7 +20496,17 @@ var airQualitySensorCapability = {
|
|
|
20335
20496
|
schema: AirQualitySensorStatusSchema,
|
|
20336
20497
|
kind: "push"
|
|
20337
20498
|
},
|
|
20338
|
-
runtimeState: AirQualitySensorStatusSchema
|
|
20499
|
+
runtimeState: AirQualitySensorStatusSchema,
|
|
20500
|
+
/**
|
|
20501
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
20502
|
+
*
|
|
20503
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20504
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20505
|
+
*/
|
|
20506
|
+
durability: "restored",
|
|
20507
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20508
|
+
* whether persisting is worth a SQLite commit. */
|
|
20509
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
20339
20510
|
};
|
|
20340
20511
|
/**
|
|
20341
20512
|
* Ambient illuminance reading in lux. Drives Home Assistant `sensor`
|
|
@@ -20367,7 +20538,17 @@ var ambientLightSensorCapability = {
|
|
|
20367
20538
|
schema: AmbientLightSensorStatusSchema,
|
|
20368
20539
|
kind: "push"
|
|
20369
20540
|
},
|
|
20370
|
-
runtimeState: AmbientLightSensorStatusSchema
|
|
20541
|
+
runtimeState: AmbientLightSensorStatusSchema,
|
|
20542
|
+
/**
|
|
20543
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
20544
|
+
*
|
|
20545
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20546
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20547
|
+
*/
|
|
20548
|
+
durability: "restored",
|
|
20549
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20550
|
+
* whether persisting is worth a SQLite commit. */
|
|
20551
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
20371
20552
|
};
|
|
20372
20553
|
/**
|
|
20373
20554
|
* Per-class audio metrics aggregated over a sliding window.
|
|
@@ -20485,7 +20666,14 @@ var audioMetricsCapability = {
|
|
|
20485
20666
|
}), AudioMetricsHistorySchema)
|
|
20486
20667
|
},
|
|
20487
20668
|
/** Reactive runtime-state mirror — live `device.state.audioMetrics.value`. */
|
|
20488
|
-
runtimeState: AudioMetricsSnapshotSchema
|
|
20669
|
+
runtimeState: AudioMetricsSnapshotSchema,
|
|
20670
|
+
/**
|
|
20671
|
+
* Runtime-state durability: **session** — 1 Hz per camera at the mirror and ~63 % of the fleet's whole runtime-state write rate. `avgDbfs` is a rolling 60 s mean that genuinely moves every second, so no equality fix reclaims it — and a two-hour-old dB reading rendered as current is worse than no reading.
|
|
20672
|
+
*
|
|
20673
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20674
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20675
|
+
*/
|
|
20676
|
+
durability: "session"
|
|
20489
20677
|
};
|
|
20490
20678
|
/**
|
|
20491
20679
|
* Automation-control cap. Models HA `automation.*` entities on
|
|
@@ -20547,7 +20735,14 @@ var automationControlCapability = {
|
|
|
20547
20735
|
* reads `enabled` (toggle) + `isRunning` (spinner) + `lastError`
|
|
20548
20736
|
* (badge) directly.
|
|
20549
20737
|
*/
|
|
20550
|
-
runtimeState: AutomationControlStatusSchema
|
|
20738
|
+
runtimeState: AutomationControlStatusSchema,
|
|
20739
|
+
/**
|
|
20740
|
+
* Runtime-state durability: **session** — the authority for an automation being enabled is the automation store; a restored `isRunning` would be a lie. D62: one authority per switch.
|
|
20741
|
+
*
|
|
20742
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20743
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20744
|
+
*/
|
|
20745
|
+
durability: "session"
|
|
20551
20746
|
};
|
|
20552
20747
|
/**
|
|
20553
20748
|
* Battery status snapshot. Emitted by providers whose device is
|
|
@@ -20653,7 +20848,17 @@ onStatusChanged: { data: object({
|
|
|
20653
20848
|
* via `device.runtimeState.getCapState('battery')` regardless of
|
|
20654
20849
|
* the underlying driver.
|
|
20655
20850
|
*/
|
|
20656
|
-
runtimeState: BatteryStatusSchema
|
|
20851
|
+
runtimeState: BatteryStatusSchema,
|
|
20852
|
+
/**
|
|
20853
|
+
* Runtime-state durability: **restored** — a sleeping battery camera may not report for hours; the restored percentage is the only thing the UI and the sleep gate have. Zero churn once `lastUpdated` is excluded — 526 writes, 0 value changes, in 25 minutes.
|
|
20854
|
+
*
|
|
20855
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20856
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20857
|
+
*/
|
|
20858
|
+
durability: "restored",
|
|
20859
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20860
|
+
* whether persisting is worth a SQLite commit. */
|
|
20861
|
+
volatileStateFields: ["lastUpdated"]
|
|
20657
20862
|
};
|
|
20658
20863
|
/**
|
|
20659
20864
|
* Generic boolean sensor — last-resort fallback when no domain-
|
|
@@ -20682,7 +20887,17 @@ var binaryCapability = {
|
|
|
20682
20887
|
schema: BinaryStatusSchema,
|
|
20683
20888
|
kind: "push"
|
|
20684
20889
|
},
|
|
20685
|
-
runtimeState: BinaryStatusSchema
|
|
20890
|
+
runtimeState: BinaryStatusSchema,
|
|
20891
|
+
/**
|
|
20892
|
+
* Runtime-state durability: **restored** — transition-driven sensor state; the restored value gives the boot comparison.
|
|
20893
|
+
*
|
|
20894
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20895
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20896
|
+
*/
|
|
20897
|
+
durability: "restored",
|
|
20898
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20899
|
+
* whether persisting is worth a SQLite commit. */
|
|
20900
|
+
volatileStateFields: ["lastChangedAt"]
|
|
20686
20901
|
};
|
|
20687
20902
|
/**
|
|
20688
20903
|
* Dimmable-light brightness control. Co-exists with `switch` on the
|
|
@@ -20735,7 +20950,14 @@ onBrightnessChanged: { data: object({
|
|
|
20735
20950
|
* by the kernel. Read via `device.state.brightness.value` so UI
|
|
20736
20951
|
* sliders surface the current level without polling the provider.
|
|
20737
20952
|
*/
|
|
20738
|
-
runtimeState: BrightnessStatusSchema
|
|
20953
|
+
runtimeState: BrightnessStatusSchema,
|
|
20954
|
+
/**
|
|
20955
|
+
* Runtime-state durability: **session** — live lamp state, re-published by the provider on connect.
|
|
20956
|
+
*
|
|
20957
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20958
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20959
|
+
*/
|
|
20960
|
+
durability: "session"
|
|
20739
20961
|
};
|
|
20740
20962
|
DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _void(), {
|
|
20741
20963
|
kind: "mutation",
|
|
@@ -20823,7 +21045,17 @@ var carbonMonoxideCapability = {
|
|
|
20823
21045
|
schema: CarbonMonoxideStatusSchema,
|
|
20824
21046
|
kind: "push"
|
|
20825
21047
|
},
|
|
20826
|
-
runtimeState: CarbonMonoxideStatusSchema
|
|
21048
|
+
runtimeState: CarbonMonoxideStatusSchema,
|
|
21049
|
+
/**
|
|
21050
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
21051
|
+
*
|
|
21052
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21053
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21054
|
+
*/
|
|
21055
|
+
durability: "restored",
|
|
21056
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21057
|
+
* whether persisting is worth a SQLite commit. */
|
|
21058
|
+
volatileStateFields: ["lastChangedAt"]
|
|
20827
21059
|
};
|
|
20828
21060
|
/**
|
|
20829
21061
|
* HVAC / climate control cap. Models the full surface of a HA
|
|
@@ -20983,7 +21215,14 @@ var climateControlCapability = {
|
|
|
20983
21215
|
* the full slice via `device.state.climate-control.value` and refresh
|
|
20984
21216
|
* on every push without re-querying the provider.
|
|
20985
21217
|
*/
|
|
20986
|
-
runtimeState: ClimateControlStatusSchema
|
|
21218
|
+
runtimeState: ClimateControlStatusSchema,
|
|
21219
|
+
/**
|
|
21220
|
+
* Runtime-state durability: **session** — as `brightness`; `currentTemp` moves continuously and is re-published on connect.
|
|
21221
|
+
*
|
|
21222
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21223
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21224
|
+
*/
|
|
21225
|
+
durability: "session"
|
|
20987
21226
|
};
|
|
20988
21227
|
/**
|
|
20989
21228
|
* Color-light cap. Coexists with `switch` (on/off) and `brightness`
|
|
@@ -21093,7 +21332,14 @@ onColorChanged: { data: object({
|
|
|
21093
21332
|
* kernel. Read via `device.state.color.value` so UI pickers surface
|
|
21094
21333
|
* the current chromaticity without polling the provider.
|
|
21095
21334
|
*/
|
|
21096
|
-
runtimeState: ColorStatusSchema
|
|
21335
|
+
runtimeState: ColorStatusSchema,
|
|
21336
|
+
/**
|
|
21337
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
21338
|
+
*
|
|
21339
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21340
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21341
|
+
*/
|
|
21342
|
+
durability: "session"
|
|
21097
21343
|
};
|
|
21098
21344
|
var ConnectionTestOutcomeSchema = discriminatedUnion("outcome", [
|
|
21099
21345
|
object({
|
|
@@ -21151,7 +21397,17 @@ var connectivityCapability = {
|
|
|
21151
21397
|
schema: ConnectivityStatusSchema,
|
|
21152
21398
|
kind: "push"
|
|
21153
21399
|
},
|
|
21154
|
-
runtimeState: ConnectivityStatusSchema
|
|
21400
|
+
runtimeState: ConnectivityStatusSchema,
|
|
21401
|
+
/**
|
|
21402
|
+
* Runtime-state durability: **restored** — same shape and same argument as `device-status`, for links rather than devices.
|
|
21403
|
+
*
|
|
21404
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21405
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21406
|
+
*/
|
|
21407
|
+
durability: "restored",
|
|
21408
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21409
|
+
* whether persisting is worth a SQLite commit. */
|
|
21410
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21155
21411
|
};
|
|
21156
21412
|
/**
|
|
21157
21413
|
* Generic device-consumables capability — surfaces a device's
|
|
@@ -21233,7 +21489,14 @@ reset: method(object({
|
|
|
21233
21489
|
}
|
|
21234
21490
|
}
|
|
21235
21491
|
},
|
|
21236
|
-
runtimeState: ConsumablesStatusSchema.extend({ lastFetchedAt: number() })
|
|
21492
|
+
runtimeState: ConsumablesStatusSchema.extend({ lastFetchedAt: number() }),
|
|
21493
|
+
/**
|
|
21494
|
+
* Runtime-state durability: **session** — the authority is the appliance; the provider re-reads the whole item array on connect.
|
|
21495
|
+
*
|
|
21496
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21497
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21498
|
+
*/
|
|
21499
|
+
durability: "session"
|
|
21237
21500
|
};
|
|
21238
21501
|
/**
|
|
21239
21502
|
* Door / window / opening / garage / valve contact sensor. Boolean
|
|
@@ -21264,7 +21527,17 @@ var contactCapability = {
|
|
|
21264
21527
|
schema: ContactStatusSchema,
|
|
21265
21528
|
kind: "push"
|
|
21266
21529
|
},
|
|
21267
|
-
runtimeState: ContactStatusSchema
|
|
21530
|
+
runtimeState: ContactStatusSchema,
|
|
21531
|
+
/**
|
|
21532
|
+
* Runtime-state durability: **restored** — a door left open across a restart must still read open.
|
|
21533
|
+
*
|
|
21534
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21535
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21536
|
+
*/
|
|
21537
|
+
durability: "restored",
|
|
21538
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21539
|
+
* whether persisting is worth a SQLite commit. */
|
|
21540
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21268
21541
|
};
|
|
21269
21542
|
/**
|
|
21270
21543
|
* Status slice — flat object (the framework's `runtimeState` contract
|
|
@@ -21370,7 +21643,14 @@ var controlCapability = {
|
|
|
21370
21643
|
* dropdown / text field / date picker) read the slice's discriminant
|
|
21371
21644
|
* and value directly without polling the provider.
|
|
21372
21645
|
*/
|
|
21373
|
-
runtimeState: ControlStatusSchema
|
|
21646
|
+
runtimeState: ControlStatusSchema,
|
|
21647
|
+
/**
|
|
21648
|
+
* Runtime-state durability: **session** — a generic control mirrors an external entity that re-publishes on connect; the options array is re-derived with it.
|
|
21649
|
+
*
|
|
21650
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21651
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21652
|
+
*/
|
|
21653
|
+
durability: "session"
|
|
21374
21654
|
};
|
|
21375
21655
|
var CoverStatusSchema = object({
|
|
21376
21656
|
/** Lifecycle state of the cover. */
|
|
@@ -21431,7 +21711,17 @@ var coverCapability = {
|
|
|
21431
21711
|
* Runtime-state slice — mirrored by the kernel. UI controls watch
|
|
21432
21712
|
* the slice for live position changes during a move.
|
|
21433
21713
|
*/
|
|
21434
|
-
runtimeState: CoverStatusSchema
|
|
21714
|
+
runtimeState: CoverStatusSchema,
|
|
21715
|
+
/**
|
|
21716
|
+
* Runtime-state durability: **restored** — position survives a restart on the device; the mirror should agree at boot rather than read blank.
|
|
21717
|
+
*
|
|
21718
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21719
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21720
|
+
*/
|
|
21721
|
+
durability: "restored",
|
|
21722
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21723
|
+
* whether persisting is worth a SQLite commit. */
|
|
21724
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21435
21725
|
};
|
|
21436
21726
|
/**
|
|
21437
21727
|
* Vendor-neutral day/night (IR-cut) control — the per-camera config cap
|
|
@@ -21525,7 +21815,17 @@ var dayNightCapability = {
|
|
|
21525
21815
|
schema: DayNightStatusSchema,
|
|
21526
21816
|
kind: "poll"
|
|
21527
21817
|
},
|
|
21528
|
-
runtimeState: DayNightStatusSchema
|
|
21818
|
+
runtimeState: DayNightStatusSchema,
|
|
21819
|
+
/**
|
|
21820
|
+
* Runtime-state durability: **restored** — operator-set IR-cut behaviour; mutation-driven.
|
|
21821
|
+
*
|
|
21822
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21823
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21824
|
+
*/
|
|
21825
|
+
durability: "restored",
|
|
21826
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21827
|
+
* whether persisting is worth a SQLite commit. */
|
|
21828
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
21529
21829
|
};
|
|
21530
21830
|
/**
|
|
21531
21831
|
* Generic device-level status snapshot. Auto-registered by `BaseDevice`
|
|
@@ -21572,7 +21872,17 @@ onStatusChanged: { data: object({
|
|
|
21572
21872
|
schema: DeviceStatusSchema,
|
|
21573
21873
|
kind: "push"
|
|
21574
21874
|
},
|
|
21575
|
-
runtimeState: DeviceStatusSchema
|
|
21875
|
+
runtimeState: DeviceStatusSchema,
|
|
21876
|
+
/**
|
|
21877
|
+
* Runtime-state durability: **restored** — the previous observation is what makes the first reading after a restart a COMPARISON instead of a phantom transition (D130). 32 real flips across 16 devices in 25 min — the busiest slice in the cold half.
|
|
21878
|
+
*
|
|
21879
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21880
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21881
|
+
*/
|
|
21882
|
+
durability: "restored",
|
|
21883
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21884
|
+
* whether persisting is worth a SQLite commit. */
|
|
21885
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21576
21886
|
};
|
|
21577
21887
|
/**
|
|
21578
21888
|
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
@@ -21634,7 +21944,14 @@ onPressed: { data: DoorbellPressEventSchema } },
|
|
|
21634
21944
|
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
21635
21945
|
* without subscribing.
|
|
21636
21946
|
*/
|
|
21637
|
-
runtimeState: DoorbellStatusSchema
|
|
21947
|
+
runtimeState: DoorbellStatusSchema,
|
|
21948
|
+
/**
|
|
21949
|
+
* Runtime-state durability: **restored** — a monotonic accumulator: the slice IS the record. `lastPressedAt` is content here, not a clock, so it is deliberately NOT volatile.
|
|
21950
|
+
*
|
|
21951
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21952
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21953
|
+
*/
|
|
21954
|
+
durability: "restored"
|
|
21638
21955
|
};
|
|
21639
21956
|
/**
|
|
21640
21957
|
* Enum-state sensor — a string value picked from a finite option set.
|
|
@@ -21674,7 +21991,17 @@ var enumSensorCapability = {
|
|
|
21674
21991
|
schema: EnumSensorStatusSchema,
|
|
21675
21992
|
kind: "push"
|
|
21676
21993
|
},
|
|
21677
|
-
runtimeState: EnumSensorStatusSchema
|
|
21994
|
+
runtimeState: EnumSensorStatusSchema,
|
|
21995
|
+
/**
|
|
21996
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`; 80 devices.
|
|
21997
|
+
*
|
|
21998
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21999
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22000
|
+
*/
|
|
22001
|
+
durability: "restored",
|
|
22002
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22003
|
+
* whether persisting is worth a SQLite commit. */
|
|
22004
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
21678
22005
|
};
|
|
21679
22006
|
/**
|
|
21680
22007
|
* Generic stateless event emitter. Installed on a `DeviceType.EventEmitter`
|
|
@@ -21710,7 +22037,14 @@ var eventEmitterCapability = {
|
|
|
21710
22037
|
schema: EventEmitterStatusSchema,
|
|
21711
22038
|
kind: "push"
|
|
21712
22039
|
},
|
|
21713
|
-
runtimeState: EventEmitterStatusSchema
|
|
22040
|
+
runtimeState: EventEmitterStatusSchema,
|
|
22041
|
+
/**
|
|
22042
|
+
* Runtime-state durability: **session** — `eventCountSinceStart` names its own scope.
|
|
22043
|
+
*
|
|
22044
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22045
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22046
|
+
*/
|
|
22047
|
+
durability: "session"
|
|
21714
22048
|
};
|
|
21715
22049
|
var EventItemSchema = object({
|
|
21716
22050
|
id: string(),
|
|
@@ -21991,7 +22325,14 @@ var fanControlCapability = {
|
|
|
21991
22325
|
* Runtime-state slice — mirrored by the kernel. UI fan speed
|
|
21992
22326
|
* sliders read `percentage` for live updates.
|
|
21993
22327
|
*/
|
|
21994
|
-
runtimeState: FanControlStatusSchema
|
|
22328
|
+
runtimeState: FanControlStatusSchema,
|
|
22329
|
+
/**
|
|
22330
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
22331
|
+
*
|
|
22332
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22333
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22334
|
+
*/
|
|
22335
|
+
durability: "session"
|
|
21995
22336
|
};
|
|
21996
22337
|
/**
|
|
21997
22338
|
* Per-device feature/identity probe slice. Holds the runtime-resolved
|
|
@@ -22067,7 +22408,14 @@ onProbeChanged: { data: object({
|
|
|
22067
22408
|
schema: FeatureProbeStatusSchema,
|
|
22068
22409
|
kind: "push"
|
|
22069
22410
|
},
|
|
22070
|
-
runtimeState: FeatureProbeStatusSchema
|
|
22411
|
+
runtimeState: FeatureProbeStatusSchema,
|
|
22412
|
+
/**
|
|
22413
|
+
* Runtime-state durability: **session** — per-session by definition — `lastProbedAt` means "this worker completed a probe THIS session", which is why the mirror seed already blanks it. Persisting it only creates something to blank.
|
|
22414
|
+
*
|
|
22415
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22416
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22417
|
+
*/
|
|
22418
|
+
durability: "session"
|
|
22071
22419
|
};
|
|
22072
22420
|
/**
|
|
22073
22421
|
* Water leak / moisture sensor. Boolean "is liquid currently
|
|
@@ -22094,7 +22442,17 @@ var floodCapability = {
|
|
|
22094
22442
|
schema: FloodStatusSchema,
|
|
22095
22443
|
kind: "push"
|
|
22096
22444
|
},
|
|
22097
|
-
runtimeState: FloodStatusSchema
|
|
22445
|
+
runtimeState: FloodStatusSchema,
|
|
22446
|
+
/**
|
|
22447
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
22448
|
+
*
|
|
22449
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22450
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22451
|
+
*/
|
|
22452
|
+
durability: "restored",
|
|
22453
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22454
|
+
* whether persisting is worth a SQLite commit. */
|
|
22455
|
+
volatileStateFields: ["lastChangedAt"]
|
|
22098
22456
|
};
|
|
22099
22457
|
/**
|
|
22100
22458
|
* Combustible-gas (LPG / methane / hydrogen) alarm sensor. Drives
|
|
@@ -22117,7 +22475,17 @@ var gasCapability = {
|
|
|
22117
22475
|
schema: GasStatusSchema,
|
|
22118
22476
|
kind: "push"
|
|
22119
22477
|
},
|
|
22120
|
-
runtimeState: GasStatusSchema
|
|
22478
|
+
runtimeState: GasStatusSchema,
|
|
22479
|
+
/**
|
|
22480
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
22481
|
+
*
|
|
22482
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22483
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22484
|
+
*/
|
|
22485
|
+
durability: "restored",
|
|
22486
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22487
|
+
* whether persisting is worth a SQLite commit. */
|
|
22488
|
+
volatileStateFields: ["lastChangedAt"]
|
|
22121
22489
|
};
|
|
22122
22490
|
/**
|
|
22123
22491
|
* Humidifier / dehumidifier cap. Models HA `humidifier.*` entities —
|
|
@@ -22193,7 +22561,14 @@ var humidifierCapability = {
|
|
|
22193
22561
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
22194
22562
|
* slice for live humidity / mode changes.
|
|
22195
22563
|
*/
|
|
22196
|
-
runtimeState: HumidifierStatusSchema
|
|
22564
|
+
runtimeState: HumidifierStatusSchema,
|
|
22565
|
+
/**
|
|
22566
|
+
* Runtime-state durability: **session** — as `climate-control`.
|
|
22567
|
+
*
|
|
22568
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22569
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22570
|
+
*/
|
|
22571
|
+
durability: "session"
|
|
22197
22572
|
};
|
|
22198
22573
|
/**
|
|
22199
22574
|
* Single-metric humidity reading. Drives Home Assistant `sensor`
|
|
@@ -22229,7 +22604,17 @@ var humiditySensorCapability = {
|
|
|
22229
22604
|
schema: HumiditySensorStatusSchema,
|
|
22230
22605
|
kind: "push"
|
|
22231
22606
|
},
|
|
22232
|
-
runtimeState: HumiditySensorStatusSchema
|
|
22607
|
+
runtimeState: HumiditySensorStatusSchema,
|
|
22608
|
+
/**
|
|
22609
|
+
* Runtime-state durability: **restored** — as `numeric-sensor` (67 of 75 writes were the clock alone).
|
|
22610
|
+
*
|
|
22611
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22612
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22613
|
+
*/
|
|
22614
|
+
durability: "restored",
|
|
22615
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22616
|
+
* whether persisting is worth a SQLite commit. */
|
|
22617
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
22233
22618
|
};
|
|
22234
22619
|
/**
|
|
22235
22620
|
* Image display cap. Models a single still image exposed by an integration —
|
|
@@ -22267,7 +22652,14 @@ var imageCapability = {
|
|
|
22267
22652
|
* Runtime-state slice — mirrored by the kernel. The UI reads `url`
|
|
22268
22653
|
* directly and renders the still image.
|
|
22269
22654
|
*/
|
|
22270
|
-
runtimeState: ImageStatusSchema
|
|
22655
|
+
runtimeState: ImageStatusSchema,
|
|
22656
|
+
/**
|
|
22657
|
+
* Runtime-state durability: **session** — a snapshot URL is a session-scoped handle; a restored one points at nothing.
|
|
22658
|
+
*
|
|
22659
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22660
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22661
|
+
*/
|
|
22662
|
+
durability: "session"
|
|
22271
22663
|
};
|
|
22272
22664
|
/**
|
|
22273
22665
|
* Vendor-neutral image / picture-adjustment cap — the per-camera config
|
|
@@ -22416,7 +22808,17 @@ var imageSettingsCapability = {
|
|
|
22416
22808
|
schema: ImageSettingsStatusSchema,
|
|
22417
22809
|
kind: "poll"
|
|
22418
22810
|
},
|
|
22419
|
-
runtimeState: ImageSettingsStatusSchema
|
|
22811
|
+
runtimeState: ImageSettingsStatusSchema,
|
|
22812
|
+
/**
|
|
22813
|
+
* Runtime-state durability: **restored** — operator-set camera imaging; mutation-driven.
|
|
22814
|
+
*
|
|
22815
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22816
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22817
|
+
*/
|
|
22818
|
+
durability: "restored",
|
|
22819
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22820
|
+
* whether persisting is worth a SQLite commit. */
|
|
22821
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
22420
22822
|
};
|
|
22421
22823
|
/**
|
|
22422
22824
|
* integrations — system-scoped singleton capability for integration
|
|
@@ -22807,7 +23209,14 @@ var lawnMowerControlCapability = {
|
|
|
22807
23209
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
22808
23210
|
* slice for live activity + battery changes.
|
|
22809
23211
|
*/
|
|
22810
|
-
runtimeState: LawnMowerControlStatusSchema
|
|
23212
|
+
runtimeState: LawnMowerControlStatusSchema,
|
|
23213
|
+
/**
|
|
23214
|
+
* Runtime-state durability: **session** — as `vacuum-control`.
|
|
23215
|
+
*
|
|
23216
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23217
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23218
|
+
*/
|
|
23219
|
+
durability: "session"
|
|
22811
23220
|
};
|
|
22812
23221
|
/**
|
|
22813
23222
|
* local-network — hub-only singleton.
|
|
@@ -23013,7 +23422,17 @@ var lockControlCapability = {
|
|
|
23013
23422
|
* read `state` and disable themselves during `locking`/`unlocking`
|
|
23014
23423
|
* transitions.
|
|
23015
23424
|
*/
|
|
23016
|
-
runtimeState: LockControlStatusSchema
|
|
23425
|
+
runtimeState: LockControlStatusSchema,
|
|
23426
|
+
/**
|
|
23427
|
+
* Runtime-state durability: **restored** — a lock left locked must still read locked.
|
|
23428
|
+
*
|
|
23429
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23430
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23431
|
+
*/
|
|
23432
|
+
durability: "restored",
|
|
23433
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23434
|
+
* whether persisting is worth a SQLite commit. */
|
|
23435
|
+
volatileStateFields: ["lastChangedAt"]
|
|
23017
23436
|
};
|
|
23018
23437
|
/**
|
|
23019
23438
|
* Media-player cap. Models HA `media_player.*` (Sonos, Chromecast,
|
|
@@ -23175,7 +23594,14 @@ var mediaPlayerCapability = {
|
|
|
23175
23594
|
* full slice for live now-playing, volume, and progress updates
|
|
23176
23595
|
* without polling.
|
|
23177
23596
|
*/
|
|
23178
|
-
runtimeState: MediaPlayerStatusSchema
|
|
23597
|
+
runtimeState: MediaPlayerStatusSchema,
|
|
23598
|
+
/**
|
|
23599
|
+
* Runtime-state durability: **session** — a restored transport position describes a playback that stopped when the hub did.
|
|
23600
|
+
*
|
|
23601
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23602
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23603
|
+
*/
|
|
23604
|
+
durability: "session"
|
|
23179
23605
|
};
|
|
23180
23606
|
/**
|
|
23181
23607
|
* mesh-network — collection cap for mesh-VPN providers.
|
|
@@ -23439,7 +23865,14 @@ onMotionChanged: { data: MotionOnMotionChangedDataSchema } },
|
|
|
23439
23865
|
* `device.state.motion.value`. Reads never invoke the provider, so
|
|
23440
23866
|
* UIs and other addons can poll the cached state safely.
|
|
23441
23867
|
*/
|
|
23442
|
-
runtimeState: MotionStatusSchema
|
|
23868
|
+
runtimeState: MotionStatusSchema,
|
|
23869
|
+
/**
|
|
23870
|
+
* Runtime-state durability: **session** — self-clearing by construction (`autoClearAfterMs`); a restored `detected: true` is a frozen event, and the next frame re-publishes the real one.
|
|
23871
|
+
*
|
|
23872
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23873
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23874
|
+
*/
|
|
23875
|
+
durability: "session"
|
|
23443
23876
|
};
|
|
23444
23877
|
/**
|
|
23445
23878
|
* Motion-trigger toggle for accessory devices.
|
|
@@ -23504,7 +23937,14 @@ var motionTriggerCapability = {
|
|
|
23504
23937
|
schema: MotionTriggerStatusSchema,
|
|
23505
23938
|
kind: "command-driven"
|
|
23506
23939
|
},
|
|
23507
|
-
runtimeState: MotionTriggerRuntimeStateSchema
|
|
23940
|
+
runtimeState: MotionTriggerRuntimeStateSchema,
|
|
23941
|
+
/**
|
|
23942
|
+
* Runtime-state durability: **session** — the authority for motion-trigger enablement is the provider's own config; the slice is a mirror of it, re-published on connect.
|
|
23943
|
+
*
|
|
23944
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23945
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23946
|
+
*/
|
|
23947
|
+
durability: "session"
|
|
23508
23948
|
};
|
|
23509
23949
|
/**
|
|
23510
23950
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
@@ -23571,7 +24011,17 @@ var motionZonesCapability = {
|
|
|
23571
24011
|
schema: MotionZoneStatusSchema,
|
|
23572
24012
|
kind: "poll"
|
|
23573
24013
|
},
|
|
23574
|
-
runtimeState: MotionZoneStatusSchema
|
|
24014
|
+
runtimeState: MotionZoneStatusSchema,
|
|
24015
|
+
/**
|
|
24016
|
+
* Runtime-state durability: **restored** — the 14 KB polygon list is the single largest slice on the fleet and has not changed since the operator drew it. Highest value per byte in the table.
|
|
24017
|
+
*
|
|
24018
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24019
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24020
|
+
*/
|
|
24021
|
+
durability: "restored",
|
|
24022
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24023
|
+
* whether persisting is worth a SQLite commit. */
|
|
24024
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23575
24025
|
};
|
|
23576
24026
|
/**
|
|
23577
24027
|
* On-camera AI object detection cap. Surfaces per-device the classes
|
|
@@ -23645,7 +24095,17 @@ var nativeObjectDetectionCapability = {
|
|
|
23645
24095
|
schema: NativeObjectDetectionStatusSchema,
|
|
23646
24096
|
kind: "push"
|
|
23647
24097
|
},
|
|
23648
|
-
runtimeState: NativeObjectDetectionRuntimeStateSchema
|
|
24098
|
+
runtimeState: NativeObjectDetectionRuntimeStateSchema,
|
|
24099
|
+
/**
|
|
24100
|
+
* Runtime-state durability: **restored** — `enabled` is an operator toggle on a camera whose refresh is a no-op and whose staleMs is Infinity. There is no hardware value to re-read — losing it loses the setting.
|
|
24101
|
+
*
|
|
24102
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24103
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24104
|
+
*/
|
|
24105
|
+
durability: "restored",
|
|
24106
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24107
|
+
* whether persisting is worth a SQLite commit. */
|
|
24108
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23649
24109
|
};
|
|
23650
24110
|
/**
|
|
23651
24111
|
* network-quality — system-scoped singleton capability tracking RTT,
|
|
@@ -23979,7 +24439,14 @@ onSent: { data: object({
|
|
|
23979
24439
|
* form reads `supports` to gate optional fields; history pane reads
|
|
23980
24440
|
* `lastSentAt` / `lastError` / `queueDepth`.
|
|
23981
24441
|
*/
|
|
23982
|
-
runtimeState: NotifierStatusSchema
|
|
24442
|
+
runtimeState: NotifierStatusSchema,
|
|
24443
|
+
/**
|
|
24444
|
+
* Runtime-state durability: **session** — live queue depth and last-send state; a restored queue depth describes a queue that no longer exists.
|
|
24445
|
+
*
|
|
24446
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24447
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24448
|
+
*/
|
|
24449
|
+
durability: "session"
|
|
23983
24450
|
};
|
|
23984
24451
|
/**
|
|
23985
24452
|
* Generic numeric sensor — last-resort fallback when no typed numeric
|
|
@@ -24022,7 +24489,17 @@ var numericSensorCapability = {
|
|
|
24022
24489
|
schema: NumericSensorStatusSchema,
|
|
24023
24490
|
kind: "push"
|
|
24024
24491
|
},
|
|
24025
|
-
runtimeState: NumericSensorStatusSchema
|
|
24492
|
+
runtimeState: NumericSensorStatusSchema,
|
|
24493
|
+
/**
|
|
24494
|
+
* Runtime-state durability: **restored** — polled value, low churn once the clock is excluded (251 of 669 writes were the clock alone); restoring it removes the cold window before the first poll.
|
|
24495
|
+
*
|
|
24496
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24497
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24498
|
+
*/
|
|
24499
|
+
durability: "restored",
|
|
24500
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24501
|
+
* whether persisting is worth a SQLite commit. */
|
|
24502
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24026
24503
|
};
|
|
24027
24504
|
/**
|
|
24028
24505
|
* Generic on-screen-display (video overlay) cap. Each camera exposes
|
|
@@ -24453,7 +24930,14 @@ var petFeederCapability = {
|
|
|
24453
24930
|
* the full slice via `device.state.petFeeder.value` and refresh on
|
|
24454
24931
|
* every poll without re-querying the provider.
|
|
24455
24932
|
*/
|
|
24456
|
-
runtimeState: PetFeederStatusSchema
|
|
24933
|
+
runtimeState: PetFeederStatusSchema,
|
|
24934
|
+
/**
|
|
24935
|
+
* Runtime-state durability: **session** — live appliance state re-published on connect.
|
|
24936
|
+
*
|
|
24937
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24938
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24939
|
+
*/
|
|
24940
|
+
durability: "session"
|
|
24457
24941
|
};
|
|
24458
24942
|
var VehicleSchema = object({
|
|
24459
24943
|
id: string(),
|
|
@@ -24765,7 +25249,17 @@ var powerMeterCapability = {
|
|
|
24765
25249
|
schema: PowerMeterStatusSchema,
|
|
24766
25250
|
kind: "push"
|
|
24767
25251
|
},
|
|
24768
|
-
runtimeState: PowerMeterStatusSchema
|
|
25252
|
+
runtimeState: PowerMeterStatusSchema,
|
|
25253
|
+
/**
|
|
25254
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`; `kwhTotal` is an accumulator whose restored value is the baseline.
|
|
25255
|
+
*
|
|
25256
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25257
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25258
|
+
*/
|
|
25259
|
+
durability: "restored",
|
|
25260
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25261
|
+
* whether persisting is worth a SQLite commit. */
|
|
25262
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24769
25263
|
};
|
|
24770
25264
|
/**
|
|
24771
25265
|
* Presence cap. Models HA `person.*` and `device_tracker.*` entities
|
|
@@ -24822,7 +25316,17 @@ var presenceCapability = {
|
|
|
24822
25316
|
* the map pin is rendered (use `DeviceFeature.PresenceGps` for the
|
|
24823
25317
|
* pre-fetch fast-path check).
|
|
24824
25318
|
*/
|
|
24825
|
-
runtimeState: PresenceStatusSchema
|
|
25319
|
+
runtimeState: PresenceStatusSchema,
|
|
25320
|
+
/**
|
|
25321
|
+
* Runtime-state durability: **restored** — occupancy-relevant: the restored state is what an occupancy rule compares the first post-restart observation against.
|
|
25322
|
+
*
|
|
25323
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25324
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25325
|
+
*/
|
|
25326
|
+
durability: "restored",
|
|
25327
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25328
|
+
* whether persisting is worth a SQLite commit. */
|
|
25329
|
+
volatileStateFields: ["lastChangedAt"]
|
|
24826
25330
|
};
|
|
24827
25331
|
/**
|
|
24828
25332
|
* Atmospheric pressure reading in hectopascals. Drives Home Assistant
|
|
@@ -24858,7 +25362,17 @@ var pressureSensorCapability = {
|
|
|
24858
25362
|
schema: PressureSensorStatusSchema,
|
|
24859
25363
|
kind: "push"
|
|
24860
25364
|
},
|
|
24861
|
-
runtimeState: PressureSensorStatusSchema
|
|
25365
|
+
runtimeState: PressureSensorStatusSchema,
|
|
25366
|
+
/**
|
|
25367
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
25368
|
+
*
|
|
25369
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25370
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25371
|
+
*/
|
|
25372
|
+
durability: "restored",
|
|
25373
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25374
|
+
* whether persisting is worth a SQLite commit. */
|
|
25375
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24862
25376
|
};
|
|
24863
25377
|
/**
|
|
24864
25378
|
* PRIVACY — what the camera deliberately does not capture. Two planes:
|
|
@@ -24988,7 +25502,17 @@ var privacyMaskCapability = {
|
|
|
24988
25502
|
schema: PrivacyMaskStatusSchema,
|
|
24989
25503
|
kind: "poll"
|
|
24990
25504
|
},
|
|
24991
|
-
runtimeState: PrivacyMaskStatusSchema
|
|
25505
|
+
runtimeState: PrivacyMaskStatusSchema,
|
|
25506
|
+
/**
|
|
25507
|
+
* Runtime-state durability: **restored** — operator-drawn regions, zero real churn — 22 writes in 25 minutes, every one of them the clock.
|
|
25508
|
+
*
|
|
25509
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25510
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25511
|
+
*/
|
|
25512
|
+
durability: "restored",
|
|
25513
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25514
|
+
* whether persisting is worth a SQLite commit. */
|
|
25515
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24992
25516
|
};
|
|
24993
25517
|
/**
|
|
24994
25518
|
* Collapse a camera's PER-PROFILE audio flags into the one answer
|
|
@@ -25216,7 +25740,14 @@ var ptzAutotrackCapability = {
|
|
|
25216
25740
|
* fetch / cache / fallback logic out of the four cap methods —
|
|
25217
25741
|
* they become trampolines over `runtimeState`.
|
|
25218
25742
|
*/
|
|
25219
|
-
runtimeState: PtzAutotrackRuntimeStateSchema
|
|
25743
|
+
runtimeState: PtzAutotrackRuntimeStateSchema,
|
|
25744
|
+
/**
|
|
25745
|
+
* Runtime-state durability: **session** — mirrors the camera's own autotrack config, re-read on connect.
|
|
25746
|
+
*
|
|
25747
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25748
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25749
|
+
*/
|
|
25750
|
+
durability: "session"
|
|
25220
25751
|
};
|
|
25221
25752
|
/**
|
|
25222
25753
|
* reboot — device-scoped capability for "soft" device reboots (firmware
|
|
@@ -25891,7 +26422,14 @@ var sceneMonitorCapability = {
|
|
|
25891
26422
|
schema: SceneMonitorStatusSchema,
|
|
25892
26423
|
kind: "push"
|
|
25893
26424
|
},
|
|
25894
|
-
runtimeState: SceneMonitorStatusSchema
|
|
26425
|
+
runtimeState: SceneMonitorStatusSchema,
|
|
26426
|
+
/**
|
|
26427
|
+
* Runtime-state durability: **session** — re-derived from the current scene on the next evaluation.
|
|
26428
|
+
*
|
|
26429
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26430
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26431
|
+
*/
|
|
26432
|
+
durability: "session"
|
|
25895
26433
|
};
|
|
25896
26434
|
/**
|
|
25897
26435
|
* Per-stage gating mode applied to the zones a rule references.
|
|
@@ -26035,7 +26573,14 @@ var scriptRunnerCapability = {
|
|
|
26035
26573
|
* `isRunning` to render a spinner during execution and surfaces
|
|
26036
26574
|
* `lastError` / `lastRunSuccess` in the recent-runs panel.
|
|
26037
26575
|
*/
|
|
26038
|
-
runtimeState: ScriptRunnerStatusSchema
|
|
26576
|
+
runtimeState: ScriptRunnerStatusSchema,
|
|
26577
|
+
/**
|
|
26578
|
+
* Runtime-state durability: **session** — a restored `isRunning: true` describes a process that died with the previous hub.
|
|
26579
|
+
*
|
|
26580
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26581
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26582
|
+
*/
|
|
26583
|
+
durability: "session"
|
|
26039
26584
|
};
|
|
26040
26585
|
/**
|
|
26041
26586
|
* Smoke alarm sensor — boolean "is smoke currently detected" with
|
|
@@ -26062,7 +26607,17 @@ var smokeCapability = {
|
|
|
26062
26607
|
schema: SmokeStatusSchema,
|
|
26063
26608
|
kind: "push"
|
|
26064
26609
|
},
|
|
26065
|
-
runtimeState: SmokeStatusSchema
|
|
26610
|
+
runtimeState: SmokeStatusSchema,
|
|
26611
|
+
/**
|
|
26612
|
+
* Runtime-state durability: **restored** — a safety sensor must not read "clear" merely because the hub restarted.
|
|
26613
|
+
*
|
|
26614
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26615
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26616
|
+
*/
|
|
26617
|
+
durability: "restored",
|
|
26618
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26619
|
+
* whether persisting is worth a SQLite commit. */
|
|
26620
|
+
volatileStateFields: ["lastChangedAt"]
|
|
26066
26621
|
};
|
|
26067
26622
|
/**
|
|
26068
26623
|
* One publishable camera stream as its OWNING PROVIDER describes it — the same
|
|
@@ -26248,7 +26803,17 @@ var streamParamsCapability = {
|
|
|
26248
26803
|
schema: StreamParamsStatusSchema,
|
|
26249
26804
|
kind: "poll"
|
|
26250
26805
|
},
|
|
26251
|
-
runtimeState: StreamParamsStatusSchema
|
|
26806
|
+
runtimeState: StreamParamsStatusSchema,
|
|
26807
|
+
/**
|
|
26808
|
+
* Runtime-state durability: **restored** — operator-set encoder profile; mutation-driven.
|
|
26809
|
+
*
|
|
26810
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26811
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26812
|
+
*/
|
|
26813
|
+
durability: "restored",
|
|
26814
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26815
|
+
* whether persisting is worth a SQLite commit. */
|
|
26816
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
26252
26817
|
};
|
|
26253
26818
|
/**
|
|
26254
26819
|
* The three well-known stream profiles in render order. Exported so the
|
|
@@ -26492,6 +27057,16 @@ var switchCapability = {
|
|
|
26492
27057
|
* not need to re-query the provider after a setState mutation.
|
|
26493
27058
|
*/
|
|
26494
27059
|
runtimeState: SwitchStatusSchema,
|
|
27060
|
+
/**
|
|
27061
|
+
* Runtime-state durability: **restored** — device state an operator reads as authoritative; 55 devices, transition-driven.
|
|
27062
|
+
*
|
|
27063
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27064
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27065
|
+
*/
|
|
27066
|
+
durability: "restored",
|
|
27067
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27068
|
+
* whether persisting is worth a SQLite commit. */
|
|
27069
|
+
volatileStateFields: ["lastChangedAt"],
|
|
26495
27070
|
settings: { bindings: [{
|
|
26496
27071
|
kind: "scalar",
|
|
26497
27072
|
statusPath: "on",
|
|
@@ -26571,7 +27146,17 @@ var tamperCapability = {
|
|
|
26571
27146
|
schema: TamperStatusSchema,
|
|
26572
27147
|
kind: "push"
|
|
26573
27148
|
},
|
|
26574
|
-
runtimeState: TamperStatusSchema
|
|
27149
|
+
runtimeState: TamperStatusSchema,
|
|
27150
|
+
/**
|
|
27151
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
27152
|
+
*
|
|
27153
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27154
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27155
|
+
*/
|
|
27156
|
+
durability: "restored",
|
|
27157
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27158
|
+
* whether persisting is worth a SQLite commit. */
|
|
27159
|
+
volatileStateFields: ["lastChangedAt"]
|
|
26575
27160
|
};
|
|
26576
27161
|
/**
|
|
26577
27162
|
* Single-metric temperature reading. Drives Home Assistant `sensor`
|
|
@@ -26616,7 +27201,17 @@ var temperatureSensorCapability = {
|
|
|
26616
27201
|
schema: TemperatureSensorStatusSchema,
|
|
26617
27202
|
kind: "push"
|
|
26618
27203
|
},
|
|
26619
|
-
runtimeState: TemperatureSensorStatusSchema
|
|
27204
|
+
runtimeState: TemperatureSensorStatusSchema,
|
|
27205
|
+
/**
|
|
27206
|
+
* Runtime-state durability: **restored** — as `numeric-sensor` (69 of 125 writes were the clock alone).
|
|
27207
|
+
*
|
|
27208
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27209
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27210
|
+
*/
|
|
27211
|
+
durability: "restored",
|
|
27212
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27213
|
+
* whether persisting is worth a SQLite commit. */
|
|
27214
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
26620
27215
|
};
|
|
26621
27216
|
/**
|
|
26622
27217
|
* toast — system-scoped singleton capability that streams toast
|
|
@@ -26685,7 +27280,14 @@ var updateCapability = {
|
|
|
26685
27280
|
schema: UpdateStatusSchema,
|
|
26686
27281
|
kind: "poll"
|
|
26687
27282
|
},
|
|
26688
|
-
runtimeState: UpdateStatusSchema
|
|
27283
|
+
runtimeState: UpdateStatusSchema,
|
|
27284
|
+
/**
|
|
27285
|
+
* Runtime-state durability: **session** — a restored `inProgress: true` describes an update that is no longer running; versions are re-probed at boot.
|
|
27286
|
+
*
|
|
27287
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27288
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27289
|
+
*/
|
|
27290
|
+
durability: "session"
|
|
26689
27291
|
};
|
|
26690
27292
|
var UserSummarySchema = object({
|
|
26691
27293
|
id: string(),
|
|
@@ -27019,7 +27621,14 @@ var vacuumControlCapability = {
|
|
|
27019
27621
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
27020
27622
|
* slice for live state + battery + fan-speed changes.
|
|
27021
27623
|
*/
|
|
27022
|
-
runtimeState: VacuumControlStatusSchema
|
|
27624
|
+
runtimeState: VacuumControlStatusSchema,
|
|
27625
|
+
/**
|
|
27626
|
+
* Runtime-state durability: **session** — as `media-player` — a restored `state: cleaning` is a robot that is not cleaning.
|
|
27627
|
+
*
|
|
27628
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27629
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27630
|
+
*/
|
|
27631
|
+
durability: "session"
|
|
27023
27632
|
};
|
|
27024
27633
|
var ValveStatusSchema = object({
|
|
27025
27634
|
/** Lifecycle state of the valve. */
|
|
@@ -27071,7 +27680,14 @@ var valveCapability = {
|
|
|
27071
27680
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
27072
27681
|
* slice for live position changes during a move.
|
|
27073
27682
|
*/
|
|
27074
|
-
runtimeState: ValveStatusSchema
|
|
27683
|
+
runtimeState: ValveStatusSchema,
|
|
27684
|
+
/**
|
|
27685
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
27686
|
+
*
|
|
27687
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27688
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27689
|
+
*/
|
|
27690
|
+
durability: "session"
|
|
27075
27691
|
};
|
|
27076
27692
|
/**
|
|
27077
27693
|
* Vibration / shake / impact sensor. Drives Home Assistant
|
|
@@ -27093,7 +27709,17 @@ var vibrationCapability = {
|
|
|
27093
27709
|
schema: VibrationStatusSchema,
|
|
27094
27710
|
kind: "push"
|
|
27095
27711
|
},
|
|
27096
|
-
runtimeState: VibrationStatusSchema
|
|
27712
|
+
runtimeState: VibrationStatusSchema,
|
|
27713
|
+
/**
|
|
27714
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
27715
|
+
*
|
|
27716
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27717
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27718
|
+
*/
|
|
27719
|
+
durability: "restored",
|
|
27720
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27721
|
+
* whether persisting is worth a SQLite commit. */
|
|
27722
|
+
volatileStateFields: ["lastChangedAt"]
|
|
27097
27723
|
};
|
|
27098
27724
|
/**
|
|
27099
27725
|
* Water heater / boiler cap. Models HA `water_heater.*` entities — a
|
|
@@ -27167,7 +27793,14 @@ var waterHeaterCapability = {
|
|
|
27167
27793
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
27168
27794
|
* slice for live temperature / mode / away changes.
|
|
27169
27795
|
*/
|
|
27170
|
-
runtimeState: WaterHeaterStatusSchema
|
|
27796
|
+
runtimeState: WaterHeaterStatusSchema,
|
|
27797
|
+
/**
|
|
27798
|
+
* Runtime-state durability: **session** — as `climate-control`.
|
|
27799
|
+
*
|
|
27800
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27801
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27802
|
+
*/
|
|
27803
|
+
durability: "session"
|
|
27171
27804
|
};
|
|
27172
27805
|
/**
|
|
27173
27806
|
* Weather provider cap. Models HA `weather.*` entities — a read-only
|
|
@@ -27226,7 +27859,14 @@ var weatherCapability = {
|
|
|
27226
27859
|
* Runtime-state slice — mirrored by the kernel. The UI reads the
|
|
27227
27860
|
* current conditions directly from the slice on each weather push.
|
|
27228
27861
|
*/
|
|
27229
|
-
runtimeState: WeatherStatusSchema
|
|
27862
|
+
runtimeState: WeatherStatusSchema,
|
|
27863
|
+
/**
|
|
27864
|
+
* Runtime-state durability: **session** — a forecast is stale the moment the hub is down; the provider re-fetches on connect.
|
|
27865
|
+
*
|
|
27866
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27867
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27868
|
+
*/
|
|
27869
|
+
durability: "session"
|
|
27230
27870
|
};
|
|
27231
27871
|
/**
|
|
27232
27872
|
* Per-zone occupancy aggregation produced by the analytics frame
|
|
@@ -27388,7 +28028,14 @@ var zoneAnalyticsCapability = {
|
|
|
27388
28028
|
* automatically; the explicit `getCurrentSnapshot` cap method is
|
|
27389
28029
|
* still useful for one-off polls without a subscription.
|
|
27390
28030
|
*/
|
|
27391
|
-
runtimeState: CameraOccupancySnapshotSchema
|
|
28031
|
+
runtimeState: CameraOccupancySnapshotSchema,
|
|
28032
|
+
/**
|
|
28033
|
+
* Runtime-state durability: **session** — per-frame analytics; with `audio-metrics` it is ~90 % of the offered write rate. Re-derived on the next frame.
|
|
28034
|
+
*
|
|
28035
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
28036
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
28037
|
+
*/
|
|
28038
|
+
durability: "session"
|
|
27392
28039
|
};
|
|
27393
28040
|
/**
|
|
27394
28041
|
* Stages a {@link ZoneRule} can apply to. Discriminator on the rules
|
|
@@ -27466,7 +28113,14 @@ var zoneRulesCapability = {
|
|
|
27466
28113
|
motion: array(ZoneRuleSchema).readonly(),
|
|
27467
28114
|
detection: array(ZoneRuleSchema).readonly(),
|
|
27468
28115
|
package: array(ZoneRuleSchema).readonly()
|
|
27469
|
-
})
|
|
28116
|
+
}),
|
|
28117
|
+
/**
|
|
28118
|
+
* Runtime-state durability: **restored** — operator intent, mutation-only, same argument as `zones`.
|
|
28119
|
+
*
|
|
28120
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
28121
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
28122
|
+
*/
|
|
28123
|
+
durability: "restored"
|
|
27470
28124
|
};
|
|
27471
28125
|
/**
|
|
27472
28126
|
* Accessory device helpers — shared across drivers.
|
|
@@ -34299,6 +34953,7 @@ Object.freeze({
|
|
|
34299
34953
|
"network-access": "ingress",
|
|
34300
34954
|
"smtp-provider": "email"
|
|
34301
34955
|
});
|
|
34956
|
+
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
34302
34957
|
new Set(["devices", "classes"]);
|
|
34303
34958
|
/**
|
|
34304
34959
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|