@camstack/addon-provider-unraid 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
|
@@ -10770,7 +10770,14 @@ var cameraStreamsCapability = {
|
|
|
10770
10770
|
low: string().optional()
|
|
10771
10771
|
}),
|
|
10772
10772
|
lastChangedAt: number()
|
|
10773
|
-
})
|
|
10773
|
+
}),
|
|
10774
|
+
/**
|
|
10775
|
+
* 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.
|
|
10776
|
+
*
|
|
10777
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
10778
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
10779
|
+
*/
|
|
10780
|
+
durability: "session"
|
|
10774
10781
|
};
|
|
10775
10782
|
/** Where a block runs. The operator chooses — a block driving a device on an
|
|
10776
10783
|
* agent is the reason placement is not fixed to the hub. */
|
|
@@ -11331,6 +11338,13 @@ var deviceDiscoveryCapability = {
|
|
|
11331
11338
|
kind: "poll"
|
|
11332
11339
|
},
|
|
11333
11340
|
runtimeState: DeviceDiscoveryStatusSchema.extend({ lastFetchedAt: number().int().nonnegative() }),
|
|
11341
|
+
/**
|
|
11342
|
+
* Runtime-state durability: **session** — 5.7 KB of scan output on the largest device, fully re-derivable by re-scanning.
|
|
11343
|
+
*
|
|
11344
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
11345
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
11346
|
+
*/
|
|
11347
|
+
durability: "session",
|
|
11334
11348
|
methods: {
|
|
11335
11349
|
/**
|
|
11336
11350
|
* Snapshot of the current `discovered` list. Returns the
|
|
@@ -13200,11 +13214,33 @@ var NotificationFormatSchema = _enum([
|
|
|
13200
13214
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
13201
13215
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
13202
13216
|
* differently.
|
|
13217
|
+
*
|
|
13218
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
13219
|
+
*
|
|
13220
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
13221
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
13222
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
13223
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
13224
|
+
* decides its glyph, which is the only place that decision can be made
|
|
13225
|
+
* honestly.
|
|
13226
|
+
*
|
|
13227
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
13228
|
+
* `disarm` straight through; iOS feeds that string to
|
|
13229
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
13230
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
13231
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
13232
|
+
*
|
|
13233
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
13234
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
13235
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
13236
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
13237
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
13203
13238
|
*/
|
|
13204
13239
|
var NotificationActionIconSchema = _enum([
|
|
13205
13240
|
"acknowledge",
|
|
13206
13241
|
"dismiss",
|
|
13207
13242
|
"silence",
|
|
13243
|
+
"snooze",
|
|
13208
13244
|
"view",
|
|
13209
13245
|
"play",
|
|
13210
13246
|
"open",
|
|
@@ -13212,9 +13248,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
13212
13248
|
"lock",
|
|
13213
13249
|
"unlock",
|
|
13214
13250
|
"arm",
|
|
13251
|
+
"arm-home",
|
|
13252
|
+
"arm-away",
|
|
13253
|
+
"arm-night",
|
|
13215
13254
|
"disarm",
|
|
13216
13255
|
"light",
|
|
13217
|
-
"alert"
|
|
13256
|
+
"alert",
|
|
13257
|
+
"camera"
|
|
13218
13258
|
]);
|
|
13219
13259
|
/** A single tap-through action button. */
|
|
13220
13260
|
var NotificationActionSchema = object({
|
|
@@ -13230,7 +13270,23 @@ var NotificationActionSchema = object({
|
|
|
13230
13270
|
* else — see `notification-center/action-token.ts` for what that does and
|
|
13231
13271
|
* does not buy.
|
|
13232
13272
|
*/
|
|
13233
|
-
destructive: boolean().optional()
|
|
13273
|
+
destructive: boolean().optional(),
|
|
13274
|
+
/**
|
|
13275
|
+
* How the tap should REACH the url.
|
|
13276
|
+
*
|
|
13277
|
+
* `navigate` (absent, and every button authored before this field) opens it:
|
|
13278
|
+
* the phone leaves the notification and shows whatever the callback returns.
|
|
13279
|
+
* That is right for a button whose answer the operator wants to read.
|
|
13280
|
+
*
|
|
13281
|
+
* `background` fires it as a POST and stays put. It exists for the buttons
|
|
13282
|
+
* whose whole point is not to interrupt — "silence this for 30 minutes" is
|
|
13283
|
+
* an answer to the notification, and being thrown into a browser tab to
|
|
13284
|
+
* confirm it costs more attention than the notification did. A backend that
|
|
13285
|
+
* cannot do a background call renders it as an ordinary link (the adapters
|
|
13286
|
+
* fall back rather than dropping the button), so this is a preference, never
|
|
13287
|
+
* a requirement.
|
|
13288
|
+
*/
|
|
13289
|
+
mode: _enum(["navigate", "background"]).optional()
|
|
13234
13290
|
});
|
|
13235
13291
|
/**
|
|
13236
13292
|
* The canonical notification. `body` is the only hard field (Apprise model).
|
|
@@ -13398,6 +13454,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
13398
13454
|
targetId: string(),
|
|
13399
13455
|
enabled: boolean()
|
|
13400
13456
|
}), _void(), { kind: "mutation" });
|
|
13457
|
+
new Set([
|
|
13458
|
+
{
|
|
13459
|
+
id: "person",
|
|
13460
|
+
name: "Person"
|
|
13461
|
+
},
|
|
13462
|
+
{
|
|
13463
|
+
id: "vehicle",
|
|
13464
|
+
name: "Vehicle"
|
|
13465
|
+
},
|
|
13466
|
+
{
|
|
13467
|
+
id: "animal",
|
|
13468
|
+
name: "Animal"
|
|
13469
|
+
},
|
|
13470
|
+
{
|
|
13471
|
+
id: "package",
|
|
13472
|
+
name: "Package"
|
|
13473
|
+
}
|
|
13474
|
+
].map((l) => l.id));
|
|
13401
13475
|
var COCO_TO_MACRO = {
|
|
13402
13476
|
mapping: {
|
|
13403
13477
|
person: "person",
|
|
@@ -14082,7 +14156,17 @@ var alarmPanelCapability = {
|
|
|
14082
14156
|
* full slice; renders an arm button per `availableModes` entry and
|
|
14083
14157
|
* a PIN field iff `requiresCode === true`.
|
|
14084
14158
|
*/
|
|
14085
|
-
runtimeState: AlarmPanelStatusSchema
|
|
14159
|
+
runtimeState: AlarmPanelStatusSchema,
|
|
14160
|
+
/**
|
|
14161
|
+
* Runtime-state durability: **restored** — armed state is the one thing a panel must not lose across a restart.
|
|
14162
|
+
*
|
|
14163
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
14164
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
14165
|
+
*/
|
|
14166
|
+
durability: "restored",
|
|
14167
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
14168
|
+
* whether persisting is worth a SQLite commit. */
|
|
14169
|
+
volatileStateFields: ["lastChangedAt"]
|
|
14086
14170
|
};
|
|
14087
14171
|
/**
|
|
14088
14172
|
* Shared geometry vocabulary for on-frame shape caps — privacy-mask,
|
|
@@ -14223,6 +14307,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14223
14307
|
"alarm-triggered",
|
|
14224
14308
|
"alarm-armed",
|
|
14225
14309
|
"alarm-disarmed",
|
|
14310
|
+
"alarm-arming",
|
|
14311
|
+
"alarm-arm-refused",
|
|
14226
14312
|
"camera-online",
|
|
14227
14313
|
"camera-offline",
|
|
14228
14314
|
"camera-disabled",
|
|
@@ -14259,6 +14345,9 @@ var NcSystemEventConditionSchema = object({
|
|
|
14259
14345
|
nodeIds: array(string().min(1)).min(1).optional(),
|
|
14260
14346
|
packageNames: array(string().min(1)).min(1).optional()
|
|
14261
14347
|
});
|
|
14348
|
+
/** Hard ceiling on a window (24h). A snooze that could not expire would be an
|
|
14349
|
+
* outage the operator asked for once and forgot. */
|
|
14350
|
+
var NC_SNOOZE_MAX_MINUTES = 1440;
|
|
14262
14351
|
/** Weekly schedule — OR of windows; absence on the rule = always active. */
|
|
14263
14352
|
var NcScheduleSchema = object({
|
|
14264
14353
|
windows: array(object({
|
|
@@ -14635,15 +14724,15 @@ var NcConditionsSchema = object({
|
|
|
14635
14724
|
* (an `immediate` rule naming an `audio-*` class, one notification per
|
|
14636
14725
|
* classified sample) stays exactly as it was for rules that already use it.
|
|
14637
14726
|
*
|
|
14638
|
-
*
|
|
14639
|
-
* rather than an
|
|
14640
|
-
* (`camstack/src/data/notification-center.ts`, guarded by
|
|
14641
|
-
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor
|
|
14727
|
+
* In {@link NC_CONDITION_CATALOG} since P2, and the ORDER it got there is the
|
|
14728
|
+
* rule rather than an accident: the viewer mirrors the descriptor enums BY
|
|
14729
|
+
* HAND (`camstack/src/data/notification-center.ts`, guarded by
|
|
14730
|
+
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor strips the
|
|
14642
14731
|
* condition fields it does not know when a rule is saved from the phone.
|
|
14643
14732
|
* Publishing an editor for a condition the app cannot round-trip is how an
|
|
14644
|
-
* operator loses a rule's conditions by opening it — so the
|
|
14645
|
-
*
|
|
14646
|
-
*
|
|
14733
|
+
* operator loses a rule's conditions by opening it — so the viewer mirror
|
|
14734
|
+
* (P3, shipped) went FIRST, and the descriptor an editor renders from
|
|
14735
|
+
* follows here.
|
|
14647
14736
|
*/
|
|
14648
14737
|
audio: NcAudioConditionSchema.optional()
|
|
14649
14738
|
});
|
|
@@ -14879,6 +14968,30 @@ var NcRuleInputSchema = object({
|
|
|
14879
14968
|
*/
|
|
14880
14969
|
snoozeAllowGlobal: boolean().optional(),
|
|
14881
14970
|
/**
|
|
14971
|
+
* The snooze durations THIS rule's notification offers as buttons, in
|
|
14972
|
+
* minutes.
|
|
14973
|
+
*
|
|
14974
|
+
* Three states, and all three are distinct — which is exactly why this is
|
|
14975
|
+
* `.optional()` and never `.default()`. A Zod default does not run on the
|
|
14976
|
+
* addon cap path (three production failures in one day), so a schema default
|
|
14977
|
+
* would collapse the first two:
|
|
14978
|
+
*
|
|
14979
|
+
* | value | meaning |
|
|
14980
|
+
* | --- | --- |
|
|
14981
|
+
* | absent | the operator never said ⇒ {@link NC_DEFAULT_SNOOZE_MINUTES} |
|
|
14982
|
+
* | `[]` | **no snooze buttons on this rule** — the explicit override |
|
|
14983
|
+
* | a list | these choices, de-duplicated and sorted, at most four |
|
|
14984
|
+
*
|
|
14985
|
+
* `.max(4)` because the notifier's own action budget is small (ntfy allows
|
|
14986
|
+
* three buttons in total) and a rule that spent it all on snooze choices
|
|
14987
|
+
* would push its own tap-through actions off the notification.
|
|
14988
|
+
*
|
|
14989
|
+
* An empty list is NOT an alarm exemption: a rule the alarm is about, or
|
|
14990
|
+
* that arms the panel, is exempt automatically and cannot be silenced by a
|
|
14991
|
+
* window from anywhere (D133).
|
|
14992
|
+
*/
|
|
14993
|
+
snoozeOptions: array(number().int().min(1).max(NC_SNOOZE_MAX_MINUTES)).max(4).optional(),
|
|
14994
|
+
/**
|
|
14882
14995
|
* Devices this rule ACTUATES — arm the alarm, open a gate, turn on a light.
|
|
14883
14996
|
*
|
|
14884
14997
|
* This is what makes the rule set the alarm's trigger set without the alarm
|
|
@@ -14978,6 +15091,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
14978
15091
|
"device",
|
|
14979
15092
|
"package",
|
|
14980
15093
|
"occupancy",
|
|
15094
|
+
"audio",
|
|
14981
15095
|
"system"
|
|
14982
15096
|
]),
|
|
14983
15097
|
label: string(),
|
|
@@ -14996,6 +15110,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
14996
15110
|
"crossingSelect",
|
|
14997
15111
|
"polygonDraw",
|
|
14998
15112
|
"occupancy",
|
|
15113
|
+
"audio",
|
|
14999
15114
|
"deviceState",
|
|
15000
15115
|
"systemEvent"
|
|
15001
15116
|
]),
|
|
@@ -15147,7 +15262,20 @@ var NcSnoozeInputSchema = object({
|
|
|
15147
15262
|
ruleId: string().optional(),
|
|
15148
15263
|
/** Required when `scope: 'device'`. */
|
|
15149
15264
|
deviceId: number().int().optional(),
|
|
15150
|
-
|
|
15265
|
+
/**
|
|
15266
|
+
* Narrow the window to these subject classes — "the cat, not the person".
|
|
15267
|
+
*
|
|
15268
|
+
* ORTHOGONAL to `scope`, deliberately, and absent means EVERY class: that is
|
|
15269
|
+
* what every window authored before this field meant, so no persisted row
|
|
15270
|
+
* changes meaning and no client has to learn anything to keep working.
|
|
15271
|
+
*
|
|
15272
|
+
* It is what makes the window's real key `(deviceId, classes[])` and lets it
|
|
15273
|
+
* cross rules (D133): the operator points at a camera and a kind of thing,
|
|
15274
|
+
* not at whichever of their four rules happened to produce the notification
|
|
15275
|
+
* they are dismissing.
|
|
15276
|
+
*/
|
|
15277
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
15278
|
+
durationMinutes: number().int().min(1).max(NC_SNOOZE_MAX_MINUTES),
|
|
15151
15279
|
/**
|
|
15152
15280
|
* Silence this for EVERY recipient, not just the caller. Permission is
|
|
15153
15281
|
* checked server-side (the rule's `snoozeAllowGlobal`, or admin for the
|
|
@@ -15172,6 +15300,10 @@ var NcSnoozeSchema = object({
|
|
|
15172
15300
|
scope: NcSnoozeScopeSchema,
|
|
15173
15301
|
ruleId: string().optional(),
|
|
15174
15302
|
deviceId: number().int().optional(),
|
|
15303
|
+
/** Subject classes this window covers. ABSENT = every class — see
|
|
15304
|
+
* {@link NcSnoozeInputSchema.shape.classes}. Lives in the JSON blob and has
|
|
15305
|
+
* no SQLite column: nothing queries a window by class. */
|
|
15306
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
15175
15307
|
startedAt: number(),
|
|
15176
15308
|
/** Exclusive: at exactly this instant the snooze is over. Expiry is a
|
|
15177
15309
|
* COMPARISON, not a job — no sweeper can leave the operator silenced. */
|
|
@@ -17272,7 +17404,14 @@ var zonesCapability = {
|
|
|
17272
17404
|
* handle. Slice shape is `{ zones: Zone[] }` so future extensions
|
|
17273
17405
|
* (e.g. zone groupings) can sit alongside the polygon list.
|
|
17274
17406
|
*/
|
|
17275
|
-
runtimeState: object({ zones: array(ZoneSchema).readonly() })
|
|
17407
|
+
runtimeState: object({ zones: array(ZoneSchema).readonly() }),
|
|
17408
|
+
/**
|
|
17409
|
+
* 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.
|
|
17410
|
+
*
|
|
17411
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
17412
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
17413
|
+
*/
|
|
17414
|
+
durability: "restored"
|
|
17276
17415
|
};
|
|
17277
17416
|
/**
|
|
17278
17417
|
* A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
|
|
@@ -17442,6 +17581,22 @@ var detectionFpsField = {
|
|
|
17442
17581
|
default: 10,
|
|
17443
17582
|
step: 1
|
|
17444
17583
|
};
|
|
17584
|
+
/**
|
|
17585
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
17586
|
+
*
|
|
17587
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
17588
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
17589
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
17590
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
17591
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
17592
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
17593
|
+
*
|
|
17594
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
17595
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
17596
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
17597
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
17598
|
+
* that ships with an addon deploy.
|
|
17599
|
+
*/
|
|
17445
17600
|
var occupancyRecheckSecField = {
|
|
17446
17601
|
min: 0,
|
|
17447
17602
|
max: 300,
|
|
@@ -17643,15 +17798,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
17643
17798
|
*/
|
|
17644
17799
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
17645
17800
|
/**
|
|
17646
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
17647
|
-
*
|
|
17648
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
17649
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
17650
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
17801
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
17802
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
17651
17803
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
17652
17804
|
* (and only render) when this is enabled.
|
|
17653
|
-
|
|
17654
|
-
|
|
17805
|
+
*
|
|
17806
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
17807
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
17808
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
17809
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
17810
|
+
* object is counted only while the stationary registry holds it, and the
|
|
17811
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
17812
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
17813
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
17814
|
+
*/
|
|
17815
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
17655
17816
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
17656
17817
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
17657
17818
|
/**
|
|
@@ -20071,7 +20232,17 @@ var airQualitySensorCapability = {
|
|
|
20071
20232
|
schema: AirQualitySensorStatusSchema,
|
|
20072
20233
|
kind: "push"
|
|
20073
20234
|
},
|
|
20074
|
-
runtimeState: AirQualitySensorStatusSchema
|
|
20235
|
+
runtimeState: AirQualitySensorStatusSchema,
|
|
20236
|
+
/**
|
|
20237
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
20238
|
+
*
|
|
20239
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20240
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20241
|
+
*/
|
|
20242
|
+
durability: "restored",
|
|
20243
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20244
|
+
* whether persisting is worth a SQLite commit. */
|
|
20245
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
20075
20246
|
};
|
|
20076
20247
|
/**
|
|
20077
20248
|
* Ambient illuminance reading in lux. Drives Home Assistant `sensor`
|
|
@@ -20103,7 +20274,17 @@ var ambientLightSensorCapability = {
|
|
|
20103
20274
|
schema: AmbientLightSensorStatusSchema,
|
|
20104
20275
|
kind: "push"
|
|
20105
20276
|
},
|
|
20106
|
-
runtimeState: AmbientLightSensorStatusSchema
|
|
20277
|
+
runtimeState: AmbientLightSensorStatusSchema,
|
|
20278
|
+
/**
|
|
20279
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
20280
|
+
*
|
|
20281
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20282
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20283
|
+
*/
|
|
20284
|
+
durability: "restored",
|
|
20285
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20286
|
+
* whether persisting is worth a SQLite commit. */
|
|
20287
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
20107
20288
|
};
|
|
20108
20289
|
/**
|
|
20109
20290
|
* Per-class audio metrics aggregated over a sliding window.
|
|
@@ -20221,7 +20402,14 @@ var audioMetricsCapability = {
|
|
|
20221
20402
|
}), AudioMetricsHistorySchema)
|
|
20222
20403
|
},
|
|
20223
20404
|
/** Reactive runtime-state mirror — live `device.state.audioMetrics.value`. */
|
|
20224
|
-
runtimeState: AudioMetricsSnapshotSchema
|
|
20405
|
+
runtimeState: AudioMetricsSnapshotSchema,
|
|
20406
|
+
/**
|
|
20407
|
+
* 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.
|
|
20408
|
+
*
|
|
20409
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20410
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20411
|
+
*/
|
|
20412
|
+
durability: "session"
|
|
20225
20413
|
};
|
|
20226
20414
|
/**
|
|
20227
20415
|
* Automation-control cap. Models HA `automation.*` entities on
|
|
@@ -20283,7 +20471,14 @@ var automationControlCapability = {
|
|
|
20283
20471
|
* reads `enabled` (toggle) + `isRunning` (spinner) + `lastError`
|
|
20284
20472
|
* (badge) directly.
|
|
20285
20473
|
*/
|
|
20286
|
-
runtimeState: AutomationControlStatusSchema
|
|
20474
|
+
runtimeState: AutomationControlStatusSchema,
|
|
20475
|
+
/**
|
|
20476
|
+
* 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.
|
|
20477
|
+
*
|
|
20478
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20479
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20480
|
+
*/
|
|
20481
|
+
durability: "session"
|
|
20287
20482
|
};
|
|
20288
20483
|
/**
|
|
20289
20484
|
* Battery status snapshot. Emitted by providers whose device is
|
|
@@ -20389,7 +20584,17 @@ onStatusChanged: { data: object({
|
|
|
20389
20584
|
* via `device.runtimeState.getCapState('battery')` regardless of
|
|
20390
20585
|
* the underlying driver.
|
|
20391
20586
|
*/
|
|
20392
|
-
runtimeState: BatteryStatusSchema
|
|
20587
|
+
runtimeState: BatteryStatusSchema,
|
|
20588
|
+
/**
|
|
20589
|
+
* 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.
|
|
20590
|
+
*
|
|
20591
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20592
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20593
|
+
*/
|
|
20594
|
+
durability: "restored",
|
|
20595
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20596
|
+
* whether persisting is worth a SQLite commit. */
|
|
20597
|
+
volatileStateFields: ["lastUpdated"]
|
|
20393
20598
|
};
|
|
20394
20599
|
/**
|
|
20395
20600
|
* Generic boolean sensor — last-resort fallback when no domain-
|
|
@@ -20418,7 +20623,17 @@ var binaryCapability = {
|
|
|
20418
20623
|
schema: BinaryStatusSchema,
|
|
20419
20624
|
kind: "push"
|
|
20420
20625
|
},
|
|
20421
|
-
runtimeState: BinaryStatusSchema
|
|
20626
|
+
runtimeState: BinaryStatusSchema,
|
|
20627
|
+
/**
|
|
20628
|
+
* Runtime-state durability: **restored** — transition-driven sensor state; the restored value gives the boot comparison.
|
|
20629
|
+
*
|
|
20630
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20631
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20632
|
+
*/
|
|
20633
|
+
durability: "restored",
|
|
20634
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20635
|
+
* whether persisting is worth a SQLite commit. */
|
|
20636
|
+
volatileStateFields: ["lastChangedAt"]
|
|
20422
20637
|
};
|
|
20423
20638
|
/**
|
|
20424
20639
|
* Dimmable-light brightness control. Co-exists with `switch` on the
|
|
@@ -20471,7 +20686,14 @@ onBrightnessChanged: { data: object({
|
|
|
20471
20686
|
* by the kernel. Read via `device.state.brightness.value` so UI
|
|
20472
20687
|
* sliders surface the current level without polling the provider.
|
|
20473
20688
|
*/
|
|
20474
|
-
runtimeState: BrightnessStatusSchema
|
|
20689
|
+
runtimeState: BrightnessStatusSchema,
|
|
20690
|
+
/**
|
|
20691
|
+
* Runtime-state durability: **session** — live lamp state, re-published by the provider on connect.
|
|
20692
|
+
*
|
|
20693
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20694
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20695
|
+
*/
|
|
20696
|
+
durability: "session"
|
|
20475
20697
|
};
|
|
20476
20698
|
/**
|
|
20477
20699
|
* button — device-scoped capability for HA `button.*` / `input_button.*`
|
|
@@ -20576,7 +20798,17 @@ var carbonMonoxideCapability = {
|
|
|
20576
20798
|
schema: CarbonMonoxideStatusSchema,
|
|
20577
20799
|
kind: "push"
|
|
20578
20800
|
},
|
|
20579
|
-
runtimeState: CarbonMonoxideStatusSchema
|
|
20801
|
+
runtimeState: CarbonMonoxideStatusSchema,
|
|
20802
|
+
/**
|
|
20803
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
20804
|
+
*
|
|
20805
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20806
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20807
|
+
*/
|
|
20808
|
+
durability: "restored",
|
|
20809
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20810
|
+
* whether persisting is worth a SQLite commit. */
|
|
20811
|
+
volatileStateFields: ["lastChangedAt"]
|
|
20580
20812
|
};
|
|
20581
20813
|
/**
|
|
20582
20814
|
* HVAC / climate control cap. Models the full surface of a HA
|
|
@@ -20736,7 +20968,14 @@ var climateControlCapability = {
|
|
|
20736
20968
|
* the full slice via `device.state.climate-control.value` and refresh
|
|
20737
20969
|
* on every push without re-querying the provider.
|
|
20738
20970
|
*/
|
|
20739
|
-
runtimeState: ClimateControlStatusSchema
|
|
20971
|
+
runtimeState: ClimateControlStatusSchema,
|
|
20972
|
+
/**
|
|
20973
|
+
* Runtime-state durability: **session** — as `brightness`; `currentTemp` moves continuously and is re-published on connect.
|
|
20974
|
+
*
|
|
20975
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20976
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20977
|
+
*/
|
|
20978
|
+
durability: "session"
|
|
20740
20979
|
};
|
|
20741
20980
|
/**
|
|
20742
20981
|
* Color-light cap. Coexists with `switch` (on/off) and `brightness`
|
|
@@ -20846,7 +21085,14 @@ onColorChanged: { data: object({
|
|
|
20846
21085
|
* kernel. Read via `device.state.color.value` so UI pickers surface
|
|
20847
21086
|
* the current chromaticity without polling the provider.
|
|
20848
21087
|
*/
|
|
20849
|
-
runtimeState: ColorStatusSchema
|
|
21088
|
+
runtimeState: ColorStatusSchema,
|
|
21089
|
+
/**
|
|
21090
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
21091
|
+
*
|
|
21092
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21093
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21094
|
+
*/
|
|
21095
|
+
durability: "session"
|
|
20850
21096
|
};
|
|
20851
21097
|
var ConnectionTestOutcomeSchema = discriminatedUnion("outcome", [
|
|
20852
21098
|
object({
|
|
@@ -20904,7 +21150,17 @@ var connectivityCapability = {
|
|
|
20904
21150
|
schema: ConnectivityStatusSchema,
|
|
20905
21151
|
kind: "push"
|
|
20906
21152
|
},
|
|
20907
|
-
runtimeState: ConnectivityStatusSchema
|
|
21153
|
+
runtimeState: ConnectivityStatusSchema,
|
|
21154
|
+
/**
|
|
21155
|
+
* Runtime-state durability: **restored** — same shape and same argument as `device-status`, for links rather than devices.
|
|
21156
|
+
*
|
|
21157
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21158
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21159
|
+
*/
|
|
21160
|
+
durability: "restored",
|
|
21161
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21162
|
+
* whether persisting is worth a SQLite commit. */
|
|
21163
|
+
volatileStateFields: ["lastChangedAt"]
|
|
20908
21164
|
};
|
|
20909
21165
|
/**
|
|
20910
21166
|
* Generic device-consumables capability — surfaces a device's
|
|
@@ -20986,7 +21242,14 @@ reset: method(object({
|
|
|
20986
21242
|
}
|
|
20987
21243
|
}
|
|
20988
21244
|
},
|
|
20989
|
-
runtimeState: ConsumablesStatusSchema.extend({ lastFetchedAt: number() })
|
|
21245
|
+
runtimeState: ConsumablesStatusSchema.extend({ lastFetchedAt: number() }),
|
|
21246
|
+
/**
|
|
21247
|
+
* Runtime-state durability: **session** — the authority is the appliance; the provider re-reads the whole item array on connect.
|
|
21248
|
+
*
|
|
21249
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21250
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21251
|
+
*/
|
|
21252
|
+
durability: "session"
|
|
20990
21253
|
};
|
|
20991
21254
|
/**
|
|
20992
21255
|
* Door / window / opening / garage / valve contact sensor. Boolean
|
|
@@ -21017,7 +21280,17 @@ var contactCapability = {
|
|
|
21017
21280
|
schema: ContactStatusSchema,
|
|
21018
21281
|
kind: "push"
|
|
21019
21282
|
},
|
|
21020
|
-
runtimeState: ContactStatusSchema
|
|
21283
|
+
runtimeState: ContactStatusSchema,
|
|
21284
|
+
/**
|
|
21285
|
+
* Runtime-state durability: **restored** — a door left open across a restart must still read open.
|
|
21286
|
+
*
|
|
21287
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21288
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21289
|
+
*/
|
|
21290
|
+
durability: "restored",
|
|
21291
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21292
|
+
* whether persisting is worth a SQLite commit. */
|
|
21293
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21021
21294
|
};
|
|
21022
21295
|
/**
|
|
21023
21296
|
* Status slice — flat object (the framework's `runtimeState` contract
|
|
@@ -21123,7 +21396,14 @@ var controlCapability = {
|
|
|
21123
21396
|
* dropdown / text field / date picker) read the slice's discriminant
|
|
21124
21397
|
* and value directly without polling the provider.
|
|
21125
21398
|
*/
|
|
21126
|
-
runtimeState: ControlStatusSchema
|
|
21399
|
+
runtimeState: ControlStatusSchema,
|
|
21400
|
+
/**
|
|
21401
|
+
* Runtime-state durability: **session** — a generic control mirrors an external entity that re-publishes on connect; the options array is re-derived with it.
|
|
21402
|
+
*
|
|
21403
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21404
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21405
|
+
*/
|
|
21406
|
+
durability: "session"
|
|
21127
21407
|
};
|
|
21128
21408
|
var CoverStatusSchema = object({
|
|
21129
21409
|
/** Lifecycle state of the cover. */
|
|
@@ -21184,7 +21464,17 @@ var coverCapability = {
|
|
|
21184
21464
|
* Runtime-state slice — mirrored by the kernel. UI controls watch
|
|
21185
21465
|
* the slice for live position changes during a move.
|
|
21186
21466
|
*/
|
|
21187
|
-
runtimeState: CoverStatusSchema
|
|
21467
|
+
runtimeState: CoverStatusSchema,
|
|
21468
|
+
/**
|
|
21469
|
+
* Runtime-state durability: **restored** — position survives a restart on the device; the mirror should agree at boot rather than read blank.
|
|
21470
|
+
*
|
|
21471
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21472
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21473
|
+
*/
|
|
21474
|
+
durability: "restored",
|
|
21475
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21476
|
+
* whether persisting is worth a SQLite commit. */
|
|
21477
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21188
21478
|
};
|
|
21189
21479
|
/**
|
|
21190
21480
|
* Vendor-neutral day/night (IR-cut) control — the per-camera config cap
|
|
@@ -21278,7 +21568,17 @@ var dayNightCapability = {
|
|
|
21278
21568
|
schema: DayNightStatusSchema,
|
|
21279
21569
|
kind: "poll"
|
|
21280
21570
|
},
|
|
21281
|
-
runtimeState: DayNightStatusSchema
|
|
21571
|
+
runtimeState: DayNightStatusSchema,
|
|
21572
|
+
/**
|
|
21573
|
+
* Runtime-state durability: **restored** — operator-set IR-cut behaviour; mutation-driven.
|
|
21574
|
+
*
|
|
21575
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21576
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21577
|
+
*/
|
|
21578
|
+
durability: "restored",
|
|
21579
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21580
|
+
* whether persisting is worth a SQLite commit. */
|
|
21581
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
21282
21582
|
};
|
|
21283
21583
|
/**
|
|
21284
21584
|
* Generic device-level status snapshot. Auto-registered by `BaseDevice`
|
|
@@ -21325,7 +21625,17 @@ onStatusChanged: { data: object({
|
|
|
21325
21625
|
schema: DeviceStatusSchema,
|
|
21326
21626
|
kind: "push"
|
|
21327
21627
|
},
|
|
21328
|
-
runtimeState: DeviceStatusSchema
|
|
21628
|
+
runtimeState: DeviceStatusSchema,
|
|
21629
|
+
/**
|
|
21630
|
+
* 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.
|
|
21631
|
+
*
|
|
21632
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21633
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21634
|
+
*/
|
|
21635
|
+
durability: "restored",
|
|
21636
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21637
|
+
* whether persisting is worth a SQLite commit. */
|
|
21638
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21329
21639
|
};
|
|
21330
21640
|
/**
|
|
21331
21641
|
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
@@ -21387,7 +21697,14 @@ onPressed: { data: DoorbellPressEventSchema } },
|
|
|
21387
21697
|
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
21388
21698
|
* without subscribing.
|
|
21389
21699
|
*/
|
|
21390
|
-
runtimeState: DoorbellStatusSchema
|
|
21700
|
+
runtimeState: DoorbellStatusSchema,
|
|
21701
|
+
/**
|
|
21702
|
+
* 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.
|
|
21703
|
+
*
|
|
21704
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21705
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21706
|
+
*/
|
|
21707
|
+
durability: "restored"
|
|
21391
21708
|
};
|
|
21392
21709
|
/**
|
|
21393
21710
|
* Enum-state sensor — a string value picked from a finite option set.
|
|
@@ -21427,7 +21744,17 @@ var enumSensorCapability = {
|
|
|
21427
21744
|
schema: EnumSensorStatusSchema,
|
|
21428
21745
|
kind: "push"
|
|
21429
21746
|
},
|
|
21430
|
-
runtimeState: EnumSensorStatusSchema
|
|
21747
|
+
runtimeState: EnumSensorStatusSchema,
|
|
21748
|
+
/**
|
|
21749
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`; 80 devices.
|
|
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: ["lastFetchedAt"]
|
|
21431
21758
|
};
|
|
21432
21759
|
/**
|
|
21433
21760
|
* Generic stateless event emitter. Installed on a `DeviceType.EventEmitter`
|
|
@@ -21463,7 +21790,14 @@ var eventEmitterCapability = {
|
|
|
21463
21790
|
schema: EventEmitterStatusSchema,
|
|
21464
21791
|
kind: "push"
|
|
21465
21792
|
},
|
|
21466
|
-
runtimeState: EventEmitterStatusSchema
|
|
21793
|
+
runtimeState: EventEmitterStatusSchema,
|
|
21794
|
+
/**
|
|
21795
|
+
* Runtime-state durability: **session** — `eventCountSinceStart` names its own scope.
|
|
21796
|
+
*
|
|
21797
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21798
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21799
|
+
*/
|
|
21800
|
+
durability: "session"
|
|
21467
21801
|
};
|
|
21468
21802
|
var EventItemSchema = object({
|
|
21469
21803
|
id: string(),
|
|
@@ -21744,7 +22078,14 @@ var fanControlCapability = {
|
|
|
21744
22078
|
* Runtime-state slice — mirrored by the kernel. UI fan speed
|
|
21745
22079
|
* sliders read `percentage` for live updates.
|
|
21746
22080
|
*/
|
|
21747
|
-
runtimeState: FanControlStatusSchema
|
|
22081
|
+
runtimeState: FanControlStatusSchema,
|
|
22082
|
+
/**
|
|
22083
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
22084
|
+
*
|
|
22085
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22086
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22087
|
+
*/
|
|
22088
|
+
durability: "session"
|
|
21748
22089
|
};
|
|
21749
22090
|
/**
|
|
21750
22091
|
* Per-device feature/identity probe slice. Holds the runtime-resolved
|
|
@@ -21820,7 +22161,14 @@ onProbeChanged: { data: object({
|
|
|
21820
22161
|
schema: FeatureProbeStatusSchema,
|
|
21821
22162
|
kind: "push"
|
|
21822
22163
|
},
|
|
21823
|
-
runtimeState: FeatureProbeStatusSchema
|
|
22164
|
+
runtimeState: FeatureProbeStatusSchema,
|
|
22165
|
+
/**
|
|
22166
|
+
* 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.
|
|
22167
|
+
*
|
|
22168
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22169
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22170
|
+
*/
|
|
22171
|
+
durability: "session"
|
|
21824
22172
|
};
|
|
21825
22173
|
/**
|
|
21826
22174
|
* Water leak / moisture sensor. Boolean "is liquid currently
|
|
@@ -21847,7 +22195,17 @@ var floodCapability = {
|
|
|
21847
22195
|
schema: FloodStatusSchema,
|
|
21848
22196
|
kind: "push"
|
|
21849
22197
|
},
|
|
21850
|
-
runtimeState: FloodStatusSchema
|
|
22198
|
+
runtimeState: FloodStatusSchema,
|
|
22199
|
+
/**
|
|
22200
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
22201
|
+
*
|
|
22202
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22203
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22204
|
+
*/
|
|
22205
|
+
durability: "restored",
|
|
22206
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22207
|
+
* whether persisting is worth a SQLite commit. */
|
|
22208
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21851
22209
|
};
|
|
21852
22210
|
/**
|
|
21853
22211
|
* Combustible-gas (LPG / methane / hydrogen) alarm sensor. Drives
|
|
@@ -21870,7 +22228,17 @@ var gasCapability = {
|
|
|
21870
22228
|
schema: GasStatusSchema,
|
|
21871
22229
|
kind: "push"
|
|
21872
22230
|
},
|
|
21873
|
-
runtimeState: GasStatusSchema
|
|
22231
|
+
runtimeState: GasStatusSchema,
|
|
22232
|
+
/**
|
|
22233
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
22234
|
+
*
|
|
22235
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22236
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22237
|
+
*/
|
|
22238
|
+
durability: "restored",
|
|
22239
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22240
|
+
* whether persisting is worth a SQLite commit. */
|
|
22241
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21874
22242
|
};
|
|
21875
22243
|
/**
|
|
21876
22244
|
* Humidifier / dehumidifier cap. Models HA `humidifier.*` entities —
|
|
@@ -21946,7 +22314,14 @@ var humidifierCapability = {
|
|
|
21946
22314
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
21947
22315
|
* slice for live humidity / mode changes.
|
|
21948
22316
|
*/
|
|
21949
|
-
runtimeState: HumidifierStatusSchema
|
|
22317
|
+
runtimeState: HumidifierStatusSchema,
|
|
22318
|
+
/**
|
|
22319
|
+
* Runtime-state durability: **session** — as `climate-control`.
|
|
22320
|
+
*
|
|
22321
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22322
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22323
|
+
*/
|
|
22324
|
+
durability: "session"
|
|
21950
22325
|
};
|
|
21951
22326
|
/**
|
|
21952
22327
|
* Single-metric humidity reading. Drives Home Assistant `sensor`
|
|
@@ -21982,7 +22357,17 @@ var humiditySensorCapability = {
|
|
|
21982
22357
|
schema: HumiditySensorStatusSchema,
|
|
21983
22358
|
kind: "push"
|
|
21984
22359
|
},
|
|
21985
|
-
runtimeState: HumiditySensorStatusSchema
|
|
22360
|
+
runtimeState: HumiditySensorStatusSchema,
|
|
22361
|
+
/**
|
|
22362
|
+
* Runtime-state durability: **restored** — as `numeric-sensor` (67 of 75 writes were the clock alone).
|
|
22363
|
+
*
|
|
22364
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22365
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22366
|
+
*/
|
|
22367
|
+
durability: "restored",
|
|
22368
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22369
|
+
* whether persisting is worth a SQLite commit. */
|
|
22370
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
21986
22371
|
};
|
|
21987
22372
|
/**
|
|
21988
22373
|
* Image display cap. Models a single still image exposed by an integration —
|
|
@@ -22020,7 +22405,14 @@ var imageCapability = {
|
|
|
22020
22405
|
* Runtime-state slice — mirrored by the kernel. The UI reads `url`
|
|
22021
22406
|
* directly and renders the still image.
|
|
22022
22407
|
*/
|
|
22023
|
-
runtimeState: ImageStatusSchema
|
|
22408
|
+
runtimeState: ImageStatusSchema,
|
|
22409
|
+
/**
|
|
22410
|
+
* Runtime-state durability: **session** — a snapshot URL is a session-scoped handle; a restored one points at nothing.
|
|
22411
|
+
*
|
|
22412
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22413
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22414
|
+
*/
|
|
22415
|
+
durability: "session"
|
|
22024
22416
|
};
|
|
22025
22417
|
/**
|
|
22026
22418
|
* Vendor-neutral image / picture-adjustment cap — the per-camera config
|
|
@@ -22169,7 +22561,17 @@ var imageSettingsCapability = {
|
|
|
22169
22561
|
schema: ImageSettingsStatusSchema,
|
|
22170
22562
|
kind: "poll"
|
|
22171
22563
|
},
|
|
22172
|
-
runtimeState: ImageSettingsStatusSchema
|
|
22564
|
+
runtimeState: ImageSettingsStatusSchema,
|
|
22565
|
+
/**
|
|
22566
|
+
* Runtime-state durability: **restored** — operator-set camera imaging; mutation-driven.
|
|
22567
|
+
*
|
|
22568
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22569
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22570
|
+
*/
|
|
22571
|
+
durability: "restored",
|
|
22572
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22573
|
+
* whether persisting is worth a SQLite commit. */
|
|
22574
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
22173
22575
|
};
|
|
22174
22576
|
/**
|
|
22175
22577
|
* integrations — system-scoped singleton capability for integration
|
|
@@ -22509,7 +22911,14 @@ var lawnMowerControlCapability = {
|
|
|
22509
22911
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
22510
22912
|
* slice for live activity + battery changes.
|
|
22511
22913
|
*/
|
|
22512
|
-
runtimeState: LawnMowerControlStatusSchema
|
|
22914
|
+
runtimeState: LawnMowerControlStatusSchema,
|
|
22915
|
+
/**
|
|
22916
|
+
* Runtime-state durability: **session** — as `vacuum-control`.
|
|
22917
|
+
*
|
|
22918
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22919
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22920
|
+
*/
|
|
22921
|
+
durability: "session"
|
|
22513
22922
|
};
|
|
22514
22923
|
/**
|
|
22515
22924
|
* local-network — hub-only singleton.
|
|
@@ -22715,7 +23124,17 @@ var lockControlCapability = {
|
|
|
22715
23124
|
* read `state` and disable themselves during `locking`/`unlocking`
|
|
22716
23125
|
* transitions.
|
|
22717
23126
|
*/
|
|
22718
|
-
runtimeState: LockControlStatusSchema
|
|
23127
|
+
runtimeState: LockControlStatusSchema,
|
|
23128
|
+
/**
|
|
23129
|
+
* Runtime-state durability: **restored** — a lock left locked must still read locked.
|
|
23130
|
+
*
|
|
23131
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23132
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23133
|
+
*/
|
|
23134
|
+
durability: "restored",
|
|
23135
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23136
|
+
* whether persisting is worth a SQLite commit. */
|
|
23137
|
+
volatileStateFields: ["lastChangedAt"]
|
|
22719
23138
|
};
|
|
22720
23139
|
/**
|
|
22721
23140
|
* Media-player cap. Models HA `media_player.*` (Sonos, Chromecast,
|
|
@@ -22877,7 +23296,14 @@ var mediaPlayerCapability = {
|
|
|
22877
23296
|
* full slice for live now-playing, volume, and progress updates
|
|
22878
23297
|
* without polling.
|
|
22879
23298
|
*/
|
|
22880
|
-
runtimeState: MediaPlayerStatusSchema
|
|
23299
|
+
runtimeState: MediaPlayerStatusSchema,
|
|
23300
|
+
/**
|
|
23301
|
+
* Runtime-state durability: **session** — a restored transport position describes a playback that stopped when the hub did.
|
|
23302
|
+
*
|
|
23303
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23304
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23305
|
+
*/
|
|
23306
|
+
durability: "session"
|
|
22881
23307
|
};
|
|
22882
23308
|
/**
|
|
22883
23309
|
* mesh-network — collection cap for mesh-VPN providers.
|
|
@@ -23141,7 +23567,14 @@ onMotionChanged: { data: MotionOnMotionChangedDataSchema } },
|
|
|
23141
23567
|
* `device.state.motion.value`. Reads never invoke the provider, so
|
|
23142
23568
|
* UIs and other addons can poll the cached state safely.
|
|
23143
23569
|
*/
|
|
23144
|
-
runtimeState: MotionStatusSchema
|
|
23570
|
+
runtimeState: MotionStatusSchema,
|
|
23571
|
+
/**
|
|
23572
|
+
* 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.
|
|
23573
|
+
*
|
|
23574
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23575
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23576
|
+
*/
|
|
23577
|
+
durability: "session"
|
|
23145
23578
|
};
|
|
23146
23579
|
/**
|
|
23147
23580
|
* Motion-trigger toggle for accessory devices.
|
|
@@ -23206,7 +23639,14 @@ var motionTriggerCapability = {
|
|
|
23206
23639
|
schema: MotionTriggerStatusSchema,
|
|
23207
23640
|
kind: "command-driven"
|
|
23208
23641
|
},
|
|
23209
|
-
runtimeState: MotionTriggerRuntimeStateSchema
|
|
23642
|
+
runtimeState: MotionTriggerRuntimeStateSchema,
|
|
23643
|
+
/**
|
|
23644
|
+
* 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.
|
|
23645
|
+
*
|
|
23646
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23647
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23648
|
+
*/
|
|
23649
|
+
durability: "session"
|
|
23210
23650
|
};
|
|
23211
23651
|
/**
|
|
23212
23652
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
@@ -23273,7 +23713,17 @@ var motionZonesCapability = {
|
|
|
23273
23713
|
schema: MotionZoneStatusSchema,
|
|
23274
23714
|
kind: "poll"
|
|
23275
23715
|
},
|
|
23276
|
-
runtimeState: MotionZoneStatusSchema
|
|
23716
|
+
runtimeState: MotionZoneStatusSchema,
|
|
23717
|
+
/**
|
|
23718
|
+
* 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.
|
|
23719
|
+
*
|
|
23720
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23721
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23722
|
+
*/
|
|
23723
|
+
durability: "restored",
|
|
23724
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23725
|
+
* whether persisting is worth a SQLite commit. */
|
|
23726
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23277
23727
|
};
|
|
23278
23728
|
/**
|
|
23279
23729
|
* On-camera AI object detection cap. Surfaces per-device the classes
|
|
@@ -23347,7 +23797,17 @@ var nativeObjectDetectionCapability = {
|
|
|
23347
23797
|
schema: NativeObjectDetectionStatusSchema,
|
|
23348
23798
|
kind: "push"
|
|
23349
23799
|
},
|
|
23350
|
-
runtimeState: NativeObjectDetectionRuntimeStateSchema
|
|
23800
|
+
runtimeState: NativeObjectDetectionRuntimeStateSchema,
|
|
23801
|
+
/**
|
|
23802
|
+
* 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.
|
|
23803
|
+
*
|
|
23804
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23805
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23806
|
+
*/
|
|
23807
|
+
durability: "restored",
|
|
23808
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23809
|
+
* whether persisting is worth a SQLite commit. */
|
|
23810
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23351
23811
|
};
|
|
23352
23812
|
/**
|
|
23353
23813
|
* network-quality — system-scoped singleton capability tracking RTT,
|
|
@@ -23681,7 +24141,14 @@ onSent: { data: object({
|
|
|
23681
24141
|
* form reads `supports` to gate optional fields; history pane reads
|
|
23682
24142
|
* `lastSentAt` / `lastError` / `queueDepth`.
|
|
23683
24143
|
*/
|
|
23684
|
-
runtimeState: NotifierStatusSchema
|
|
24144
|
+
runtimeState: NotifierStatusSchema,
|
|
24145
|
+
/**
|
|
24146
|
+
* Runtime-state durability: **session** — live queue depth and last-send state; a restored queue depth describes a queue that no longer exists.
|
|
24147
|
+
*
|
|
24148
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24149
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24150
|
+
*/
|
|
24151
|
+
durability: "session"
|
|
23685
24152
|
};
|
|
23686
24153
|
/**
|
|
23687
24154
|
* Generic numeric sensor — last-resort fallback when no typed numeric
|
|
@@ -23724,7 +24191,17 @@ var numericSensorCapability = {
|
|
|
23724
24191
|
schema: NumericSensorStatusSchema,
|
|
23725
24192
|
kind: "push"
|
|
23726
24193
|
},
|
|
23727
|
-
runtimeState: NumericSensorStatusSchema
|
|
24194
|
+
runtimeState: NumericSensorStatusSchema,
|
|
24195
|
+
/**
|
|
24196
|
+
* 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.
|
|
24197
|
+
*
|
|
24198
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24199
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24200
|
+
*/
|
|
24201
|
+
durability: "restored",
|
|
24202
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24203
|
+
* whether persisting is worth a SQLite commit. */
|
|
24204
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23728
24205
|
};
|
|
23729
24206
|
/**
|
|
23730
24207
|
* Generic on-screen-display (video overlay) cap. Each camera exposes
|
|
@@ -24109,7 +24586,14 @@ var petFeederCapability = {
|
|
|
24109
24586
|
* the full slice via `device.state.petFeeder.value` and refresh on
|
|
24110
24587
|
* every poll without re-querying the provider.
|
|
24111
24588
|
*/
|
|
24112
|
-
runtimeState: PetFeederStatusSchema
|
|
24589
|
+
runtimeState: PetFeederStatusSchema,
|
|
24590
|
+
/**
|
|
24591
|
+
* Runtime-state durability: **session** — live appliance state re-published on connect.
|
|
24592
|
+
*
|
|
24593
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24594
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24595
|
+
*/
|
|
24596
|
+
durability: "session"
|
|
24113
24597
|
};
|
|
24114
24598
|
var VehicleSchema = object({
|
|
24115
24599
|
id: string(),
|
|
@@ -24421,7 +24905,17 @@ var powerMeterCapability = {
|
|
|
24421
24905
|
schema: PowerMeterStatusSchema,
|
|
24422
24906
|
kind: "push"
|
|
24423
24907
|
},
|
|
24424
|
-
runtimeState: PowerMeterStatusSchema
|
|
24908
|
+
runtimeState: PowerMeterStatusSchema,
|
|
24909
|
+
/**
|
|
24910
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`; `kwhTotal` is an accumulator whose restored value is the baseline.
|
|
24911
|
+
*
|
|
24912
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24913
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24914
|
+
*/
|
|
24915
|
+
durability: "restored",
|
|
24916
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24917
|
+
* whether persisting is worth a SQLite commit. */
|
|
24918
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24425
24919
|
};
|
|
24426
24920
|
/**
|
|
24427
24921
|
* Presence cap. Models HA `person.*` and `device_tracker.*` entities
|
|
@@ -24478,7 +24972,17 @@ var presenceCapability = {
|
|
|
24478
24972
|
* the map pin is rendered (use `DeviceFeature.PresenceGps` for the
|
|
24479
24973
|
* pre-fetch fast-path check).
|
|
24480
24974
|
*/
|
|
24481
|
-
runtimeState: PresenceStatusSchema
|
|
24975
|
+
runtimeState: PresenceStatusSchema,
|
|
24976
|
+
/**
|
|
24977
|
+
* Runtime-state durability: **restored** — occupancy-relevant: the restored state is what an occupancy rule compares the first post-restart observation against.
|
|
24978
|
+
*
|
|
24979
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24980
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24981
|
+
*/
|
|
24982
|
+
durability: "restored",
|
|
24983
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24984
|
+
* whether persisting is worth a SQLite commit. */
|
|
24985
|
+
volatileStateFields: ["lastChangedAt"]
|
|
24482
24986
|
};
|
|
24483
24987
|
/**
|
|
24484
24988
|
* Atmospheric pressure reading in hectopascals. Drives Home Assistant
|
|
@@ -24514,7 +25018,17 @@ var pressureSensorCapability = {
|
|
|
24514
25018
|
schema: PressureSensorStatusSchema,
|
|
24515
25019
|
kind: "push"
|
|
24516
25020
|
},
|
|
24517
|
-
runtimeState: PressureSensorStatusSchema
|
|
25021
|
+
runtimeState: PressureSensorStatusSchema,
|
|
25022
|
+
/**
|
|
25023
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
25024
|
+
*
|
|
25025
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25026
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25027
|
+
*/
|
|
25028
|
+
durability: "restored",
|
|
25029
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25030
|
+
* whether persisting is worth a SQLite commit. */
|
|
25031
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24518
25032
|
};
|
|
24519
25033
|
/**
|
|
24520
25034
|
* PRIVACY — what the camera deliberately does not capture. Two planes:
|
|
@@ -24644,7 +25158,17 @@ var privacyMaskCapability = {
|
|
|
24644
25158
|
schema: PrivacyMaskStatusSchema,
|
|
24645
25159
|
kind: "poll"
|
|
24646
25160
|
},
|
|
24647
|
-
runtimeState: PrivacyMaskStatusSchema
|
|
25161
|
+
runtimeState: PrivacyMaskStatusSchema,
|
|
25162
|
+
/**
|
|
25163
|
+
* Runtime-state durability: **restored** — operator-drawn regions, zero real churn — 22 writes in 25 minutes, every one of them the clock.
|
|
25164
|
+
*
|
|
25165
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25166
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25167
|
+
*/
|
|
25168
|
+
durability: "restored",
|
|
25169
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25170
|
+
* whether persisting is worth a SQLite commit. */
|
|
25171
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24648
25172
|
};
|
|
24649
25173
|
var PtzPresetSchema = object({
|
|
24650
25174
|
id: string(),
|
|
@@ -24810,7 +25334,14 @@ var ptzAutotrackCapability = {
|
|
|
24810
25334
|
* fetch / cache / fallback logic out of the four cap methods —
|
|
24811
25335
|
* they become trampolines over `runtimeState`.
|
|
24812
25336
|
*/
|
|
24813
|
-
runtimeState: PtzAutotrackRuntimeStateSchema
|
|
25337
|
+
runtimeState: PtzAutotrackRuntimeStateSchema,
|
|
25338
|
+
/**
|
|
25339
|
+
* Runtime-state durability: **session** — mirrors the camera's own autotrack config, re-read on connect.
|
|
25340
|
+
*
|
|
25341
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25342
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25343
|
+
*/
|
|
25344
|
+
durability: "session"
|
|
24814
25345
|
};
|
|
24815
25346
|
DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
|
|
24816
25347
|
kind: "mutation",
|
|
@@ -25460,7 +25991,14 @@ var sceneMonitorCapability = {
|
|
|
25460
25991
|
schema: SceneMonitorStatusSchema,
|
|
25461
25992
|
kind: "push"
|
|
25462
25993
|
},
|
|
25463
|
-
runtimeState: SceneMonitorStatusSchema
|
|
25994
|
+
runtimeState: SceneMonitorStatusSchema,
|
|
25995
|
+
/**
|
|
25996
|
+
* Runtime-state durability: **session** — re-derived from the current scene on the next evaluation.
|
|
25997
|
+
*
|
|
25998
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25999
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26000
|
+
*/
|
|
26001
|
+
durability: "session"
|
|
25464
26002
|
};
|
|
25465
26003
|
/**
|
|
25466
26004
|
* Per-stage gating mode applied to the zones a rule references.
|
|
@@ -25604,7 +26142,14 @@ var scriptRunnerCapability = {
|
|
|
25604
26142
|
* `isRunning` to render a spinner during execution and surfaces
|
|
25605
26143
|
* `lastError` / `lastRunSuccess` in the recent-runs panel.
|
|
25606
26144
|
*/
|
|
25607
|
-
runtimeState: ScriptRunnerStatusSchema
|
|
26145
|
+
runtimeState: ScriptRunnerStatusSchema,
|
|
26146
|
+
/**
|
|
26147
|
+
* Runtime-state durability: **session** — a restored `isRunning: true` describes a process that died with the previous hub.
|
|
26148
|
+
*
|
|
26149
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26150
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26151
|
+
*/
|
|
26152
|
+
durability: "session"
|
|
25608
26153
|
};
|
|
25609
26154
|
/**
|
|
25610
26155
|
* Smoke alarm sensor — boolean "is smoke currently detected" with
|
|
@@ -25631,7 +26176,17 @@ var smokeCapability = {
|
|
|
25631
26176
|
schema: SmokeStatusSchema,
|
|
25632
26177
|
kind: "push"
|
|
25633
26178
|
},
|
|
25634
|
-
runtimeState: SmokeStatusSchema
|
|
26179
|
+
runtimeState: SmokeStatusSchema,
|
|
26180
|
+
/**
|
|
26181
|
+
* Runtime-state durability: **restored** — a safety sensor must not read "clear" merely because the hub restarted.
|
|
26182
|
+
*
|
|
26183
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26184
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26185
|
+
*/
|
|
26186
|
+
durability: "restored",
|
|
26187
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26188
|
+
* whether persisting is worth a SQLite commit. */
|
|
26189
|
+
volatileStateFields: ["lastChangedAt"]
|
|
25635
26190
|
};
|
|
25636
26191
|
/**
|
|
25637
26192
|
* One publishable camera stream as its OWNING PROVIDER describes it — the same
|
|
@@ -25804,7 +26359,17 @@ var streamParamsCapability = {
|
|
|
25804
26359
|
schema: StreamParamsStatusSchema,
|
|
25805
26360
|
kind: "poll"
|
|
25806
26361
|
},
|
|
25807
|
-
runtimeState: StreamParamsStatusSchema
|
|
26362
|
+
runtimeState: StreamParamsStatusSchema,
|
|
26363
|
+
/**
|
|
26364
|
+
* Runtime-state durability: **restored** — operator-set encoder profile; mutation-driven.
|
|
26365
|
+
*
|
|
26366
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26367
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26368
|
+
*/
|
|
26369
|
+
durability: "restored",
|
|
26370
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26371
|
+
* whether persisting is worth a SQLite commit. */
|
|
26372
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
25808
26373
|
};
|
|
25809
26374
|
/**
|
|
25810
26375
|
* Generic on/off switch cap for accessory children (siren, floodlight,
|
|
@@ -25850,6 +26415,16 @@ var switchCapability = {
|
|
|
25850
26415
|
* not need to re-query the provider after a setState mutation.
|
|
25851
26416
|
*/
|
|
25852
26417
|
runtimeState: SwitchStatusSchema,
|
|
26418
|
+
/**
|
|
26419
|
+
* Runtime-state durability: **restored** — device state an operator reads as authoritative; 55 devices, transition-driven.
|
|
26420
|
+
*
|
|
26421
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26422
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26423
|
+
*/
|
|
26424
|
+
durability: "restored",
|
|
26425
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26426
|
+
* whether persisting is worth a SQLite commit. */
|
|
26427
|
+
volatileStateFields: ["lastChangedAt"],
|
|
25853
26428
|
settings: { bindings: [{
|
|
25854
26429
|
kind: "scalar",
|
|
25855
26430
|
statusPath: "on",
|
|
@@ -25929,7 +26504,17 @@ var tamperCapability = {
|
|
|
25929
26504
|
schema: TamperStatusSchema,
|
|
25930
26505
|
kind: "push"
|
|
25931
26506
|
},
|
|
25932
|
-
runtimeState: TamperStatusSchema
|
|
26507
|
+
runtimeState: TamperStatusSchema,
|
|
26508
|
+
/**
|
|
26509
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
26510
|
+
*
|
|
26511
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26512
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26513
|
+
*/
|
|
26514
|
+
durability: "restored",
|
|
26515
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26516
|
+
* whether persisting is worth a SQLite commit. */
|
|
26517
|
+
volatileStateFields: ["lastChangedAt"]
|
|
25933
26518
|
};
|
|
25934
26519
|
/**
|
|
25935
26520
|
* Single-metric temperature reading. Drives Home Assistant `sensor`
|
|
@@ -25974,7 +26559,17 @@ var temperatureSensorCapability = {
|
|
|
25974
26559
|
schema: TemperatureSensorStatusSchema,
|
|
25975
26560
|
kind: "push"
|
|
25976
26561
|
},
|
|
25977
|
-
runtimeState: TemperatureSensorStatusSchema
|
|
26562
|
+
runtimeState: TemperatureSensorStatusSchema,
|
|
26563
|
+
/**
|
|
26564
|
+
* Runtime-state durability: **restored** — as `numeric-sensor` (69 of 125 writes were the clock alone).
|
|
26565
|
+
*
|
|
26566
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26567
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26568
|
+
*/
|
|
26569
|
+
durability: "restored",
|
|
26570
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26571
|
+
* whether persisting is worth a SQLite commit. */
|
|
26572
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
25978
26573
|
};
|
|
25979
26574
|
/**
|
|
25980
26575
|
* toast — system-scoped singleton capability that streams toast
|
|
@@ -26043,7 +26638,14 @@ var updateCapability = {
|
|
|
26043
26638
|
schema: UpdateStatusSchema,
|
|
26044
26639
|
kind: "poll"
|
|
26045
26640
|
},
|
|
26046
|
-
runtimeState: UpdateStatusSchema
|
|
26641
|
+
runtimeState: UpdateStatusSchema,
|
|
26642
|
+
/**
|
|
26643
|
+
* Runtime-state durability: **session** — a restored `inProgress: true` describes an update that is no longer running; versions are re-probed at boot.
|
|
26644
|
+
*
|
|
26645
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26646
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26647
|
+
*/
|
|
26648
|
+
durability: "session"
|
|
26047
26649
|
};
|
|
26048
26650
|
var UserSummarySchema = object({
|
|
26049
26651
|
id: string(),
|
|
@@ -26377,7 +26979,14 @@ var vacuumControlCapability = {
|
|
|
26377
26979
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
26378
26980
|
* slice for live state + battery + fan-speed changes.
|
|
26379
26981
|
*/
|
|
26380
|
-
runtimeState: VacuumControlStatusSchema
|
|
26982
|
+
runtimeState: VacuumControlStatusSchema,
|
|
26983
|
+
/**
|
|
26984
|
+
* Runtime-state durability: **session** — as `media-player` — a restored `state: cleaning` is a robot that is not cleaning.
|
|
26985
|
+
*
|
|
26986
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26987
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26988
|
+
*/
|
|
26989
|
+
durability: "session"
|
|
26381
26990
|
};
|
|
26382
26991
|
var ValveStatusSchema = object({
|
|
26383
26992
|
/** Lifecycle state of the valve. */
|
|
@@ -26429,7 +27038,14 @@ var valveCapability = {
|
|
|
26429
27038
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
26430
27039
|
* slice for live position changes during a move.
|
|
26431
27040
|
*/
|
|
26432
|
-
runtimeState: ValveStatusSchema
|
|
27041
|
+
runtimeState: ValveStatusSchema,
|
|
27042
|
+
/**
|
|
27043
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
27044
|
+
*
|
|
27045
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27046
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27047
|
+
*/
|
|
27048
|
+
durability: "session"
|
|
26433
27049
|
};
|
|
26434
27050
|
/**
|
|
26435
27051
|
* Vibration / shake / impact sensor. Drives Home Assistant
|
|
@@ -26451,7 +27067,17 @@ var vibrationCapability = {
|
|
|
26451
27067
|
schema: VibrationStatusSchema,
|
|
26452
27068
|
kind: "push"
|
|
26453
27069
|
},
|
|
26454
|
-
runtimeState: VibrationStatusSchema
|
|
27070
|
+
runtimeState: VibrationStatusSchema,
|
|
27071
|
+
/**
|
|
27072
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
27073
|
+
*
|
|
27074
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27075
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27076
|
+
*/
|
|
27077
|
+
durability: "restored",
|
|
27078
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27079
|
+
* whether persisting is worth a SQLite commit. */
|
|
27080
|
+
volatileStateFields: ["lastChangedAt"]
|
|
26455
27081
|
};
|
|
26456
27082
|
/**
|
|
26457
27083
|
* Water heater / boiler cap. Models HA `water_heater.*` entities — a
|
|
@@ -26525,7 +27151,14 @@ var waterHeaterCapability = {
|
|
|
26525
27151
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
26526
27152
|
* slice for live temperature / mode / away changes.
|
|
26527
27153
|
*/
|
|
26528
|
-
runtimeState: WaterHeaterStatusSchema
|
|
27154
|
+
runtimeState: WaterHeaterStatusSchema,
|
|
27155
|
+
/**
|
|
27156
|
+
* Runtime-state durability: **session** — as `climate-control`.
|
|
27157
|
+
*
|
|
27158
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27159
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27160
|
+
*/
|
|
27161
|
+
durability: "session"
|
|
26529
27162
|
};
|
|
26530
27163
|
/**
|
|
26531
27164
|
* Weather provider cap. Models HA `weather.*` entities — a read-only
|
|
@@ -26584,7 +27217,14 @@ var weatherCapability = {
|
|
|
26584
27217
|
* Runtime-state slice — mirrored by the kernel. The UI reads the
|
|
26585
27218
|
* current conditions directly from the slice on each weather push.
|
|
26586
27219
|
*/
|
|
26587
|
-
runtimeState: WeatherStatusSchema
|
|
27220
|
+
runtimeState: WeatherStatusSchema,
|
|
27221
|
+
/**
|
|
27222
|
+
* Runtime-state durability: **session** — a forecast is stale the moment the hub is down; the provider re-fetches on connect.
|
|
27223
|
+
*
|
|
27224
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27225
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27226
|
+
*/
|
|
27227
|
+
durability: "session"
|
|
26588
27228
|
};
|
|
26589
27229
|
/**
|
|
26590
27230
|
* Per-zone occupancy aggregation produced by the analytics frame
|
|
@@ -26746,7 +27386,14 @@ var zoneAnalyticsCapability = {
|
|
|
26746
27386
|
* automatically; the explicit `getCurrentSnapshot` cap method is
|
|
26747
27387
|
* still useful for one-off polls without a subscription.
|
|
26748
27388
|
*/
|
|
26749
|
-
runtimeState: CameraOccupancySnapshotSchema
|
|
27389
|
+
runtimeState: CameraOccupancySnapshotSchema,
|
|
27390
|
+
/**
|
|
27391
|
+
* Runtime-state durability: **session** — per-frame analytics; with `audio-metrics` it is ~90 % of the offered write rate. Re-derived on the next frame.
|
|
27392
|
+
*
|
|
27393
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27394
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27395
|
+
*/
|
|
27396
|
+
durability: "session"
|
|
26750
27397
|
};
|
|
26751
27398
|
/**
|
|
26752
27399
|
* Stages a {@link ZoneRule} can apply to. Discriminator on the rules
|
|
@@ -26824,7 +27471,14 @@ var zoneRulesCapability = {
|
|
|
26824
27471
|
motion: array(ZoneRuleSchema).readonly(),
|
|
26825
27472
|
detection: array(ZoneRuleSchema).readonly(),
|
|
26826
27473
|
package: array(ZoneRuleSchema).readonly()
|
|
26827
|
-
})
|
|
27474
|
+
}),
|
|
27475
|
+
/**
|
|
27476
|
+
* Runtime-state durability: **restored** — operator intent, mutation-only, same argument as `zones`.
|
|
27477
|
+
*
|
|
27478
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27479
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27480
|
+
*/
|
|
27481
|
+
durability: "restored"
|
|
26828
27482
|
};
|
|
26829
27483
|
/**
|
|
26830
27484
|
* Accessory device helpers — shared across drivers.
|
|
@@ -33511,6 +34165,7 @@ Object.freeze({
|
|
|
33511
34165
|
"network-access": "ingress",
|
|
33512
34166
|
"smtp-provider": "email"
|
|
33513
34167
|
});
|
|
34168
|
+
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
33514
34169
|
new Set(["devices", "classes"]);
|
|
33515
34170
|
/**
|
|
33516
34171
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|