@camstack/addon-provider-rademacher 0.2.14 → 0.2.16
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
|
@@ -11755,7 +11755,14 @@ var cameraStreamsCapability = {
|
|
|
11755
11755
|
low: string().optional()
|
|
11756
11756
|
}),
|
|
11757
11757
|
lastChangedAt: number()
|
|
11758
|
-
})
|
|
11758
|
+
}),
|
|
11759
|
+
/**
|
|
11760
|
+
* 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.
|
|
11761
|
+
*
|
|
11762
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
11763
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
11764
|
+
*/
|
|
11765
|
+
durability: "session"
|
|
11759
11766
|
};
|
|
11760
11767
|
/** Where a block runs. The operator chooses — a block driving a device on an
|
|
11761
11768
|
* agent is the reason placement is not fixed to the hub. */
|
|
@@ -12316,6 +12323,13 @@ var deviceDiscoveryCapability = {
|
|
|
12316
12323
|
kind: "poll"
|
|
12317
12324
|
},
|
|
12318
12325
|
runtimeState: DeviceDiscoveryStatusSchema.extend({ lastFetchedAt: number().int().nonnegative() }),
|
|
12326
|
+
/**
|
|
12327
|
+
* Runtime-state durability: **session** — 5.7 KB of scan output on the largest device, fully re-derivable by re-scanning.
|
|
12328
|
+
*
|
|
12329
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
12330
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
12331
|
+
*/
|
|
12332
|
+
durability: "session",
|
|
12319
12333
|
methods: {
|
|
12320
12334
|
/**
|
|
12321
12335
|
* Snapshot of the current `discovered` list. Returns the
|
|
@@ -14185,11 +14199,33 @@ var NotificationFormatSchema = _enum([
|
|
|
14185
14199
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
14186
14200
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
14187
14201
|
* differently.
|
|
14202
|
+
*
|
|
14203
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
14204
|
+
*
|
|
14205
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
14206
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
14207
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
14208
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
14209
|
+
* decides its glyph, which is the only place that decision can be made
|
|
14210
|
+
* honestly.
|
|
14211
|
+
*
|
|
14212
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
14213
|
+
* `disarm` straight through; iOS feeds that string to
|
|
14214
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
14215
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
14216
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
14217
|
+
*
|
|
14218
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
14219
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
14220
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
14221
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
14222
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
14188
14223
|
*/
|
|
14189
14224
|
var NotificationActionIconSchema = _enum([
|
|
14190
14225
|
"acknowledge",
|
|
14191
14226
|
"dismiss",
|
|
14192
14227
|
"silence",
|
|
14228
|
+
"snooze",
|
|
14193
14229
|
"view",
|
|
14194
14230
|
"play",
|
|
14195
14231
|
"open",
|
|
@@ -14197,9 +14233,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
14197
14233
|
"lock",
|
|
14198
14234
|
"unlock",
|
|
14199
14235
|
"arm",
|
|
14236
|
+
"arm-home",
|
|
14237
|
+
"arm-away",
|
|
14238
|
+
"arm-night",
|
|
14200
14239
|
"disarm",
|
|
14201
14240
|
"light",
|
|
14202
|
-
"alert"
|
|
14241
|
+
"alert",
|
|
14242
|
+
"camera"
|
|
14203
14243
|
]);
|
|
14204
14244
|
/** A single tap-through action button. */
|
|
14205
14245
|
var NotificationActionSchema = object({
|
|
@@ -14215,7 +14255,23 @@ var NotificationActionSchema = object({
|
|
|
14215
14255
|
* else — see `notification-center/action-token.ts` for what that does and
|
|
14216
14256
|
* does not buy.
|
|
14217
14257
|
*/
|
|
14218
|
-
destructive: boolean().optional()
|
|
14258
|
+
destructive: boolean().optional(),
|
|
14259
|
+
/**
|
|
14260
|
+
* How the tap should REACH the url.
|
|
14261
|
+
*
|
|
14262
|
+
* `navigate` (absent, and every button authored before this field) opens it:
|
|
14263
|
+
* the phone leaves the notification and shows whatever the callback returns.
|
|
14264
|
+
* That is right for a button whose answer the operator wants to read.
|
|
14265
|
+
*
|
|
14266
|
+
* `background` fires it as a POST and stays put. It exists for the buttons
|
|
14267
|
+
* whose whole point is not to interrupt — "silence this for 30 minutes" is
|
|
14268
|
+
* an answer to the notification, and being thrown into a browser tab to
|
|
14269
|
+
* confirm it costs more attention than the notification did. A backend that
|
|
14270
|
+
* cannot do a background call renders it as an ordinary link (the adapters
|
|
14271
|
+
* fall back rather than dropping the button), so this is a preference, never
|
|
14272
|
+
* a requirement.
|
|
14273
|
+
*/
|
|
14274
|
+
mode: _enum(["navigate", "background"]).optional()
|
|
14219
14275
|
});
|
|
14220
14276
|
/**
|
|
14221
14277
|
* The canonical notification. `body` is the only hard field (Apprise model).
|
|
@@ -14383,6 +14439,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
14383
14439
|
targetId: string(),
|
|
14384
14440
|
enabled: boolean()
|
|
14385
14441
|
}), _void(), { kind: "mutation" });
|
|
14442
|
+
new Set([
|
|
14443
|
+
{
|
|
14444
|
+
id: "person",
|
|
14445
|
+
name: "Person"
|
|
14446
|
+
},
|
|
14447
|
+
{
|
|
14448
|
+
id: "vehicle",
|
|
14449
|
+
name: "Vehicle"
|
|
14450
|
+
},
|
|
14451
|
+
{
|
|
14452
|
+
id: "animal",
|
|
14453
|
+
name: "Animal"
|
|
14454
|
+
},
|
|
14455
|
+
{
|
|
14456
|
+
id: "package",
|
|
14457
|
+
name: "Package"
|
|
14458
|
+
}
|
|
14459
|
+
].map((l) => l.id));
|
|
14386
14460
|
var COCO_TO_MACRO = {
|
|
14387
14461
|
mapping: {
|
|
14388
14462
|
person: "person",
|
|
@@ -15067,7 +15141,17 @@ var alarmPanelCapability = {
|
|
|
15067
15141
|
* full slice; renders an arm button per `availableModes` entry and
|
|
15068
15142
|
* a PIN field iff `requiresCode === true`.
|
|
15069
15143
|
*/
|
|
15070
|
-
runtimeState: AlarmPanelStatusSchema
|
|
15144
|
+
runtimeState: AlarmPanelStatusSchema,
|
|
15145
|
+
/**
|
|
15146
|
+
* Runtime-state durability: **restored** — armed state is the one thing a panel must not lose across a restart.
|
|
15147
|
+
*
|
|
15148
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
15149
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
15150
|
+
*/
|
|
15151
|
+
durability: "restored",
|
|
15152
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
15153
|
+
* whether persisting is worth a SQLite commit. */
|
|
15154
|
+
volatileStateFields: ["lastChangedAt"]
|
|
15071
15155
|
};
|
|
15072
15156
|
/**
|
|
15073
15157
|
* Shared geometry vocabulary for on-frame shape caps — privacy-mask,
|
|
@@ -15208,6 +15292,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
15208
15292
|
"alarm-triggered",
|
|
15209
15293
|
"alarm-armed",
|
|
15210
15294
|
"alarm-disarmed",
|
|
15295
|
+
"alarm-arming",
|
|
15296
|
+
"alarm-arm-refused",
|
|
15211
15297
|
"camera-online",
|
|
15212
15298
|
"camera-offline",
|
|
15213
15299
|
"camera-disabled",
|
|
@@ -15244,6 +15330,9 @@ var NcSystemEventConditionSchema = object({
|
|
|
15244
15330
|
nodeIds: array(string().min(1)).min(1).optional(),
|
|
15245
15331
|
packageNames: array(string().min(1)).min(1).optional()
|
|
15246
15332
|
});
|
|
15333
|
+
/** Hard ceiling on a window (24h). A snooze that could not expire would be an
|
|
15334
|
+
* outage the operator asked for once and forgot. */
|
|
15335
|
+
var NC_SNOOZE_MAX_MINUTES = 1440;
|
|
15247
15336
|
/** Weekly schedule — OR of windows; absence on the rule = always active. */
|
|
15248
15337
|
var NcScheduleSchema = object({
|
|
15249
15338
|
windows: array(object({
|
|
@@ -15620,15 +15709,15 @@ var NcConditionsSchema = object({
|
|
|
15620
15709
|
* (an `immediate` rule naming an `audio-*` class, one notification per
|
|
15621
15710
|
* classified sample) stays exactly as it was for rules that already use it.
|
|
15622
15711
|
*
|
|
15623
|
-
*
|
|
15624
|
-
* rather than an
|
|
15625
|
-
* (`camstack/src/data/notification-center.ts`, guarded by
|
|
15626
|
-
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor
|
|
15712
|
+
* In {@link NC_CONDITION_CATALOG} since P2, and the ORDER it got there is the
|
|
15713
|
+
* rule rather than an accident: the viewer mirrors the descriptor enums BY
|
|
15714
|
+
* HAND (`camstack/src/data/notification-center.ts`, guarded by
|
|
15715
|
+
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor strips the
|
|
15627
15716
|
* condition fields it does not know when a rule is saved from the phone.
|
|
15628
15717
|
* Publishing an editor for a condition the app cannot round-trip is how an
|
|
15629
|
-
* operator loses a rule's conditions by opening it — so the
|
|
15630
|
-
*
|
|
15631
|
-
*
|
|
15718
|
+
* operator loses a rule's conditions by opening it — so the viewer mirror
|
|
15719
|
+
* (P3, shipped) went FIRST, and the descriptor an editor renders from
|
|
15720
|
+
* follows here.
|
|
15632
15721
|
*/
|
|
15633
15722
|
audio: NcAudioConditionSchema.optional()
|
|
15634
15723
|
});
|
|
@@ -15864,6 +15953,30 @@ var NcRuleInputSchema = object({
|
|
|
15864
15953
|
*/
|
|
15865
15954
|
snoozeAllowGlobal: boolean().optional(),
|
|
15866
15955
|
/**
|
|
15956
|
+
* The snooze durations THIS rule's notification offers as buttons, in
|
|
15957
|
+
* minutes.
|
|
15958
|
+
*
|
|
15959
|
+
* Three states, and all three are distinct — which is exactly why this is
|
|
15960
|
+
* `.optional()` and never `.default()`. A Zod default does not run on the
|
|
15961
|
+
* addon cap path (three production failures in one day), so a schema default
|
|
15962
|
+
* would collapse the first two:
|
|
15963
|
+
*
|
|
15964
|
+
* | value | meaning |
|
|
15965
|
+
* | --- | --- |
|
|
15966
|
+
* | absent | the operator never said ⇒ {@link NC_DEFAULT_SNOOZE_MINUTES} |
|
|
15967
|
+
* | `[]` | **no snooze buttons on this rule** — the explicit override |
|
|
15968
|
+
* | a list | these choices, de-duplicated and sorted, at most four |
|
|
15969
|
+
*
|
|
15970
|
+
* `.max(4)` because the notifier's own action budget is small (ntfy allows
|
|
15971
|
+
* three buttons in total) and a rule that spent it all on snooze choices
|
|
15972
|
+
* would push its own tap-through actions off the notification.
|
|
15973
|
+
*
|
|
15974
|
+
* An empty list is NOT an alarm exemption: a rule the alarm is about, or
|
|
15975
|
+
* that arms the panel, is exempt automatically and cannot be silenced by a
|
|
15976
|
+
* window from anywhere (D133).
|
|
15977
|
+
*/
|
|
15978
|
+
snoozeOptions: array(number().int().min(1).max(NC_SNOOZE_MAX_MINUTES)).max(4).optional(),
|
|
15979
|
+
/**
|
|
15867
15980
|
* Devices this rule ACTUATES — arm the alarm, open a gate, turn on a light.
|
|
15868
15981
|
*
|
|
15869
15982
|
* This is what makes the rule set the alarm's trigger set without the alarm
|
|
@@ -15963,6 +16076,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
15963
16076
|
"device",
|
|
15964
16077
|
"package",
|
|
15965
16078
|
"occupancy",
|
|
16079
|
+
"audio",
|
|
15966
16080
|
"system"
|
|
15967
16081
|
]),
|
|
15968
16082
|
label: string(),
|
|
@@ -15981,6 +16095,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
15981
16095
|
"crossingSelect",
|
|
15982
16096
|
"polygonDraw",
|
|
15983
16097
|
"occupancy",
|
|
16098
|
+
"audio",
|
|
15984
16099
|
"deviceState",
|
|
15985
16100
|
"systemEvent"
|
|
15986
16101
|
]),
|
|
@@ -16132,7 +16247,20 @@ var NcSnoozeInputSchema = object({
|
|
|
16132
16247
|
ruleId: string().optional(),
|
|
16133
16248
|
/** Required when `scope: 'device'`. */
|
|
16134
16249
|
deviceId: number().int().optional(),
|
|
16135
|
-
|
|
16250
|
+
/**
|
|
16251
|
+
* Narrow the window to these subject classes — "the cat, not the person".
|
|
16252
|
+
*
|
|
16253
|
+
* ORTHOGONAL to `scope`, deliberately, and absent means EVERY class: that is
|
|
16254
|
+
* what every window authored before this field meant, so no persisted row
|
|
16255
|
+
* changes meaning and no client has to learn anything to keep working.
|
|
16256
|
+
*
|
|
16257
|
+
* It is what makes the window's real key `(deviceId, classes[])` and lets it
|
|
16258
|
+
* cross rules (D133): the operator points at a camera and a kind of thing,
|
|
16259
|
+
* not at whichever of their four rules happened to produce the notification
|
|
16260
|
+
* they are dismissing.
|
|
16261
|
+
*/
|
|
16262
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
16263
|
+
durationMinutes: number().int().min(1).max(NC_SNOOZE_MAX_MINUTES),
|
|
16136
16264
|
/**
|
|
16137
16265
|
* Silence this for EVERY recipient, not just the caller. Permission is
|
|
16138
16266
|
* checked server-side (the rule's `snoozeAllowGlobal`, or admin for the
|
|
@@ -16157,6 +16285,10 @@ var NcSnoozeSchema = object({
|
|
|
16157
16285
|
scope: NcSnoozeScopeSchema,
|
|
16158
16286
|
ruleId: string().optional(),
|
|
16159
16287
|
deviceId: number().int().optional(),
|
|
16288
|
+
/** Subject classes this window covers. ABSENT = every class — see
|
|
16289
|
+
* {@link NcSnoozeInputSchema.shape.classes}. Lives in the JSON blob and has
|
|
16290
|
+
* no SQLite column: nothing queries a window by class. */
|
|
16291
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
16160
16292
|
startedAt: number(),
|
|
16161
16293
|
/** Exclusive: at exactly this instant the snooze is over. Expiry is a
|
|
16162
16294
|
* COMPARISON, not a job — no sweeper can leave the operator silenced. */
|
|
@@ -18257,7 +18389,14 @@ var zonesCapability = {
|
|
|
18257
18389
|
* handle. Slice shape is `{ zones: Zone[] }` so future extensions
|
|
18258
18390
|
* (e.g. zone groupings) can sit alongside the polygon list.
|
|
18259
18391
|
*/
|
|
18260
|
-
runtimeState: object({ zones: array(ZoneSchema).readonly() })
|
|
18392
|
+
runtimeState: object({ zones: array(ZoneSchema).readonly() }),
|
|
18393
|
+
/**
|
|
18394
|
+
* 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.
|
|
18395
|
+
*
|
|
18396
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
18397
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
18398
|
+
*/
|
|
18399
|
+
durability: "restored"
|
|
18261
18400
|
};
|
|
18262
18401
|
/**
|
|
18263
18402
|
* A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
|
|
@@ -18427,6 +18566,22 @@ var detectionFpsField = {
|
|
|
18427
18566
|
default: 10,
|
|
18428
18567
|
step: 1
|
|
18429
18568
|
};
|
|
18569
|
+
/**
|
|
18570
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
18571
|
+
*
|
|
18572
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
18573
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
18574
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
18575
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
18576
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
18577
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
18578
|
+
*
|
|
18579
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
18580
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
18581
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
18582
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
18583
|
+
* that ships with an addon deploy.
|
|
18584
|
+
*/
|
|
18430
18585
|
var occupancyRecheckSecField = {
|
|
18431
18586
|
min: 0,
|
|
18432
18587
|
max: 300,
|
|
@@ -18628,15 +18783,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
18628
18783
|
*/
|
|
18629
18784
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
18630
18785
|
/**
|
|
18631
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
18632
|
-
*
|
|
18633
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
18634
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
18635
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
18786
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
18787
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
18636
18788
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
18637
18789
|
* (and only render) when this is enabled.
|
|
18638
|
-
|
|
18639
|
-
|
|
18790
|
+
*
|
|
18791
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
18792
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
18793
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
18794
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
18795
|
+
* object is counted only while the stationary registry holds it, and the
|
|
18796
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
18797
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
18798
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
18799
|
+
*/
|
|
18800
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
18640
18801
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
18641
18802
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
18642
18803
|
/**
|
|
@@ -21056,7 +21217,17 @@ var airQualitySensorCapability = {
|
|
|
21056
21217
|
schema: AirQualitySensorStatusSchema,
|
|
21057
21218
|
kind: "push"
|
|
21058
21219
|
},
|
|
21059
|
-
runtimeState: AirQualitySensorStatusSchema
|
|
21220
|
+
runtimeState: AirQualitySensorStatusSchema,
|
|
21221
|
+
/**
|
|
21222
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
21223
|
+
*
|
|
21224
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21225
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21226
|
+
*/
|
|
21227
|
+
durability: "restored",
|
|
21228
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21229
|
+
* whether persisting is worth a SQLite commit. */
|
|
21230
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
21060
21231
|
};
|
|
21061
21232
|
/**
|
|
21062
21233
|
* Ambient illuminance reading in lux. Drives Home Assistant `sensor`
|
|
@@ -21088,7 +21259,17 @@ var ambientLightSensorCapability = {
|
|
|
21088
21259
|
schema: AmbientLightSensorStatusSchema,
|
|
21089
21260
|
kind: "push"
|
|
21090
21261
|
},
|
|
21091
|
-
runtimeState: AmbientLightSensorStatusSchema
|
|
21262
|
+
runtimeState: AmbientLightSensorStatusSchema,
|
|
21263
|
+
/**
|
|
21264
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
21265
|
+
*
|
|
21266
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21267
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21268
|
+
*/
|
|
21269
|
+
durability: "restored",
|
|
21270
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21271
|
+
* whether persisting is worth a SQLite commit. */
|
|
21272
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
21092
21273
|
};
|
|
21093
21274
|
/**
|
|
21094
21275
|
* Per-class audio metrics aggregated over a sliding window.
|
|
@@ -21206,7 +21387,14 @@ var audioMetricsCapability = {
|
|
|
21206
21387
|
}), AudioMetricsHistorySchema)
|
|
21207
21388
|
},
|
|
21208
21389
|
/** Reactive runtime-state mirror — live `device.state.audioMetrics.value`. */
|
|
21209
|
-
runtimeState: AudioMetricsSnapshotSchema
|
|
21390
|
+
runtimeState: AudioMetricsSnapshotSchema,
|
|
21391
|
+
/**
|
|
21392
|
+
* 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.
|
|
21393
|
+
*
|
|
21394
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21395
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21396
|
+
*/
|
|
21397
|
+
durability: "session"
|
|
21210
21398
|
};
|
|
21211
21399
|
/**
|
|
21212
21400
|
* Automation-control cap. Models HA `automation.*` entities on
|
|
@@ -21268,7 +21456,14 @@ var automationControlCapability = {
|
|
|
21268
21456
|
* reads `enabled` (toggle) + `isRunning` (spinner) + `lastError`
|
|
21269
21457
|
* (badge) directly.
|
|
21270
21458
|
*/
|
|
21271
|
-
runtimeState: AutomationControlStatusSchema
|
|
21459
|
+
runtimeState: AutomationControlStatusSchema,
|
|
21460
|
+
/**
|
|
21461
|
+
* 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.
|
|
21462
|
+
*
|
|
21463
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21464
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21465
|
+
*/
|
|
21466
|
+
durability: "session"
|
|
21272
21467
|
};
|
|
21273
21468
|
/**
|
|
21274
21469
|
* Battery status snapshot. Emitted by providers whose device is
|
|
@@ -21374,7 +21569,17 @@ onStatusChanged: { data: object({
|
|
|
21374
21569
|
* via `device.runtimeState.getCapState('battery')` regardless of
|
|
21375
21570
|
* the underlying driver.
|
|
21376
21571
|
*/
|
|
21377
|
-
runtimeState: BatteryStatusSchema
|
|
21572
|
+
runtimeState: BatteryStatusSchema,
|
|
21573
|
+
/**
|
|
21574
|
+
* 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.
|
|
21575
|
+
*
|
|
21576
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21577
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21578
|
+
*/
|
|
21579
|
+
durability: "restored",
|
|
21580
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21581
|
+
* whether persisting is worth a SQLite commit. */
|
|
21582
|
+
volatileStateFields: ["lastUpdated"]
|
|
21378
21583
|
};
|
|
21379
21584
|
/**
|
|
21380
21585
|
* Generic boolean sensor — last-resort fallback when no domain-
|
|
@@ -21403,7 +21608,17 @@ var binaryCapability = {
|
|
|
21403
21608
|
schema: BinaryStatusSchema,
|
|
21404
21609
|
kind: "push"
|
|
21405
21610
|
},
|
|
21406
|
-
runtimeState: BinaryStatusSchema
|
|
21611
|
+
runtimeState: BinaryStatusSchema,
|
|
21612
|
+
/**
|
|
21613
|
+
* Runtime-state durability: **restored** — transition-driven sensor state; the restored value gives the boot comparison.
|
|
21614
|
+
*
|
|
21615
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21616
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21617
|
+
*/
|
|
21618
|
+
durability: "restored",
|
|
21619
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21620
|
+
* whether persisting is worth a SQLite commit. */
|
|
21621
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21407
21622
|
};
|
|
21408
21623
|
/**
|
|
21409
21624
|
* Dimmable-light brightness control. Co-exists with `switch` on the
|
|
@@ -21456,7 +21671,14 @@ onBrightnessChanged: { data: object({
|
|
|
21456
21671
|
* by the kernel. Read via `device.state.brightness.value` so UI
|
|
21457
21672
|
* sliders surface the current level without polling the provider.
|
|
21458
21673
|
*/
|
|
21459
|
-
runtimeState: BrightnessStatusSchema
|
|
21674
|
+
runtimeState: BrightnessStatusSchema,
|
|
21675
|
+
/**
|
|
21676
|
+
* Runtime-state durability: **session** — live lamp state, re-published by the provider on connect.
|
|
21677
|
+
*
|
|
21678
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21679
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21680
|
+
*/
|
|
21681
|
+
durability: "session"
|
|
21460
21682
|
};
|
|
21461
21683
|
DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _void(), {
|
|
21462
21684
|
kind: "mutation",
|
|
@@ -21544,7 +21766,17 @@ var carbonMonoxideCapability = {
|
|
|
21544
21766
|
schema: CarbonMonoxideStatusSchema,
|
|
21545
21767
|
kind: "push"
|
|
21546
21768
|
},
|
|
21547
|
-
runtimeState: CarbonMonoxideStatusSchema
|
|
21769
|
+
runtimeState: CarbonMonoxideStatusSchema,
|
|
21770
|
+
/**
|
|
21771
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
21772
|
+
*
|
|
21773
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21774
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21775
|
+
*/
|
|
21776
|
+
durability: "restored",
|
|
21777
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21778
|
+
* whether persisting is worth a SQLite commit. */
|
|
21779
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21548
21780
|
};
|
|
21549
21781
|
/**
|
|
21550
21782
|
* HVAC / climate control cap. Models the full surface of a HA
|
|
@@ -21704,7 +21936,14 @@ var climateControlCapability = {
|
|
|
21704
21936
|
* the full slice via `device.state.climate-control.value` and refresh
|
|
21705
21937
|
* on every push without re-querying the provider.
|
|
21706
21938
|
*/
|
|
21707
|
-
runtimeState: ClimateControlStatusSchema
|
|
21939
|
+
runtimeState: ClimateControlStatusSchema,
|
|
21940
|
+
/**
|
|
21941
|
+
* Runtime-state durability: **session** — as `brightness`; `currentTemp` moves continuously and is re-published on connect.
|
|
21942
|
+
*
|
|
21943
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21944
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21945
|
+
*/
|
|
21946
|
+
durability: "session"
|
|
21708
21947
|
};
|
|
21709
21948
|
/**
|
|
21710
21949
|
* Color-light cap. Coexists with `switch` (on/off) and `brightness`
|
|
@@ -21814,7 +22053,14 @@ onColorChanged: { data: object({
|
|
|
21814
22053
|
* kernel. Read via `device.state.color.value` so UI pickers surface
|
|
21815
22054
|
* the current chromaticity without polling the provider.
|
|
21816
22055
|
*/
|
|
21817
|
-
runtimeState: ColorStatusSchema
|
|
22056
|
+
runtimeState: ColorStatusSchema,
|
|
22057
|
+
/**
|
|
22058
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
22059
|
+
*
|
|
22060
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22061
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22062
|
+
*/
|
|
22063
|
+
durability: "session"
|
|
21818
22064
|
};
|
|
21819
22065
|
var ConnectionTestOutcomeSchema = discriminatedUnion("outcome", [
|
|
21820
22066
|
object({
|
|
@@ -21872,7 +22118,17 @@ var connectivityCapability = {
|
|
|
21872
22118
|
schema: ConnectivityStatusSchema,
|
|
21873
22119
|
kind: "push"
|
|
21874
22120
|
},
|
|
21875
|
-
runtimeState: ConnectivityStatusSchema
|
|
22121
|
+
runtimeState: ConnectivityStatusSchema,
|
|
22122
|
+
/**
|
|
22123
|
+
* Runtime-state durability: **restored** — same shape and same argument as `device-status`, for links rather than devices.
|
|
22124
|
+
*
|
|
22125
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22126
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22127
|
+
*/
|
|
22128
|
+
durability: "restored",
|
|
22129
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22130
|
+
* whether persisting is worth a SQLite commit. */
|
|
22131
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21876
22132
|
};
|
|
21877
22133
|
/**
|
|
21878
22134
|
* Generic device-consumables capability — surfaces a device's
|
|
@@ -21954,7 +22210,14 @@ reset: method(object({
|
|
|
21954
22210
|
}
|
|
21955
22211
|
}
|
|
21956
22212
|
},
|
|
21957
|
-
runtimeState: ConsumablesStatusSchema.extend({ lastFetchedAt: number() })
|
|
22213
|
+
runtimeState: ConsumablesStatusSchema.extend({ lastFetchedAt: number() }),
|
|
22214
|
+
/**
|
|
22215
|
+
* Runtime-state durability: **session** — the authority is the appliance; the provider re-reads the whole item array on connect.
|
|
22216
|
+
*
|
|
22217
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22218
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22219
|
+
*/
|
|
22220
|
+
durability: "session"
|
|
21958
22221
|
};
|
|
21959
22222
|
/**
|
|
21960
22223
|
* Door / window / opening / garage / valve contact sensor. Boolean
|
|
@@ -21985,7 +22248,17 @@ var contactCapability = {
|
|
|
21985
22248
|
schema: ContactStatusSchema,
|
|
21986
22249
|
kind: "push"
|
|
21987
22250
|
},
|
|
21988
|
-
runtimeState: ContactStatusSchema
|
|
22251
|
+
runtimeState: ContactStatusSchema,
|
|
22252
|
+
/**
|
|
22253
|
+
* Runtime-state durability: **restored** — a door left open across a restart must still read open.
|
|
22254
|
+
*
|
|
22255
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22256
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22257
|
+
*/
|
|
22258
|
+
durability: "restored",
|
|
22259
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22260
|
+
* whether persisting is worth a SQLite commit. */
|
|
22261
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21989
22262
|
};
|
|
21990
22263
|
/**
|
|
21991
22264
|
* Status slice — flat object (the framework's `runtimeState` contract
|
|
@@ -22091,7 +22364,14 @@ var controlCapability = {
|
|
|
22091
22364
|
* dropdown / text field / date picker) read the slice's discriminant
|
|
22092
22365
|
* and value directly without polling the provider.
|
|
22093
22366
|
*/
|
|
22094
|
-
runtimeState: ControlStatusSchema
|
|
22367
|
+
runtimeState: ControlStatusSchema,
|
|
22368
|
+
/**
|
|
22369
|
+
* Runtime-state durability: **session** — a generic control mirrors an external entity that re-publishes on connect; the options array is re-derived with it.
|
|
22370
|
+
*
|
|
22371
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22372
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22373
|
+
*/
|
|
22374
|
+
durability: "session"
|
|
22095
22375
|
};
|
|
22096
22376
|
var CoverStatusSchema = object({
|
|
22097
22377
|
/** Lifecycle state of the cover. */
|
|
@@ -22152,7 +22432,17 @@ var coverCapability = {
|
|
|
22152
22432
|
* Runtime-state slice — mirrored by the kernel. UI controls watch
|
|
22153
22433
|
* the slice for live position changes during a move.
|
|
22154
22434
|
*/
|
|
22155
|
-
runtimeState: CoverStatusSchema
|
|
22435
|
+
runtimeState: CoverStatusSchema,
|
|
22436
|
+
/**
|
|
22437
|
+
* Runtime-state durability: **restored** — position survives a restart on the device; the mirror should agree at boot rather than read blank.
|
|
22438
|
+
*
|
|
22439
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22440
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22441
|
+
*/
|
|
22442
|
+
durability: "restored",
|
|
22443
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22444
|
+
* whether persisting is worth a SQLite commit. */
|
|
22445
|
+
volatileStateFields: ["lastChangedAt"]
|
|
22156
22446
|
};
|
|
22157
22447
|
/**
|
|
22158
22448
|
* Vendor-neutral day/night (IR-cut) control — the per-camera config cap
|
|
@@ -22246,7 +22536,17 @@ var dayNightCapability = {
|
|
|
22246
22536
|
schema: DayNightStatusSchema,
|
|
22247
22537
|
kind: "poll"
|
|
22248
22538
|
},
|
|
22249
|
-
runtimeState: DayNightStatusSchema
|
|
22539
|
+
runtimeState: DayNightStatusSchema,
|
|
22540
|
+
/**
|
|
22541
|
+
* Runtime-state durability: **restored** — operator-set IR-cut behaviour; mutation-driven.
|
|
22542
|
+
*
|
|
22543
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22544
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22545
|
+
*/
|
|
22546
|
+
durability: "restored",
|
|
22547
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22548
|
+
* whether persisting is worth a SQLite commit. */
|
|
22549
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
22250
22550
|
};
|
|
22251
22551
|
/**
|
|
22252
22552
|
* Generic device-level status snapshot. Auto-registered by `BaseDevice`
|
|
@@ -22293,7 +22593,17 @@ onStatusChanged: { data: object({
|
|
|
22293
22593
|
schema: DeviceStatusSchema,
|
|
22294
22594
|
kind: "push"
|
|
22295
22595
|
},
|
|
22296
|
-
runtimeState: DeviceStatusSchema
|
|
22596
|
+
runtimeState: DeviceStatusSchema,
|
|
22597
|
+
/**
|
|
22598
|
+
* 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.
|
|
22599
|
+
*
|
|
22600
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22601
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22602
|
+
*/
|
|
22603
|
+
durability: "restored",
|
|
22604
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22605
|
+
* whether persisting is worth a SQLite commit. */
|
|
22606
|
+
volatileStateFields: ["lastChangedAt"]
|
|
22297
22607
|
};
|
|
22298
22608
|
/**
|
|
22299
22609
|
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
@@ -22355,7 +22665,14 @@ onPressed: { data: DoorbellPressEventSchema } },
|
|
|
22355
22665
|
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
22356
22666
|
* without subscribing.
|
|
22357
22667
|
*/
|
|
22358
|
-
runtimeState: DoorbellStatusSchema
|
|
22668
|
+
runtimeState: DoorbellStatusSchema,
|
|
22669
|
+
/**
|
|
22670
|
+
* 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.
|
|
22671
|
+
*
|
|
22672
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22673
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22674
|
+
*/
|
|
22675
|
+
durability: "restored"
|
|
22359
22676
|
};
|
|
22360
22677
|
/**
|
|
22361
22678
|
* Enum-state sensor — a string value picked from a finite option set.
|
|
@@ -22395,7 +22712,17 @@ var enumSensorCapability = {
|
|
|
22395
22712
|
schema: EnumSensorStatusSchema,
|
|
22396
22713
|
kind: "push"
|
|
22397
22714
|
},
|
|
22398
|
-
runtimeState: EnumSensorStatusSchema
|
|
22715
|
+
runtimeState: EnumSensorStatusSchema,
|
|
22716
|
+
/**
|
|
22717
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`; 80 devices.
|
|
22718
|
+
*
|
|
22719
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22720
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22721
|
+
*/
|
|
22722
|
+
durability: "restored",
|
|
22723
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22724
|
+
* whether persisting is worth a SQLite commit. */
|
|
22725
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
22399
22726
|
};
|
|
22400
22727
|
/**
|
|
22401
22728
|
* Generic stateless event emitter. Installed on a `DeviceType.EventEmitter`
|
|
@@ -22431,7 +22758,14 @@ var eventEmitterCapability = {
|
|
|
22431
22758
|
schema: EventEmitterStatusSchema,
|
|
22432
22759
|
kind: "push"
|
|
22433
22760
|
},
|
|
22434
|
-
runtimeState: EventEmitterStatusSchema
|
|
22761
|
+
runtimeState: EventEmitterStatusSchema,
|
|
22762
|
+
/**
|
|
22763
|
+
* Runtime-state durability: **session** — `eventCountSinceStart` names its own scope.
|
|
22764
|
+
*
|
|
22765
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22766
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22767
|
+
*/
|
|
22768
|
+
durability: "session"
|
|
22435
22769
|
};
|
|
22436
22770
|
var EventItemSchema = object({
|
|
22437
22771
|
id: string(),
|
|
@@ -22712,7 +23046,14 @@ var fanControlCapability = {
|
|
|
22712
23046
|
* Runtime-state slice — mirrored by the kernel. UI fan speed
|
|
22713
23047
|
* sliders read `percentage` for live updates.
|
|
22714
23048
|
*/
|
|
22715
|
-
runtimeState: FanControlStatusSchema
|
|
23049
|
+
runtimeState: FanControlStatusSchema,
|
|
23050
|
+
/**
|
|
23051
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
23052
|
+
*
|
|
23053
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23054
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23055
|
+
*/
|
|
23056
|
+
durability: "session"
|
|
22716
23057
|
};
|
|
22717
23058
|
/**
|
|
22718
23059
|
* Per-device feature/identity probe slice. Holds the runtime-resolved
|
|
@@ -22788,7 +23129,14 @@ onProbeChanged: { data: object({
|
|
|
22788
23129
|
schema: FeatureProbeStatusSchema,
|
|
22789
23130
|
kind: "push"
|
|
22790
23131
|
},
|
|
22791
|
-
runtimeState: FeatureProbeStatusSchema
|
|
23132
|
+
runtimeState: FeatureProbeStatusSchema,
|
|
23133
|
+
/**
|
|
23134
|
+
* 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.
|
|
23135
|
+
*
|
|
23136
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23137
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23138
|
+
*/
|
|
23139
|
+
durability: "session"
|
|
22792
23140
|
};
|
|
22793
23141
|
/**
|
|
22794
23142
|
* Water leak / moisture sensor. Boolean "is liquid currently
|
|
@@ -22815,7 +23163,17 @@ var floodCapability = {
|
|
|
22815
23163
|
schema: FloodStatusSchema,
|
|
22816
23164
|
kind: "push"
|
|
22817
23165
|
},
|
|
22818
|
-
runtimeState: FloodStatusSchema
|
|
23166
|
+
runtimeState: FloodStatusSchema,
|
|
23167
|
+
/**
|
|
23168
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
23169
|
+
*
|
|
23170
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23171
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23172
|
+
*/
|
|
23173
|
+
durability: "restored",
|
|
23174
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23175
|
+
* whether persisting is worth a SQLite commit. */
|
|
23176
|
+
volatileStateFields: ["lastChangedAt"]
|
|
22819
23177
|
};
|
|
22820
23178
|
/**
|
|
22821
23179
|
* Combustible-gas (LPG / methane / hydrogen) alarm sensor. Drives
|
|
@@ -22838,7 +23196,17 @@ var gasCapability = {
|
|
|
22838
23196
|
schema: GasStatusSchema,
|
|
22839
23197
|
kind: "push"
|
|
22840
23198
|
},
|
|
22841
|
-
runtimeState: GasStatusSchema
|
|
23199
|
+
runtimeState: GasStatusSchema,
|
|
23200
|
+
/**
|
|
23201
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
23202
|
+
*
|
|
23203
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23204
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23205
|
+
*/
|
|
23206
|
+
durability: "restored",
|
|
23207
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23208
|
+
* whether persisting is worth a SQLite commit. */
|
|
23209
|
+
volatileStateFields: ["lastChangedAt"]
|
|
22842
23210
|
};
|
|
22843
23211
|
/**
|
|
22844
23212
|
* Humidifier / dehumidifier cap. Models HA `humidifier.*` entities —
|
|
@@ -22914,7 +23282,14 @@ var humidifierCapability = {
|
|
|
22914
23282
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
22915
23283
|
* slice for live humidity / mode changes.
|
|
22916
23284
|
*/
|
|
22917
|
-
runtimeState: HumidifierStatusSchema
|
|
23285
|
+
runtimeState: HumidifierStatusSchema,
|
|
23286
|
+
/**
|
|
23287
|
+
* Runtime-state durability: **session** — as `climate-control`.
|
|
23288
|
+
*
|
|
23289
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23290
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23291
|
+
*/
|
|
23292
|
+
durability: "session"
|
|
22918
23293
|
};
|
|
22919
23294
|
/**
|
|
22920
23295
|
* Single-metric humidity reading. Drives Home Assistant `sensor`
|
|
@@ -22950,7 +23325,17 @@ var humiditySensorCapability = {
|
|
|
22950
23325
|
schema: HumiditySensorStatusSchema,
|
|
22951
23326
|
kind: "push"
|
|
22952
23327
|
},
|
|
22953
|
-
runtimeState: HumiditySensorStatusSchema
|
|
23328
|
+
runtimeState: HumiditySensorStatusSchema,
|
|
23329
|
+
/**
|
|
23330
|
+
* Runtime-state durability: **restored** — as `numeric-sensor` (67 of 75 writes were the clock alone).
|
|
23331
|
+
*
|
|
23332
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23333
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23334
|
+
*/
|
|
23335
|
+
durability: "restored",
|
|
23336
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23337
|
+
* whether persisting is worth a SQLite commit. */
|
|
23338
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
22954
23339
|
};
|
|
22955
23340
|
/**
|
|
22956
23341
|
* Image display cap. Models a single still image exposed by an integration —
|
|
@@ -22988,7 +23373,14 @@ var imageCapability = {
|
|
|
22988
23373
|
* Runtime-state slice — mirrored by the kernel. The UI reads `url`
|
|
22989
23374
|
* directly and renders the still image.
|
|
22990
23375
|
*/
|
|
22991
|
-
runtimeState: ImageStatusSchema
|
|
23376
|
+
runtimeState: ImageStatusSchema,
|
|
23377
|
+
/**
|
|
23378
|
+
* Runtime-state durability: **session** — a snapshot URL is a session-scoped handle; a restored one points at nothing.
|
|
23379
|
+
*
|
|
23380
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23381
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23382
|
+
*/
|
|
23383
|
+
durability: "session"
|
|
22992
23384
|
};
|
|
22993
23385
|
/**
|
|
22994
23386
|
* Vendor-neutral image / picture-adjustment cap — the per-camera config
|
|
@@ -23137,7 +23529,17 @@ var imageSettingsCapability = {
|
|
|
23137
23529
|
schema: ImageSettingsStatusSchema,
|
|
23138
23530
|
kind: "poll"
|
|
23139
23531
|
},
|
|
23140
|
-
runtimeState: ImageSettingsStatusSchema
|
|
23532
|
+
runtimeState: ImageSettingsStatusSchema,
|
|
23533
|
+
/**
|
|
23534
|
+
* Runtime-state durability: **restored** — operator-set camera imaging; mutation-driven.
|
|
23535
|
+
*
|
|
23536
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23537
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23538
|
+
*/
|
|
23539
|
+
durability: "restored",
|
|
23540
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23541
|
+
* whether persisting is worth a SQLite commit. */
|
|
23542
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23141
23543
|
};
|
|
23142
23544
|
/**
|
|
23143
23545
|
* integrations — system-scoped singleton capability for integration
|
|
@@ -23477,7 +23879,14 @@ var lawnMowerControlCapability = {
|
|
|
23477
23879
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
23478
23880
|
* slice for live activity + battery changes.
|
|
23479
23881
|
*/
|
|
23480
|
-
runtimeState: LawnMowerControlStatusSchema
|
|
23882
|
+
runtimeState: LawnMowerControlStatusSchema,
|
|
23883
|
+
/**
|
|
23884
|
+
* Runtime-state durability: **session** — as `vacuum-control`.
|
|
23885
|
+
*
|
|
23886
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23887
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23888
|
+
*/
|
|
23889
|
+
durability: "session"
|
|
23481
23890
|
};
|
|
23482
23891
|
/**
|
|
23483
23892
|
* local-network — hub-only singleton.
|
|
@@ -23683,7 +24092,17 @@ var lockControlCapability = {
|
|
|
23683
24092
|
* read `state` and disable themselves during `locking`/`unlocking`
|
|
23684
24093
|
* transitions.
|
|
23685
24094
|
*/
|
|
23686
|
-
runtimeState: LockControlStatusSchema
|
|
24095
|
+
runtimeState: LockControlStatusSchema,
|
|
24096
|
+
/**
|
|
24097
|
+
* Runtime-state durability: **restored** — a lock left locked must still read locked.
|
|
24098
|
+
*
|
|
24099
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24100
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24101
|
+
*/
|
|
24102
|
+
durability: "restored",
|
|
24103
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24104
|
+
* whether persisting is worth a SQLite commit. */
|
|
24105
|
+
volatileStateFields: ["lastChangedAt"]
|
|
23687
24106
|
};
|
|
23688
24107
|
/**
|
|
23689
24108
|
* Media-player cap. Models HA `media_player.*` (Sonos, Chromecast,
|
|
@@ -23845,7 +24264,14 @@ var mediaPlayerCapability = {
|
|
|
23845
24264
|
* full slice for live now-playing, volume, and progress updates
|
|
23846
24265
|
* without polling.
|
|
23847
24266
|
*/
|
|
23848
|
-
runtimeState: MediaPlayerStatusSchema
|
|
24267
|
+
runtimeState: MediaPlayerStatusSchema,
|
|
24268
|
+
/**
|
|
24269
|
+
* Runtime-state durability: **session** — a restored transport position describes a playback that stopped when the hub did.
|
|
24270
|
+
*
|
|
24271
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24272
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24273
|
+
*/
|
|
24274
|
+
durability: "session"
|
|
23849
24275
|
};
|
|
23850
24276
|
/**
|
|
23851
24277
|
* mesh-network — collection cap for mesh-VPN providers.
|
|
@@ -24109,7 +24535,14 @@ onMotionChanged: { data: MotionOnMotionChangedDataSchema } },
|
|
|
24109
24535
|
* `device.state.motion.value`. Reads never invoke the provider, so
|
|
24110
24536
|
* UIs and other addons can poll the cached state safely.
|
|
24111
24537
|
*/
|
|
24112
|
-
runtimeState: MotionStatusSchema
|
|
24538
|
+
runtimeState: MotionStatusSchema,
|
|
24539
|
+
/**
|
|
24540
|
+
* 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.
|
|
24541
|
+
*
|
|
24542
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24543
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24544
|
+
*/
|
|
24545
|
+
durability: "session"
|
|
24113
24546
|
};
|
|
24114
24547
|
/**
|
|
24115
24548
|
* Motion-trigger toggle for accessory devices.
|
|
@@ -24174,7 +24607,14 @@ var motionTriggerCapability = {
|
|
|
24174
24607
|
schema: MotionTriggerStatusSchema,
|
|
24175
24608
|
kind: "command-driven"
|
|
24176
24609
|
},
|
|
24177
|
-
runtimeState: MotionTriggerRuntimeStateSchema
|
|
24610
|
+
runtimeState: MotionTriggerRuntimeStateSchema,
|
|
24611
|
+
/**
|
|
24612
|
+
* 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.
|
|
24613
|
+
*
|
|
24614
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24615
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24616
|
+
*/
|
|
24617
|
+
durability: "session"
|
|
24178
24618
|
};
|
|
24179
24619
|
/**
|
|
24180
24620
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
@@ -24241,7 +24681,17 @@ var motionZonesCapability = {
|
|
|
24241
24681
|
schema: MotionZoneStatusSchema,
|
|
24242
24682
|
kind: "poll"
|
|
24243
24683
|
},
|
|
24244
|
-
runtimeState: MotionZoneStatusSchema
|
|
24684
|
+
runtimeState: MotionZoneStatusSchema,
|
|
24685
|
+
/**
|
|
24686
|
+
* 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.
|
|
24687
|
+
*
|
|
24688
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24689
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24690
|
+
*/
|
|
24691
|
+
durability: "restored",
|
|
24692
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24693
|
+
* whether persisting is worth a SQLite commit. */
|
|
24694
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24245
24695
|
};
|
|
24246
24696
|
/**
|
|
24247
24697
|
* On-camera AI object detection cap. Surfaces per-device the classes
|
|
@@ -24315,7 +24765,17 @@ var nativeObjectDetectionCapability = {
|
|
|
24315
24765
|
schema: NativeObjectDetectionStatusSchema,
|
|
24316
24766
|
kind: "push"
|
|
24317
24767
|
},
|
|
24318
|
-
runtimeState: NativeObjectDetectionRuntimeStateSchema
|
|
24768
|
+
runtimeState: NativeObjectDetectionRuntimeStateSchema,
|
|
24769
|
+
/**
|
|
24770
|
+
* 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.
|
|
24771
|
+
*
|
|
24772
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24773
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24774
|
+
*/
|
|
24775
|
+
durability: "restored",
|
|
24776
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24777
|
+
* whether persisting is worth a SQLite commit. */
|
|
24778
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24319
24779
|
};
|
|
24320
24780
|
/**
|
|
24321
24781
|
* network-quality — system-scoped singleton capability tracking RTT,
|
|
@@ -24649,7 +25109,14 @@ onSent: { data: object({
|
|
|
24649
25109
|
* form reads `supports` to gate optional fields; history pane reads
|
|
24650
25110
|
* `lastSentAt` / `lastError` / `queueDepth`.
|
|
24651
25111
|
*/
|
|
24652
|
-
runtimeState: NotifierStatusSchema
|
|
25112
|
+
runtimeState: NotifierStatusSchema,
|
|
25113
|
+
/**
|
|
25114
|
+
* Runtime-state durability: **session** — live queue depth and last-send state; a restored queue depth describes a queue that no longer exists.
|
|
25115
|
+
*
|
|
25116
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25117
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25118
|
+
*/
|
|
25119
|
+
durability: "session"
|
|
24653
25120
|
};
|
|
24654
25121
|
/**
|
|
24655
25122
|
* Generic numeric sensor — last-resort fallback when no typed numeric
|
|
@@ -24692,7 +25159,17 @@ var numericSensorCapability = {
|
|
|
24692
25159
|
schema: NumericSensorStatusSchema,
|
|
24693
25160
|
kind: "push"
|
|
24694
25161
|
},
|
|
24695
|
-
runtimeState: NumericSensorStatusSchema
|
|
25162
|
+
runtimeState: NumericSensorStatusSchema,
|
|
25163
|
+
/**
|
|
25164
|
+
* 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.
|
|
25165
|
+
*
|
|
25166
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25167
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25168
|
+
*/
|
|
25169
|
+
durability: "restored",
|
|
25170
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25171
|
+
* whether persisting is worth a SQLite commit. */
|
|
25172
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24696
25173
|
};
|
|
24697
25174
|
/**
|
|
24698
25175
|
* Generic on-screen-display (video overlay) cap. Each camera exposes
|
|
@@ -25077,7 +25554,14 @@ var petFeederCapability = {
|
|
|
25077
25554
|
* the full slice via `device.state.petFeeder.value` and refresh on
|
|
25078
25555
|
* every poll without re-querying the provider.
|
|
25079
25556
|
*/
|
|
25080
|
-
runtimeState: PetFeederStatusSchema
|
|
25557
|
+
runtimeState: PetFeederStatusSchema,
|
|
25558
|
+
/**
|
|
25559
|
+
* Runtime-state durability: **session** — live appliance state re-published on connect.
|
|
25560
|
+
*
|
|
25561
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25562
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25563
|
+
*/
|
|
25564
|
+
durability: "session"
|
|
25081
25565
|
};
|
|
25082
25566
|
var VehicleSchema = object({
|
|
25083
25567
|
id: string(),
|
|
@@ -25389,7 +25873,17 @@ var powerMeterCapability = {
|
|
|
25389
25873
|
schema: PowerMeterStatusSchema,
|
|
25390
25874
|
kind: "push"
|
|
25391
25875
|
},
|
|
25392
|
-
runtimeState: PowerMeterStatusSchema
|
|
25876
|
+
runtimeState: PowerMeterStatusSchema,
|
|
25877
|
+
/**
|
|
25878
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`; `kwhTotal` is an accumulator whose restored value is the baseline.
|
|
25879
|
+
*
|
|
25880
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25881
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25882
|
+
*/
|
|
25883
|
+
durability: "restored",
|
|
25884
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25885
|
+
* whether persisting is worth a SQLite commit. */
|
|
25886
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
25393
25887
|
};
|
|
25394
25888
|
/**
|
|
25395
25889
|
* Presence cap. Models HA `person.*` and `device_tracker.*` entities
|
|
@@ -25446,7 +25940,17 @@ var presenceCapability = {
|
|
|
25446
25940
|
* the map pin is rendered (use `DeviceFeature.PresenceGps` for the
|
|
25447
25941
|
* pre-fetch fast-path check).
|
|
25448
25942
|
*/
|
|
25449
|
-
runtimeState: PresenceStatusSchema
|
|
25943
|
+
runtimeState: PresenceStatusSchema,
|
|
25944
|
+
/**
|
|
25945
|
+
* Runtime-state durability: **restored** — occupancy-relevant: the restored state is what an occupancy rule compares the first post-restart observation against.
|
|
25946
|
+
*
|
|
25947
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25948
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25949
|
+
*/
|
|
25950
|
+
durability: "restored",
|
|
25951
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25952
|
+
* whether persisting is worth a SQLite commit. */
|
|
25953
|
+
volatileStateFields: ["lastChangedAt"]
|
|
25450
25954
|
};
|
|
25451
25955
|
/**
|
|
25452
25956
|
* Atmospheric pressure reading in hectopascals. Drives Home Assistant
|
|
@@ -25482,7 +25986,17 @@ var pressureSensorCapability = {
|
|
|
25482
25986
|
schema: PressureSensorStatusSchema,
|
|
25483
25987
|
kind: "push"
|
|
25484
25988
|
},
|
|
25485
|
-
runtimeState: PressureSensorStatusSchema
|
|
25989
|
+
runtimeState: PressureSensorStatusSchema,
|
|
25990
|
+
/**
|
|
25991
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
25992
|
+
*
|
|
25993
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25994
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25995
|
+
*/
|
|
25996
|
+
durability: "restored",
|
|
25997
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25998
|
+
* whether persisting is worth a SQLite commit. */
|
|
25999
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
25486
26000
|
};
|
|
25487
26001
|
/**
|
|
25488
26002
|
* PRIVACY — what the camera deliberately does not capture. Two planes:
|
|
@@ -25612,7 +26126,17 @@ var privacyMaskCapability = {
|
|
|
25612
26126
|
schema: PrivacyMaskStatusSchema,
|
|
25613
26127
|
kind: "poll"
|
|
25614
26128
|
},
|
|
25615
|
-
runtimeState: PrivacyMaskStatusSchema
|
|
26129
|
+
runtimeState: PrivacyMaskStatusSchema,
|
|
26130
|
+
/**
|
|
26131
|
+
* Runtime-state durability: **restored** — operator-drawn regions, zero real churn — 22 writes in 25 minutes, every one of them the clock.
|
|
26132
|
+
*
|
|
26133
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26134
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26135
|
+
*/
|
|
26136
|
+
durability: "restored",
|
|
26137
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26138
|
+
* whether persisting is worth a SQLite commit. */
|
|
26139
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
25616
26140
|
};
|
|
25617
26141
|
var PtzPresetSchema = object({
|
|
25618
26142
|
id: string(),
|
|
@@ -25778,7 +26302,14 @@ var ptzAutotrackCapability = {
|
|
|
25778
26302
|
* fetch / cache / fallback logic out of the four cap methods —
|
|
25779
26303
|
* they become trampolines over `runtimeState`.
|
|
25780
26304
|
*/
|
|
25781
|
-
runtimeState: PtzAutotrackRuntimeStateSchema
|
|
26305
|
+
runtimeState: PtzAutotrackRuntimeStateSchema,
|
|
26306
|
+
/**
|
|
26307
|
+
* Runtime-state durability: **session** — mirrors the camera's own autotrack config, re-read on connect.
|
|
26308
|
+
*
|
|
26309
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26310
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26311
|
+
*/
|
|
26312
|
+
durability: "session"
|
|
25782
26313
|
};
|
|
25783
26314
|
DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
|
|
25784
26315
|
kind: "mutation",
|
|
@@ -26428,7 +26959,14 @@ var sceneMonitorCapability = {
|
|
|
26428
26959
|
schema: SceneMonitorStatusSchema,
|
|
26429
26960
|
kind: "push"
|
|
26430
26961
|
},
|
|
26431
|
-
runtimeState: SceneMonitorStatusSchema
|
|
26962
|
+
runtimeState: SceneMonitorStatusSchema,
|
|
26963
|
+
/**
|
|
26964
|
+
* Runtime-state durability: **session** — re-derived from the current scene on the next evaluation.
|
|
26965
|
+
*
|
|
26966
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26967
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26968
|
+
*/
|
|
26969
|
+
durability: "session"
|
|
26432
26970
|
};
|
|
26433
26971
|
/**
|
|
26434
26972
|
* Per-stage gating mode applied to the zones a rule references.
|
|
@@ -26572,7 +27110,14 @@ var scriptRunnerCapability = {
|
|
|
26572
27110
|
* `isRunning` to render a spinner during execution and surfaces
|
|
26573
27111
|
* `lastError` / `lastRunSuccess` in the recent-runs panel.
|
|
26574
27112
|
*/
|
|
26575
|
-
runtimeState: ScriptRunnerStatusSchema
|
|
27113
|
+
runtimeState: ScriptRunnerStatusSchema,
|
|
27114
|
+
/**
|
|
27115
|
+
* Runtime-state durability: **session** — a restored `isRunning: true` describes a process that died with the previous hub.
|
|
27116
|
+
*
|
|
27117
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27118
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27119
|
+
*/
|
|
27120
|
+
durability: "session"
|
|
26576
27121
|
};
|
|
26577
27122
|
/**
|
|
26578
27123
|
* Smoke alarm sensor — boolean "is smoke currently detected" with
|
|
@@ -26599,7 +27144,17 @@ var smokeCapability = {
|
|
|
26599
27144
|
schema: SmokeStatusSchema,
|
|
26600
27145
|
kind: "push"
|
|
26601
27146
|
},
|
|
26602
|
-
runtimeState: SmokeStatusSchema
|
|
27147
|
+
runtimeState: SmokeStatusSchema,
|
|
27148
|
+
/**
|
|
27149
|
+
* Runtime-state durability: **restored** — a safety sensor must not read "clear" merely because the hub restarted.
|
|
27150
|
+
*
|
|
27151
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27152
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27153
|
+
*/
|
|
27154
|
+
durability: "restored",
|
|
27155
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27156
|
+
* whether persisting is worth a SQLite commit. */
|
|
27157
|
+
volatileStateFields: ["lastChangedAt"]
|
|
26603
27158
|
};
|
|
26604
27159
|
/**
|
|
26605
27160
|
* One publishable camera stream as its OWNING PROVIDER describes it — the same
|
|
@@ -26772,7 +27327,17 @@ var streamParamsCapability = {
|
|
|
26772
27327
|
schema: StreamParamsStatusSchema,
|
|
26773
27328
|
kind: "poll"
|
|
26774
27329
|
},
|
|
26775
|
-
runtimeState: StreamParamsStatusSchema
|
|
27330
|
+
runtimeState: StreamParamsStatusSchema,
|
|
27331
|
+
/**
|
|
27332
|
+
* Runtime-state durability: **restored** — operator-set encoder profile; mutation-driven.
|
|
27333
|
+
*
|
|
27334
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27335
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27336
|
+
*/
|
|
27337
|
+
durability: "restored",
|
|
27338
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27339
|
+
* whether persisting is worth a SQLite commit. */
|
|
27340
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
26776
27341
|
};
|
|
26777
27342
|
/**
|
|
26778
27343
|
* Generic on/off switch cap for accessory children (siren, floodlight,
|
|
@@ -26818,6 +27383,16 @@ var switchCapability = {
|
|
|
26818
27383
|
* not need to re-query the provider after a setState mutation.
|
|
26819
27384
|
*/
|
|
26820
27385
|
runtimeState: SwitchStatusSchema,
|
|
27386
|
+
/**
|
|
27387
|
+
* Runtime-state durability: **restored** — device state an operator reads as authoritative; 55 devices, transition-driven.
|
|
27388
|
+
*
|
|
27389
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27390
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27391
|
+
*/
|
|
27392
|
+
durability: "restored",
|
|
27393
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27394
|
+
* whether persisting is worth a SQLite commit. */
|
|
27395
|
+
volatileStateFields: ["lastChangedAt"],
|
|
26821
27396
|
settings: { bindings: [{
|
|
26822
27397
|
kind: "scalar",
|
|
26823
27398
|
statusPath: "on",
|
|
@@ -26897,7 +27472,17 @@ var tamperCapability = {
|
|
|
26897
27472
|
schema: TamperStatusSchema,
|
|
26898
27473
|
kind: "push"
|
|
26899
27474
|
},
|
|
26900
|
-
runtimeState: TamperStatusSchema
|
|
27475
|
+
runtimeState: TamperStatusSchema,
|
|
27476
|
+
/**
|
|
27477
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
27478
|
+
*
|
|
27479
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27480
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27481
|
+
*/
|
|
27482
|
+
durability: "restored",
|
|
27483
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27484
|
+
* whether persisting is worth a SQLite commit. */
|
|
27485
|
+
volatileStateFields: ["lastChangedAt"]
|
|
26901
27486
|
};
|
|
26902
27487
|
/**
|
|
26903
27488
|
* Single-metric temperature reading. Drives Home Assistant `sensor`
|
|
@@ -26942,7 +27527,17 @@ var temperatureSensorCapability = {
|
|
|
26942
27527
|
schema: TemperatureSensorStatusSchema,
|
|
26943
27528
|
kind: "push"
|
|
26944
27529
|
},
|
|
26945
|
-
runtimeState: TemperatureSensorStatusSchema
|
|
27530
|
+
runtimeState: TemperatureSensorStatusSchema,
|
|
27531
|
+
/**
|
|
27532
|
+
* Runtime-state durability: **restored** — as `numeric-sensor` (69 of 125 writes were the clock alone).
|
|
27533
|
+
*
|
|
27534
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27535
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27536
|
+
*/
|
|
27537
|
+
durability: "restored",
|
|
27538
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27539
|
+
* whether persisting is worth a SQLite commit. */
|
|
27540
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
26946
27541
|
};
|
|
26947
27542
|
/**
|
|
26948
27543
|
* toast — system-scoped singleton capability that streams toast
|
|
@@ -27011,7 +27606,14 @@ var updateCapability = {
|
|
|
27011
27606
|
schema: UpdateStatusSchema,
|
|
27012
27607
|
kind: "poll"
|
|
27013
27608
|
},
|
|
27014
|
-
runtimeState: UpdateStatusSchema
|
|
27609
|
+
runtimeState: UpdateStatusSchema,
|
|
27610
|
+
/**
|
|
27611
|
+
* Runtime-state durability: **session** — a restored `inProgress: true` describes an update that is no longer running; versions are re-probed at boot.
|
|
27612
|
+
*
|
|
27613
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27614
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27615
|
+
*/
|
|
27616
|
+
durability: "session"
|
|
27015
27617
|
};
|
|
27016
27618
|
var UserSummarySchema = object({
|
|
27017
27619
|
id: string(),
|
|
@@ -27345,7 +27947,14 @@ var vacuumControlCapability = {
|
|
|
27345
27947
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
27346
27948
|
* slice for live state + battery + fan-speed changes.
|
|
27347
27949
|
*/
|
|
27348
|
-
runtimeState: VacuumControlStatusSchema
|
|
27950
|
+
runtimeState: VacuumControlStatusSchema,
|
|
27951
|
+
/**
|
|
27952
|
+
* Runtime-state durability: **session** — as `media-player` — a restored `state: cleaning` is a robot that is not cleaning.
|
|
27953
|
+
*
|
|
27954
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27955
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27956
|
+
*/
|
|
27957
|
+
durability: "session"
|
|
27349
27958
|
};
|
|
27350
27959
|
var ValveStatusSchema = object({
|
|
27351
27960
|
/** Lifecycle state of the valve. */
|
|
@@ -27397,7 +28006,14 @@ var valveCapability = {
|
|
|
27397
28006
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
27398
28007
|
* slice for live position changes during a move.
|
|
27399
28008
|
*/
|
|
27400
|
-
runtimeState: ValveStatusSchema
|
|
28009
|
+
runtimeState: ValveStatusSchema,
|
|
28010
|
+
/**
|
|
28011
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
28012
|
+
*
|
|
28013
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
28014
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
28015
|
+
*/
|
|
28016
|
+
durability: "session"
|
|
27401
28017
|
};
|
|
27402
28018
|
/**
|
|
27403
28019
|
* Vibration / shake / impact sensor. Drives Home Assistant
|
|
@@ -27419,7 +28035,17 @@ var vibrationCapability = {
|
|
|
27419
28035
|
schema: VibrationStatusSchema,
|
|
27420
28036
|
kind: "push"
|
|
27421
28037
|
},
|
|
27422
|
-
runtimeState: VibrationStatusSchema
|
|
28038
|
+
runtimeState: VibrationStatusSchema,
|
|
28039
|
+
/**
|
|
28040
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
28041
|
+
*
|
|
28042
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
28043
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
28044
|
+
*/
|
|
28045
|
+
durability: "restored",
|
|
28046
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
28047
|
+
* whether persisting is worth a SQLite commit. */
|
|
28048
|
+
volatileStateFields: ["lastChangedAt"]
|
|
27423
28049
|
};
|
|
27424
28050
|
/**
|
|
27425
28051
|
* Water heater / boiler cap. Models HA `water_heater.*` entities — a
|
|
@@ -27493,7 +28119,14 @@ var waterHeaterCapability = {
|
|
|
27493
28119
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
27494
28120
|
* slice for live temperature / mode / away changes.
|
|
27495
28121
|
*/
|
|
27496
|
-
runtimeState: WaterHeaterStatusSchema
|
|
28122
|
+
runtimeState: WaterHeaterStatusSchema,
|
|
28123
|
+
/**
|
|
28124
|
+
* Runtime-state durability: **session** — as `climate-control`.
|
|
28125
|
+
*
|
|
28126
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
28127
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
28128
|
+
*/
|
|
28129
|
+
durability: "session"
|
|
27497
28130
|
};
|
|
27498
28131
|
/**
|
|
27499
28132
|
* Weather provider cap. Models HA `weather.*` entities — a read-only
|
|
@@ -27552,7 +28185,14 @@ var weatherCapability = {
|
|
|
27552
28185
|
* Runtime-state slice — mirrored by the kernel. The UI reads the
|
|
27553
28186
|
* current conditions directly from the slice on each weather push.
|
|
27554
28187
|
*/
|
|
27555
|
-
runtimeState: WeatherStatusSchema
|
|
28188
|
+
runtimeState: WeatherStatusSchema,
|
|
28189
|
+
/**
|
|
28190
|
+
* Runtime-state durability: **session** — a forecast is stale the moment the hub is down; the provider re-fetches on connect.
|
|
28191
|
+
*
|
|
28192
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
28193
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
28194
|
+
*/
|
|
28195
|
+
durability: "session"
|
|
27556
28196
|
};
|
|
27557
28197
|
/**
|
|
27558
28198
|
* Per-zone occupancy aggregation produced by the analytics frame
|
|
@@ -27714,7 +28354,14 @@ var zoneAnalyticsCapability = {
|
|
|
27714
28354
|
* automatically; the explicit `getCurrentSnapshot` cap method is
|
|
27715
28355
|
* still useful for one-off polls without a subscription.
|
|
27716
28356
|
*/
|
|
27717
|
-
runtimeState: CameraOccupancySnapshotSchema
|
|
28357
|
+
runtimeState: CameraOccupancySnapshotSchema,
|
|
28358
|
+
/**
|
|
28359
|
+
* Runtime-state durability: **session** — per-frame analytics; with `audio-metrics` it is ~90 % of the offered write rate. Re-derived on the next frame.
|
|
28360
|
+
*
|
|
28361
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
28362
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
28363
|
+
*/
|
|
28364
|
+
durability: "session"
|
|
27718
28365
|
};
|
|
27719
28366
|
/**
|
|
27720
28367
|
* Stages a {@link ZoneRule} can apply to. Discriminator on the rules
|
|
@@ -27792,7 +28439,14 @@ var zoneRulesCapability = {
|
|
|
27792
28439
|
motion: array(ZoneRuleSchema).readonly(),
|
|
27793
28440
|
detection: array(ZoneRuleSchema).readonly(),
|
|
27794
28441
|
package: array(ZoneRuleSchema).readonly()
|
|
27795
|
-
})
|
|
28442
|
+
}),
|
|
28443
|
+
/**
|
|
28444
|
+
* Runtime-state durability: **restored** — operator intent, mutation-only, same argument as `zones`.
|
|
28445
|
+
*
|
|
28446
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
28447
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
28448
|
+
*/
|
|
28449
|
+
durability: "restored"
|
|
27796
28450
|
};
|
|
27797
28451
|
/**
|
|
27798
28452
|
* Accessory device helpers — shared across drivers.
|
|
@@ -34479,6 +35133,7 @@ Object.freeze({
|
|
|
34479
35133
|
"network-access": "ingress",
|
|
34480
35134
|
"smtp-provider": "email"
|
|
34481
35135
|
});
|
|
35136
|
+
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
34482
35137
|
new Set(["devices", "classes"]);
|
|
34483
35138
|
/**
|
|
34484
35139
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|