@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.mjs
CHANGED
|
@@ -10803,7 +10803,14 @@ var cameraStreamsCapability = {
|
|
|
10803
10803
|
low: string().optional()
|
|
10804
10804
|
}),
|
|
10805
10805
|
lastChangedAt: number()
|
|
10806
|
-
})
|
|
10806
|
+
}),
|
|
10807
|
+
/**
|
|
10808
|
+
* 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.
|
|
10809
|
+
*
|
|
10810
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
10811
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
10812
|
+
*/
|
|
10813
|
+
durability: "session"
|
|
10807
10814
|
};
|
|
10808
10815
|
/** Where a block runs. The operator chooses — a block driving a device on an
|
|
10809
10816
|
* agent is the reason placement is not fixed to the hub. */
|
|
@@ -11364,6 +11371,13 @@ var deviceDiscoveryCapability = {
|
|
|
11364
11371
|
kind: "poll"
|
|
11365
11372
|
},
|
|
11366
11373
|
runtimeState: DeviceDiscoveryStatusSchema.extend({ lastFetchedAt: number().int().nonnegative() }),
|
|
11374
|
+
/**
|
|
11375
|
+
* Runtime-state durability: **session** — 5.7 KB of scan output on the largest device, fully re-derivable by re-scanning.
|
|
11376
|
+
*
|
|
11377
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
11378
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
11379
|
+
*/
|
|
11380
|
+
durability: "session",
|
|
11367
11381
|
methods: {
|
|
11368
11382
|
/**
|
|
11369
11383
|
* Snapshot of the current `discovered` list. Returns the
|
|
@@ -13233,11 +13247,33 @@ var NotificationFormatSchema = _enum([
|
|
|
13233
13247
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
13234
13248
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
13235
13249
|
* differently.
|
|
13250
|
+
*
|
|
13251
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
13252
|
+
*
|
|
13253
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
13254
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
13255
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
13256
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
13257
|
+
* decides its glyph, which is the only place that decision can be made
|
|
13258
|
+
* honestly.
|
|
13259
|
+
*
|
|
13260
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
13261
|
+
* `disarm` straight through; iOS feeds that string to
|
|
13262
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
13263
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
13264
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
13265
|
+
*
|
|
13266
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
13267
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
13268
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
13269
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
13270
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
13236
13271
|
*/
|
|
13237
13272
|
var NotificationActionIconSchema = _enum([
|
|
13238
13273
|
"acknowledge",
|
|
13239
13274
|
"dismiss",
|
|
13240
13275
|
"silence",
|
|
13276
|
+
"snooze",
|
|
13241
13277
|
"view",
|
|
13242
13278
|
"play",
|
|
13243
13279
|
"open",
|
|
@@ -13245,9 +13281,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
13245
13281
|
"lock",
|
|
13246
13282
|
"unlock",
|
|
13247
13283
|
"arm",
|
|
13284
|
+
"arm-home",
|
|
13285
|
+
"arm-away",
|
|
13286
|
+
"arm-night",
|
|
13248
13287
|
"disarm",
|
|
13249
13288
|
"light",
|
|
13250
|
-
"alert"
|
|
13289
|
+
"alert",
|
|
13290
|
+
"camera"
|
|
13251
13291
|
]);
|
|
13252
13292
|
/** A single tap-through action button. */
|
|
13253
13293
|
var NotificationActionSchema = object({
|
|
@@ -13263,7 +13303,23 @@ var NotificationActionSchema = object({
|
|
|
13263
13303
|
* else — see `notification-center/action-token.ts` for what that does and
|
|
13264
13304
|
* does not buy.
|
|
13265
13305
|
*/
|
|
13266
|
-
destructive: boolean().optional()
|
|
13306
|
+
destructive: boolean().optional(),
|
|
13307
|
+
/**
|
|
13308
|
+
* How the tap should REACH the url.
|
|
13309
|
+
*
|
|
13310
|
+
* `navigate` (absent, and every button authored before this field) opens it:
|
|
13311
|
+
* the phone leaves the notification and shows whatever the callback returns.
|
|
13312
|
+
* That is right for a button whose answer the operator wants to read.
|
|
13313
|
+
*
|
|
13314
|
+
* `background` fires it as a POST and stays put. It exists for the buttons
|
|
13315
|
+
* whose whole point is not to interrupt — "silence this for 30 minutes" is
|
|
13316
|
+
* an answer to the notification, and being thrown into a browser tab to
|
|
13317
|
+
* confirm it costs more attention than the notification did. A backend that
|
|
13318
|
+
* cannot do a background call renders it as an ordinary link (the adapters
|
|
13319
|
+
* fall back rather than dropping the button), so this is a preference, never
|
|
13320
|
+
* a requirement.
|
|
13321
|
+
*/
|
|
13322
|
+
mode: _enum(["navigate", "background"]).optional()
|
|
13267
13323
|
});
|
|
13268
13324
|
/**
|
|
13269
13325
|
* The canonical notification. `body` is the only hard field (Apprise model).
|
|
@@ -13431,6 +13487,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
13431
13487
|
targetId: string(),
|
|
13432
13488
|
enabled: boolean()
|
|
13433
13489
|
}), _void(), { kind: "mutation" });
|
|
13490
|
+
new Set([
|
|
13491
|
+
{
|
|
13492
|
+
id: "person",
|
|
13493
|
+
name: "Person"
|
|
13494
|
+
},
|
|
13495
|
+
{
|
|
13496
|
+
id: "vehicle",
|
|
13497
|
+
name: "Vehicle"
|
|
13498
|
+
},
|
|
13499
|
+
{
|
|
13500
|
+
id: "animal",
|
|
13501
|
+
name: "Animal"
|
|
13502
|
+
},
|
|
13503
|
+
{
|
|
13504
|
+
id: "package",
|
|
13505
|
+
name: "Package"
|
|
13506
|
+
}
|
|
13507
|
+
].map((l) => l.id));
|
|
13434
13508
|
var COCO_TO_MACRO = {
|
|
13435
13509
|
mapping: {
|
|
13436
13510
|
person: "person",
|
|
@@ -14115,7 +14189,17 @@ var alarmPanelCapability = {
|
|
|
14115
14189
|
* full slice; renders an arm button per `availableModes` entry and
|
|
14116
14190
|
* a PIN field iff `requiresCode === true`.
|
|
14117
14191
|
*/
|
|
14118
|
-
runtimeState: AlarmPanelStatusSchema
|
|
14192
|
+
runtimeState: AlarmPanelStatusSchema,
|
|
14193
|
+
/**
|
|
14194
|
+
* Runtime-state durability: **restored** — armed state is the one thing a panel must not lose across a restart.
|
|
14195
|
+
*
|
|
14196
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
14197
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
14198
|
+
*/
|
|
14199
|
+
durability: "restored",
|
|
14200
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
14201
|
+
* whether persisting is worth a SQLite commit. */
|
|
14202
|
+
volatileStateFields: ["lastChangedAt"]
|
|
14119
14203
|
};
|
|
14120
14204
|
/**
|
|
14121
14205
|
* Shared geometry vocabulary for on-frame shape caps — privacy-mask,
|
|
@@ -14256,6 +14340,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14256
14340
|
"alarm-triggered",
|
|
14257
14341
|
"alarm-armed",
|
|
14258
14342
|
"alarm-disarmed",
|
|
14343
|
+
"alarm-arming",
|
|
14344
|
+
"alarm-arm-refused",
|
|
14259
14345
|
"camera-online",
|
|
14260
14346
|
"camera-offline",
|
|
14261
14347
|
"camera-disabled",
|
|
@@ -14292,6 +14378,9 @@ var NcSystemEventConditionSchema = object({
|
|
|
14292
14378
|
nodeIds: array(string().min(1)).min(1).optional(),
|
|
14293
14379
|
packageNames: array(string().min(1)).min(1).optional()
|
|
14294
14380
|
});
|
|
14381
|
+
/** Hard ceiling on a window (24h). A snooze that could not expire would be an
|
|
14382
|
+
* outage the operator asked for once and forgot. */
|
|
14383
|
+
var NC_SNOOZE_MAX_MINUTES = 1440;
|
|
14295
14384
|
/** Weekly schedule — OR of windows; absence on the rule = always active. */
|
|
14296
14385
|
var NcScheduleSchema = object({
|
|
14297
14386
|
windows: array(object({
|
|
@@ -14668,15 +14757,15 @@ var NcConditionsSchema = object({
|
|
|
14668
14757
|
* (an `immediate` rule naming an `audio-*` class, one notification per
|
|
14669
14758
|
* classified sample) stays exactly as it was for rules that already use it.
|
|
14670
14759
|
*
|
|
14671
|
-
*
|
|
14672
|
-
* rather than an
|
|
14673
|
-
* (`camstack/src/data/notification-center.ts`, guarded by
|
|
14674
|
-
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor
|
|
14760
|
+
* In {@link NC_CONDITION_CATALOG} since P2, and the ORDER it got there is the
|
|
14761
|
+
* rule rather than an accident: the viewer mirrors the descriptor enums BY
|
|
14762
|
+
* HAND (`camstack/src/data/notification-center.ts`, guarded by
|
|
14763
|
+
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor strips the
|
|
14675
14764
|
* condition fields it does not know when a rule is saved from the phone.
|
|
14676
14765
|
* Publishing an editor for a condition the app cannot round-trip is how an
|
|
14677
|
-
* operator loses a rule's conditions by opening it — so the
|
|
14678
|
-
*
|
|
14679
|
-
*
|
|
14766
|
+
* operator loses a rule's conditions by opening it — so the viewer mirror
|
|
14767
|
+
* (P3, shipped) went FIRST, and the descriptor an editor renders from
|
|
14768
|
+
* follows here.
|
|
14680
14769
|
*/
|
|
14681
14770
|
audio: NcAudioConditionSchema.optional()
|
|
14682
14771
|
});
|
|
@@ -14912,6 +15001,30 @@ var NcRuleInputSchema = object({
|
|
|
14912
15001
|
*/
|
|
14913
15002
|
snoozeAllowGlobal: boolean().optional(),
|
|
14914
15003
|
/**
|
|
15004
|
+
* The snooze durations THIS rule's notification offers as buttons, in
|
|
15005
|
+
* minutes.
|
|
15006
|
+
*
|
|
15007
|
+
* Three states, and all three are distinct — which is exactly why this is
|
|
15008
|
+
* `.optional()` and never `.default()`. A Zod default does not run on the
|
|
15009
|
+
* addon cap path (three production failures in one day), so a schema default
|
|
15010
|
+
* would collapse the first two:
|
|
15011
|
+
*
|
|
15012
|
+
* | value | meaning |
|
|
15013
|
+
* | --- | --- |
|
|
15014
|
+
* | absent | the operator never said ⇒ {@link NC_DEFAULT_SNOOZE_MINUTES} |
|
|
15015
|
+
* | `[]` | **no snooze buttons on this rule** — the explicit override |
|
|
15016
|
+
* | a list | these choices, de-duplicated and sorted, at most four |
|
|
15017
|
+
*
|
|
15018
|
+
* `.max(4)` because the notifier's own action budget is small (ntfy allows
|
|
15019
|
+
* three buttons in total) and a rule that spent it all on snooze choices
|
|
15020
|
+
* would push its own tap-through actions off the notification.
|
|
15021
|
+
*
|
|
15022
|
+
* An empty list is NOT an alarm exemption: a rule the alarm is about, or
|
|
15023
|
+
* that arms the panel, is exempt automatically and cannot be silenced by a
|
|
15024
|
+
* window from anywhere (D133).
|
|
15025
|
+
*/
|
|
15026
|
+
snoozeOptions: array(number().int().min(1).max(NC_SNOOZE_MAX_MINUTES)).max(4).optional(),
|
|
15027
|
+
/**
|
|
14915
15028
|
* Devices this rule ACTUATES — arm the alarm, open a gate, turn on a light.
|
|
14916
15029
|
*
|
|
14917
15030
|
* This is what makes the rule set the alarm's trigger set without the alarm
|
|
@@ -15011,6 +15124,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
15011
15124
|
"device",
|
|
15012
15125
|
"package",
|
|
15013
15126
|
"occupancy",
|
|
15127
|
+
"audio",
|
|
15014
15128
|
"system"
|
|
15015
15129
|
]),
|
|
15016
15130
|
label: string(),
|
|
@@ -15029,6 +15143,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
15029
15143
|
"crossingSelect",
|
|
15030
15144
|
"polygonDraw",
|
|
15031
15145
|
"occupancy",
|
|
15146
|
+
"audio",
|
|
15032
15147
|
"deviceState",
|
|
15033
15148
|
"systemEvent"
|
|
15034
15149
|
]),
|
|
@@ -15180,7 +15295,20 @@ var NcSnoozeInputSchema = object({
|
|
|
15180
15295
|
ruleId: string().optional(),
|
|
15181
15296
|
/** Required when `scope: 'device'`. */
|
|
15182
15297
|
deviceId: number().int().optional(),
|
|
15183
|
-
|
|
15298
|
+
/**
|
|
15299
|
+
* Narrow the window to these subject classes — "the cat, not the person".
|
|
15300
|
+
*
|
|
15301
|
+
* ORTHOGONAL to `scope`, deliberately, and absent means EVERY class: that is
|
|
15302
|
+
* what every window authored before this field meant, so no persisted row
|
|
15303
|
+
* changes meaning and no client has to learn anything to keep working.
|
|
15304
|
+
*
|
|
15305
|
+
* It is what makes the window's real key `(deviceId, classes[])` and lets it
|
|
15306
|
+
* cross rules (D133): the operator points at a camera and a kind of thing,
|
|
15307
|
+
* not at whichever of their four rules happened to produce the notification
|
|
15308
|
+
* they are dismissing.
|
|
15309
|
+
*/
|
|
15310
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
15311
|
+
durationMinutes: number().int().min(1).max(NC_SNOOZE_MAX_MINUTES),
|
|
15184
15312
|
/**
|
|
15185
15313
|
* Silence this for EVERY recipient, not just the caller. Permission is
|
|
15186
15314
|
* checked server-side (the rule's `snoozeAllowGlobal`, or admin for the
|
|
@@ -15205,6 +15333,10 @@ var NcSnoozeSchema = object({
|
|
|
15205
15333
|
scope: NcSnoozeScopeSchema,
|
|
15206
15334
|
ruleId: string().optional(),
|
|
15207
15335
|
deviceId: number().int().optional(),
|
|
15336
|
+
/** Subject classes this window covers. ABSENT = every class — see
|
|
15337
|
+
* {@link NcSnoozeInputSchema.shape.classes}. Lives in the JSON blob and has
|
|
15338
|
+
* no SQLite column: nothing queries a window by class. */
|
|
15339
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
15208
15340
|
startedAt: number(),
|
|
15209
15341
|
/** Exclusive: at exactly this instant the snooze is over. Expiry is a
|
|
15210
15342
|
* COMPARISON, not a job — no sweeper can leave the operator silenced. */
|
|
@@ -17305,7 +17437,14 @@ var zonesCapability = {
|
|
|
17305
17437
|
* handle. Slice shape is `{ zones: Zone[] }` so future extensions
|
|
17306
17438
|
* (e.g. zone groupings) can sit alongside the polygon list.
|
|
17307
17439
|
*/
|
|
17308
|
-
runtimeState: object({ zones: array(ZoneSchema).readonly() })
|
|
17440
|
+
runtimeState: object({ zones: array(ZoneSchema).readonly() }),
|
|
17441
|
+
/**
|
|
17442
|
+
* 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.
|
|
17443
|
+
*
|
|
17444
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
17445
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
17446
|
+
*/
|
|
17447
|
+
durability: "restored"
|
|
17309
17448
|
};
|
|
17310
17449
|
/**
|
|
17311
17450
|
* A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
|
|
@@ -17475,6 +17614,22 @@ var detectionFpsField = {
|
|
|
17475
17614
|
default: 10,
|
|
17476
17615
|
step: 1
|
|
17477
17616
|
};
|
|
17617
|
+
/**
|
|
17618
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
17619
|
+
*
|
|
17620
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
17621
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
17622
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
17623
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
17624
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
17625
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
17626
|
+
*
|
|
17627
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
17628
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
17629
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
17630
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
17631
|
+
* that ships with an addon deploy.
|
|
17632
|
+
*/
|
|
17478
17633
|
var occupancyRecheckSecField = {
|
|
17479
17634
|
min: 0,
|
|
17480
17635
|
max: 300,
|
|
@@ -17676,15 +17831,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
17676
17831
|
*/
|
|
17677
17832
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
17678
17833
|
/**
|
|
17679
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
17680
|
-
*
|
|
17681
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
17682
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
17683
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
17834
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
17835
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
17684
17836
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
17685
17837
|
* (and only render) when this is enabled.
|
|
17686
|
-
|
|
17687
|
-
|
|
17838
|
+
*
|
|
17839
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
17840
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
17841
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
17842
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
17843
|
+
* object is counted only while the stationary registry holds it, and the
|
|
17844
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
17845
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
17846
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
17847
|
+
*/
|
|
17848
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
17688
17849
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
17689
17850
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
17690
17851
|
/**
|
|
@@ -20199,7 +20360,17 @@ var airQualitySensorCapability = {
|
|
|
20199
20360
|
schema: AirQualitySensorStatusSchema,
|
|
20200
20361
|
kind: "push"
|
|
20201
20362
|
},
|
|
20202
|
-
runtimeState: AirQualitySensorStatusSchema
|
|
20363
|
+
runtimeState: AirQualitySensorStatusSchema,
|
|
20364
|
+
/**
|
|
20365
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
20366
|
+
*
|
|
20367
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20368
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20369
|
+
*/
|
|
20370
|
+
durability: "restored",
|
|
20371
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20372
|
+
* whether persisting is worth a SQLite commit. */
|
|
20373
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
20203
20374
|
};
|
|
20204
20375
|
/**
|
|
20205
20376
|
* Ambient illuminance reading in lux. Drives Home Assistant `sensor`
|
|
@@ -20231,7 +20402,17 @@ var ambientLightSensorCapability = {
|
|
|
20231
20402
|
schema: AmbientLightSensorStatusSchema,
|
|
20232
20403
|
kind: "push"
|
|
20233
20404
|
},
|
|
20234
|
-
runtimeState: AmbientLightSensorStatusSchema
|
|
20405
|
+
runtimeState: AmbientLightSensorStatusSchema,
|
|
20406
|
+
/**
|
|
20407
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
20408
|
+
*
|
|
20409
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20410
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20411
|
+
*/
|
|
20412
|
+
durability: "restored",
|
|
20413
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20414
|
+
* whether persisting is worth a SQLite commit. */
|
|
20415
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
20235
20416
|
};
|
|
20236
20417
|
/**
|
|
20237
20418
|
* Per-class audio metrics aggregated over a sliding window.
|
|
@@ -20349,7 +20530,14 @@ var audioMetricsCapability = {
|
|
|
20349
20530
|
}), AudioMetricsHistorySchema)
|
|
20350
20531
|
},
|
|
20351
20532
|
/** Reactive runtime-state mirror — live `device.state.audioMetrics.value`. */
|
|
20352
|
-
runtimeState: AudioMetricsSnapshotSchema
|
|
20533
|
+
runtimeState: AudioMetricsSnapshotSchema,
|
|
20534
|
+
/**
|
|
20535
|
+
* 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.
|
|
20536
|
+
*
|
|
20537
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20538
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20539
|
+
*/
|
|
20540
|
+
durability: "session"
|
|
20353
20541
|
};
|
|
20354
20542
|
/**
|
|
20355
20543
|
* Automation-control cap. Models HA `automation.*` entities on
|
|
@@ -20411,7 +20599,14 @@ var automationControlCapability = {
|
|
|
20411
20599
|
* reads `enabled` (toggle) + `isRunning` (spinner) + `lastError`
|
|
20412
20600
|
* (badge) directly.
|
|
20413
20601
|
*/
|
|
20414
|
-
runtimeState: AutomationControlStatusSchema
|
|
20602
|
+
runtimeState: AutomationControlStatusSchema,
|
|
20603
|
+
/**
|
|
20604
|
+
* 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.
|
|
20605
|
+
*
|
|
20606
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20607
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20608
|
+
*/
|
|
20609
|
+
durability: "session"
|
|
20415
20610
|
};
|
|
20416
20611
|
/**
|
|
20417
20612
|
* Battery status snapshot. Emitted by providers whose device is
|
|
@@ -20517,7 +20712,17 @@ onStatusChanged: { data: object({
|
|
|
20517
20712
|
* via `device.runtimeState.getCapState('battery')` regardless of
|
|
20518
20713
|
* the underlying driver.
|
|
20519
20714
|
*/
|
|
20520
|
-
runtimeState: BatteryStatusSchema
|
|
20715
|
+
runtimeState: BatteryStatusSchema,
|
|
20716
|
+
/**
|
|
20717
|
+
* 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.
|
|
20718
|
+
*
|
|
20719
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20720
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20721
|
+
*/
|
|
20722
|
+
durability: "restored",
|
|
20723
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20724
|
+
* whether persisting is worth a SQLite commit. */
|
|
20725
|
+
volatileStateFields: ["lastUpdated"]
|
|
20521
20726
|
};
|
|
20522
20727
|
/**
|
|
20523
20728
|
* Generic boolean sensor — last-resort fallback when no domain-
|
|
@@ -20546,7 +20751,17 @@ var binaryCapability = {
|
|
|
20546
20751
|
schema: BinaryStatusSchema,
|
|
20547
20752
|
kind: "push"
|
|
20548
20753
|
},
|
|
20549
|
-
runtimeState: BinaryStatusSchema
|
|
20754
|
+
runtimeState: BinaryStatusSchema,
|
|
20755
|
+
/**
|
|
20756
|
+
* Runtime-state durability: **restored** — transition-driven sensor state; the restored value gives the boot comparison.
|
|
20757
|
+
*
|
|
20758
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20759
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20760
|
+
*/
|
|
20761
|
+
durability: "restored",
|
|
20762
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20763
|
+
* whether persisting is worth a SQLite commit. */
|
|
20764
|
+
volatileStateFields: ["lastChangedAt"]
|
|
20550
20765
|
};
|
|
20551
20766
|
/**
|
|
20552
20767
|
* Dimmable-light brightness control. Co-exists with `switch` on the
|
|
@@ -20599,7 +20814,14 @@ onBrightnessChanged: { data: object({
|
|
|
20599
20814
|
* by the kernel. Read via `device.state.brightness.value` so UI
|
|
20600
20815
|
* sliders surface the current level without polling the provider.
|
|
20601
20816
|
*/
|
|
20602
|
-
runtimeState: BrightnessStatusSchema
|
|
20817
|
+
runtimeState: BrightnessStatusSchema,
|
|
20818
|
+
/**
|
|
20819
|
+
* Runtime-state durability: **session** — live lamp state, re-published by the provider on connect.
|
|
20820
|
+
*
|
|
20821
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20822
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20823
|
+
*/
|
|
20824
|
+
durability: "session"
|
|
20603
20825
|
};
|
|
20604
20826
|
DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _void(), {
|
|
20605
20827
|
kind: "mutation",
|
|
@@ -20687,7 +20909,17 @@ var carbonMonoxideCapability = {
|
|
|
20687
20909
|
schema: CarbonMonoxideStatusSchema,
|
|
20688
20910
|
kind: "push"
|
|
20689
20911
|
},
|
|
20690
|
-
runtimeState: CarbonMonoxideStatusSchema
|
|
20912
|
+
runtimeState: CarbonMonoxideStatusSchema,
|
|
20913
|
+
/**
|
|
20914
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
20915
|
+
*
|
|
20916
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20917
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20918
|
+
*/
|
|
20919
|
+
durability: "restored",
|
|
20920
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20921
|
+
* whether persisting is worth a SQLite commit. */
|
|
20922
|
+
volatileStateFields: ["lastChangedAt"]
|
|
20691
20923
|
};
|
|
20692
20924
|
/**
|
|
20693
20925
|
* HVAC / climate control cap. Models the full surface of a HA
|
|
@@ -20847,7 +21079,14 @@ var climateControlCapability = {
|
|
|
20847
21079
|
* the full slice via `device.state.climate-control.value` and refresh
|
|
20848
21080
|
* on every push without re-querying the provider.
|
|
20849
21081
|
*/
|
|
20850
|
-
runtimeState: ClimateControlStatusSchema
|
|
21082
|
+
runtimeState: ClimateControlStatusSchema,
|
|
21083
|
+
/**
|
|
21084
|
+
* Runtime-state durability: **session** — as `brightness`; `currentTemp` moves continuously and is re-published on connect.
|
|
21085
|
+
*
|
|
21086
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21087
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21088
|
+
*/
|
|
21089
|
+
durability: "session"
|
|
20851
21090
|
};
|
|
20852
21091
|
/**
|
|
20853
21092
|
* Color-light cap. Coexists with `switch` (on/off) and `brightness`
|
|
@@ -20957,7 +21196,14 @@ onColorChanged: { data: object({
|
|
|
20957
21196
|
* kernel. Read via `device.state.color.value` so UI pickers surface
|
|
20958
21197
|
* the current chromaticity without polling the provider.
|
|
20959
21198
|
*/
|
|
20960
|
-
runtimeState: ColorStatusSchema
|
|
21199
|
+
runtimeState: ColorStatusSchema,
|
|
21200
|
+
/**
|
|
21201
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
21202
|
+
*
|
|
21203
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21204
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21205
|
+
*/
|
|
21206
|
+
durability: "session"
|
|
20961
21207
|
};
|
|
20962
21208
|
var ConnectionTestOutcomeSchema = discriminatedUnion("outcome", [
|
|
20963
21209
|
object({
|
|
@@ -21023,7 +21269,17 @@ var connectivityCapability = {
|
|
|
21023
21269
|
schema: ConnectivityStatusSchema,
|
|
21024
21270
|
kind: "push"
|
|
21025
21271
|
},
|
|
21026
|
-
runtimeState: ConnectivityStatusSchema
|
|
21272
|
+
runtimeState: ConnectivityStatusSchema,
|
|
21273
|
+
/**
|
|
21274
|
+
* Runtime-state durability: **restored** — same shape and same argument as `device-status`, for links rather than devices.
|
|
21275
|
+
*
|
|
21276
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21277
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21278
|
+
*/
|
|
21279
|
+
durability: "restored",
|
|
21280
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21281
|
+
* whether persisting is worth a SQLite commit. */
|
|
21282
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21027
21283
|
};
|
|
21028
21284
|
/**
|
|
21029
21285
|
* Generic device-consumables capability — surfaces a device's
|
|
@@ -21105,7 +21361,14 @@ reset: method(object({
|
|
|
21105
21361
|
}
|
|
21106
21362
|
}
|
|
21107
21363
|
},
|
|
21108
|
-
runtimeState: ConsumablesStatusSchema.extend({ lastFetchedAt: number() })
|
|
21364
|
+
runtimeState: ConsumablesStatusSchema.extend({ lastFetchedAt: number() }),
|
|
21365
|
+
/**
|
|
21366
|
+
* Runtime-state durability: **session** — the authority is the appliance; the provider re-reads the whole item array on connect.
|
|
21367
|
+
*
|
|
21368
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21369
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21370
|
+
*/
|
|
21371
|
+
durability: "session"
|
|
21109
21372
|
};
|
|
21110
21373
|
/**
|
|
21111
21374
|
* Door / window / opening / garage / valve contact sensor. Boolean
|
|
@@ -21136,7 +21399,17 @@ var contactCapability = {
|
|
|
21136
21399
|
schema: ContactStatusSchema,
|
|
21137
21400
|
kind: "push"
|
|
21138
21401
|
},
|
|
21139
|
-
runtimeState: ContactStatusSchema
|
|
21402
|
+
runtimeState: ContactStatusSchema,
|
|
21403
|
+
/**
|
|
21404
|
+
* Runtime-state durability: **restored** — a door left open across a restart must still read open.
|
|
21405
|
+
*
|
|
21406
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21407
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21408
|
+
*/
|
|
21409
|
+
durability: "restored",
|
|
21410
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21411
|
+
* whether persisting is worth a SQLite commit. */
|
|
21412
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21140
21413
|
};
|
|
21141
21414
|
/**
|
|
21142
21415
|
* Status slice — flat object (the framework's `runtimeState` contract
|
|
@@ -21242,7 +21515,14 @@ var controlCapability = {
|
|
|
21242
21515
|
* dropdown / text field / date picker) read the slice's discriminant
|
|
21243
21516
|
* and value directly without polling the provider.
|
|
21244
21517
|
*/
|
|
21245
|
-
runtimeState: ControlStatusSchema
|
|
21518
|
+
runtimeState: ControlStatusSchema,
|
|
21519
|
+
/**
|
|
21520
|
+
* Runtime-state durability: **session** — a generic control mirrors an external entity that re-publishes on connect; the options array is re-derived with it.
|
|
21521
|
+
*
|
|
21522
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21523
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21524
|
+
*/
|
|
21525
|
+
durability: "session"
|
|
21246
21526
|
};
|
|
21247
21527
|
var CoverStatusSchema = object({
|
|
21248
21528
|
/** Lifecycle state of the cover. */
|
|
@@ -21303,7 +21583,17 @@ var coverCapability = {
|
|
|
21303
21583
|
* Runtime-state slice — mirrored by the kernel. UI controls watch
|
|
21304
21584
|
* the slice for live position changes during a move.
|
|
21305
21585
|
*/
|
|
21306
|
-
runtimeState: CoverStatusSchema
|
|
21586
|
+
runtimeState: CoverStatusSchema,
|
|
21587
|
+
/**
|
|
21588
|
+
* Runtime-state durability: **restored** — position survives a restart on the device; the mirror should agree at boot rather than read blank.
|
|
21589
|
+
*
|
|
21590
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21591
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21592
|
+
*/
|
|
21593
|
+
durability: "restored",
|
|
21594
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21595
|
+
* whether persisting is worth a SQLite commit. */
|
|
21596
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21307
21597
|
};
|
|
21308
21598
|
/**
|
|
21309
21599
|
* Vendor-neutral day/night (IR-cut) control — the per-camera config cap
|
|
@@ -21397,7 +21687,17 @@ var dayNightCapability = {
|
|
|
21397
21687
|
schema: DayNightStatusSchema,
|
|
21398
21688
|
kind: "poll"
|
|
21399
21689
|
},
|
|
21400
|
-
runtimeState: DayNightStatusSchema
|
|
21690
|
+
runtimeState: DayNightStatusSchema,
|
|
21691
|
+
/**
|
|
21692
|
+
* Runtime-state durability: **restored** — operator-set IR-cut behaviour; mutation-driven.
|
|
21693
|
+
*
|
|
21694
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21695
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21696
|
+
*/
|
|
21697
|
+
durability: "restored",
|
|
21698
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21699
|
+
* whether persisting is worth a SQLite commit. */
|
|
21700
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
21401
21701
|
};
|
|
21402
21702
|
/**
|
|
21403
21703
|
* Generic device-level status snapshot. Auto-registered by `BaseDevice`
|
|
@@ -21444,7 +21744,17 @@ onStatusChanged: { data: object({
|
|
|
21444
21744
|
schema: DeviceStatusSchema,
|
|
21445
21745
|
kind: "push"
|
|
21446
21746
|
},
|
|
21447
|
-
runtimeState: DeviceStatusSchema
|
|
21747
|
+
runtimeState: DeviceStatusSchema,
|
|
21748
|
+
/**
|
|
21749
|
+
* 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.
|
|
21750
|
+
*
|
|
21751
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21752
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21753
|
+
*/
|
|
21754
|
+
durability: "restored",
|
|
21755
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21756
|
+
* whether persisting is worth a SQLite commit. */
|
|
21757
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21448
21758
|
};
|
|
21449
21759
|
/**
|
|
21450
21760
|
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
@@ -21506,7 +21816,14 @@ onPressed: { data: DoorbellPressEventSchema } },
|
|
|
21506
21816
|
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
21507
21817
|
* without subscribing.
|
|
21508
21818
|
*/
|
|
21509
|
-
runtimeState: DoorbellStatusSchema
|
|
21819
|
+
runtimeState: DoorbellStatusSchema,
|
|
21820
|
+
/**
|
|
21821
|
+
* 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.
|
|
21822
|
+
*
|
|
21823
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21824
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21825
|
+
*/
|
|
21826
|
+
durability: "restored"
|
|
21510
21827
|
};
|
|
21511
21828
|
/**
|
|
21512
21829
|
* Enum-state sensor — a string value picked from a finite option set.
|
|
@@ -21546,7 +21863,17 @@ var enumSensorCapability = {
|
|
|
21546
21863
|
schema: EnumSensorStatusSchema,
|
|
21547
21864
|
kind: "push"
|
|
21548
21865
|
},
|
|
21549
|
-
runtimeState: EnumSensorStatusSchema
|
|
21866
|
+
runtimeState: EnumSensorStatusSchema,
|
|
21867
|
+
/**
|
|
21868
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`; 80 devices.
|
|
21869
|
+
*
|
|
21870
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21871
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21872
|
+
*/
|
|
21873
|
+
durability: "restored",
|
|
21874
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21875
|
+
* whether persisting is worth a SQLite commit. */
|
|
21876
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
21550
21877
|
};
|
|
21551
21878
|
/**
|
|
21552
21879
|
* Generic stateless event emitter. Installed on a `DeviceType.EventEmitter`
|
|
@@ -21582,7 +21909,14 @@ var eventEmitterCapability = {
|
|
|
21582
21909
|
schema: EventEmitterStatusSchema,
|
|
21583
21910
|
kind: "push"
|
|
21584
21911
|
},
|
|
21585
|
-
runtimeState: EventEmitterStatusSchema
|
|
21912
|
+
runtimeState: EventEmitterStatusSchema,
|
|
21913
|
+
/**
|
|
21914
|
+
* Runtime-state durability: **session** — `eventCountSinceStart` names its own scope.
|
|
21915
|
+
*
|
|
21916
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21917
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21918
|
+
*/
|
|
21919
|
+
durability: "session"
|
|
21586
21920
|
};
|
|
21587
21921
|
var EventItemSchema = object({
|
|
21588
21922
|
id: string(),
|
|
@@ -21863,7 +22197,14 @@ var fanControlCapability = {
|
|
|
21863
22197
|
* Runtime-state slice — mirrored by the kernel. UI fan speed
|
|
21864
22198
|
* sliders read `percentage` for live updates.
|
|
21865
22199
|
*/
|
|
21866
|
-
runtimeState: FanControlStatusSchema
|
|
22200
|
+
runtimeState: FanControlStatusSchema,
|
|
22201
|
+
/**
|
|
22202
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
22203
|
+
*
|
|
22204
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22205
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22206
|
+
*/
|
|
22207
|
+
durability: "session"
|
|
21867
22208
|
};
|
|
21868
22209
|
/**
|
|
21869
22210
|
* Per-device feature/identity probe slice. Holds the runtime-resolved
|
|
@@ -21939,7 +22280,14 @@ onProbeChanged: { data: object({
|
|
|
21939
22280
|
schema: FeatureProbeStatusSchema,
|
|
21940
22281
|
kind: "push"
|
|
21941
22282
|
},
|
|
21942
|
-
runtimeState: FeatureProbeStatusSchema
|
|
22283
|
+
runtimeState: FeatureProbeStatusSchema,
|
|
22284
|
+
/**
|
|
22285
|
+
* 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.
|
|
22286
|
+
*
|
|
22287
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22288
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22289
|
+
*/
|
|
22290
|
+
durability: "session"
|
|
21943
22291
|
};
|
|
21944
22292
|
/**
|
|
21945
22293
|
* Water leak / moisture sensor. Boolean "is liquid currently
|
|
@@ -21966,7 +22314,17 @@ var floodCapability = {
|
|
|
21966
22314
|
schema: FloodStatusSchema,
|
|
21967
22315
|
kind: "push"
|
|
21968
22316
|
},
|
|
21969
|
-
runtimeState: FloodStatusSchema
|
|
22317
|
+
runtimeState: FloodStatusSchema,
|
|
22318
|
+
/**
|
|
22319
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
22320
|
+
*
|
|
22321
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22322
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22323
|
+
*/
|
|
22324
|
+
durability: "restored",
|
|
22325
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22326
|
+
* whether persisting is worth a SQLite commit. */
|
|
22327
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21970
22328
|
};
|
|
21971
22329
|
/**
|
|
21972
22330
|
* Combustible-gas (LPG / methane / hydrogen) alarm sensor. Drives
|
|
@@ -21989,7 +22347,17 @@ var gasCapability = {
|
|
|
21989
22347
|
schema: GasStatusSchema,
|
|
21990
22348
|
kind: "push"
|
|
21991
22349
|
},
|
|
21992
|
-
runtimeState: GasStatusSchema
|
|
22350
|
+
runtimeState: GasStatusSchema,
|
|
22351
|
+
/**
|
|
22352
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
22353
|
+
*
|
|
22354
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22355
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22356
|
+
*/
|
|
22357
|
+
durability: "restored",
|
|
22358
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22359
|
+
* whether persisting is worth a SQLite commit. */
|
|
22360
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21993
22361
|
};
|
|
21994
22362
|
/**
|
|
21995
22363
|
* Humidifier / dehumidifier cap. Models HA `humidifier.*` entities —
|
|
@@ -22065,7 +22433,14 @@ var humidifierCapability = {
|
|
|
22065
22433
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
22066
22434
|
* slice for live humidity / mode changes.
|
|
22067
22435
|
*/
|
|
22068
|
-
runtimeState: HumidifierStatusSchema
|
|
22436
|
+
runtimeState: HumidifierStatusSchema,
|
|
22437
|
+
/**
|
|
22438
|
+
* Runtime-state durability: **session** — as `climate-control`.
|
|
22439
|
+
*
|
|
22440
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22441
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22442
|
+
*/
|
|
22443
|
+
durability: "session"
|
|
22069
22444
|
};
|
|
22070
22445
|
/**
|
|
22071
22446
|
* Single-metric humidity reading. Drives Home Assistant `sensor`
|
|
@@ -22101,7 +22476,17 @@ var humiditySensorCapability = {
|
|
|
22101
22476
|
schema: HumiditySensorStatusSchema,
|
|
22102
22477
|
kind: "push"
|
|
22103
22478
|
},
|
|
22104
|
-
runtimeState: HumiditySensorStatusSchema
|
|
22479
|
+
runtimeState: HumiditySensorStatusSchema,
|
|
22480
|
+
/**
|
|
22481
|
+
* Runtime-state durability: **restored** — as `numeric-sensor` (67 of 75 writes were the clock alone).
|
|
22482
|
+
*
|
|
22483
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22484
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22485
|
+
*/
|
|
22486
|
+
durability: "restored",
|
|
22487
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22488
|
+
* whether persisting is worth a SQLite commit. */
|
|
22489
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
22105
22490
|
};
|
|
22106
22491
|
/**
|
|
22107
22492
|
* Image display cap. Models a single still image exposed by an integration —
|
|
@@ -22139,7 +22524,14 @@ var imageCapability = {
|
|
|
22139
22524
|
* Runtime-state slice — mirrored by the kernel. The UI reads `url`
|
|
22140
22525
|
* directly and renders the still image.
|
|
22141
22526
|
*/
|
|
22142
|
-
runtimeState: ImageStatusSchema
|
|
22527
|
+
runtimeState: ImageStatusSchema,
|
|
22528
|
+
/**
|
|
22529
|
+
* Runtime-state durability: **session** — a snapshot URL is a session-scoped handle; a restored one points at nothing.
|
|
22530
|
+
*
|
|
22531
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22532
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22533
|
+
*/
|
|
22534
|
+
durability: "session"
|
|
22143
22535
|
};
|
|
22144
22536
|
/**
|
|
22145
22537
|
* Vendor-neutral image / picture-adjustment cap — the per-camera config
|
|
@@ -22288,7 +22680,17 @@ var imageSettingsCapability = {
|
|
|
22288
22680
|
schema: ImageSettingsStatusSchema,
|
|
22289
22681
|
kind: "poll"
|
|
22290
22682
|
},
|
|
22291
|
-
runtimeState: ImageSettingsStatusSchema
|
|
22683
|
+
runtimeState: ImageSettingsStatusSchema,
|
|
22684
|
+
/**
|
|
22685
|
+
* Runtime-state durability: **restored** — operator-set camera imaging; mutation-driven.
|
|
22686
|
+
*
|
|
22687
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22688
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22689
|
+
*/
|
|
22690
|
+
durability: "restored",
|
|
22691
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22692
|
+
* whether persisting is worth a SQLite commit. */
|
|
22693
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
22292
22694
|
};
|
|
22293
22695
|
/**
|
|
22294
22696
|
* integrations — system-scoped singleton capability for integration
|
|
@@ -22628,7 +23030,14 @@ var lawnMowerControlCapability = {
|
|
|
22628
23030
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
22629
23031
|
* slice for live activity + battery changes.
|
|
22630
23032
|
*/
|
|
22631
|
-
runtimeState: LawnMowerControlStatusSchema
|
|
23033
|
+
runtimeState: LawnMowerControlStatusSchema,
|
|
23034
|
+
/**
|
|
23035
|
+
* Runtime-state durability: **session** — as `vacuum-control`.
|
|
23036
|
+
*
|
|
23037
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23038
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23039
|
+
*/
|
|
23040
|
+
durability: "session"
|
|
22632
23041
|
};
|
|
22633
23042
|
/**
|
|
22634
23043
|
* local-network — hub-only singleton.
|
|
@@ -22834,7 +23243,17 @@ var lockControlCapability = {
|
|
|
22834
23243
|
* read `state` and disable themselves during `locking`/`unlocking`
|
|
22835
23244
|
* transitions.
|
|
22836
23245
|
*/
|
|
22837
|
-
runtimeState: LockControlStatusSchema
|
|
23246
|
+
runtimeState: LockControlStatusSchema,
|
|
23247
|
+
/**
|
|
23248
|
+
* Runtime-state durability: **restored** — a lock left locked must still read locked.
|
|
23249
|
+
*
|
|
23250
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23251
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23252
|
+
*/
|
|
23253
|
+
durability: "restored",
|
|
23254
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23255
|
+
* whether persisting is worth a SQLite commit. */
|
|
23256
|
+
volatileStateFields: ["lastChangedAt"]
|
|
22838
23257
|
};
|
|
22839
23258
|
/**
|
|
22840
23259
|
* Media-player cap. Models HA `media_player.*` (Sonos, Chromecast,
|
|
@@ -22996,7 +23415,14 @@ var mediaPlayerCapability = {
|
|
|
22996
23415
|
* full slice for live now-playing, volume, and progress updates
|
|
22997
23416
|
* without polling.
|
|
22998
23417
|
*/
|
|
22999
|
-
runtimeState: MediaPlayerStatusSchema
|
|
23418
|
+
runtimeState: MediaPlayerStatusSchema,
|
|
23419
|
+
/**
|
|
23420
|
+
* Runtime-state durability: **session** — a restored transport position describes a playback that stopped when the hub did.
|
|
23421
|
+
*
|
|
23422
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23423
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23424
|
+
*/
|
|
23425
|
+
durability: "session"
|
|
23000
23426
|
};
|
|
23001
23427
|
/**
|
|
23002
23428
|
* mesh-network — collection cap for mesh-VPN providers.
|
|
@@ -23260,7 +23686,14 @@ onMotionChanged: { data: MotionOnMotionChangedDataSchema } },
|
|
|
23260
23686
|
* `device.state.motion.value`. Reads never invoke the provider, so
|
|
23261
23687
|
* UIs and other addons can poll the cached state safely.
|
|
23262
23688
|
*/
|
|
23263
|
-
runtimeState: MotionStatusSchema
|
|
23689
|
+
runtimeState: MotionStatusSchema,
|
|
23690
|
+
/**
|
|
23691
|
+
* 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.
|
|
23692
|
+
*
|
|
23693
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23694
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23695
|
+
*/
|
|
23696
|
+
durability: "session"
|
|
23264
23697
|
};
|
|
23265
23698
|
/**
|
|
23266
23699
|
* Motion-trigger toggle for accessory devices.
|
|
@@ -23325,7 +23758,14 @@ var motionTriggerCapability = {
|
|
|
23325
23758
|
schema: MotionTriggerStatusSchema,
|
|
23326
23759
|
kind: "command-driven"
|
|
23327
23760
|
},
|
|
23328
|
-
runtimeState: MotionTriggerRuntimeStateSchema
|
|
23761
|
+
runtimeState: MotionTriggerRuntimeStateSchema,
|
|
23762
|
+
/**
|
|
23763
|
+
* 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.
|
|
23764
|
+
*
|
|
23765
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23766
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23767
|
+
*/
|
|
23768
|
+
durability: "session"
|
|
23329
23769
|
};
|
|
23330
23770
|
/**
|
|
23331
23771
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
@@ -23392,7 +23832,17 @@ var motionZonesCapability = {
|
|
|
23392
23832
|
schema: MotionZoneStatusSchema,
|
|
23393
23833
|
kind: "poll"
|
|
23394
23834
|
},
|
|
23395
|
-
runtimeState: MotionZoneStatusSchema
|
|
23835
|
+
runtimeState: MotionZoneStatusSchema,
|
|
23836
|
+
/**
|
|
23837
|
+
* 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.
|
|
23838
|
+
*
|
|
23839
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23840
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23841
|
+
*/
|
|
23842
|
+
durability: "restored",
|
|
23843
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23844
|
+
* whether persisting is worth a SQLite commit. */
|
|
23845
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23396
23846
|
};
|
|
23397
23847
|
/**
|
|
23398
23848
|
* On-camera AI object detection cap. Surfaces per-device the classes
|
|
@@ -23466,7 +23916,17 @@ var nativeObjectDetectionCapability = {
|
|
|
23466
23916
|
schema: NativeObjectDetectionStatusSchema,
|
|
23467
23917
|
kind: "push"
|
|
23468
23918
|
},
|
|
23469
|
-
runtimeState: NativeObjectDetectionRuntimeStateSchema
|
|
23919
|
+
runtimeState: NativeObjectDetectionRuntimeStateSchema,
|
|
23920
|
+
/**
|
|
23921
|
+
* 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.
|
|
23922
|
+
*
|
|
23923
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23924
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23925
|
+
*/
|
|
23926
|
+
durability: "restored",
|
|
23927
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23928
|
+
* whether persisting is worth a SQLite commit. */
|
|
23929
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23470
23930
|
};
|
|
23471
23931
|
/**
|
|
23472
23932
|
* network-quality — system-scoped singleton capability tracking RTT,
|
|
@@ -23800,7 +24260,14 @@ onSent: { data: object({
|
|
|
23800
24260
|
* form reads `supports` to gate optional fields; history pane reads
|
|
23801
24261
|
* `lastSentAt` / `lastError` / `queueDepth`.
|
|
23802
24262
|
*/
|
|
23803
|
-
runtimeState: NotifierStatusSchema
|
|
24263
|
+
runtimeState: NotifierStatusSchema,
|
|
24264
|
+
/**
|
|
24265
|
+
* Runtime-state durability: **session** — live queue depth and last-send state; a restored queue depth describes a queue that no longer exists.
|
|
24266
|
+
*
|
|
24267
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24268
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24269
|
+
*/
|
|
24270
|
+
durability: "session"
|
|
23804
24271
|
};
|
|
23805
24272
|
/**
|
|
23806
24273
|
* Generic numeric sensor — last-resort fallback when no typed numeric
|
|
@@ -23843,7 +24310,17 @@ var numericSensorCapability = {
|
|
|
23843
24310
|
schema: NumericSensorStatusSchema,
|
|
23844
24311
|
kind: "push"
|
|
23845
24312
|
},
|
|
23846
|
-
runtimeState: NumericSensorStatusSchema
|
|
24313
|
+
runtimeState: NumericSensorStatusSchema,
|
|
24314
|
+
/**
|
|
24315
|
+
* 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.
|
|
24316
|
+
*
|
|
24317
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24318
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24319
|
+
*/
|
|
24320
|
+
durability: "restored",
|
|
24321
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24322
|
+
* whether persisting is worth a SQLite commit. */
|
|
24323
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23847
24324
|
};
|
|
23848
24325
|
/**
|
|
23849
24326
|
* Generic on-screen-display (video overlay) cap. Each camera exposes
|
|
@@ -24228,7 +24705,14 @@ var petFeederCapability = {
|
|
|
24228
24705
|
* the full slice via `device.state.petFeeder.value` and refresh on
|
|
24229
24706
|
* every poll without re-querying the provider.
|
|
24230
24707
|
*/
|
|
24231
|
-
runtimeState: PetFeederStatusSchema
|
|
24708
|
+
runtimeState: PetFeederStatusSchema,
|
|
24709
|
+
/**
|
|
24710
|
+
* Runtime-state durability: **session** — live appliance state re-published on connect.
|
|
24711
|
+
*
|
|
24712
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24713
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24714
|
+
*/
|
|
24715
|
+
durability: "session"
|
|
24232
24716
|
};
|
|
24233
24717
|
var VehicleSchema = object({
|
|
24234
24718
|
id: string(),
|
|
@@ -24540,7 +25024,17 @@ var powerMeterCapability = {
|
|
|
24540
25024
|
schema: PowerMeterStatusSchema,
|
|
24541
25025
|
kind: "push"
|
|
24542
25026
|
},
|
|
24543
|
-
runtimeState: PowerMeterStatusSchema
|
|
25027
|
+
runtimeState: PowerMeterStatusSchema,
|
|
25028
|
+
/**
|
|
25029
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`; `kwhTotal` is an accumulator whose restored value is the baseline.
|
|
25030
|
+
*
|
|
25031
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25032
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25033
|
+
*/
|
|
25034
|
+
durability: "restored",
|
|
25035
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25036
|
+
* whether persisting is worth a SQLite commit. */
|
|
25037
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24544
25038
|
};
|
|
24545
25039
|
/**
|
|
24546
25040
|
* Presence cap. Models HA `person.*` and `device_tracker.*` entities
|
|
@@ -24597,7 +25091,17 @@ var presenceCapability = {
|
|
|
24597
25091
|
* the map pin is rendered (use `DeviceFeature.PresenceGps` for the
|
|
24598
25092
|
* pre-fetch fast-path check).
|
|
24599
25093
|
*/
|
|
24600
|
-
runtimeState: PresenceStatusSchema
|
|
25094
|
+
runtimeState: PresenceStatusSchema,
|
|
25095
|
+
/**
|
|
25096
|
+
* Runtime-state durability: **restored** — occupancy-relevant: the restored state is what an occupancy rule compares the first post-restart observation against.
|
|
25097
|
+
*
|
|
25098
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25099
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25100
|
+
*/
|
|
25101
|
+
durability: "restored",
|
|
25102
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25103
|
+
* whether persisting is worth a SQLite commit. */
|
|
25104
|
+
volatileStateFields: ["lastChangedAt"]
|
|
24601
25105
|
};
|
|
24602
25106
|
/**
|
|
24603
25107
|
* Atmospheric pressure reading in hectopascals. Drives Home Assistant
|
|
@@ -24633,7 +25137,17 @@ var pressureSensorCapability = {
|
|
|
24633
25137
|
schema: PressureSensorStatusSchema,
|
|
24634
25138
|
kind: "push"
|
|
24635
25139
|
},
|
|
24636
|
-
runtimeState: PressureSensorStatusSchema
|
|
25140
|
+
runtimeState: PressureSensorStatusSchema,
|
|
25141
|
+
/**
|
|
25142
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
25143
|
+
*
|
|
25144
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25145
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25146
|
+
*/
|
|
25147
|
+
durability: "restored",
|
|
25148
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25149
|
+
* whether persisting is worth a SQLite commit. */
|
|
25150
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24637
25151
|
};
|
|
24638
25152
|
/**
|
|
24639
25153
|
* PRIVACY — what the camera deliberately does not capture. Two planes:
|
|
@@ -24763,7 +25277,17 @@ var privacyMaskCapability = {
|
|
|
24763
25277
|
schema: PrivacyMaskStatusSchema,
|
|
24764
25278
|
kind: "poll"
|
|
24765
25279
|
},
|
|
24766
|
-
runtimeState: PrivacyMaskStatusSchema
|
|
25280
|
+
runtimeState: PrivacyMaskStatusSchema,
|
|
25281
|
+
/**
|
|
25282
|
+
* Runtime-state durability: **restored** — operator-drawn regions, zero real churn — 22 writes in 25 minutes, every one of them the clock.
|
|
25283
|
+
*
|
|
25284
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25285
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25286
|
+
*/
|
|
25287
|
+
durability: "restored",
|
|
25288
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25289
|
+
* whether persisting is worth a SQLite commit. */
|
|
25290
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24767
25291
|
};
|
|
24768
25292
|
var PtzPresetSchema = object({
|
|
24769
25293
|
id: string(),
|
|
@@ -24929,7 +25453,14 @@ var ptzAutotrackCapability = {
|
|
|
24929
25453
|
* fetch / cache / fallback logic out of the four cap methods —
|
|
24930
25454
|
* they become trampolines over `runtimeState`.
|
|
24931
25455
|
*/
|
|
24932
|
-
runtimeState: PtzAutotrackRuntimeStateSchema
|
|
25456
|
+
runtimeState: PtzAutotrackRuntimeStateSchema,
|
|
25457
|
+
/**
|
|
25458
|
+
* Runtime-state durability: **session** — mirrors the camera's own autotrack config, re-read on connect.
|
|
25459
|
+
*
|
|
25460
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25461
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25462
|
+
*/
|
|
25463
|
+
durability: "session"
|
|
24933
25464
|
};
|
|
24934
25465
|
DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
|
|
24935
25466
|
kind: "mutation",
|
|
@@ -25579,7 +26110,14 @@ var sceneMonitorCapability = {
|
|
|
25579
26110
|
schema: SceneMonitorStatusSchema,
|
|
25580
26111
|
kind: "push"
|
|
25581
26112
|
},
|
|
25582
|
-
runtimeState: SceneMonitorStatusSchema
|
|
26113
|
+
runtimeState: SceneMonitorStatusSchema,
|
|
26114
|
+
/**
|
|
26115
|
+
* Runtime-state durability: **session** — re-derived from the current scene on the next evaluation.
|
|
26116
|
+
*
|
|
26117
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26118
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26119
|
+
*/
|
|
26120
|
+
durability: "session"
|
|
25583
26121
|
};
|
|
25584
26122
|
/**
|
|
25585
26123
|
* Per-stage gating mode applied to the zones a rule references.
|
|
@@ -25723,7 +26261,14 @@ var scriptRunnerCapability = {
|
|
|
25723
26261
|
* `isRunning` to render a spinner during execution and surfaces
|
|
25724
26262
|
* `lastError` / `lastRunSuccess` in the recent-runs panel.
|
|
25725
26263
|
*/
|
|
25726
|
-
runtimeState: ScriptRunnerStatusSchema
|
|
26264
|
+
runtimeState: ScriptRunnerStatusSchema,
|
|
26265
|
+
/**
|
|
26266
|
+
* Runtime-state durability: **session** — a restored `isRunning: true` describes a process that died with the previous hub.
|
|
26267
|
+
*
|
|
26268
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26269
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26270
|
+
*/
|
|
26271
|
+
durability: "session"
|
|
25727
26272
|
};
|
|
25728
26273
|
/**
|
|
25729
26274
|
* Smoke alarm sensor — boolean "is smoke currently detected" with
|
|
@@ -25750,7 +26295,17 @@ var smokeCapability = {
|
|
|
25750
26295
|
schema: SmokeStatusSchema,
|
|
25751
26296
|
kind: "push"
|
|
25752
26297
|
},
|
|
25753
|
-
runtimeState: SmokeStatusSchema
|
|
26298
|
+
runtimeState: SmokeStatusSchema,
|
|
26299
|
+
/**
|
|
26300
|
+
* Runtime-state durability: **restored** — a safety sensor must not read "clear" merely because the hub restarted.
|
|
26301
|
+
*
|
|
26302
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26303
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26304
|
+
*/
|
|
26305
|
+
durability: "restored",
|
|
26306
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26307
|
+
* whether persisting is worth a SQLite commit. */
|
|
26308
|
+
volatileStateFields: ["lastChangedAt"]
|
|
25754
26309
|
};
|
|
25755
26310
|
/**
|
|
25756
26311
|
* One publishable camera stream as its OWNING PROVIDER describes it — the same
|
|
@@ -25936,7 +26491,17 @@ var streamParamsCapability = {
|
|
|
25936
26491
|
schema: StreamParamsStatusSchema,
|
|
25937
26492
|
kind: "poll"
|
|
25938
26493
|
},
|
|
25939
|
-
runtimeState: StreamParamsStatusSchema
|
|
26494
|
+
runtimeState: StreamParamsStatusSchema,
|
|
26495
|
+
/**
|
|
26496
|
+
* Runtime-state durability: **restored** — operator-set encoder profile; mutation-driven.
|
|
26497
|
+
*
|
|
26498
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26499
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26500
|
+
*/
|
|
26501
|
+
durability: "restored",
|
|
26502
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26503
|
+
* whether persisting is worth a SQLite commit. */
|
|
26504
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
25940
26505
|
};
|
|
25941
26506
|
/**
|
|
25942
26507
|
* Generic on/off switch cap for accessory children (siren, floodlight,
|
|
@@ -25982,6 +26547,16 @@ var switchCapability = {
|
|
|
25982
26547
|
* not need to re-query the provider after a setState mutation.
|
|
25983
26548
|
*/
|
|
25984
26549
|
runtimeState: SwitchStatusSchema,
|
|
26550
|
+
/**
|
|
26551
|
+
* Runtime-state durability: **restored** — device state an operator reads as authoritative; 55 devices, transition-driven.
|
|
26552
|
+
*
|
|
26553
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26554
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26555
|
+
*/
|
|
26556
|
+
durability: "restored",
|
|
26557
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26558
|
+
* whether persisting is worth a SQLite commit. */
|
|
26559
|
+
volatileStateFields: ["lastChangedAt"],
|
|
25985
26560
|
settings: { bindings: [{
|
|
25986
26561
|
kind: "scalar",
|
|
25987
26562
|
statusPath: "on",
|
|
@@ -26061,7 +26636,17 @@ var tamperCapability = {
|
|
|
26061
26636
|
schema: TamperStatusSchema,
|
|
26062
26637
|
kind: "push"
|
|
26063
26638
|
},
|
|
26064
|
-
runtimeState: TamperStatusSchema
|
|
26639
|
+
runtimeState: TamperStatusSchema,
|
|
26640
|
+
/**
|
|
26641
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
26642
|
+
*
|
|
26643
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26644
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26645
|
+
*/
|
|
26646
|
+
durability: "restored",
|
|
26647
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26648
|
+
* whether persisting is worth a SQLite commit. */
|
|
26649
|
+
volatileStateFields: ["lastChangedAt"]
|
|
26065
26650
|
};
|
|
26066
26651
|
/**
|
|
26067
26652
|
* Single-metric temperature reading. Drives Home Assistant `sensor`
|
|
@@ -26106,7 +26691,17 @@ var temperatureSensorCapability = {
|
|
|
26106
26691
|
schema: TemperatureSensorStatusSchema,
|
|
26107
26692
|
kind: "push"
|
|
26108
26693
|
},
|
|
26109
|
-
runtimeState: TemperatureSensorStatusSchema
|
|
26694
|
+
runtimeState: TemperatureSensorStatusSchema,
|
|
26695
|
+
/**
|
|
26696
|
+
* Runtime-state durability: **restored** — as `numeric-sensor` (69 of 125 writes were the clock alone).
|
|
26697
|
+
*
|
|
26698
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26699
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26700
|
+
*/
|
|
26701
|
+
durability: "restored",
|
|
26702
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26703
|
+
* whether persisting is worth a SQLite commit. */
|
|
26704
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
26110
26705
|
};
|
|
26111
26706
|
/**
|
|
26112
26707
|
* toast — system-scoped singleton capability that streams toast
|
|
@@ -26175,7 +26770,14 @@ var updateCapability = {
|
|
|
26175
26770
|
schema: UpdateStatusSchema,
|
|
26176
26771
|
kind: "poll"
|
|
26177
26772
|
},
|
|
26178
|
-
runtimeState: UpdateStatusSchema
|
|
26773
|
+
runtimeState: UpdateStatusSchema,
|
|
26774
|
+
/**
|
|
26775
|
+
* Runtime-state durability: **session** — a restored `inProgress: true` describes an update that is no longer running; versions are re-probed at boot.
|
|
26776
|
+
*
|
|
26777
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26778
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26779
|
+
*/
|
|
26780
|
+
durability: "session"
|
|
26179
26781
|
};
|
|
26180
26782
|
var UserSummarySchema = object({
|
|
26181
26783
|
id: string(),
|
|
@@ -26509,7 +27111,14 @@ var vacuumControlCapability = {
|
|
|
26509
27111
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
26510
27112
|
* slice for live state + battery + fan-speed changes.
|
|
26511
27113
|
*/
|
|
26512
|
-
runtimeState: VacuumControlStatusSchema
|
|
27114
|
+
runtimeState: VacuumControlStatusSchema,
|
|
27115
|
+
/**
|
|
27116
|
+
* Runtime-state durability: **session** — as `media-player` — a restored `state: cleaning` is a robot that is not cleaning.
|
|
27117
|
+
*
|
|
27118
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27119
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27120
|
+
*/
|
|
27121
|
+
durability: "session"
|
|
26513
27122
|
};
|
|
26514
27123
|
var ValveStatusSchema = object({
|
|
26515
27124
|
/** Lifecycle state of the valve. */
|
|
@@ -26561,7 +27170,14 @@ var valveCapability = {
|
|
|
26561
27170
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
26562
27171
|
* slice for live position changes during a move.
|
|
26563
27172
|
*/
|
|
26564
|
-
runtimeState: ValveStatusSchema
|
|
27173
|
+
runtimeState: ValveStatusSchema,
|
|
27174
|
+
/**
|
|
27175
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
27176
|
+
*
|
|
27177
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27178
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27179
|
+
*/
|
|
27180
|
+
durability: "session"
|
|
26565
27181
|
};
|
|
26566
27182
|
/**
|
|
26567
27183
|
* Vibration / shake / impact sensor. Drives Home Assistant
|
|
@@ -26583,7 +27199,17 @@ var vibrationCapability = {
|
|
|
26583
27199
|
schema: VibrationStatusSchema,
|
|
26584
27200
|
kind: "push"
|
|
26585
27201
|
},
|
|
26586
|
-
runtimeState: VibrationStatusSchema
|
|
27202
|
+
runtimeState: VibrationStatusSchema,
|
|
27203
|
+
/**
|
|
27204
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
27205
|
+
*
|
|
27206
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27207
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27208
|
+
*/
|
|
27209
|
+
durability: "restored",
|
|
27210
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27211
|
+
* whether persisting is worth a SQLite commit. */
|
|
27212
|
+
volatileStateFields: ["lastChangedAt"]
|
|
26587
27213
|
};
|
|
26588
27214
|
/**
|
|
26589
27215
|
* Water heater / boiler cap. Models HA `water_heater.*` entities — a
|
|
@@ -26657,7 +27283,14 @@ var waterHeaterCapability = {
|
|
|
26657
27283
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
26658
27284
|
* slice for live temperature / mode / away changes.
|
|
26659
27285
|
*/
|
|
26660
|
-
runtimeState: WaterHeaterStatusSchema
|
|
27286
|
+
runtimeState: WaterHeaterStatusSchema,
|
|
27287
|
+
/**
|
|
27288
|
+
* Runtime-state durability: **session** — as `climate-control`.
|
|
27289
|
+
*
|
|
27290
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27291
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27292
|
+
*/
|
|
27293
|
+
durability: "session"
|
|
26661
27294
|
};
|
|
26662
27295
|
/**
|
|
26663
27296
|
* Weather provider cap. Models HA `weather.*` entities — a read-only
|
|
@@ -26716,7 +27349,14 @@ var weatherCapability = {
|
|
|
26716
27349
|
* Runtime-state slice — mirrored by the kernel. The UI reads the
|
|
26717
27350
|
* current conditions directly from the slice on each weather push.
|
|
26718
27351
|
*/
|
|
26719
|
-
runtimeState: WeatherStatusSchema
|
|
27352
|
+
runtimeState: WeatherStatusSchema,
|
|
27353
|
+
/**
|
|
27354
|
+
* Runtime-state durability: **session** — a forecast is stale the moment the hub is down; the provider re-fetches on connect.
|
|
27355
|
+
*
|
|
27356
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27357
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27358
|
+
*/
|
|
27359
|
+
durability: "session"
|
|
26720
27360
|
};
|
|
26721
27361
|
/**
|
|
26722
27362
|
* Per-zone occupancy aggregation produced by the analytics frame
|
|
@@ -26878,7 +27518,14 @@ var zoneAnalyticsCapability = {
|
|
|
26878
27518
|
* automatically; the explicit `getCurrentSnapshot` cap method is
|
|
26879
27519
|
* still useful for one-off polls without a subscription.
|
|
26880
27520
|
*/
|
|
26881
|
-
runtimeState: CameraOccupancySnapshotSchema
|
|
27521
|
+
runtimeState: CameraOccupancySnapshotSchema,
|
|
27522
|
+
/**
|
|
27523
|
+
* Runtime-state durability: **session** — per-frame analytics; with `audio-metrics` it is ~90 % of the offered write rate. Re-derived on the next frame.
|
|
27524
|
+
*
|
|
27525
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27526
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27527
|
+
*/
|
|
27528
|
+
durability: "session"
|
|
26882
27529
|
};
|
|
26883
27530
|
/**
|
|
26884
27531
|
* Stages a {@link ZoneRule} can apply to. Discriminator on the rules
|
|
@@ -26956,7 +27603,14 @@ var zoneRulesCapability = {
|
|
|
26956
27603
|
motion: array(ZoneRuleSchema).readonly(),
|
|
26957
27604
|
detection: array(ZoneRuleSchema).readonly(),
|
|
26958
27605
|
package: array(ZoneRuleSchema).readonly()
|
|
26959
|
-
})
|
|
27606
|
+
}),
|
|
27607
|
+
/**
|
|
27608
|
+
* Runtime-state durability: **restored** — operator intent, mutation-only, same argument as `zones`.
|
|
27609
|
+
*
|
|
27610
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27611
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27612
|
+
*/
|
|
27613
|
+
durability: "restored"
|
|
26960
27614
|
};
|
|
26961
27615
|
/**
|
|
26962
27616
|
* Accessory device helpers — shared across drivers.
|
|
@@ -33709,6 +34363,7 @@ Object.freeze({
|
|
|
33709
34363
|
"network-access": "ingress",
|
|
33710
34364
|
"smtp-provider": "email"
|
|
33711
34365
|
});
|
|
34366
|
+
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
33712
34367
|
new Set(["devices", "classes"]);
|
|
33713
34368
|
/**
|
|
33714
34369
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|