@camstack/addon-provider-rtsp 1.2.15 → 1.2.17
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
|
@@ -10827,7 +10827,14 @@ var cameraStreamsCapability = {
|
|
|
10827
10827
|
low: string().optional()
|
|
10828
10828
|
}),
|
|
10829
10829
|
lastChangedAt: number()
|
|
10830
|
-
})
|
|
10830
|
+
}),
|
|
10831
|
+
/**
|
|
10832
|
+
* 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.
|
|
10833
|
+
*
|
|
10834
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
10835
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
10836
|
+
*/
|
|
10837
|
+
durability: "session"
|
|
10831
10838
|
};
|
|
10832
10839
|
/** Where a block runs. The operator chooses — a block driving a device on an
|
|
10833
10840
|
* agent is the reason placement is not fixed to the hub. */
|
|
@@ -11388,6 +11395,13 @@ var deviceDiscoveryCapability = {
|
|
|
11388
11395
|
kind: "poll"
|
|
11389
11396
|
},
|
|
11390
11397
|
runtimeState: DeviceDiscoveryStatusSchema.extend({ lastFetchedAt: number().int().nonnegative() }),
|
|
11398
|
+
/**
|
|
11399
|
+
* Runtime-state durability: **session** — 5.7 KB of scan output on the largest device, fully re-derivable by re-scanning.
|
|
11400
|
+
*
|
|
11401
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
11402
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
11403
|
+
*/
|
|
11404
|
+
durability: "session",
|
|
11391
11405
|
methods: {
|
|
11392
11406
|
/**
|
|
11393
11407
|
* Snapshot of the current `discovered` list. Returns the
|
|
@@ -13257,11 +13271,33 @@ var NotificationFormatSchema = _enum([
|
|
|
13257
13271
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
13258
13272
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
13259
13273
|
* differently.
|
|
13274
|
+
*
|
|
13275
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
13276
|
+
*
|
|
13277
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
13278
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
13279
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
13280
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
13281
|
+
* decides its glyph, which is the only place that decision can be made
|
|
13282
|
+
* honestly.
|
|
13283
|
+
*
|
|
13284
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
13285
|
+
* `disarm` straight through; iOS feeds that string to
|
|
13286
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
13287
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
13288
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
13289
|
+
*
|
|
13290
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
13291
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
13292
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
13293
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
13294
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
13260
13295
|
*/
|
|
13261
13296
|
var NotificationActionIconSchema = _enum([
|
|
13262
13297
|
"acknowledge",
|
|
13263
13298
|
"dismiss",
|
|
13264
13299
|
"silence",
|
|
13300
|
+
"snooze",
|
|
13265
13301
|
"view",
|
|
13266
13302
|
"play",
|
|
13267
13303
|
"open",
|
|
@@ -13269,9 +13305,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
13269
13305
|
"lock",
|
|
13270
13306
|
"unlock",
|
|
13271
13307
|
"arm",
|
|
13308
|
+
"arm-home",
|
|
13309
|
+
"arm-away",
|
|
13310
|
+
"arm-night",
|
|
13272
13311
|
"disarm",
|
|
13273
13312
|
"light",
|
|
13274
|
-
"alert"
|
|
13313
|
+
"alert",
|
|
13314
|
+
"camera"
|
|
13275
13315
|
]);
|
|
13276
13316
|
/** A single tap-through action button. */
|
|
13277
13317
|
var NotificationActionSchema = object({
|
|
@@ -13287,7 +13327,23 @@ var NotificationActionSchema = object({
|
|
|
13287
13327
|
* else — see `notification-center/action-token.ts` for what that does and
|
|
13288
13328
|
* does not buy.
|
|
13289
13329
|
*/
|
|
13290
|
-
destructive: boolean().optional()
|
|
13330
|
+
destructive: boolean().optional(),
|
|
13331
|
+
/**
|
|
13332
|
+
* How the tap should REACH the url.
|
|
13333
|
+
*
|
|
13334
|
+
* `navigate` (absent, and every button authored before this field) opens it:
|
|
13335
|
+
* the phone leaves the notification and shows whatever the callback returns.
|
|
13336
|
+
* That is right for a button whose answer the operator wants to read.
|
|
13337
|
+
*
|
|
13338
|
+
* `background` fires it as a POST and stays put. It exists for the buttons
|
|
13339
|
+
* whose whole point is not to interrupt — "silence this for 30 minutes" is
|
|
13340
|
+
* an answer to the notification, and being thrown into a browser tab to
|
|
13341
|
+
* confirm it costs more attention than the notification did. A backend that
|
|
13342
|
+
* cannot do a background call renders it as an ordinary link (the adapters
|
|
13343
|
+
* fall back rather than dropping the button), so this is a preference, never
|
|
13344
|
+
* a requirement.
|
|
13345
|
+
*/
|
|
13346
|
+
mode: _enum(["navigate", "background"]).optional()
|
|
13291
13347
|
});
|
|
13292
13348
|
/**
|
|
13293
13349
|
* The canonical notification. `body` is the only hard field (Apprise model).
|
|
@@ -13455,6 +13511,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
13455
13511
|
targetId: string(),
|
|
13456
13512
|
enabled: boolean()
|
|
13457
13513
|
}), _void(), { kind: "mutation" });
|
|
13514
|
+
new Set([
|
|
13515
|
+
{
|
|
13516
|
+
id: "person",
|
|
13517
|
+
name: "Person"
|
|
13518
|
+
},
|
|
13519
|
+
{
|
|
13520
|
+
id: "vehicle",
|
|
13521
|
+
name: "Vehicle"
|
|
13522
|
+
},
|
|
13523
|
+
{
|
|
13524
|
+
id: "animal",
|
|
13525
|
+
name: "Animal"
|
|
13526
|
+
},
|
|
13527
|
+
{
|
|
13528
|
+
id: "package",
|
|
13529
|
+
name: "Package"
|
|
13530
|
+
}
|
|
13531
|
+
].map((l) => l.id));
|
|
13458
13532
|
var COCO_TO_MACRO = {
|
|
13459
13533
|
mapping: {
|
|
13460
13534
|
person: "person",
|
|
@@ -14139,7 +14213,17 @@ var alarmPanelCapability = {
|
|
|
14139
14213
|
* full slice; renders an arm button per `availableModes` entry and
|
|
14140
14214
|
* a PIN field iff `requiresCode === true`.
|
|
14141
14215
|
*/
|
|
14142
|
-
runtimeState: AlarmPanelStatusSchema
|
|
14216
|
+
runtimeState: AlarmPanelStatusSchema,
|
|
14217
|
+
/**
|
|
14218
|
+
* Runtime-state durability: **restored** — armed state is the one thing a panel must not lose across a restart.
|
|
14219
|
+
*
|
|
14220
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
14221
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
14222
|
+
*/
|
|
14223
|
+
durability: "restored",
|
|
14224
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
14225
|
+
* whether persisting is worth a SQLite commit. */
|
|
14226
|
+
volatileStateFields: ["lastChangedAt"]
|
|
14143
14227
|
};
|
|
14144
14228
|
/**
|
|
14145
14229
|
* Shared geometry vocabulary for on-frame shape caps — privacy-mask,
|
|
@@ -14280,6 +14364,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14280
14364
|
"alarm-triggered",
|
|
14281
14365
|
"alarm-armed",
|
|
14282
14366
|
"alarm-disarmed",
|
|
14367
|
+
"alarm-arming",
|
|
14368
|
+
"alarm-arm-refused",
|
|
14283
14369
|
"camera-online",
|
|
14284
14370
|
"camera-offline",
|
|
14285
14371
|
"camera-disabled",
|
|
@@ -14316,6 +14402,9 @@ var NcSystemEventConditionSchema = object({
|
|
|
14316
14402
|
nodeIds: array(string().min(1)).min(1).optional(),
|
|
14317
14403
|
packageNames: array(string().min(1)).min(1).optional()
|
|
14318
14404
|
});
|
|
14405
|
+
/** Hard ceiling on a window (24h). A snooze that could not expire would be an
|
|
14406
|
+
* outage the operator asked for once and forgot. */
|
|
14407
|
+
var NC_SNOOZE_MAX_MINUTES = 1440;
|
|
14319
14408
|
/** Weekly schedule — OR of windows; absence on the rule = always active. */
|
|
14320
14409
|
var NcScheduleSchema = object({
|
|
14321
14410
|
windows: array(object({
|
|
@@ -14692,15 +14781,15 @@ var NcConditionsSchema = object({
|
|
|
14692
14781
|
* (an `immediate` rule naming an `audio-*` class, one notification per
|
|
14693
14782
|
* classified sample) stays exactly as it was for rules that already use it.
|
|
14694
14783
|
*
|
|
14695
|
-
*
|
|
14696
|
-
* rather than an
|
|
14697
|
-
* (`camstack/src/data/notification-center.ts`, guarded by
|
|
14698
|
-
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor
|
|
14784
|
+
* In {@link NC_CONDITION_CATALOG} since P2, and the ORDER it got there is the
|
|
14785
|
+
* rule rather than an accident: the viewer mirrors the descriptor enums BY
|
|
14786
|
+
* HAND (`camstack/src/data/notification-center.ts`, guarded by
|
|
14787
|
+
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor strips the
|
|
14699
14788
|
* condition fields it does not know when a rule is saved from the phone.
|
|
14700
14789
|
* Publishing an editor for a condition the app cannot round-trip is how an
|
|
14701
|
-
* operator loses a rule's conditions by opening it — so the
|
|
14702
|
-
*
|
|
14703
|
-
*
|
|
14790
|
+
* operator loses a rule's conditions by opening it — so the viewer mirror
|
|
14791
|
+
* (P3, shipped) went FIRST, and the descriptor an editor renders from
|
|
14792
|
+
* follows here.
|
|
14704
14793
|
*/
|
|
14705
14794
|
audio: NcAudioConditionSchema.optional()
|
|
14706
14795
|
});
|
|
@@ -14936,6 +15025,30 @@ var NcRuleInputSchema = object({
|
|
|
14936
15025
|
*/
|
|
14937
15026
|
snoozeAllowGlobal: boolean().optional(),
|
|
14938
15027
|
/**
|
|
15028
|
+
* The snooze durations THIS rule's notification offers as buttons, in
|
|
15029
|
+
* minutes.
|
|
15030
|
+
*
|
|
15031
|
+
* Three states, and all three are distinct — which is exactly why this is
|
|
15032
|
+
* `.optional()` and never `.default()`. A Zod default does not run on the
|
|
15033
|
+
* addon cap path (three production failures in one day), so a schema default
|
|
15034
|
+
* would collapse the first two:
|
|
15035
|
+
*
|
|
15036
|
+
* | value | meaning |
|
|
15037
|
+
* | --- | --- |
|
|
15038
|
+
* | absent | the operator never said ⇒ {@link NC_DEFAULT_SNOOZE_MINUTES} |
|
|
15039
|
+
* | `[]` | **no snooze buttons on this rule** — the explicit override |
|
|
15040
|
+
* | a list | these choices, de-duplicated and sorted, at most four |
|
|
15041
|
+
*
|
|
15042
|
+
* `.max(4)` because the notifier's own action budget is small (ntfy allows
|
|
15043
|
+
* three buttons in total) and a rule that spent it all on snooze choices
|
|
15044
|
+
* would push its own tap-through actions off the notification.
|
|
15045
|
+
*
|
|
15046
|
+
* An empty list is NOT an alarm exemption: a rule the alarm is about, or
|
|
15047
|
+
* that arms the panel, is exempt automatically and cannot be silenced by a
|
|
15048
|
+
* window from anywhere (D133).
|
|
15049
|
+
*/
|
|
15050
|
+
snoozeOptions: array(number().int().min(1).max(NC_SNOOZE_MAX_MINUTES)).max(4).optional(),
|
|
15051
|
+
/**
|
|
14939
15052
|
* Devices this rule ACTUATES — arm the alarm, open a gate, turn on a light.
|
|
14940
15053
|
*
|
|
14941
15054
|
* This is what makes the rule set the alarm's trigger set without the alarm
|
|
@@ -15035,6 +15148,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
15035
15148
|
"device",
|
|
15036
15149
|
"package",
|
|
15037
15150
|
"occupancy",
|
|
15151
|
+
"audio",
|
|
15038
15152
|
"system"
|
|
15039
15153
|
]),
|
|
15040
15154
|
label: string(),
|
|
@@ -15053,6 +15167,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
15053
15167
|
"crossingSelect",
|
|
15054
15168
|
"polygonDraw",
|
|
15055
15169
|
"occupancy",
|
|
15170
|
+
"audio",
|
|
15056
15171
|
"deviceState",
|
|
15057
15172
|
"systemEvent"
|
|
15058
15173
|
]),
|
|
@@ -15204,7 +15319,20 @@ var NcSnoozeInputSchema = object({
|
|
|
15204
15319
|
ruleId: string().optional(),
|
|
15205
15320
|
/** Required when `scope: 'device'`. */
|
|
15206
15321
|
deviceId: number().int().optional(),
|
|
15207
|
-
|
|
15322
|
+
/**
|
|
15323
|
+
* Narrow the window to these subject classes — "the cat, not the person".
|
|
15324
|
+
*
|
|
15325
|
+
* ORTHOGONAL to `scope`, deliberately, and absent means EVERY class: that is
|
|
15326
|
+
* what every window authored before this field meant, so no persisted row
|
|
15327
|
+
* changes meaning and no client has to learn anything to keep working.
|
|
15328
|
+
*
|
|
15329
|
+
* It is what makes the window's real key `(deviceId, classes[])` and lets it
|
|
15330
|
+
* cross rules (D133): the operator points at a camera and a kind of thing,
|
|
15331
|
+
* not at whichever of their four rules happened to produce the notification
|
|
15332
|
+
* they are dismissing.
|
|
15333
|
+
*/
|
|
15334
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
15335
|
+
durationMinutes: number().int().min(1).max(NC_SNOOZE_MAX_MINUTES),
|
|
15208
15336
|
/**
|
|
15209
15337
|
* Silence this for EVERY recipient, not just the caller. Permission is
|
|
15210
15338
|
* checked server-side (the rule's `snoozeAllowGlobal`, or admin for the
|
|
@@ -15229,6 +15357,10 @@ var NcSnoozeSchema = object({
|
|
|
15229
15357
|
scope: NcSnoozeScopeSchema,
|
|
15230
15358
|
ruleId: string().optional(),
|
|
15231
15359
|
deviceId: number().int().optional(),
|
|
15360
|
+
/** Subject classes this window covers. ABSENT = every class — see
|
|
15361
|
+
* {@link NcSnoozeInputSchema.shape.classes}. Lives in the JSON blob and has
|
|
15362
|
+
* no SQLite column: nothing queries a window by class. */
|
|
15363
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
15232
15364
|
startedAt: number(),
|
|
15233
15365
|
/** Exclusive: at exactly this instant the snooze is over. Expiry is a
|
|
15234
15366
|
* COMPARISON, not a job — no sweeper can leave the operator silenced. */
|
|
@@ -17329,7 +17461,14 @@ var zonesCapability = {
|
|
|
17329
17461
|
* handle. Slice shape is `{ zones: Zone[] }` so future extensions
|
|
17330
17462
|
* (e.g. zone groupings) can sit alongside the polygon list.
|
|
17331
17463
|
*/
|
|
17332
|
-
runtimeState: object({ zones: array(ZoneSchema).readonly() })
|
|
17464
|
+
runtimeState: object({ zones: array(ZoneSchema).readonly() }),
|
|
17465
|
+
/**
|
|
17466
|
+
* 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.
|
|
17467
|
+
*
|
|
17468
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
17469
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
17470
|
+
*/
|
|
17471
|
+
durability: "restored"
|
|
17333
17472
|
};
|
|
17334
17473
|
/**
|
|
17335
17474
|
* A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
|
|
@@ -17499,6 +17638,22 @@ var detectionFpsField = {
|
|
|
17499
17638
|
default: 10,
|
|
17500
17639
|
step: 1
|
|
17501
17640
|
};
|
|
17641
|
+
/**
|
|
17642
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
17643
|
+
*
|
|
17644
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
17645
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
17646
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
17647
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
17648
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
17649
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
17650
|
+
*
|
|
17651
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
17652
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
17653
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
17654
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
17655
|
+
* that ships with an addon deploy.
|
|
17656
|
+
*/
|
|
17502
17657
|
var occupancyRecheckSecField = {
|
|
17503
17658
|
min: 0,
|
|
17504
17659
|
max: 300,
|
|
@@ -17700,15 +17855,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
17700
17855
|
*/
|
|
17701
17856
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
17702
17857
|
/**
|
|
17703
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
17704
|
-
*
|
|
17705
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
17706
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
17707
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
17858
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
17859
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
17708
17860
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
17709
17861
|
* (and only render) when this is enabled.
|
|
17710
|
-
|
|
17711
|
-
|
|
17862
|
+
*
|
|
17863
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
17864
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
17865
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
17866
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
17867
|
+
* object is counted only while the stationary registry holds it, and the
|
|
17868
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
17869
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
17870
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
17871
|
+
*/
|
|
17872
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
17712
17873
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
17713
17874
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
17714
17875
|
/**
|
|
@@ -20223,7 +20384,17 @@ var airQualitySensorCapability = {
|
|
|
20223
20384
|
schema: AirQualitySensorStatusSchema,
|
|
20224
20385
|
kind: "push"
|
|
20225
20386
|
},
|
|
20226
|
-
runtimeState: AirQualitySensorStatusSchema
|
|
20387
|
+
runtimeState: AirQualitySensorStatusSchema,
|
|
20388
|
+
/**
|
|
20389
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
20390
|
+
*
|
|
20391
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20392
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20393
|
+
*/
|
|
20394
|
+
durability: "restored",
|
|
20395
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20396
|
+
* whether persisting is worth a SQLite commit. */
|
|
20397
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
20227
20398
|
};
|
|
20228
20399
|
/**
|
|
20229
20400
|
* Ambient illuminance reading in lux. Drives Home Assistant `sensor`
|
|
@@ -20255,7 +20426,17 @@ var ambientLightSensorCapability = {
|
|
|
20255
20426
|
schema: AmbientLightSensorStatusSchema,
|
|
20256
20427
|
kind: "push"
|
|
20257
20428
|
},
|
|
20258
|
-
runtimeState: AmbientLightSensorStatusSchema
|
|
20429
|
+
runtimeState: AmbientLightSensorStatusSchema,
|
|
20430
|
+
/**
|
|
20431
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
20432
|
+
*
|
|
20433
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20434
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20435
|
+
*/
|
|
20436
|
+
durability: "restored",
|
|
20437
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20438
|
+
* whether persisting is worth a SQLite commit. */
|
|
20439
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
20259
20440
|
};
|
|
20260
20441
|
/**
|
|
20261
20442
|
* Per-class audio metrics aggregated over a sliding window.
|
|
@@ -20373,7 +20554,14 @@ var audioMetricsCapability = {
|
|
|
20373
20554
|
}), AudioMetricsHistorySchema)
|
|
20374
20555
|
},
|
|
20375
20556
|
/** Reactive runtime-state mirror — live `device.state.audioMetrics.value`. */
|
|
20376
|
-
runtimeState: AudioMetricsSnapshotSchema
|
|
20557
|
+
runtimeState: AudioMetricsSnapshotSchema,
|
|
20558
|
+
/**
|
|
20559
|
+
* 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.
|
|
20560
|
+
*
|
|
20561
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20562
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20563
|
+
*/
|
|
20564
|
+
durability: "session"
|
|
20377
20565
|
};
|
|
20378
20566
|
/**
|
|
20379
20567
|
* Automation-control cap. Models HA `automation.*` entities on
|
|
@@ -20435,7 +20623,14 @@ var automationControlCapability = {
|
|
|
20435
20623
|
* reads `enabled` (toggle) + `isRunning` (spinner) + `lastError`
|
|
20436
20624
|
* (badge) directly.
|
|
20437
20625
|
*/
|
|
20438
|
-
runtimeState: AutomationControlStatusSchema
|
|
20626
|
+
runtimeState: AutomationControlStatusSchema,
|
|
20627
|
+
/**
|
|
20628
|
+
* 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.
|
|
20629
|
+
*
|
|
20630
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20631
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20632
|
+
*/
|
|
20633
|
+
durability: "session"
|
|
20439
20634
|
};
|
|
20440
20635
|
/**
|
|
20441
20636
|
* Battery status snapshot. Emitted by providers whose device is
|
|
@@ -20541,7 +20736,17 @@ onStatusChanged: { data: object({
|
|
|
20541
20736
|
* via `device.runtimeState.getCapState('battery')` regardless of
|
|
20542
20737
|
* the underlying driver.
|
|
20543
20738
|
*/
|
|
20544
|
-
runtimeState: BatteryStatusSchema
|
|
20739
|
+
runtimeState: BatteryStatusSchema,
|
|
20740
|
+
/**
|
|
20741
|
+
* 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.
|
|
20742
|
+
*
|
|
20743
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20744
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20745
|
+
*/
|
|
20746
|
+
durability: "restored",
|
|
20747
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20748
|
+
* whether persisting is worth a SQLite commit. */
|
|
20749
|
+
volatileStateFields: ["lastUpdated"]
|
|
20545
20750
|
};
|
|
20546
20751
|
/**
|
|
20547
20752
|
* Generic boolean sensor — last-resort fallback when no domain-
|
|
@@ -20570,7 +20775,17 @@ var binaryCapability = {
|
|
|
20570
20775
|
schema: BinaryStatusSchema,
|
|
20571
20776
|
kind: "push"
|
|
20572
20777
|
},
|
|
20573
|
-
runtimeState: BinaryStatusSchema
|
|
20778
|
+
runtimeState: BinaryStatusSchema,
|
|
20779
|
+
/**
|
|
20780
|
+
* Runtime-state durability: **restored** — transition-driven sensor state; the restored value gives the boot comparison.
|
|
20781
|
+
*
|
|
20782
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20783
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20784
|
+
*/
|
|
20785
|
+
durability: "restored",
|
|
20786
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20787
|
+
* whether persisting is worth a SQLite commit. */
|
|
20788
|
+
volatileStateFields: ["lastChangedAt"]
|
|
20574
20789
|
};
|
|
20575
20790
|
/**
|
|
20576
20791
|
* Dimmable-light brightness control. Co-exists with `switch` on the
|
|
@@ -20623,7 +20838,14 @@ onBrightnessChanged: { data: object({
|
|
|
20623
20838
|
* by the kernel. Read via `device.state.brightness.value` so UI
|
|
20624
20839
|
* sliders surface the current level without polling the provider.
|
|
20625
20840
|
*/
|
|
20626
|
-
runtimeState: BrightnessStatusSchema
|
|
20841
|
+
runtimeState: BrightnessStatusSchema,
|
|
20842
|
+
/**
|
|
20843
|
+
* Runtime-state durability: **session** — live lamp state, re-published by the provider on connect.
|
|
20844
|
+
*
|
|
20845
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20846
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20847
|
+
*/
|
|
20848
|
+
durability: "session"
|
|
20627
20849
|
};
|
|
20628
20850
|
DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _void(), {
|
|
20629
20851
|
kind: "mutation",
|
|
@@ -20711,7 +20933,17 @@ var carbonMonoxideCapability = {
|
|
|
20711
20933
|
schema: CarbonMonoxideStatusSchema,
|
|
20712
20934
|
kind: "push"
|
|
20713
20935
|
},
|
|
20714
|
-
runtimeState: CarbonMonoxideStatusSchema
|
|
20936
|
+
runtimeState: CarbonMonoxideStatusSchema,
|
|
20937
|
+
/**
|
|
20938
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
20939
|
+
*
|
|
20940
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20941
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20942
|
+
*/
|
|
20943
|
+
durability: "restored",
|
|
20944
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20945
|
+
* whether persisting is worth a SQLite commit. */
|
|
20946
|
+
volatileStateFields: ["lastChangedAt"]
|
|
20715
20947
|
};
|
|
20716
20948
|
/**
|
|
20717
20949
|
* HVAC / climate control cap. Models the full surface of a HA
|
|
@@ -20871,7 +21103,14 @@ var climateControlCapability = {
|
|
|
20871
21103
|
* the full slice via `device.state.climate-control.value` and refresh
|
|
20872
21104
|
* on every push without re-querying the provider.
|
|
20873
21105
|
*/
|
|
20874
|
-
runtimeState: ClimateControlStatusSchema
|
|
21106
|
+
runtimeState: ClimateControlStatusSchema,
|
|
21107
|
+
/**
|
|
21108
|
+
* Runtime-state durability: **session** — as `brightness`; `currentTemp` moves continuously and is re-published on connect.
|
|
21109
|
+
*
|
|
21110
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21111
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21112
|
+
*/
|
|
21113
|
+
durability: "session"
|
|
20875
21114
|
};
|
|
20876
21115
|
/**
|
|
20877
21116
|
* Color-light cap. Coexists with `switch` (on/off) and `brightness`
|
|
@@ -20981,7 +21220,14 @@ onColorChanged: { data: object({
|
|
|
20981
21220
|
* kernel. Read via `device.state.color.value` so UI pickers surface
|
|
20982
21221
|
* the current chromaticity without polling the provider.
|
|
20983
21222
|
*/
|
|
20984
|
-
runtimeState: ColorStatusSchema
|
|
21223
|
+
runtimeState: ColorStatusSchema,
|
|
21224
|
+
/**
|
|
21225
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
21226
|
+
*
|
|
21227
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21228
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21229
|
+
*/
|
|
21230
|
+
durability: "session"
|
|
20985
21231
|
};
|
|
20986
21232
|
var ConnectionTestOutcomeSchema = discriminatedUnion("outcome", [
|
|
20987
21233
|
object({
|
|
@@ -21047,7 +21293,17 @@ var connectivityCapability = {
|
|
|
21047
21293
|
schema: ConnectivityStatusSchema,
|
|
21048
21294
|
kind: "push"
|
|
21049
21295
|
},
|
|
21050
|
-
runtimeState: ConnectivityStatusSchema
|
|
21296
|
+
runtimeState: ConnectivityStatusSchema,
|
|
21297
|
+
/**
|
|
21298
|
+
* Runtime-state durability: **restored** — same shape and same argument as `device-status`, for links rather than devices.
|
|
21299
|
+
*
|
|
21300
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21301
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21302
|
+
*/
|
|
21303
|
+
durability: "restored",
|
|
21304
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21305
|
+
* whether persisting is worth a SQLite commit. */
|
|
21306
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21051
21307
|
};
|
|
21052
21308
|
/**
|
|
21053
21309
|
* Generic device-consumables capability — surfaces a device's
|
|
@@ -21129,7 +21385,14 @@ reset: method(object({
|
|
|
21129
21385
|
}
|
|
21130
21386
|
}
|
|
21131
21387
|
},
|
|
21132
|
-
runtimeState: ConsumablesStatusSchema.extend({ lastFetchedAt: number() })
|
|
21388
|
+
runtimeState: ConsumablesStatusSchema.extend({ lastFetchedAt: number() }),
|
|
21389
|
+
/**
|
|
21390
|
+
* Runtime-state durability: **session** — the authority is the appliance; the provider re-reads the whole item array on connect.
|
|
21391
|
+
*
|
|
21392
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21393
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21394
|
+
*/
|
|
21395
|
+
durability: "session"
|
|
21133
21396
|
};
|
|
21134
21397
|
/**
|
|
21135
21398
|
* Door / window / opening / garage / valve contact sensor. Boolean
|
|
@@ -21160,7 +21423,17 @@ var contactCapability = {
|
|
|
21160
21423
|
schema: ContactStatusSchema,
|
|
21161
21424
|
kind: "push"
|
|
21162
21425
|
},
|
|
21163
|
-
runtimeState: ContactStatusSchema
|
|
21426
|
+
runtimeState: ContactStatusSchema,
|
|
21427
|
+
/**
|
|
21428
|
+
* Runtime-state durability: **restored** — a door left open across a restart must still read open.
|
|
21429
|
+
*
|
|
21430
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21431
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21432
|
+
*/
|
|
21433
|
+
durability: "restored",
|
|
21434
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21435
|
+
* whether persisting is worth a SQLite commit. */
|
|
21436
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21164
21437
|
};
|
|
21165
21438
|
/**
|
|
21166
21439
|
* Status slice — flat object (the framework's `runtimeState` contract
|
|
@@ -21266,7 +21539,14 @@ var controlCapability = {
|
|
|
21266
21539
|
* dropdown / text field / date picker) read the slice's discriminant
|
|
21267
21540
|
* and value directly without polling the provider.
|
|
21268
21541
|
*/
|
|
21269
|
-
runtimeState: ControlStatusSchema
|
|
21542
|
+
runtimeState: ControlStatusSchema,
|
|
21543
|
+
/**
|
|
21544
|
+
* Runtime-state durability: **session** — a generic control mirrors an external entity that re-publishes on connect; the options array is re-derived with it.
|
|
21545
|
+
*
|
|
21546
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21547
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21548
|
+
*/
|
|
21549
|
+
durability: "session"
|
|
21270
21550
|
};
|
|
21271
21551
|
var CoverStatusSchema = object({
|
|
21272
21552
|
/** Lifecycle state of the cover. */
|
|
@@ -21327,7 +21607,17 @@ var coverCapability = {
|
|
|
21327
21607
|
* Runtime-state slice — mirrored by the kernel. UI controls watch
|
|
21328
21608
|
* the slice for live position changes during a move.
|
|
21329
21609
|
*/
|
|
21330
|
-
runtimeState: CoverStatusSchema
|
|
21610
|
+
runtimeState: CoverStatusSchema,
|
|
21611
|
+
/**
|
|
21612
|
+
* Runtime-state durability: **restored** — position survives a restart on the device; the mirror should agree at boot rather than read blank.
|
|
21613
|
+
*
|
|
21614
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21615
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21616
|
+
*/
|
|
21617
|
+
durability: "restored",
|
|
21618
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21619
|
+
* whether persisting is worth a SQLite commit. */
|
|
21620
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21331
21621
|
};
|
|
21332
21622
|
/**
|
|
21333
21623
|
* Vendor-neutral day/night (IR-cut) control — the per-camera config cap
|
|
@@ -21421,7 +21711,17 @@ var dayNightCapability = {
|
|
|
21421
21711
|
schema: DayNightStatusSchema,
|
|
21422
21712
|
kind: "poll"
|
|
21423
21713
|
},
|
|
21424
|
-
runtimeState: DayNightStatusSchema
|
|
21714
|
+
runtimeState: DayNightStatusSchema,
|
|
21715
|
+
/**
|
|
21716
|
+
* Runtime-state durability: **restored** — operator-set IR-cut behaviour; mutation-driven.
|
|
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: ["lastFetchedAt"]
|
|
21425
21725
|
};
|
|
21426
21726
|
/**
|
|
21427
21727
|
* Generic device-level status snapshot. Auto-registered by `BaseDevice`
|
|
@@ -21468,7 +21768,17 @@ onStatusChanged: { data: object({
|
|
|
21468
21768
|
schema: DeviceStatusSchema,
|
|
21469
21769
|
kind: "push"
|
|
21470
21770
|
},
|
|
21471
|
-
runtimeState: DeviceStatusSchema
|
|
21771
|
+
runtimeState: DeviceStatusSchema,
|
|
21772
|
+
/**
|
|
21773
|
+
* 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.
|
|
21774
|
+
*
|
|
21775
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21776
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21777
|
+
*/
|
|
21778
|
+
durability: "restored",
|
|
21779
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21780
|
+
* whether persisting is worth a SQLite commit. */
|
|
21781
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21472
21782
|
};
|
|
21473
21783
|
/**
|
|
21474
21784
|
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
@@ -21530,7 +21840,14 @@ onPressed: { data: DoorbellPressEventSchema } },
|
|
|
21530
21840
|
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
21531
21841
|
* without subscribing.
|
|
21532
21842
|
*/
|
|
21533
|
-
runtimeState: DoorbellStatusSchema
|
|
21843
|
+
runtimeState: DoorbellStatusSchema,
|
|
21844
|
+
/**
|
|
21845
|
+
* 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.
|
|
21846
|
+
*
|
|
21847
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21848
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21849
|
+
*/
|
|
21850
|
+
durability: "restored"
|
|
21534
21851
|
};
|
|
21535
21852
|
/**
|
|
21536
21853
|
* Enum-state sensor — a string value picked from a finite option set.
|
|
@@ -21570,7 +21887,17 @@ var enumSensorCapability = {
|
|
|
21570
21887
|
schema: EnumSensorStatusSchema,
|
|
21571
21888
|
kind: "push"
|
|
21572
21889
|
},
|
|
21573
|
-
runtimeState: EnumSensorStatusSchema
|
|
21890
|
+
runtimeState: EnumSensorStatusSchema,
|
|
21891
|
+
/**
|
|
21892
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`; 80 devices.
|
|
21893
|
+
*
|
|
21894
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21895
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21896
|
+
*/
|
|
21897
|
+
durability: "restored",
|
|
21898
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21899
|
+
* whether persisting is worth a SQLite commit. */
|
|
21900
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
21574
21901
|
};
|
|
21575
21902
|
/**
|
|
21576
21903
|
* Generic stateless event emitter. Installed on a `DeviceType.EventEmitter`
|
|
@@ -21606,7 +21933,14 @@ var eventEmitterCapability = {
|
|
|
21606
21933
|
schema: EventEmitterStatusSchema,
|
|
21607
21934
|
kind: "push"
|
|
21608
21935
|
},
|
|
21609
|
-
runtimeState: EventEmitterStatusSchema
|
|
21936
|
+
runtimeState: EventEmitterStatusSchema,
|
|
21937
|
+
/**
|
|
21938
|
+
* Runtime-state durability: **session** — `eventCountSinceStart` names its own scope.
|
|
21939
|
+
*
|
|
21940
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21941
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21942
|
+
*/
|
|
21943
|
+
durability: "session"
|
|
21610
21944
|
};
|
|
21611
21945
|
var EventItemSchema = object({
|
|
21612
21946
|
id: string(),
|
|
@@ -21887,7 +22221,14 @@ var fanControlCapability = {
|
|
|
21887
22221
|
* Runtime-state slice — mirrored by the kernel. UI fan speed
|
|
21888
22222
|
* sliders read `percentage` for live updates.
|
|
21889
22223
|
*/
|
|
21890
|
-
runtimeState: FanControlStatusSchema
|
|
22224
|
+
runtimeState: FanControlStatusSchema,
|
|
22225
|
+
/**
|
|
22226
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
22227
|
+
*
|
|
22228
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22229
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22230
|
+
*/
|
|
22231
|
+
durability: "session"
|
|
21891
22232
|
};
|
|
21892
22233
|
/**
|
|
21893
22234
|
* Per-device feature/identity probe slice. Holds the runtime-resolved
|
|
@@ -21963,7 +22304,14 @@ onProbeChanged: { data: object({
|
|
|
21963
22304
|
schema: FeatureProbeStatusSchema,
|
|
21964
22305
|
kind: "push"
|
|
21965
22306
|
},
|
|
21966
|
-
runtimeState: FeatureProbeStatusSchema
|
|
22307
|
+
runtimeState: FeatureProbeStatusSchema,
|
|
22308
|
+
/**
|
|
22309
|
+
* 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.
|
|
22310
|
+
*
|
|
22311
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22312
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22313
|
+
*/
|
|
22314
|
+
durability: "session"
|
|
21967
22315
|
};
|
|
21968
22316
|
/**
|
|
21969
22317
|
* Water leak / moisture sensor. Boolean "is liquid currently
|
|
@@ -21990,7 +22338,17 @@ var floodCapability = {
|
|
|
21990
22338
|
schema: FloodStatusSchema,
|
|
21991
22339
|
kind: "push"
|
|
21992
22340
|
},
|
|
21993
|
-
runtimeState: FloodStatusSchema
|
|
22341
|
+
runtimeState: FloodStatusSchema,
|
|
22342
|
+
/**
|
|
22343
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
22344
|
+
*
|
|
22345
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22346
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22347
|
+
*/
|
|
22348
|
+
durability: "restored",
|
|
22349
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22350
|
+
* whether persisting is worth a SQLite commit. */
|
|
22351
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21994
22352
|
};
|
|
21995
22353
|
/**
|
|
21996
22354
|
* Combustible-gas (LPG / methane / hydrogen) alarm sensor. Drives
|
|
@@ -22013,7 +22371,17 @@ var gasCapability = {
|
|
|
22013
22371
|
schema: GasStatusSchema,
|
|
22014
22372
|
kind: "push"
|
|
22015
22373
|
},
|
|
22016
|
-
runtimeState: GasStatusSchema
|
|
22374
|
+
runtimeState: GasStatusSchema,
|
|
22375
|
+
/**
|
|
22376
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
22377
|
+
*
|
|
22378
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22379
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22380
|
+
*/
|
|
22381
|
+
durability: "restored",
|
|
22382
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22383
|
+
* whether persisting is worth a SQLite commit. */
|
|
22384
|
+
volatileStateFields: ["lastChangedAt"]
|
|
22017
22385
|
};
|
|
22018
22386
|
/**
|
|
22019
22387
|
* Humidifier / dehumidifier cap. Models HA `humidifier.*` entities —
|
|
@@ -22089,7 +22457,14 @@ var humidifierCapability = {
|
|
|
22089
22457
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
22090
22458
|
* slice for live humidity / mode changes.
|
|
22091
22459
|
*/
|
|
22092
|
-
runtimeState: HumidifierStatusSchema
|
|
22460
|
+
runtimeState: HumidifierStatusSchema,
|
|
22461
|
+
/**
|
|
22462
|
+
* Runtime-state durability: **session** — as `climate-control`.
|
|
22463
|
+
*
|
|
22464
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22465
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22466
|
+
*/
|
|
22467
|
+
durability: "session"
|
|
22093
22468
|
};
|
|
22094
22469
|
/**
|
|
22095
22470
|
* Single-metric humidity reading. Drives Home Assistant `sensor`
|
|
@@ -22125,7 +22500,17 @@ var humiditySensorCapability = {
|
|
|
22125
22500
|
schema: HumiditySensorStatusSchema,
|
|
22126
22501
|
kind: "push"
|
|
22127
22502
|
},
|
|
22128
|
-
runtimeState: HumiditySensorStatusSchema
|
|
22503
|
+
runtimeState: HumiditySensorStatusSchema,
|
|
22504
|
+
/**
|
|
22505
|
+
* Runtime-state durability: **restored** — as `numeric-sensor` (67 of 75 writes were the clock alone).
|
|
22506
|
+
*
|
|
22507
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22508
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22509
|
+
*/
|
|
22510
|
+
durability: "restored",
|
|
22511
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22512
|
+
* whether persisting is worth a SQLite commit. */
|
|
22513
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
22129
22514
|
};
|
|
22130
22515
|
/**
|
|
22131
22516
|
* Image display cap. Models a single still image exposed by an integration —
|
|
@@ -22163,7 +22548,14 @@ var imageCapability = {
|
|
|
22163
22548
|
* Runtime-state slice — mirrored by the kernel. The UI reads `url`
|
|
22164
22549
|
* directly and renders the still image.
|
|
22165
22550
|
*/
|
|
22166
|
-
runtimeState: ImageStatusSchema
|
|
22551
|
+
runtimeState: ImageStatusSchema,
|
|
22552
|
+
/**
|
|
22553
|
+
* Runtime-state durability: **session** — a snapshot URL is a session-scoped handle; a restored one points at nothing.
|
|
22554
|
+
*
|
|
22555
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22556
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22557
|
+
*/
|
|
22558
|
+
durability: "session"
|
|
22167
22559
|
};
|
|
22168
22560
|
/**
|
|
22169
22561
|
* Vendor-neutral image / picture-adjustment cap — the per-camera config
|
|
@@ -22312,7 +22704,17 @@ var imageSettingsCapability = {
|
|
|
22312
22704
|
schema: ImageSettingsStatusSchema,
|
|
22313
22705
|
kind: "poll"
|
|
22314
22706
|
},
|
|
22315
|
-
runtimeState: ImageSettingsStatusSchema
|
|
22707
|
+
runtimeState: ImageSettingsStatusSchema,
|
|
22708
|
+
/**
|
|
22709
|
+
* Runtime-state durability: **restored** — operator-set camera imaging; mutation-driven.
|
|
22710
|
+
*
|
|
22711
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22712
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22713
|
+
*/
|
|
22714
|
+
durability: "restored",
|
|
22715
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22716
|
+
* whether persisting is worth a SQLite commit. */
|
|
22717
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
22316
22718
|
};
|
|
22317
22719
|
/**
|
|
22318
22720
|
* integrations — system-scoped singleton capability for integration
|
|
@@ -22652,7 +23054,14 @@ var lawnMowerControlCapability = {
|
|
|
22652
23054
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
22653
23055
|
* slice for live activity + battery changes.
|
|
22654
23056
|
*/
|
|
22655
|
-
runtimeState: LawnMowerControlStatusSchema
|
|
23057
|
+
runtimeState: LawnMowerControlStatusSchema,
|
|
23058
|
+
/**
|
|
23059
|
+
* Runtime-state durability: **session** — as `vacuum-control`.
|
|
23060
|
+
*
|
|
23061
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23062
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23063
|
+
*/
|
|
23064
|
+
durability: "session"
|
|
22656
23065
|
};
|
|
22657
23066
|
/**
|
|
22658
23067
|
* local-network — hub-only singleton.
|
|
@@ -22858,7 +23267,17 @@ var lockControlCapability = {
|
|
|
22858
23267
|
* read `state` and disable themselves during `locking`/`unlocking`
|
|
22859
23268
|
* transitions.
|
|
22860
23269
|
*/
|
|
22861
|
-
runtimeState: LockControlStatusSchema
|
|
23270
|
+
runtimeState: LockControlStatusSchema,
|
|
23271
|
+
/**
|
|
23272
|
+
* Runtime-state durability: **restored** — a lock left locked must still read locked.
|
|
23273
|
+
*
|
|
23274
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23275
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23276
|
+
*/
|
|
23277
|
+
durability: "restored",
|
|
23278
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23279
|
+
* whether persisting is worth a SQLite commit. */
|
|
23280
|
+
volatileStateFields: ["lastChangedAt"]
|
|
22862
23281
|
};
|
|
22863
23282
|
/**
|
|
22864
23283
|
* Media-player cap. Models HA `media_player.*` (Sonos, Chromecast,
|
|
@@ -23020,7 +23439,14 @@ var mediaPlayerCapability = {
|
|
|
23020
23439
|
* full slice for live now-playing, volume, and progress updates
|
|
23021
23440
|
* without polling.
|
|
23022
23441
|
*/
|
|
23023
|
-
runtimeState: MediaPlayerStatusSchema
|
|
23442
|
+
runtimeState: MediaPlayerStatusSchema,
|
|
23443
|
+
/**
|
|
23444
|
+
* Runtime-state durability: **session** — a restored transport position describes a playback that stopped when the hub did.
|
|
23445
|
+
*
|
|
23446
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23447
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23448
|
+
*/
|
|
23449
|
+
durability: "session"
|
|
23024
23450
|
};
|
|
23025
23451
|
/**
|
|
23026
23452
|
* mesh-network — collection cap for mesh-VPN providers.
|
|
@@ -23284,7 +23710,14 @@ onMotionChanged: { data: MotionOnMotionChangedDataSchema } },
|
|
|
23284
23710
|
* `device.state.motion.value`. Reads never invoke the provider, so
|
|
23285
23711
|
* UIs and other addons can poll the cached state safely.
|
|
23286
23712
|
*/
|
|
23287
|
-
runtimeState: MotionStatusSchema
|
|
23713
|
+
runtimeState: MotionStatusSchema,
|
|
23714
|
+
/**
|
|
23715
|
+
* 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.
|
|
23716
|
+
*
|
|
23717
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23718
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23719
|
+
*/
|
|
23720
|
+
durability: "session"
|
|
23288
23721
|
};
|
|
23289
23722
|
/**
|
|
23290
23723
|
* Motion-trigger toggle for accessory devices.
|
|
@@ -23349,7 +23782,14 @@ var motionTriggerCapability = {
|
|
|
23349
23782
|
schema: MotionTriggerStatusSchema,
|
|
23350
23783
|
kind: "command-driven"
|
|
23351
23784
|
},
|
|
23352
|
-
runtimeState: MotionTriggerRuntimeStateSchema
|
|
23785
|
+
runtimeState: MotionTriggerRuntimeStateSchema,
|
|
23786
|
+
/**
|
|
23787
|
+
* 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.
|
|
23788
|
+
*
|
|
23789
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23790
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23791
|
+
*/
|
|
23792
|
+
durability: "session"
|
|
23353
23793
|
};
|
|
23354
23794
|
/**
|
|
23355
23795
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
@@ -23416,7 +23856,17 @@ var motionZonesCapability = {
|
|
|
23416
23856
|
schema: MotionZoneStatusSchema,
|
|
23417
23857
|
kind: "poll"
|
|
23418
23858
|
},
|
|
23419
|
-
runtimeState: MotionZoneStatusSchema
|
|
23859
|
+
runtimeState: MotionZoneStatusSchema,
|
|
23860
|
+
/**
|
|
23861
|
+
* 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.
|
|
23862
|
+
*
|
|
23863
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23864
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23865
|
+
*/
|
|
23866
|
+
durability: "restored",
|
|
23867
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23868
|
+
* whether persisting is worth a SQLite commit. */
|
|
23869
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23420
23870
|
};
|
|
23421
23871
|
/**
|
|
23422
23872
|
* On-camera AI object detection cap. Surfaces per-device the classes
|
|
@@ -23490,7 +23940,17 @@ var nativeObjectDetectionCapability = {
|
|
|
23490
23940
|
schema: NativeObjectDetectionStatusSchema,
|
|
23491
23941
|
kind: "push"
|
|
23492
23942
|
},
|
|
23493
|
-
runtimeState: NativeObjectDetectionRuntimeStateSchema
|
|
23943
|
+
runtimeState: NativeObjectDetectionRuntimeStateSchema,
|
|
23944
|
+
/**
|
|
23945
|
+
* 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.
|
|
23946
|
+
*
|
|
23947
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23948
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23949
|
+
*/
|
|
23950
|
+
durability: "restored",
|
|
23951
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23952
|
+
* whether persisting is worth a SQLite commit. */
|
|
23953
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23494
23954
|
};
|
|
23495
23955
|
/**
|
|
23496
23956
|
* network-quality — system-scoped singleton capability tracking RTT,
|
|
@@ -23824,7 +24284,14 @@ onSent: { data: object({
|
|
|
23824
24284
|
* form reads `supports` to gate optional fields; history pane reads
|
|
23825
24285
|
* `lastSentAt` / `lastError` / `queueDepth`.
|
|
23826
24286
|
*/
|
|
23827
|
-
runtimeState: NotifierStatusSchema
|
|
24287
|
+
runtimeState: NotifierStatusSchema,
|
|
24288
|
+
/**
|
|
24289
|
+
* Runtime-state durability: **session** — live queue depth and last-send state; a restored queue depth describes a queue that no longer exists.
|
|
24290
|
+
*
|
|
24291
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24292
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24293
|
+
*/
|
|
24294
|
+
durability: "session"
|
|
23828
24295
|
};
|
|
23829
24296
|
/**
|
|
23830
24297
|
* Generic numeric sensor — last-resort fallback when no typed numeric
|
|
@@ -23867,7 +24334,17 @@ var numericSensorCapability = {
|
|
|
23867
24334
|
schema: NumericSensorStatusSchema,
|
|
23868
24335
|
kind: "push"
|
|
23869
24336
|
},
|
|
23870
|
-
runtimeState: NumericSensorStatusSchema
|
|
24337
|
+
runtimeState: NumericSensorStatusSchema,
|
|
24338
|
+
/**
|
|
24339
|
+
* 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.
|
|
24340
|
+
*
|
|
24341
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24342
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24343
|
+
*/
|
|
24344
|
+
durability: "restored",
|
|
24345
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24346
|
+
* whether persisting is worth a SQLite commit. */
|
|
24347
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23871
24348
|
};
|
|
23872
24349
|
/**
|
|
23873
24350
|
* Generic on-screen-display (video overlay) cap. Each camera exposes
|
|
@@ -24252,7 +24729,14 @@ var petFeederCapability = {
|
|
|
24252
24729
|
* the full slice via `device.state.petFeeder.value` and refresh on
|
|
24253
24730
|
* every poll without re-querying the provider.
|
|
24254
24731
|
*/
|
|
24255
|
-
runtimeState: PetFeederStatusSchema
|
|
24732
|
+
runtimeState: PetFeederStatusSchema,
|
|
24733
|
+
/**
|
|
24734
|
+
* Runtime-state durability: **session** — live appliance state re-published on connect.
|
|
24735
|
+
*
|
|
24736
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24737
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24738
|
+
*/
|
|
24739
|
+
durability: "session"
|
|
24256
24740
|
};
|
|
24257
24741
|
var VehicleSchema = object({
|
|
24258
24742
|
id: string(),
|
|
@@ -24564,7 +25048,17 @@ var powerMeterCapability = {
|
|
|
24564
25048
|
schema: PowerMeterStatusSchema,
|
|
24565
25049
|
kind: "push"
|
|
24566
25050
|
},
|
|
24567
|
-
runtimeState: PowerMeterStatusSchema
|
|
25051
|
+
runtimeState: PowerMeterStatusSchema,
|
|
25052
|
+
/**
|
|
25053
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`; `kwhTotal` is an accumulator whose restored value is the baseline.
|
|
25054
|
+
*
|
|
25055
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25056
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25057
|
+
*/
|
|
25058
|
+
durability: "restored",
|
|
25059
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25060
|
+
* whether persisting is worth a SQLite commit. */
|
|
25061
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24568
25062
|
};
|
|
24569
25063
|
/**
|
|
24570
25064
|
* Presence cap. Models HA `person.*` and `device_tracker.*` entities
|
|
@@ -24621,7 +25115,17 @@ var presenceCapability = {
|
|
|
24621
25115
|
* the map pin is rendered (use `DeviceFeature.PresenceGps` for the
|
|
24622
25116
|
* pre-fetch fast-path check).
|
|
24623
25117
|
*/
|
|
24624
|
-
runtimeState: PresenceStatusSchema
|
|
25118
|
+
runtimeState: PresenceStatusSchema,
|
|
25119
|
+
/**
|
|
25120
|
+
* Runtime-state durability: **restored** — occupancy-relevant: the restored state is what an occupancy rule compares the first post-restart observation against.
|
|
25121
|
+
*
|
|
25122
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25123
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25124
|
+
*/
|
|
25125
|
+
durability: "restored",
|
|
25126
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25127
|
+
* whether persisting is worth a SQLite commit. */
|
|
25128
|
+
volatileStateFields: ["lastChangedAt"]
|
|
24625
25129
|
};
|
|
24626
25130
|
/**
|
|
24627
25131
|
* Atmospheric pressure reading in hectopascals. Drives Home Assistant
|
|
@@ -24657,7 +25161,17 @@ var pressureSensorCapability = {
|
|
|
24657
25161
|
schema: PressureSensorStatusSchema,
|
|
24658
25162
|
kind: "push"
|
|
24659
25163
|
},
|
|
24660
|
-
runtimeState: PressureSensorStatusSchema
|
|
25164
|
+
runtimeState: PressureSensorStatusSchema,
|
|
25165
|
+
/**
|
|
25166
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
25167
|
+
*
|
|
25168
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25169
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25170
|
+
*/
|
|
25171
|
+
durability: "restored",
|
|
25172
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25173
|
+
* whether persisting is worth a SQLite commit. */
|
|
25174
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24661
25175
|
};
|
|
24662
25176
|
/**
|
|
24663
25177
|
* PRIVACY — what the camera deliberately does not capture. Two planes:
|
|
@@ -24787,7 +25301,17 @@ var privacyMaskCapability = {
|
|
|
24787
25301
|
schema: PrivacyMaskStatusSchema,
|
|
24788
25302
|
kind: "poll"
|
|
24789
25303
|
},
|
|
24790
|
-
runtimeState: PrivacyMaskStatusSchema
|
|
25304
|
+
runtimeState: PrivacyMaskStatusSchema,
|
|
25305
|
+
/**
|
|
25306
|
+
* Runtime-state durability: **restored** — operator-drawn regions, zero real churn — 22 writes in 25 minutes, every one of them the clock.
|
|
25307
|
+
*
|
|
25308
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25309
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25310
|
+
*/
|
|
25311
|
+
durability: "restored",
|
|
25312
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25313
|
+
* whether persisting is worth a SQLite commit. */
|
|
25314
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24791
25315
|
};
|
|
24792
25316
|
var PtzPresetSchema = object({
|
|
24793
25317
|
id: string(),
|
|
@@ -24953,7 +25477,14 @@ var ptzAutotrackCapability = {
|
|
|
24953
25477
|
* fetch / cache / fallback logic out of the four cap methods —
|
|
24954
25478
|
* they become trampolines over `runtimeState`.
|
|
24955
25479
|
*/
|
|
24956
|
-
runtimeState: PtzAutotrackRuntimeStateSchema
|
|
25480
|
+
runtimeState: PtzAutotrackRuntimeStateSchema,
|
|
25481
|
+
/**
|
|
25482
|
+
* Runtime-state durability: **session** — mirrors the camera's own autotrack config, re-read on connect.
|
|
25483
|
+
*
|
|
25484
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25485
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25486
|
+
*/
|
|
25487
|
+
durability: "session"
|
|
24957
25488
|
};
|
|
24958
25489
|
DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
|
|
24959
25490
|
kind: "mutation",
|
|
@@ -25603,7 +26134,14 @@ var sceneMonitorCapability = {
|
|
|
25603
26134
|
schema: SceneMonitorStatusSchema,
|
|
25604
26135
|
kind: "push"
|
|
25605
26136
|
},
|
|
25606
|
-
runtimeState: SceneMonitorStatusSchema
|
|
26137
|
+
runtimeState: SceneMonitorStatusSchema,
|
|
26138
|
+
/**
|
|
26139
|
+
* Runtime-state durability: **session** — re-derived from the current scene on the next evaluation.
|
|
26140
|
+
*
|
|
26141
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26142
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26143
|
+
*/
|
|
26144
|
+
durability: "session"
|
|
25607
26145
|
};
|
|
25608
26146
|
/**
|
|
25609
26147
|
* Per-stage gating mode applied to the zones a rule references.
|
|
@@ -25747,7 +26285,14 @@ var scriptRunnerCapability = {
|
|
|
25747
26285
|
* `isRunning` to render a spinner during execution and surfaces
|
|
25748
26286
|
* `lastError` / `lastRunSuccess` in the recent-runs panel.
|
|
25749
26287
|
*/
|
|
25750
|
-
runtimeState: ScriptRunnerStatusSchema
|
|
26288
|
+
runtimeState: ScriptRunnerStatusSchema,
|
|
26289
|
+
/**
|
|
26290
|
+
* Runtime-state durability: **session** — a restored `isRunning: true` describes a process that died with the previous hub.
|
|
26291
|
+
*
|
|
26292
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26293
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26294
|
+
*/
|
|
26295
|
+
durability: "session"
|
|
25751
26296
|
};
|
|
25752
26297
|
/**
|
|
25753
26298
|
* Smoke alarm sensor — boolean "is smoke currently detected" with
|
|
@@ -25774,7 +26319,17 @@ var smokeCapability = {
|
|
|
25774
26319
|
schema: SmokeStatusSchema,
|
|
25775
26320
|
kind: "push"
|
|
25776
26321
|
},
|
|
25777
|
-
runtimeState: SmokeStatusSchema
|
|
26322
|
+
runtimeState: SmokeStatusSchema,
|
|
26323
|
+
/**
|
|
26324
|
+
* Runtime-state durability: **restored** — a safety sensor must not read "clear" merely because the hub restarted.
|
|
26325
|
+
*
|
|
26326
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26327
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26328
|
+
*/
|
|
26329
|
+
durability: "restored",
|
|
26330
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26331
|
+
* whether persisting is worth a SQLite commit. */
|
|
26332
|
+
volatileStateFields: ["lastChangedAt"]
|
|
25778
26333
|
};
|
|
25779
26334
|
/**
|
|
25780
26335
|
* One publishable camera stream as its OWNING PROVIDER describes it — the same
|
|
@@ -25960,7 +26515,17 @@ var streamParamsCapability = {
|
|
|
25960
26515
|
schema: StreamParamsStatusSchema,
|
|
25961
26516
|
kind: "poll"
|
|
25962
26517
|
},
|
|
25963
|
-
runtimeState: StreamParamsStatusSchema
|
|
26518
|
+
runtimeState: StreamParamsStatusSchema,
|
|
26519
|
+
/**
|
|
26520
|
+
* Runtime-state durability: **restored** — operator-set encoder profile; mutation-driven.
|
|
26521
|
+
*
|
|
26522
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26523
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26524
|
+
*/
|
|
26525
|
+
durability: "restored",
|
|
26526
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26527
|
+
* whether persisting is worth a SQLite commit. */
|
|
26528
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
25964
26529
|
};
|
|
25965
26530
|
/**
|
|
25966
26531
|
* Generic on/off switch cap for accessory children (siren, floodlight,
|
|
@@ -26006,6 +26571,16 @@ var switchCapability = {
|
|
|
26006
26571
|
* not need to re-query the provider after a setState mutation.
|
|
26007
26572
|
*/
|
|
26008
26573
|
runtimeState: SwitchStatusSchema,
|
|
26574
|
+
/**
|
|
26575
|
+
* Runtime-state durability: **restored** — device state an operator reads as authoritative; 55 devices, transition-driven.
|
|
26576
|
+
*
|
|
26577
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26578
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26579
|
+
*/
|
|
26580
|
+
durability: "restored",
|
|
26581
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26582
|
+
* whether persisting is worth a SQLite commit. */
|
|
26583
|
+
volatileStateFields: ["lastChangedAt"],
|
|
26009
26584
|
settings: { bindings: [{
|
|
26010
26585
|
kind: "scalar",
|
|
26011
26586
|
statusPath: "on",
|
|
@@ -26085,7 +26660,17 @@ var tamperCapability = {
|
|
|
26085
26660
|
schema: TamperStatusSchema,
|
|
26086
26661
|
kind: "push"
|
|
26087
26662
|
},
|
|
26088
|
-
runtimeState: TamperStatusSchema
|
|
26663
|
+
runtimeState: TamperStatusSchema,
|
|
26664
|
+
/**
|
|
26665
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
26666
|
+
*
|
|
26667
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26668
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26669
|
+
*/
|
|
26670
|
+
durability: "restored",
|
|
26671
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26672
|
+
* whether persisting is worth a SQLite commit. */
|
|
26673
|
+
volatileStateFields: ["lastChangedAt"]
|
|
26089
26674
|
};
|
|
26090
26675
|
/**
|
|
26091
26676
|
* Single-metric temperature reading. Drives Home Assistant `sensor`
|
|
@@ -26130,7 +26715,17 @@ var temperatureSensorCapability = {
|
|
|
26130
26715
|
schema: TemperatureSensorStatusSchema,
|
|
26131
26716
|
kind: "push"
|
|
26132
26717
|
},
|
|
26133
|
-
runtimeState: TemperatureSensorStatusSchema
|
|
26718
|
+
runtimeState: TemperatureSensorStatusSchema,
|
|
26719
|
+
/**
|
|
26720
|
+
* Runtime-state durability: **restored** — as `numeric-sensor` (69 of 125 writes were the clock alone).
|
|
26721
|
+
*
|
|
26722
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26723
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26724
|
+
*/
|
|
26725
|
+
durability: "restored",
|
|
26726
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26727
|
+
* whether persisting is worth a SQLite commit. */
|
|
26728
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
26134
26729
|
};
|
|
26135
26730
|
/**
|
|
26136
26731
|
* toast — system-scoped singleton capability that streams toast
|
|
@@ -26199,7 +26794,14 @@ var updateCapability = {
|
|
|
26199
26794
|
schema: UpdateStatusSchema,
|
|
26200
26795
|
kind: "poll"
|
|
26201
26796
|
},
|
|
26202
|
-
runtimeState: UpdateStatusSchema
|
|
26797
|
+
runtimeState: UpdateStatusSchema,
|
|
26798
|
+
/**
|
|
26799
|
+
* Runtime-state durability: **session** — a restored `inProgress: true` describes an update that is no longer running; versions are re-probed at boot.
|
|
26800
|
+
*
|
|
26801
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26802
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26803
|
+
*/
|
|
26804
|
+
durability: "session"
|
|
26203
26805
|
};
|
|
26204
26806
|
var UserSummarySchema = object({
|
|
26205
26807
|
id: string(),
|
|
@@ -26533,7 +27135,14 @@ var vacuumControlCapability = {
|
|
|
26533
27135
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
26534
27136
|
* slice for live state + battery + fan-speed changes.
|
|
26535
27137
|
*/
|
|
26536
|
-
runtimeState: VacuumControlStatusSchema
|
|
27138
|
+
runtimeState: VacuumControlStatusSchema,
|
|
27139
|
+
/**
|
|
27140
|
+
* Runtime-state durability: **session** — as `media-player` — a restored `state: cleaning` is a robot that is not cleaning.
|
|
27141
|
+
*
|
|
27142
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27143
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27144
|
+
*/
|
|
27145
|
+
durability: "session"
|
|
26537
27146
|
};
|
|
26538
27147
|
var ValveStatusSchema = object({
|
|
26539
27148
|
/** Lifecycle state of the valve. */
|
|
@@ -26585,7 +27194,14 @@ var valveCapability = {
|
|
|
26585
27194
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
26586
27195
|
* slice for live position changes during a move.
|
|
26587
27196
|
*/
|
|
26588
|
-
runtimeState: ValveStatusSchema
|
|
27197
|
+
runtimeState: ValveStatusSchema,
|
|
27198
|
+
/**
|
|
27199
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
27200
|
+
*
|
|
27201
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27202
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27203
|
+
*/
|
|
27204
|
+
durability: "session"
|
|
26589
27205
|
};
|
|
26590
27206
|
/**
|
|
26591
27207
|
* Vibration / shake / impact sensor. Drives Home Assistant
|
|
@@ -26607,7 +27223,17 @@ var vibrationCapability = {
|
|
|
26607
27223
|
schema: VibrationStatusSchema,
|
|
26608
27224
|
kind: "push"
|
|
26609
27225
|
},
|
|
26610
|
-
runtimeState: VibrationStatusSchema
|
|
27226
|
+
runtimeState: VibrationStatusSchema,
|
|
27227
|
+
/**
|
|
27228
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
27229
|
+
*
|
|
27230
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27231
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27232
|
+
*/
|
|
27233
|
+
durability: "restored",
|
|
27234
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27235
|
+
* whether persisting is worth a SQLite commit. */
|
|
27236
|
+
volatileStateFields: ["lastChangedAt"]
|
|
26611
27237
|
};
|
|
26612
27238
|
/**
|
|
26613
27239
|
* Water heater / boiler cap. Models HA `water_heater.*` entities — a
|
|
@@ -26681,7 +27307,14 @@ var waterHeaterCapability = {
|
|
|
26681
27307
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
26682
27308
|
* slice for live temperature / mode / away changes.
|
|
26683
27309
|
*/
|
|
26684
|
-
runtimeState: WaterHeaterStatusSchema
|
|
27310
|
+
runtimeState: WaterHeaterStatusSchema,
|
|
27311
|
+
/**
|
|
27312
|
+
* Runtime-state durability: **session** — as `climate-control`.
|
|
27313
|
+
*
|
|
27314
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27315
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27316
|
+
*/
|
|
27317
|
+
durability: "session"
|
|
26685
27318
|
};
|
|
26686
27319
|
/**
|
|
26687
27320
|
* Weather provider cap. Models HA `weather.*` entities — a read-only
|
|
@@ -26740,7 +27373,14 @@ var weatherCapability = {
|
|
|
26740
27373
|
* Runtime-state slice — mirrored by the kernel. The UI reads the
|
|
26741
27374
|
* current conditions directly from the slice on each weather push.
|
|
26742
27375
|
*/
|
|
26743
|
-
runtimeState: WeatherStatusSchema
|
|
27376
|
+
runtimeState: WeatherStatusSchema,
|
|
27377
|
+
/**
|
|
27378
|
+
* Runtime-state durability: **session** — a forecast is stale the moment the hub is down; the provider re-fetches on connect.
|
|
27379
|
+
*
|
|
27380
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27381
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27382
|
+
*/
|
|
27383
|
+
durability: "session"
|
|
26744
27384
|
};
|
|
26745
27385
|
/**
|
|
26746
27386
|
* Per-zone occupancy aggregation produced by the analytics frame
|
|
@@ -26902,7 +27542,14 @@ var zoneAnalyticsCapability = {
|
|
|
26902
27542
|
* automatically; the explicit `getCurrentSnapshot` cap method is
|
|
26903
27543
|
* still useful for one-off polls without a subscription.
|
|
26904
27544
|
*/
|
|
26905
|
-
runtimeState: CameraOccupancySnapshotSchema
|
|
27545
|
+
runtimeState: CameraOccupancySnapshotSchema,
|
|
27546
|
+
/**
|
|
27547
|
+
* Runtime-state durability: **session** — per-frame analytics; with `audio-metrics` it is ~90 % of the offered write rate. Re-derived on the next frame.
|
|
27548
|
+
*
|
|
27549
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27550
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27551
|
+
*/
|
|
27552
|
+
durability: "session"
|
|
26906
27553
|
};
|
|
26907
27554
|
/**
|
|
26908
27555
|
* Stages a {@link ZoneRule} can apply to. Discriminator on the rules
|
|
@@ -26980,7 +27627,14 @@ var zoneRulesCapability = {
|
|
|
26980
27627
|
motion: array(ZoneRuleSchema).readonly(),
|
|
26981
27628
|
detection: array(ZoneRuleSchema).readonly(),
|
|
26982
27629
|
package: array(ZoneRuleSchema).readonly()
|
|
26983
|
-
})
|
|
27630
|
+
}),
|
|
27631
|
+
/**
|
|
27632
|
+
* Runtime-state durability: **restored** — operator intent, mutation-only, same argument as `zones`.
|
|
27633
|
+
*
|
|
27634
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27635
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27636
|
+
*/
|
|
27637
|
+
durability: "restored"
|
|
26984
27638
|
};
|
|
26985
27639
|
/**
|
|
26986
27640
|
* Accessory device helpers — shared across drivers.
|
|
@@ -33733,6 +34387,7 @@ Object.freeze({
|
|
|
33733
34387
|
"network-access": "ingress",
|
|
33734
34388
|
"smtp-provider": "email"
|
|
33735
34389
|
});
|
|
34390
|
+
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
33736
34391
|
new Set(["devices", "classes"]);
|
|
33737
34392
|
/**
|
|
33738
34393
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|