@camstack/addon-provider-dreo 0.2.15 → 0.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.mjs
CHANGED
|
@@ -10794,7 +10794,14 @@ var cameraStreamsCapability = {
|
|
|
10794
10794
|
low: string().optional()
|
|
10795
10795
|
}),
|
|
10796
10796
|
lastChangedAt: number()
|
|
10797
|
-
})
|
|
10797
|
+
}),
|
|
10798
|
+
/**
|
|
10799
|
+
* 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.
|
|
10800
|
+
*
|
|
10801
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
10802
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
10803
|
+
*/
|
|
10804
|
+
durability: "session"
|
|
10798
10805
|
};
|
|
10799
10806
|
/** Where a block runs. The operator chooses — a block driving a device on an
|
|
10800
10807
|
* agent is the reason placement is not fixed to the hub. */
|
|
@@ -11355,6 +11362,13 @@ var deviceDiscoveryCapability = {
|
|
|
11355
11362
|
kind: "poll"
|
|
11356
11363
|
},
|
|
11357
11364
|
runtimeState: DeviceDiscoveryStatusSchema.extend({ lastFetchedAt: number().int().nonnegative() }),
|
|
11365
|
+
/**
|
|
11366
|
+
* Runtime-state durability: **session** — 5.7 KB of scan output on the largest device, fully re-derivable by re-scanning.
|
|
11367
|
+
*
|
|
11368
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
11369
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
11370
|
+
*/
|
|
11371
|
+
durability: "session",
|
|
11358
11372
|
methods: {
|
|
11359
11373
|
/**
|
|
11360
11374
|
* Snapshot of the current `discovered` list. Returns the
|
|
@@ -13241,11 +13255,33 @@ var NotificationFormatSchema = _enum([
|
|
|
13241
13255
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
13242
13256
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
13243
13257
|
* differently.
|
|
13258
|
+
*
|
|
13259
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
13260
|
+
*
|
|
13261
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
13262
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
13263
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
13264
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
13265
|
+
* decides its glyph, which is the only place that decision can be made
|
|
13266
|
+
* honestly.
|
|
13267
|
+
*
|
|
13268
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
13269
|
+
* `disarm` straight through; iOS feeds that string to
|
|
13270
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
13271
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
13272
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
13273
|
+
*
|
|
13274
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
13275
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
13276
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
13277
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
13278
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
13244
13279
|
*/
|
|
13245
13280
|
var NotificationActionIconSchema = _enum([
|
|
13246
13281
|
"acknowledge",
|
|
13247
13282
|
"dismiss",
|
|
13248
13283
|
"silence",
|
|
13284
|
+
"snooze",
|
|
13249
13285
|
"view",
|
|
13250
13286
|
"play",
|
|
13251
13287
|
"open",
|
|
@@ -13253,9 +13289,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
13253
13289
|
"lock",
|
|
13254
13290
|
"unlock",
|
|
13255
13291
|
"arm",
|
|
13292
|
+
"arm-home",
|
|
13293
|
+
"arm-away",
|
|
13294
|
+
"arm-night",
|
|
13256
13295
|
"disarm",
|
|
13257
13296
|
"light",
|
|
13258
|
-
"alert"
|
|
13297
|
+
"alert",
|
|
13298
|
+
"camera"
|
|
13259
13299
|
]);
|
|
13260
13300
|
/** A single tap-through action button. */
|
|
13261
13301
|
var NotificationActionSchema = object({
|
|
@@ -13271,7 +13311,23 @@ var NotificationActionSchema = object({
|
|
|
13271
13311
|
* else — see `notification-center/action-token.ts` for what that does and
|
|
13272
13312
|
* does not buy.
|
|
13273
13313
|
*/
|
|
13274
|
-
destructive: boolean().optional()
|
|
13314
|
+
destructive: boolean().optional(),
|
|
13315
|
+
/**
|
|
13316
|
+
* How the tap should REACH the url.
|
|
13317
|
+
*
|
|
13318
|
+
* `navigate` (absent, and every button authored before this field) opens it:
|
|
13319
|
+
* the phone leaves the notification and shows whatever the callback returns.
|
|
13320
|
+
* That is right for a button whose answer the operator wants to read.
|
|
13321
|
+
*
|
|
13322
|
+
* `background` fires it as a POST and stays put. It exists for the buttons
|
|
13323
|
+
* whose whole point is not to interrupt — "silence this for 30 minutes" is
|
|
13324
|
+
* an answer to the notification, and being thrown into a browser tab to
|
|
13325
|
+
* confirm it costs more attention than the notification did. A backend that
|
|
13326
|
+
* cannot do a background call renders it as an ordinary link (the adapters
|
|
13327
|
+
* fall back rather than dropping the button), so this is a preference, never
|
|
13328
|
+
* a requirement.
|
|
13329
|
+
*/
|
|
13330
|
+
mode: _enum(["navigate", "background"]).optional()
|
|
13275
13331
|
});
|
|
13276
13332
|
/**
|
|
13277
13333
|
* The canonical notification. `body` is the only hard field (Apprise model).
|
|
@@ -13439,6 +13495,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
13439
13495
|
targetId: string(),
|
|
13440
13496
|
enabled: boolean()
|
|
13441
13497
|
}), _void(), { kind: "mutation" });
|
|
13498
|
+
new Set([
|
|
13499
|
+
{
|
|
13500
|
+
id: "person",
|
|
13501
|
+
name: "Person"
|
|
13502
|
+
},
|
|
13503
|
+
{
|
|
13504
|
+
id: "vehicle",
|
|
13505
|
+
name: "Vehicle"
|
|
13506
|
+
},
|
|
13507
|
+
{
|
|
13508
|
+
id: "animal",
|
|
13509
|
+
name: "Animal"
|
|
13510
|
+
},
|
|
13511
|
+
{
|
|
13512
|
+
id: "package",
|
|
13513
|
+
name: "Package"
|
|
13514
|
+
}
|
|
13515
|
+
].map((l) => l.id));
|
|
13442
13516
|
var COCO_TO_MACRO = {
|
|
13443
13517
|
mapping: {
|
|
13444
13518
|
person: "person",
|
|
@@ -14123,7 +14197,17 @@ var alarmPanelCapability = {
|
|
|
14123
14197
|
* full slice; renders an arm button per `availableModes` entry and
|
|
14124
14198
|
* a PIN field iff `requiresCode === true`.
|
|
14125
14199
|
*/
|
|
14126
|
-
runtimeState: AlarmPanelStatusSchema
|
|
14200
|
+
runtimeState: AlarmPanelStatusSchema,
|
|
14201
|
+
/**
|
|
14202
|
+
* Runtime-state durability: **restored** — armed state is the one thing a panel must not lose across a restart.
|
|
14203
|
+
*
|
|
14204
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
14205
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
14206
|
+
*/
|
|
14207
|
+
durability: "restored",
|
|
14208
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
14209
|
+
* whether persisting is worth a SQLite commit. */
|
|
14210
|
+
volatileStateFields: ["lastChangedAt"]
|
|
14127
14211
|
};
|
|
14128
14212
|
/**
|
|
14129
14213
|
* Shared geometry vocabulary for on-frame shape caps — privacy-mask,
|
|
@@ -14264,6 +14348,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14264
14348
|
"alarm-triggered",
|
|
14265
14349
|
"alarm-armed",
|
|
14266
14350
|
"alarm-disarmed",
|
|
14351
|
+
"alarm-arming",
|
|
14352
|
+
"alarm-arm-refused",
|
|
14267
14353
|
"camera-online",
|
|
14268
14354
|
"camera-offline",
|
|
14269
14355
|
"camera-disabled",
|
|
@@ -14300,6 +14386,9 @@ var NcSystemEventConditionSchema = object({
|
|
|
14300
14386
|
nodeIds: array(string().min(1)).min(1).optional(),
|
|
14301
14387
|
packageNames: array(string().min(1)).min(1).optional()
|
|
14302
14388
|
});
|
|
14389
|
+
/** Hard ceiling on a window (24h). A snooze that could not expire would be an
|
|
14390
|
+
* outage the operator asked for once and forgot. */
|
|
14391
|
+
var NC_SNOOZE_MAX_MINUTES = 1440;
|
|
14303
14392
|
/** Weekly schedule — OR of windows; absence on the rule = always active. */
|
|
14304
14393
|
var NcScheduleSchema = object({
|
|
14305
14394
|
windows: array(object({
|
|
@@ -14676,15 +14765,15 @@ var NcConditionsSchema = object({
|
|
|
14676
14765
|
* (an `immediate` rule naming an `audio-*` class, one notification per
|
|
14677
14766
|
* classified sample) stays exactly as it was for rules that already use it.
|
|
14678
14767
|
*
|
|
14679
|
-
*
|
|
14680
|
-
* rather than an
|
|
14681
|
-
* (`camstack/src/data/notification-center.ts`, guarded by
|
|
14682
|
-
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor
|
|
14768
|
+
* In {@link NC_CONDITION_CATALOG} since P2, and the ORDER it got there is the
|
|
14769
|
+
* rule rather than an accident: the viewer mirrors the descriptor enums BY
|
|
14770
|
+
* HAND (`camstack/src/data/notification-center.ts`, guarded by
|
|
14771
|
+
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor strips the
|
|
14683
14772
|
* condition fields it does not know when a rule is saved from the phone.
|
|
14684
14773
|
* Publishing an editor for a condition the app cannot round-trip is how an
|
|
14685
|
-
* operator loses a rule's conditions by opening it — so the
|
|
14686
|
-
*
|
|
14687
|
-
*
|
|
14774
|
+
* operator loses a rule's conditions by opening it — so the viewer mirror
|
|
14775
|
+
* (P3, shipped) went FIRST, and the descriptor an editor renders from
|
|
14776
|
+
* follows here.
|
|
14688
14777
|
*/
|
|
14689
14778
|
audio: NcAudioConditionSchema.optional()
|
|
14690
14779
|
});
|
|
@@ -14920,6 +15009,30 @@ var NcRuleInputSchema = object({
|
|
|
14920
15009
|
*/
|
|
14921
15010
|
snoozeAllowGlobal: boolean().optional(),
|
|
14922
15011
|
/**
|
|
15012
|
+
* The snooze durations THIS rule's notification offers as buttons, in
|
|
15013
|
+
* minutes.
|
|
15014
|
+
*
|
|
15015
|
+
* Three states, and all three are distinct — which is exactly why this is
|
|
15016
|
+
* `.optional()` and never `.default()`. A Zod default does not run on the
|
|
15017
|
+
* addon cap path (three production failures in one day), so a schema default
|
|
15018
|
+
* would collapse the first two:
|
|
15019
|
+
*
|
|
15020
|
+
* | value | meaning |
|
|
15021
|
+
* | --- | --- |
|
|
15022
|
+
* | absent | the operator never said ⇒ {@link NC_DEFAULT_SNOOZE_MINUTES} |
|
|
15023
|
+
* | `[]` | **no snooze buttons on this rule** — the explicit override |
|
|
15024
|
+
* | a list | these choices, de-duplicated and sorted, at most four |
|
|
15025
|
+
*
|
|
15026
|
+
* `.max(4)` because the notifier's own action budget is small (ntfy allows
|
|
15027
|
+
* three buttons in total) and a rule that spent it all on snooze choices
|
|
15028
|
+
* would push its own tap-through actions off the notification.
|
|
15029
|
+
*
|
|
15030
|
+
* An empty list is NOT an alarm exemption: a rule the alarm is about, or
|
|
15031
|
+
* that arms the panel, is exempt automatically and cannot be silenced by a
|
|
15032
|
+
* window from anywhere (D133).
|
|
15033
|
+
*/
|
|
15034
|
+
snoozeOptions: array(number().int().min(1).max(NC_SNOOZE_MAX_MINUTES)).max(4).optional(),
|
|
15035
|
+
/**
|
|
14923
15036
|
* Devices this rule ACTUATES — arm the alarm, open a gate, turn on a light.
|
|
14924
15037
|
*
|
|
14925
15038
|
* This is what makes the rule set the alarm's trigger set without the alarm
|
|
@@ -15019,6 +15132,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
15019
15132
|
"device",
|
|
15020
15133
|
"package",
|
|
15021
15134
|
"occupancy",
|
|
15135
|
+
"audio",
|
|
15022
15136
|
"system"
|
|
15023
15137
|
]),
|
|
15024
15138
|
label: string(),
|
|
@@ -15037,6 +15151,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
15037
15151
|
"crossingSelect",
|
|
15038
15152
|
"polygonDraw",
|
|
15039
15153
|
"occupancy",
|
|
15154
|
+
"audio",
|
|
15040
15155
|
"deviceState",
|
|
15041
15156
|
"systemEvent"
|
|
15042
15157
|
]),
|
|
@@ -15188,7 +15303,20 @@ var NcSnoozeInputSchema = object({
|
|
|
15188
15303
|
ruleId: string().optional(),
|
|
15189
15304
|
/** Required when `scope: 'device'`. */
|
|
15190
15305
|
deviceId: number().int().optional(),
|
|
15191
|
-
|
|
15306
|
+
/**
|
|
15307
|
+
* Narrow the window to these subject classes — "the cat, not the person".
|
|
15308
|
+
*
|
|
15309
|
+
* ORTHOGONAL to `scope`, deliberately, and absent means EVERY class: that is
|
|
15310
|
+
* what every window authored before this field meant, so no persisted row
|
|
15311
|
+
* changes meaning and no client has to learn anything to keep working.
|
|
15312
|
+
*
|
|
15313
|
+
* It is what makes the window's real key `(deviceId, classes[])` and lets it
|
|
15314
|
+
* cross rules (D133): the operator points at a camera and a kind of thing,
|
|
15315
|
+
* not at whichever of their four rules happened to produce the notification
|
|
15316
|
+
* they are dismissing.
|
|
15317
|
+
*/
|
|
15318
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
15319
|
+
durationMinutes: number().int().min(1).max(NC_SNOOZE_MAX_MINUTES),
|
|
15192
15320
|
/**
|
|
15193
15321
|
* Silence this for EVERY recipient, not just the caller. Permission is
|
|
15194
15322
|
* checked server-side (the rule's `snoozeAllowGlobal`, or admin for the
|
|
@@ -15213,6 +15341,10 @@ var NcSnoozeSchema = object({
|
|
|
15213
15341
|
scope: NcSnoozeScopeSchema,
|
|
15214
15342
|
ruleId: string().optional(),
|
|
15215
15343
|
deviceId: number().int().optional(),
|
|
15344
|
+
/** Subject classes this window covers. ABSENT = every class — see
|
|
15345
|
+
* {@link NcSnoozeInputSchema.shape.classes}. Lives in the JSON blob and has
|
|
15346
|
+
* no SQLite column: nothing queries a window by class. */
|
|
15347
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
15216
15348
|
startedAt: number(),
|
|
15217
15349
|
/** Exclusive: at exactly this instant the snooze is over. Expiry is a
|
|
15218
15350
|
* COMPARISON, not a job — no sweeper can leave the operator silenced. */
|
|
@@ -17313,7 +17445,14 @@ var zonesCapability = {
|
|
|
17313
17445
|
* handle. Slice shape is `{ zones: Zone[] }` so future extensions
|
|
17314
17446
|
* (e.g. zone groupings) can sit alongside the polygon list.
|
|
17315
17447
|
*/
|
|
17316
|
-
runtimeState: object({ zones: array(ZoneSchema).readonly() })
|
|
17448
|
+
runtimeState: object({ zones: array(ZoneSchema).readonly() }),
|
|
17449
|
+
/**
|
|
17450
|
+
* 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.
|
|
17451
|
+
*
|
|
17452
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
17453
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
17454
|
+
*/
|
|
17455
|
+
durability: "restored"
|
|
17317
17456
|
};
|
|
17318
17457
|
/**
|
|
17319
17458
|
* A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
|
|
@@ -17483,6 +17622,22 @@ var detectionFpsField = {
|
|
|
17483
17622
|
default: 10,
|
|
17484
17623
|
step: 1
|
|
17485
17624
|
};
|
|
17625
|
+
/**
|
|
17626
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
17627
|
+
*
|
|
17628
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
17629
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
17630
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
17631
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
17632
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
17633
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
17634
|
+
*
|
|
17635
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
17636
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
17637
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
17638
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
17639
|
+
* that ships with an addon deploy.
|
|
17640
|
+
*/
|
|
17486
17641
|
var occupancyRecheckSecField = {
|
|
17487
17642
|
min: 0,
|
|
17488
17643
|
max: 300,
|
|
@@ -17684,15 +17839,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
17684
17839
|
*/
|
|
17685
17840
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
17686
17841
|
/**
|
|
17687
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
17688
|
-
*
|
|
17689
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
17690
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
17691
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
17842
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
17843
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
17692
17844
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
17693
17845
|
* (and only render) when this is enabled.
|
|
17694
|
-
|
|
17695
|
-
|
|
17846
|
+
*
|
|
17847
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
17848
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
17849
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
17850
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
17851
|
+
* object is counted only while the stationary registry holds it, and the
|
|
17852
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
17853
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
17854
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
17855
|
+
*/
|
|
17856
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
17696
17857
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
17697
17858
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
17698
17859
|
/**
|
|
@@ -20112,7 +20273,17 @@ var airQualitySensorCapability = {
|
|
|
20112
20273
|
schema: AirQualitySensorStatusSchema,
|
|
20113
20274
|
kind: "push"
|
|
20114
20275
|
},
|
|
20115
|
-
runtimeState: AirQualitySensorStatusSchema
|
|
20276
|
+
runtimeState: AirQualitySensorStatusSchema,
|
|
20277
|
+
/**
|
|
20278
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
20279
|
+
*
|
|
20280
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20281
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20282
|
+
*/
|
|
20283
|
+
durability: "restored",
|
|
20284
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20285
|
+
* whether persisting is worth a SQLite commit. */
|
|
20286
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
20116
20287
|
};
|
|
20117
20288
|
/**
|
|
20118
20289
|
* Ambient illuminance reading in lux. Drives Home Assistant `sensor`
|
|
@@ -20144,7 +20315,17 @@ var ambientLightSensorCapability = {
|
|
|
20144
20315
|
schema: AmbientLightSensorStatusSchema,
|
|
20145
20316
|
kind: "push"
|
|
20146
20317
|
},
|
|
20147
|
-
runtimeState: AmbientLightSensorStatusSchema
|
|
20318
|
+
runtimeState: AmbientLightSensorStatusSchema,
|
|
20319
|
+
/**
|
|
20320
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
20321
|
+
*
|
|
20322
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20323
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20324
|
+
*/
|
|
20325
|
+
durability: "restored",
|
|
20326
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20327
|
+
* whether persisting is worth a SQLite commit. */
|
|
20328
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
20148
20329
|
};
|
|
20149
20330
|
/**
|
|
20150
20331
|
* Per-class audio metrics aggregated over a sliding window.
|
|
@@ -20262,7 +20443,14 @@ var audioMetricsCapability = {
|
|
|
20262
20443
|
}), AudioMetricsHistorySchema)
|
|
20263
20444
|
},
|
|
20264
20445
|
/** Reactive runtime-state mirror — live `device.state.audioMetrics.value`. */
|
|
20265
|
-
runtimeState: AudioMetricsSnapshotSchema
|
|
20446
|
+
runtimeState: AudioMetricsSnapshotSchema,
|
|
20447
|
+
/**
|
|
20448
|
+
* 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.
|
|
20449
|
+
*
|
|
20450
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20451
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20452
|
+
*/
|
|
20453
|
+
durability: "session"
|
|
20266
20454
|
};
|
|
20267
20455
|
/**
|
|
20268
20456
|
* Automation-control cap. Models HA `automation.*` entities on
|
|
@@ -20324,7 +20512,14 @@ var automationControlCapability = {
|
|
|
20324
20512
|
* reads `enabled` (toggle) + `isRunning` (spinner) + `lastError`
|
|
20325
20513
|
* (badge) directly.
|
|
20326
20514
|
*/
|
|
20327
|
-
runtimeState: AutomationControlStatusSchema
|
|
20515
|
+
runtimeState: AutomationControlStatusSchema,
|
|
20516
|
+
/**
|
|
20517
|
+
* 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.
|
|
20518
|
+
*
|
|
20519
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20520
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20521
|
+
*/
|
|
20522
|
+
durability: "session"
|
|
20328
20523
|
};
|
|
20329
20524
|
/**
|
|
20330
20525
|
* Battery status snapshot. Emitted by providers whose device is
|
|
@@ -20430,7 +20625,17 @@ onStatusChanged: { data: object({
|
|
|
20430
20625
|
* via `device.runtimeState.getCapState('battery')` regardless of
|
|
20431
20626
|
* the underlying driver.
|
|
20432
20627
|
*/
|
|
20433
|
-
runtimeState: BatteryStatusSchema
|
|
20628
|
+
runtimeState: BatteryStatusSchema,
|
|
20629
|
+
/**
|
|
20630
|
+
* 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.
|
|
20631
|
+
*
|
|
20632
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20633
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20634
|
+
*/
|
|
20635
|
+
durability: "restored",
|
|
20636
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20637
|
+
* whether persisting is worth a SQLite commit. */
|
|
20638
|
+
volatileStateFields: ["lastUpdated"]
|
|
20434
20639
|
};
|
|
20435
20640
|
/**
|
|
20436
20641
|
* Generic boolean sensor — last-resort fallback when no domain-
|
|
@@ -20459,7 +20664,17 @@ var binaryCapability = {
|
|
|
20459
20664
|
schema: BinaryStatusSchema,
|
|
20460
20665
|
kind: "push"
|
|
20461
20666
|
},
|
|
20462
|
-
runtimeState: BinaryStatusSchema
|
|
20667
|
+
runtimeState: BinaryStatusSchema,
|
|
20668
|
+
/**
|
|
20669
|
+
* Runtime-state durability: **restored** — transition-driven sensor state; the restored value gives the boot comparison.
|
|
20670
|
+
*
|
|
20671
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20672
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20673
|
+
*/
|
|
20674
|
+
durability: "restored",
|
|
20675
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20676
|
+
* whether persisting is worth a SQLite commit. */
|
|
20677
|
+
volatileStateFields: ["lastChangedAt"]
|
|
20463
20678
|
};
|
|
20464
20679
|
/**
|
|
20465
20680
|
* Dimmable-light brightness control. Co-exists with `switch` on the
|
|
@@ -20512,7 +20727,14 @@ onBrightnessChanged: { data: object({
|
|
|
20512
20727
|
* by the kernel. Read via `device.state.brightness.value` so UI
|
|
20513
20728
|
* sliders surface the current level without polling the provider.
|
|
20514
20729
|
*/
|
|
20515
|
-
runtimeState: BrightnessStatusSchema
|
|
20730
|
+
runtimeState: BrightnessStatusSchema,
|
|
20731
|
+
/**
|
|
20732
|
+
* Runtime-state durability: **session** — live lamp state, re-published by the provider on connect.
|
|
20733
|
+
*
|
|
20734
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20735
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20736
|
+
*/
|
|
20737
|
+
durability: "session"
|
|
20516
20738
|
};
|
|
20517
20739
|
DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _void(), {
|
|
20518
20740
|
kind: "mutation",
|
|
@@ -20600,7 +20822,17 @@ var carbonMonoxideCapability = {
|
|
|
20600
20822
|
schema: CarbonMonoxideStatusSchema,
|
|
20601
20823
|
kind: "push"
|
|
20602
20824
|
},
|
|
20603
|
-
runtimeState: CarbonMonoxideStatusSchema
|
|
20825
|
+
runtimeState: CarbonMonoxideStatusSchema,
|
|
20826
|
+
/**
|
|
20827
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
20828
|
+
*
|
|
20829
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20830
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20831
|
+
*/
|
|
20832
|
+
durability: "restored",
|
|
20833
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20834
|
+
* whether persisting is worth a SQLite commit. */
|
|
20835
|
+
volatileStateFields: ["lastChangedAt"]
|
|
20604
20836
|
};
|
|
20605
20837
|
/**
|
|
20606
20838
|
* HVAC / climate control cap. Models the full surface of a HA
|
|
@@ -20760,7 +20992,14 @@ var climateControlCapability = {
|
|
|
20760
20992
|
* the full slice via `device.state.climate-control.value` and refresh
|
|
20761
20993
|
* on every push without re-querying the provider.
|
|
20762
20994
|
*/
|
|
20763
|
-
runtimeState: ClimateControlStatusSchema
|
|
20995
|
+
runtimeState: ClimateControlStatusSchema,
|
|
20996
|
+
/**
|
|
20997
|
+
* Runtime-state durability: **session** — as `brightness`; `currentTemp` moves continuously and is re-published on connect.
|
|
20998
|
+
*
|
|
20999
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21000
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21001
|
+
*/
|
|
21002
|
+
durability: "session"
|
|
20764
21003
|
};
|
|
20765
21004
|
/**
|
|
20766
21005
|
* Color-light cap. Coexists with `switch` (on/off) and `brightness`
|
|
@@ -20870,7 +21109,14 @@ onColorChanged: { data: object({
|
|
|
20870
21109
|
* kernel. Read via `device.state.color.value` so UI pickers surface
|
|
20871
21110
|
* the current chromaticity without polling the provider.
|
|
20872
21111
|
*/
|
|
20873
|
-
runtimeState: ColorStatusSchema
|
|
21112
|
+
runtimeState: ColorStatusSchema,
|
|
21113
|
+
/**
|
|
21114
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
21115
|
+
*
|
|
21116
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21117
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21118
|
+
*/
|
|
21119
|
+
durability: "session"
|
|
20874
21120
|
};
|
|
20875
21121
|
var ConnectionTestOutcomeSchema = discriminatedUnion("outcome", [
|
|
20876
21122
|
object({
|
|
@@ -20936,7 +21182,17 @@ var connectivityCapability = {
|
|
|
20936
21182
|
schema: ConnectivityStatusSchema,
|
|
20937
21183
|
kind: "push"
|
|
20938
21184
|
},
|
|
20939
|
-
runtimeState: ConnectivityStatusSchema
|
|
21185
|
+
runtimeState: ConnectivityStatusSchema,
|
|
21186
|
+
/**
|
|
21187
|
+
* Runtime-state durability: **restored** — same shape and same argument as `device-status`, for links rather than devices.
|
|
21188
|
+
*
|
|
21189
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21190
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21191
|
+
*/
|
|
21192
|
+
durability: "restored",
|
|
21193
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21194
|
+
* whether persisting is worth a SQLite commit. */
|
|
21195
|
+
volatileStateFields: ["lastChangedAt"]
|
|
20940
21196
|
};
|
|
20941
21197
|
/**
|
|
20942
21198
|
* Generic device-consumables capability — surfaces a device's
|
|
@@ -21018,7 +21274,14 @@ reset: method(object({
|
|
|
21018
21274
|
}
|
|
21019
21275
|
}
|
|
21020
21276
|
},
|
|
21021
|
-
runtimeState: ConsumablesStatusSchema.extend({ lastFetchedAt: number() })
|
|
21277
|
+
runtimeState: ConsumablesStatusSchema.extend({ lastFetchedAt: number() }),
|
|
21278
|
+
/**
|
|
21279
|
+
* Runtime-state durability: **session** — the authority is the appliance; the provider re-reads the whole item array on connect.
|
|
21280
|
+
*
|
|
21281
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21282
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21283
|
+
*/
|
|
21284
|
+
durability: "session"
|
|
21022
21285
|
};
|
|
21023
21286
|
/**
|
|
21024
21287
|
* Door / window / opening / garage / valve contact sensor. Boolean
|
|
@@ -21049,7 +21312,17 @@ var contactCapability = {
|
|
|
21049
21312
|
schema: ContactStatusSchema,
|
|
21050
21313
|
kind: "push"
|
|
21051
21314
|
},
|
|
21052
|
-
runtimeState: ContactStatusSchema
|
|
21315
|
+
runtimeState: ContactStatusSchema,
|
|
21316
|
+
/**
|
|
21317
|
+
* Runtime-state durability: **restored** — a door left open across a restart must still read open.
|
|
21318
|
+
*
|
|
21319
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21320
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21321
|
+
*/
|
|
21322
|
+
durability: "restored",
|
|
21323
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21324
|
+
* whether persisting is worth a SQLite commit. */
|
|
21325
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21053
21326
|
};
|
|
21054
21327
|
/**
|
|
21055
21328
|
* Status slice — flat object (the framework's `runtimeState` contract
|
|
@@ -21155,7 +21428,14 @@ var controlCapability = {
|
|
|
21155
21428
|
* dropdown / text field / date picker) read the slice's discriminant
|
|
21156
21429
|
* and value directly without polling the provider.
|
|
21157
21430
|
*/
|
|
21158
|
-
runtimeState: ControlStatusSchema
|
|
21431
|
+
runtimeState: ControlStatusSchema,
|
|
21432
|
+
/**
|
|
21433
|
+
* Runtime-state durability: **session** — a generic control mirrors an external entity that re-publishes on connect; the options array is re-derived with it.
|
|
21434
|
+
*
|
|
21435
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21436
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21437
|
+
*/
|
|
21438
|
+
durability: "session"
|
|
21159
21439
|
};
|
|
21160
21440
|
var CoverStatusSchema = object({
|
|
21161
21441
|
/** Lifecycle state of the cover. */
|
|
@@ -21216,7 +21496,17 @@ var coverCapability = {
|
|
|
21216
21496
|
* Runtime-state slice — mirrored by the kernel. UI controls watch
|
|
21217
21497
|
* the slice for live position changes during a move.
|
|
21218
21498
|
*/
|
|
21219
|
-
runtimeState: CoverStatusSchema
|
|
21499
|
+
runtimeState: CoverStatusSchema,
|
|
21500
|
+
/**
|
|
21501
|
+
* Runtime-state durability: **restored** — position survives a restart on the device; the mirror should agree at boot rather than read blank.
|
|
21502
|
+
*
|
|
21503
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21504
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21505
|
+
*/
|
|
21506
|
+
durability: "restored",
|
|
21507
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21508
|
+
* whether persisting is worth a SQLite commit. */
|
|
21509
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21220
21510
|
};
|
|
21221
21511
|
/**
|
|
21222
21512
|
* Vendor-neutral day/night (IR-cut) control — the per-camera config cap
|
|
@@ -21310,7 +21600,17 @@ var dayNightCapability = {
|
|
|
21310
21600
|
schema: DayNightStatusSchema,
|
|
21311
21601
|
kind: "poll"
|
|
21312
21602
|
},
|
|
21313
|
-
runtimeState: DayNightStatusSchema
|
|
21603
|
+
runtimeState: DayNightStatusSchema,
|
|
21604
|
+
/**
|
|
21605
|
+
* Runtime-state durability: **restored** — operator-set IR-cut behaviour; mutation-driven.
|
|
21606
|
+
*
|
|
21607
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21608
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21609
|
+
*/
|
|
21610
|
+
durability: "restored",
|
|
21611
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21612
|
+
* whether persisting is worth a SQLite commit. */
|
|
21613
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
21314
21614
|
};
|
|
21315
21615
|
/**
|
|
21316
21616
|
* Generic device-level status snapshot. Auto-registered by `BaseDevice`
|
|
@@ -21357,7 +21657,17 @@ onStatusChanged: { data: object({
|
|
|
21357
21657
|
schema: DeviceStatusSchema,
|
|
21358
21658
|
kind: "push"
|
|
21359
21659
|
},
|
|
21360
|
-
runtimeState: DeviceStatusSchema
|
|
21660
|
+
runtimeState: DeviceStatusSchema,
|
|
21661
|
+
/**
|
|
21662
|
+
* 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.
|
|
21663
|
+
*
|
|
21664
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21665
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21666
|
+
*/
|
|
21667
|
+
durability: "restored",
|
|
21668
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21669
|
+
* whether persisting is worth a SQLite commit. */
|
|
21670
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21361
21671
|
};
|
|
21362
21672
|
/**
|
|
21363
21673
|
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
@@ -21419,7 +21729,14 @@ onPressed: { data: DoorbellPressEventSchema } },
|
|
|
21419
21729
|
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
21420
21730
|
* without subscribing.
|
|
21421
21731
|
*/
|
|
21422
|
-
runtimeState: DoorbellStatusSchema
|
|
21732
|
+
runtimeState: DoorbellStatusSchema,
|
|
21733
|
+
/**
|
|
21734
|
+
* 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.
|
|
21735
|
+
*
|
|
21736
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21737
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21738
|
+
*/
|
|
21739
|
+
durability: "restored"
|
|
21423
21740
|
};
|
|
21424
21741
|
/**
|
|
21425
21742
|
* Enum-state sensor — a string value picked from a finite option set.
|
|
@@ -21459,7 +21776,17 @@ var enumSensorCapability = {
|
|
|
21459
21776
|
schema: EnumSensorStatusSchema,
|
|
21460
21777
|
kind: "push"
|
|
21461
21778
|
},
|
|
21462
|
-
runtimeState: EnumSensorStatusSchema
|
|
21779
|
+
runtimeState: EnumSensorStatusSchema,
|
|
21780
|
+
/**
|
|
21781
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`; 80 devices.
|
|
21782
|
+
*
|
|
21783
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21784
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21785
|
+
*/
|
|
21786
|
+
durability: "restored",
|
|
21787
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21788
|
+
* whether persisting is worth a SQLite commit. */
|
|
21789
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
21463
21790
|
};
|
|
21464
21791
|
/**
|
|
21465
21792
|
* Generic stateless event emitter. Installed on a `DeviceType.EventEmitter`
|
|
@@ -21495,7 +21822,14 @@ var eventEmitterCapability = {
|
|
|
21495
21822
|
schema: EventEmitterStatusSchema,
|
|
21496
21823
|
kind: "push"
|
|
21497
21824
|
},
|
|
21498
|
-
runtimeState: EventEmitterStatusSchema
|
|
21825
|
+
runtimeState: EventEmitterStatusSchema,
|
|
21826
|
+
/**
|
|
21827
|
+
* Runtime-state durability: **session** — `eventCountSinceStart` names its own scope.
|
|
21828
|
+
*
|
|
21829
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21830
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21831
|
+
*/
|
|
21832
|
+
durability: "session"
|
|
21499
21833
|
};
|
|
21500
21834
|
var EventItemSchema = object({
|
|
21501
21835
|
id: string(),
|
|
@@ -21776,7 +22110,14 @@ var fanControlCapability = {
|
|
|
21776
22110
|
* Runtime-state slice — mirrored by the kernel. UI fan speed
|
|
21777
22111
|
* sliders read `percentage` for live updates.
|
|
21778
22112
|
*/
|
|
21779
|
-
runtimeState: FanControlStatusSchema
|
|
22113
|
+
runtimeState: FanControlStatusSchema,
|
|
22114
|
+
/**
|
|
22115
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
22116
|
+
*
|
|
22117
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22118
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22119
|
+
*/
|
|
22120
|
+
durability: "session"
|
|
21780
22121
|
};
|
|
21781
22122
|
/**
|
|
21782
22123
|
* Per-device feature/identity probe slice. Holds the runtime-resolved
|
|
@@ -21852,7 +22193,14 @@ onProbeChanged: { data: object({
|
|
|
21852
22193
|
schema: FeatureProbeStatusSchema,
|
|
21853
22194
|
kind: "push"
|
|
21854
22195
|
},
|
|
21855
|
-
runtimeState: FeatureProbeStatusSchema
|
|
22196
|
+
runtimeState: FeatureProbeStatusSchema,
|
|
22197
|
+
/**
|
|
22198
|
+
* 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.
|
|
22199
|
+
*
|
|
22200
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22201
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22202
|
+
*/
|
|
22203
|
+
durability: "session"
|
|
21856
22204
|
};
|
|
21857
22205
|
/**
|
|
21858
22206
|
* Water leak / moisture sensor. Boolean "is liquid currently
|
|
@@ -21879,7 +22227,17 @@ var floodCapability = {
|
|
|
21879
22227
|
schema: FloodStatusSchema,
|
|
21880
22228
|
kind: "push"
|
|
21881
22229
|
},
|
|
21882
|
-
runtimeState: FloodStatusSchema
|
|
22230
|
+
runtimeState: FloodStatusSchema,
|
|
22231
|
+
/**
|
|
22232
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
22233
|
+
*
|
|
22234
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22235
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22236
|
+
*/
|
|
22237
|
+
durability: "restored",
|
|
22238
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22239
|
+
* whether persisting is worth a SQLite commit. */
|
|
22240
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21883
22241
|
};
|
|
21884
22242
|
/**
|
|
21885
22243
|
* Combustible-gas (LPG / methane / hydrogen) alarm sensor. Drives
|
|
@@ -21902,7 +22260,17 @@ var gasCapability = {
|
|
|
21902
22260
|
schema: GasStatusSchema,
|
|
21903
22261
|
kind: "push"
|
|
21904
22262
|
},
|
|
21905
|
-
runtimeState: GasStatusSchema
|
|
22263
|
+
runtimeState: GasStatusSchema,
|
|
22264
|
+
/**
|
|
22265
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
22266
|
+
*
|
|
22267
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22268
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22269
|
+
*/
|
|
22270
|
+
durability: "restored",
|
|
22271
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22272
|
+
* whether persisting is worth a SQLite commit. */
|
|
22273
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21906
22274
|
};
|
|
21907
22275
|
/**
|
|
21908
22276
|
* Humidifier / dehumidifier cap. Models HA `humidifier.*` entities —
|
|
@@ -21978,7 +22346,14 @@ var humidifierCapability = {
|
|
|
21978
22346
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
21979
22347
|
* slice for live humidity / mode changes.
|
|
21980
22348
|
*/
|
|
21981
|
-
runtimeState: HumidifierStatusSchema
|
|
22349
|
+
runtimeState: HumidifierStatusSchema,
|
|
22350
|
+
/**
|
|
22351
|
+
* Runtime-state durability: **session** — as `climate-control`.
|
|
22352
|
+
*
|
|
22353
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22354
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22355
|
+
*/
|
|
22356
|
+
durability: "session"
|
|
21982
22357
|
};
|
|
21983
22358
|
/**
|
|
21984
22359
|
* Single-metric humidity reading. Drives Home Assistant `sensor`
|
|
@@ -22014,7 +22389,17 @@ var humiditySensorCapability = {
|
|
|
22014
22389
|
schema: HumiditySensorStatusSchema,
|
|
22015
22390
|
kind: "push"
|
|
22016
22391
|
},
|
|
22017
|
-
runtimeState: HumiditySensorStatusSchema
|
|
22392
|
+
runtimeState: HumiditySensorStatusSchema,
|
|
22393
|
+
/**
|
|
22394
|
+
* Runtime-state durability: **restored** — as `numeric-sensor` (67 of 75 writes were the clock alone).
|
|
22395
|
+
*
|
|
22396
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22397
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22398
|
+
*/
|
|
22399
|
+
durability: "restored",
|
|
22400
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22401
|
+
* whether persisting is worth a SQLite commit. */
|
|
22402
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
22018
22403
|
};
|
|
22019
22404
|
/**
|
|
22020
22405
|
* Image display cap. Models a single still image exposed by an integration —
|
|
@@ -22052,7 +22437,14 @@ var imageCapability = {
|
|
|
22052
22437
|
* Runtime-state slice — mirrored by the kernel. The UI reads `url`
|
|
22053
22438
|
* directly and renders the still image.
|
|
22054
22439
|
*/
|
|
22055
|
-
runtimeState: ImageStatusSchema
|
|
22440
|
+
runtimeState: ImageStatusSchema,
|
|
22441
|
+
/**
|
|
22442
|
+
* Runtime-state durability: **session** — a snapshot URL is a session-scoped handle; a restored one points at nothing.
|
|
22443
|
+
*
|
|
22444
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22445
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22446
|
+
*/
|
|
22447
|
+
durability: "session"
|
|
22056
22448
|
};
|
|
22057
22449
|
/**
|
|
22058
22450
|
* Vendor-neutral image / picture-adjustment cap — the per-camera config
|
|
@@ -22201,7 +22593,17 @@ var imageSettingsCapability = {
|
|
|
22201
22593
|
schema: ImageSettingsStatusSchema,
|
|
22202
22594
|
kind: "poll"
|
|
22203
22595
|
},
|
|
22204
|
-
runtimeState: ImageSettingsStatusSchema
|
|
22596
|
+
runtimeState: ImageSettingsStatusSchema,
|
|
22597
|
+
/**
|
|
22598
|
+
* Runtime-state durability: **restored** — operator-set camera imaging; mutation-driven.
|
|
22599
|
+
*
|
|
22600
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22601
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22602
|
+
*/
|
|
22603
|
+
durability: "restored",
|
|
22604
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22605
|
+
* whether persisting is worth a SQLite commit. */
|
|
22606
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
22205
22607
|
};
|
|
22206
22608
|
/**
|
|
22207
22609
|
* integrations — system-scoped singleton capability for integration
|
|
@@ -22541,7 +22943,14 @@ var lawnMowerControlCapability = {
|
|
|
22541
22943
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
22542
22944
|
* slice for live activity + battery changes.
|
|
22543
22945
|
*/
|
|
22544
|
-
runtimeState: LawnMowerControlStatusSchema
|
|
22946
|
+
runtimeState: LawnMowerControlStatusSchema,
|
|
22947
|
+
/**
|
|
22948
|
+
* Runtime-state durability: **session** — as `vacuum-control`.
|
|
22949
|
+
*
|
|
22950
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22951
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22952
|
+
*/
|
|
22953
|
+
durability: "session"
|
|
22545
22954
|
};
|
|
22546
22955
|
/**
|
|
22547
22956
|
* local-network — hub-only singleton.
|
|
@@ -22747,7 +23156,17 @@ var lockControlCapability = {
|
|
|
22747
23156
|
* read `state` and disable themselves during `locking`/`unlocking`
|
|
22748
23157
|
* transitions.
|
|
22749
23158
|
*/
|
|
22750
|
-
runtimeState: LockControlStatusSchema
|
|
23159
|
+
runtimeState: LockControlStatusSchema,
|
|
23160
|
+
/**
|
|
23161
|
+
* Runtime-state durability: **restored** — a lock left locked must still read locked.
|
|
23162
|
+
*
|
|
23163
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23164
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23165
|
+
*/
|
|
23166
|
+
durability: "restored",
|
|
23167
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23168
|
+
* whether persisting is worth a SQLite commit. */
|
|
23169
|
+
volatileStateFields: ["lastChangedAt"]
|
|
22751
23170
|
};
|
|
22752
23171
|
/**
|
|
22753
23172
|
* Media-player cap. Models HA `media_player.*` (Sonos, Chromecast,
|
|
@@ -22909,7 +23328,14 @@ var mediaPlayerCapability = {
|
|
|
22909
23328
|
* full slice for live now-playing, volume, and progress updates
|
|
22910
23329
|
* without polling.
|
|
22911
23330
|
*/
|
|
22912
|
-
runtimeState: MediaPlayerStatusSchema
|
|
23331
|
+
runtimeState: MediaPlayerStatusSchema,
|
|
23332
|
+
/**
|
|
23333
|
+
* Runtime-state durability: **session** — a restored transport position describes a playback that stopped when the hub did.
|
|
23334
|
+
*
|
|
23335
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23336
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23337
|
+
*/
|
|
23338
|
+
durability: "session"
|
|
22913
23339
|
};
|
|
22914
23340
|
/**
|
|
22915
23341
|
* mesh-network — collection cap for mesh-VPN providers.
|
|
@@ -23173,7 +23599,14 @@ onMotionChanged: { data: MotionOnMotionChangedDataSchema } },
|
|
|
23173
23599
|
* `device.state.motion.value`. Reads never invoke the provider, so
|
|
23174
23600
|
* UIs and other addons can poll the cached state safely.
|
|
23175
23601
|
*/
|
|
23176
|
-
runtimeState: MotionStatusSchema
|
|
23602
|
+
runtimeState: MotionStatusSchema,
|
|
23603
|
+
/**
|
|
23604
|
+
* 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.
|
|
23605
|
+
*
|
|
23606
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23607
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23608
|
+
*/
|
|
23609
|
+
durability: "session"
|
|
23177
23610
|
};
|
|
23178
23611
|
/**
|
|
23179
23612
|
* Motion-trigger toggle for accessory devices.
|
|
@@ -23238,7 +23671,14 @@ var motionTriggerCapability = {
|
|
|
23238
23671
|
schema: MotionTriggerStatusSchema,
|
|
23239
23672
|
kind: "command-driven"
|
|
23240
23673
|
},
|
|
23241
|
-
runtimeState: MotionTriggerRuntimeStateSchema
|
|
23674
|
+
runtimeState: MotionTriggerRuntimeStateSchema,
|
|
23675
|
+
/**
|
|
23676
|
+
* 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.
|
|
23677
|
+
*
|
|
23678
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23679
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23680
|
+
*/
|
|
23681
|
+
durability: "session"
|
|
23242
23682
|
};
|
|
23243
23683
|
/**
|
|
23244
23684
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
@@ -23305,7 +23745,17 @@ var motionZonesCapability = {
|
|
|
23305
23745
|
schema: MotionZoneStatusSchema,
|
|
23306
23746
|
kind: "poll"
|
|
23307
23747
|
},
|
|
23308
|
-
runtimeState: MotionZoneStatusSchema
|
|
23748
|
+
runtimeState: MotionZoneStatusSchema,
|
|
23749
|
+
/**
|
|
23750
|
+
* 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.
|
|
23751
|
+
*
|
|
23752
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23753
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23754
|
+
*/
|
|
23755
|
+
durability: "restored",
|
|
23756
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23757
|
+
* whether persisting is worth a SQLite commit. */
|
|
23758
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23309
23759
|
};
|
|
23310
23760
|
/**
|
|
23311
23761
|
* On-camera AI object detection cap. Surfaces per-device the classes
|
|
@@ -23379,7 +23829,17 @@ var nativeObjectDetectionCapability = {
|
|
|
23379
23829
|
schema: NativeObjectDetectionStatusSchema,
|
|
23380
23830
|
kind: "push"
|
|
23381
23831
|
},
|
|
23382
|
-
runtimeState: NativeObjectDetectionRuntimeStateSchema
|
|
23832
|
+
runtimeState: NativeObjectDetectionRuntimeStateSchema,
|
|
23833
|
+
/**
|
|
23834
|
+
* 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.
|
|
23835
|
+
*
|
|
23836
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23837
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23838
|
+
*/
|
|
23839
|
+
durability: "restored",
|
|
23840
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23841
|
+
* whether persisting is worth a SQLite commit. */
|
|
23842
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23383
23843
|
};
|
|
23384
23844
|
/**
|
|
23385
23845
|
* network-quality — system-scoped singleton capability tracking RTT,
|
|
@@ -23713,7 +24173,14 @@ onSent: { data: object({
|
|
|
23713
24173
|
* form reads `supports` to gate optional fields; history pane reads
|
|
23714
24174
|
* `lastSentAt` / `lastError` / `queueDepth`.
|
|
23715
24175
|
*/
|
|
23716
|
-
runtimeState: NotifierStatusSchema
|
|
24176
|
+
runtimeState: NotifierStatusSchema,
|
|
24177
|
+
/**
|
|
24178
|
+
* Runtime-state durability: **session** — live queue depth and last-send state; a restored queue depth describes a queue that no longer exists.
|
|
24179
|
+
*
|
|
24180
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24181
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24182
|
+
*/
|
|
24183
|
+
durability: "session"
|
|
23717
24184
|
};
|
|
23718
24185
|
/**
|
|
23719
24186
|
* Generic numeric sensor — last-resort fallback when no typed numeric
|
|
@@ -23756,7 +24223,17 @@ var numericSensorCapability = {
|
|
|
23756
24223
|
schema: NumericSensorStatusSchema,
|
|
23757
24224
|
kind: "push"
|
|
23758
24225
|
},
|
|
23759
|
-
runtimeState: NumericSensorStatusSchema
|
|
24226
|
+
runtimeState: NumericSensorStatusSchema,
|
|
24227
|
+
/**
|
|
24228
|
+
* 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.
|
|
24229
|
+
*
|
|
24230
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24231
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24232
|
+
*/
|
|
24233
|
+
durability: "restored",
|
|
24234
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24235
|
+
* whether persisting is worth a SQLite commit. */
|
|
24236
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23760
24237
|
};
|
|
23761
24238
|
/**
|
|
23762
24239
|
* Generic on-screen-display (video overlay) cap. Each camera exposes
|
|
@@ -24141,7 +24618,14 @@ var petFeederCapability = {
|
|
|
24141
24618
|
* the full slice via `device.state.petFeeder.value` and refresh on
|
|
24142
24619
|
* every poll without re-querying the provider.
|
|
24143
24620
|
*/
|
|
24144
|
-
runtimeState: PetFeederStatusSchema
|
|
24621
|
+
runtimeState: PetFeederStatusSchema,
|
|
24622
|
+
/**
|
|
24623
|
+
* Runtime-state durability: **session** — live appliance state re-published on connect.
|
|
24624
|
+
*
|
|
24625
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24626
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24627
|
+
*/
|
|
24628
|
+
durability: "session"
|
|
24145
24629
|
};
|
|
24146
24630
|
var VehicleSchema = object({
|
|
24147
24631
|
id: string(),
|
|
@@ -24453,7 +24937,17 @@ var powerMeterCapability = {
|
|
|
24453
24937
|
schema: PowerMeterStatusSchema,
|
|
24454
24938
|
kind: "push"
|
|
24455
24939
|
},
|
|
24456
|
-
runtimeState: PowerMeterStatusSchema
|
|
24940
|
+
runtimeState: PowerMeterStatusSchema,
|
|
24941
|
+
/**
|
|
24942
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`; `kwhTotal` is an accumulator whose restored value is the baseline.
|
|
24943
|
+
*
|
|
24944
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24945
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24946
|
+
*/
|
|
24947
|
+
durability: "restored",
|
|
24948
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24949
|
+
* whether persisting is worth a SQLite commit. */
|
|
24950
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24457
24951
|
};
|
|
24458
24952
|
/**
|
|
24459
24953
|
* Presence cap. Models HA `person.*` and `device_tracker.*` entities
|
|
@@ -24510,7 +25004,17 @@ var presenceCapability = {
|
|
|
24510
25004
|
* the map pin is rendered (use `DeviceFeature.PresenceGps` for the
|
|
24511
25005
|
* pre-fetch fast-path check).
|
|
24512
25006
|
*/
|
|
24513
|
-
runtimeState: PresenceStatusSchema
|
|
25007
|
+
runtimeState: PresenceStatusSchema,
|
|
25008
|
+
/**
|
|
25009
|
+
* Runtime-state durability: **restored** — occupancy-relevant: the restored state is what an occupancy rule compares the first post-restart observation against.
|
|
25010
|
+
*
|
|
25011
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25012
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25013
|
+
*/
|
|
25014
|
+
durability: "restored",
|
|
25015
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25016
|
+
* whether persisting is worth a SQLite commit. */
|
|
25017
|
+
volatileStateFields: ["lastChangedAt"]
|
|
24514
25018
|
};
|
|
24515
25019
|
/**
|
|
24516
25020
|
* Atmospheric pressure reading in hectopascals. Drives Home Assistant
|
|
@@ -24546,7 +25050,17 @@ var pressureSensorCapability = {
|
|
|
24546
25050
|
schema: PressureSensorStatusSchema,
|
|
24547
25051
|
kind: "push"
|
|
24548
25052
|
},
|
|
24549
|
-
runtimeState: PressureSensorStatusSchema
|
|
25053
|
+
runtimeState: PressureSensorStatusSchema,
|
|
25054
|
+
/**
|
|
25055
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
25056
|
+
*
|
|
25057
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25058
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25059
|
+
*/
|
|
25060
|
+
durability: "restored",
|
|
25061
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25062
|
+
* whether persisting is worth a SQLite commit. */
|
|
25063
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24550
25064
|
};
|
|
24551
25065
|
/**
|
|
24552
25066
|
* PRIVACY — what the camera deliberately does not capture. Two planes:
|
|
@@ -24676,7 +25190,17 @@ var privacyMaskCapability = {
|
|
|
24676
25190
|
schema: PrivacyMaskStatusSchema,
|
|
24677
25191
|
kind: "poll"
|
|
24678
25192
|
},
|
|
24679
|
-
runtimeState: PrivacyMaskStatusSchema
|
|
25193
|
+
runtimeState: PrivacyMaskStatusSchema,
|
|
25194
|
+
/**
|
|
25195
|
+
* Runtime-state durability: **restored** — operator-drawn regions, zero real churn — 22 writes in 25 minutes, every one of them the clock.
|
|
25196
|
+
*
|
|
25197
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25198
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25199
|
+
*/
|
|
25200
|
+
durability: "restored",
|
|
25201
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25202
|
+
* whether persisting is worth a SQLite commit. */
|
|
25203
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24680
25204
|
};
|
|
24681
25205
|
var PtzPresetSchema = object({
|
|
24682
25206
|
id: string(),
|
|
@@ -24842,7 +25366,14 @@ var ptzAutotrackCapability = {
|
|
|
24842
25366
|
* fetch / cache / fallback logic out of the four cap methods —
|
|
24843
25367
|
* they become trampolines over `runtimeState`.
|
|
24844
25368
|
*/
|
|
24845
|
-
runtimeState: PtzAutotrackRuntimeStateSchema
|
|
25369
|
+
runtimeState: PtzAutotrackRuntimeStateSchema,
|
|
25370
|
+
/**
|
|
25371
|
+
* Runtime-state durability: **session** — mirrors the camera's own autotrack config, re-read on connect.
|
|
25372
|
+
*
|
|
25373
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25374
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25375
|
+
*/
|
|
25376
|
+
durability: "session"
|
|
24846
25377
|
};
|
|
24847
25378
|
DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
|
|
24848
25379
|
kind: "mutation",
|
|
@@ -25492,7 +26023,14 @@ var sceneMonitorCapability = {
|
|
|
25492
26023
|
schema: SceneMonitorStatusSchema,
|
|
25493
26024
|
kind: "push"
|
|
25494
26025
|
},
|
|
25495
|
-
runtimeState: SceneMonitorStatusSchema
|
|
26026
|
+
runtimeState: SceneMonitorStatusSchema,
|
|
26027
|
+
/**
|
|
26028
|
+
* Runtime-state durability: **session** — re-derived from the current scene on the next evaluation.
|
|
26029
|
+
*
|
|
26030
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26031
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26032
|
+
*/
|
|
26033
|
+
durability: "session"
|
|
25496
26034
|
};
|
|
25497
26035
|
/**
|
|
25498
26036
|
* Per-stage gating mode applied to the zones a rule references.
|
|
@@ -25636,7 +26174,14 @@ var scriptRunnerCapability = {
|
|
|
25636
26174
|
* `isRunning` to render a spinner during execution and surfaces
|
|
25637
26175
|
* `lastError` / `lastRunSuccess` in the recent-runs panel.
|
|
25638
26176
|
*/
|
|
25639
|
-
runtimeState: ScriptRunnerStatusSchema
|
|
26177
|
+
runtimeState: ScriptRunnerStatusSchema,
|
|
26178
|
+
/**
|
|
26179
|
+
* Runtime-state durability: **session** — a restored `isRunning: true` describes a process that died with the previous hub.
|
|
26180
|
+
*
|
|
26181
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26182
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26183
|
+
*/
|
|
26184
|
+
durability: "session"
|
|
25640
26185
|
};
|
|
25641
26186
|
/**
|
|
25642
26187
|
* Smoke alarm sensor — boolean "is smoke currently detected" with
|
|
@@ -25663,7 +26208,17 @@ var smokeCapability = {
|
|
|
25663
26208
|
schema: SmokeStatusSchema,
|
|
25664
26209
|
kind: "push"
|
|
25665
26210
|
},
|
|
25666
|
-
runtimeState: SmokeStatusSchema
|
|
26211
|
+
runtimeState: SmokeStatusSchema,
|
|
26212
|
+
/**
|
|
26213
|
+
* Runtime-state durability: **restored** — a safety sensor must not read "clear" merely because the hub restarted.
|
|
26214
|
+
*
|
|
26215
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26216
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26217
|
+
*/
|
|
26218
|
+
durability: "restored",
|
|
26219
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26220
|
+
* whether persisting is worth a SQLite commit. */
|
|
26221
|
+
volatileStateFields: ["lastChangedAt"]
|
|
25667
26222
|
};
|
|
25668
26223
|
/**
|
|
25669
26224
|
* One publishable camera stream as its OWNING PROVIDER describes it — the same
|
|
@@ -25836,7 +26391,17 @@ var streamParamsCapability = {
|
|
|
25836
26391
|
schema: StreamParamsStatusSchema,
|
|
25837
26392
|
kind: "poll"
|
|
25838
26393
|
},
|
|
25839
|
-
runtimeState: StreamParamsStatusSchema
|
|
26394
|
+
runtimeState: StreamParamsStatusSchema,
|
|
26395
|
+
/**
|
|
26396
|
+
* Runtime-state durability: **restored** — operator-set encoder profile; mutation-driven.
|
|
26397
|
+
*
|
|
26398
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26399
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26400
|
+
*/
|
|
26401
|
+
durability: "restored",
|
|
26402
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26403
|
+
* whether persisting is worth a SQLite commit. */
|
|
26404
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
25840
26405
|
};
|
|
25841
26406
|
/**
|
|
25842
26407
|
* Generic on/off switch cap for accessory children (siren, floodlight,
|
|
@@ -25882,6 +26447,16 @@ var switchCapability = {
|
|
|
25882
26447
|
* not need to re-query the provider after a setState mutation.
|
|
25883
26448
|
*/
|
|
25884
26449
|
runtimeState: SwitchStatusSchema,
|
|
26450
|
+
/**
|
|
26451
|
+
* Runtime-state durability: **restored** — device state an operator reads as authoritative; 55 devices, transition-driven.
|
|
26452
|
+
*
|
|
26453
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26454
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26455
|
+
*/
|
|
26456
|
+
durability: "restored",
|
|
26457
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26458
|
+
* whether persisting is worth a SQLite commit. */
|
|
26459
|
+
volatileStateFields: ["lastChangedAt"],
|
|
25885
26460
|
settings: { bindings: [{
|
|
25886
26461
|
kind: "scalar",
|
|
25887
26462
|
statusPath: "on",
|
|
@@ -25961,7 +26536,17 @@ var tamperCapability = {
|
|
|
25961
26536
|
schema: TamperStatusSchema,
|
|
25962
26537
|
kind: "push"
|
|
25963
26538
|
},
|
|
25964
|
-
runtimeState: TamperStatusSchema
|
|
26539
|
+
runtimeState: TamperStatusSchema,
|
|
26540
|
+
/**
|
|
26541
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
26542
|
+
*
|
|
26543
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26544
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26545
|
+
*/
|
|
26546
|
+
durability: "restored",
|
|
26547
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26548
|
+
* whether persisting is worth a SQLite commit. */
|
|
26549
|
+
volatileStateFields: ["lastChangedAt"]
|
|
25965
26550
|
};
|
|
25966
26551
|
/**
|
|
25967
26552
|
* Single-metric temperature reading. Drives Home Assistant `sensor`
|
|
@@ -26006,7 +26591,17 @@ var temperatureSensorCapability = {
|
|
|
26006
26591
|
schema: TemperatureSensorStatusSchema,
|
|
26007
26592
|
kind: "push"
|
|
26008
26593
|
},
|
|
26009
|
-
runtimeState: TemperatureSensorStatusSchema
|
|
26594
|
+
runtimeState: TemperatureSensorStatusSchema,
|
|
26595
|
+
/**
|
|
26596
|
+
* Runtime-state durability: **restored** — as `numeric-sensor` (69 of 125 writes were the clock alone).
|
|
26597
|
+
*
|
|
26598
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26599
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26600
|
+
*/
|
|
26601
|
+
durability: "restored",
|
|
26602
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26603
|
+
* whether persisting is worth a SQLite commit. */
|
|
26604
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
26010
26605
|
};
|
|
26011
26606
|
/**
|
|
26012
26607
|
* toast — system-scoped singleton capability that streams toast
|
|
@@ -26075,7 +26670,14 @@ var updateCapability = {
|
|
|
26075
26670
|
schema: UpdateStatusSchema,
|
|
26076
26671
|
kind: "poll"
|
|
26077
26672
|
},
|
|
26078
|
-
runtimeState: UpdateStatusSchema
|
|
26673
|
+
runtimeState: UpdateStatusSchema,
|
|
26674
|
+
/**
|
|
26675
|
+
* Runtime-state durability: **session** — a restored `inProgress: true` describes an update that is no longer running; versions are re-probed at boot.
|
|
26676
|
+
*
|
|
26677
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26678
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26679
|
+
*/
|
|
26680
|
+
durability: "session"
|
|
26079
26681
|
};
|
|
26080
26682
|
var UserSummarySchema = object({
|
|
26081
26683
|
id: string(),
|
|
@@ -26409,7 +27011,14 @@ var vacuumControlCapability = {
|
|
|
26409
27011
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
26410
27012
|
* slice for live state + battery + fan-speed changes.
|
|
26411
27013
|
*/
|
|
26412
|
-
runtimeState: VacuumControlStatusSchema
|
|
27014
|
+
runtimeState: VacuumControlStatusSchema,
|
|
27015
|
+
/**
|
|
27016
|
+
* Runtime-state durability: **session** — as `media-player` — a restored `state: cleaning` is a robot that is not cleaning.
|
|
27017
|
+
*
|
|
27018
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27019
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27020
|
+
*/
|
|
27021
|
+
durability: "session"
|
|
26413
27022
|
};
|
|
26414
27023
|
var ValveStatusSchema = object({
|
|
26415
27024
|
/** Lifecycle state of the valve. */
|
|
@@ -26461,7 +27070,14 @@ var valveCapability = {
|
|
|
26461
27070
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
26462
27071
|
* slice for live position changes during a move.
|
|
26463
27072
|
*/
|
|
26464
|
-
runtimeState: ValveStatusSchema
|
|
27073
|
+
runtimeState: ValveStatusSchema,
|
|
27074
|
+
/**
|
|
27075
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
27076
|
+
*
|
|
27077
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27078
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27079
|
+
*/
|
|
27080
|
+
durability: "session"
|
|
26465
27081
|
};
|
|
26466
27082
|
/**
|
|
26467
27083
|
* Vibration / shake / impact sensor. Drives Home Assistant
|
|
@@ -26483,7 +27099,17 @@ var vibrationCapability = {
|
|
|
26483
27099
|
schema: VibrationStatusSchema,
|
|
26484
27100
|
kind: "push"
|
|
26485
27101
|
},
|
|
26486
|
-
runtimeState: VibrationStatusSchema
|
|
27102
|
+
runtimeState: VibrationStatusSchema,
|
|
27103
|
+
/**
|
|
27104
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
27105
|
+
*
|
|
27106
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27107
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27108
|
+
*/
|
|
27109
|
+
durability: "restored",
|
|
27110
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27111
|
+
* whether persisting is worth a SQLite commit. */
|
|
27112
|
+
volatileStateFields: ["lastChangedAt"]
|
|
26487
27113
|
};
|
|
26488
27114
|
/**
|
|
26489
27115
|
* Water heater / boiler cap. Models HA `water_heater.*` entities — a
|
|
@@ -26557,7 +27183,14 @@ var waterHeaterCapability = {
|
|
|
26557
27183
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
26558
27184
|
* slice for live temperature / mode / away changes.
|
|
26559
27185
|
*/
|
|
26560
|
-
runtimeState: WaterHeaterStatusSchema
|
|
27186
|
+
runtimeState: WaterHeaterStatusSchema,
|
|
27187
|
+
/**
|
|
27188
|
+
* Runtime-state durability: **session** — as `climate-control`.
|
|
27189
|
+
*
|
|
27190
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27191
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27192
|
+
*/
|
|
27193
|
+
durability: "session"
|
|
26561
27194
|
};
|
|
26562
27195
|
/**
|
|
26563
27196
|
* Weather provider cap. Models HA `weather.*` entities — a read-only
|
|
@@ -26616,7 +27249,14 @@ var weatherCapability = {
|
|
|
26616
27249
|
* Runtime-state slice — mirrored by the kernel. The UI reads the
|
|
26617
27250
|
* current conditions directly from the slice on each weather push.
|
|
26618
27251
|
*/
|
|
26619
|
-
runtimeState: WeatherStatusSchema
|
|
27252
|
+
runtimeState: WeatherStatusSchema,
|
|
27253
|
+
/**
|
|
27254
|
+
* Runtime-state durability: **session** — a forecast is stale the moment the hub is down; the provider re-fetches on connect.
|
|
27255
|
+
*
|
|
27256
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27257
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27258
|
+
*/
|
|
27259
|
+
durability: "session"
|
|
26620
27260
|
};
|
|
26621
27261
|
/**
|
|
26622
27262
|
* Per-zone occupancy aggregation produced by the analytics frame
|
|
@@ -26778,7 +27418,14 @@ var zoneAnalyticsCapability = {
|
|
|
26778
27418
|
* automatically; the explicit `getCurrentSnapshot` cap method is
|
|
26779
27419
|
* still useful for one-off polls without a subscription.
|
|
26780
27420
|
*/
|
|
26781
|
-
runtimeState: CameraOccupancySnapshotSchema
|
|
27421
|
+
runtimeState: CameraOccupancySnapshotSchema,
|
|
27422
|
+
/**
|
|
27423
|
+
* Runtime-state durability: **session** — per-frame analytics; with `audio-metrics` it is ~90 % of the offered write rate. Re-derived on the next frame.
|
|
27424
|
+
*
|
|
27425
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27426
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27427
|
+
*/
|
|
27428
|
+
durability: "session"
|
|
26782
27429
|
};
|
|
26783
27430
|
/**
|
|
26784
27431
|
* Stages a {@link ZoneRule} can apply to. Discriminator on the rules
|
|
@@ -26856,7 +27503,14 @@ var zoneRulesCapability = {
|
|
|
26856
27503
|
motion: array(ZoneRuleSchema).readonly(),
|
|
26857
27504
|
detection: array(ZoneRuleSchema).readonly(),
|
|
26858
27505
|
package: array(ZoneRuleSchema).readonly()
|
|
26859
|
-
})
|
|
27506
|
+
}),
|
|
27507
|
+
/**
|
|
27508
|
+
* Runtime-state durability: **restored** — operator intent, mutation-only, same argument as `zones`.
|
|
27509
|
+
*
|
|
27510
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27511
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27512
|
+
*/
|
|
27513
|
+
durability: "restored"
|
|
26860
27514
|
};
|
|
26861
27515
|
/**
|
|
26862
27516
|
* Accessory device helpers — shared across drivers.
|
|
@@ -33543,6 +34197,7 @@ Object.freeze({
|
|
|
33543
34197
|
"network-access": "ingress",
|
|
33544
34198
|
"smtp-provider": "email"
|
|
33545
34199
|
});
|
|
34200
|
+
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
33546
34201
|
new Set(["devices", "classes"]);
|
|
33547
34202
|
/**
|
|
33548
34203
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|