@camstack/addon-provider-ecowitt 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
|
@@ -10773,7 +10773,14 @@ var cameraStreamsCapability = {
|
|
|
10773
10773
|
low: string().optional()
|
|
10774
10774
|
}),
|
|
10775
10775
|
lastChangedAt: number()
|
|
10776
|
-
})
|
|
10776
|
+
}),
|
|
10777
|
+
/**
|
|
10778
|
+
* 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.
|
|
10779
|
+
*
|
|
10780
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
10781
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
10782
|
+
*/
|
|
10783
|
+
durability: "session"
|
|
10777
10784
|
};
|
|
10778
10785
|
/** Where a block runs. The operator chooses — a block driving a device on an
|
|
10779
10786
|
* agent is the reason placement is not fixed to the hub. */
|
|
@@ -11334,6 +11341,13 @@ var deviceDiscoveryCapability = {
|
|
|
11334
11341
|
kind: "poll"
|
|
11335
11342
|
},
|
|
11336
11343
|
runtimeState: DeviceDiscoveryStatusSchema.extend({ lastFetchedAt: number().int().nonnegative() }),
|
|
11344
|
+
/**
|
|
11345
|
+
* Runtime-state durability: **session** — 5.7 KB of scan output on the largest device, fully re-derivable by re-scanning.
|
|
11346
|
+
*
|
|
11347
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
11348
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
11349
|
+
*/
|
|
11350
|
+
durability: "session",
|
|
11337
11351
|
methods: {
|
|
11338
11352
|
/**
|
|
11339
11353
|
* Snapshot of the current `discovered` list. Returns the
|
|
@@ -13203,11 +13217,33 @@ var NotificationFormatSchema = _enum([
|
|
|
13203
13217
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
13204
13218
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
13205
13219
|
* differently.
|
|
13220
|
+
*
|
|
13221
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
13222
|
+
*
|
|
13223
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
13224
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
13225
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
13226
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
13227
|
+
* decides its glyph, which is the only place that decision can be made
|
|
13228
|
+
* honestly.
|
|
13229
|
+
*
|
|
13230
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
13231
|
+
* `disarm` straight through; iOS feeds that string to
|
|
13232
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
13233
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
13234
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
13235
|
+
*
|
|
13236
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
13237
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
13238
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
13239
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
13240
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
13206
13241
|
*/
|
|
13207
13242
|
var NotificationActionIconSchema = _enum([
|
|
13208
13243
|
"acknowledge",
|
|
13209
13244
|
"dismiss",
|
|
13210
13245
|
"silence",
|
|
13246
|
+
"snooze",
|
|
13211
13247
|
"view",
|
|
13212
13248
|
"play",
|
|
13213
13249
|
"open",
|
|
@@ -13215,9 +13251,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
13215
13251
|
"lock",
|
|
13216
13252
|
"unlock",
|
|
13217
13253
|
"arm",
|
|
13254
|
+
"arm-home",
|
|
13255
|
+
"arm-away",
|
|
13256
|
+
"arm-night",
|
|
13218
13257
|
"disarm",
|
|
13219
13258
|
"light",
|
|
13220
|
-
"alert"
|
|
13259
|
+
"alert",
|
|
13260
|
+
"camera"
|
|
13221
13261
|
]);
|
|
13222
13262
|
/** A single tap-through action button. */
|
|
13223
13263
|
var NotificationActionSchema = object({
|
|
@@ -13233,7 +13273,23 @@ var NotificationActionSchema = object({
|
|
|
13233
13273
|
* else — see `notification-center/action-token.ts` for what that does and
|
|
13234
13274
|
* does not buy.
|
|
13235
13275
|
*/
|
|
13236
|
-
destructive: boolean().optional()
|
|
13276
|
+
destructive: boolean().optional(),
|
|
13277
|
+
/**
|
|
13278
|
+
* How the tap should REACH the url.
|
|
13279
|
+
*
|
|
13280
|
+
* `navigate` (absent, and every button authored before this field) opens it:
|
|
13281
|
+
* the phone leaves the notification and shows whatever the callback returns.
|
|
13282
|
+
* That is right for a button whose answer the operator wants to read.
|
|
13283
|
+
*
|
|
13284
|
+
* `background` fires it as a POST and stays put. It exists for the buttons
|
|
13285
|
+
* whose whole point is not to interrupt — "silence this for 30 minutes" is
|
|
13286
|
+
* an answer to the notification, and being thrown into a browser tab to
|
|
13287
|
+
* confirm it costs more attention than the notification did. A backend that
|
|
13288
|
+
* cannot do a background call renders it as an ordinary link (the adapters
|
|
13289
|
+
* fall back rather than dropping the button), so this is a preference, never
|
|
13290
|
+
* a requirement.
|
|
13291
|
+
*/
|
|
13292
|
+
mode: _enum(["navigate", "background"]).optional()
|
|
13237
13293
|
});
|
|
13238
13294
|
/**
|
|
13239
13295
|
* The canonical notification. `body` is the only hard field (Apprise model).
|
|
@@ -13401,6 +13457,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
13401
13457
|
targetId: string(),
|
|
13402
13458
|
enabled: boolean()
|
|
13403
13459
|
}), _void(), { kind: "mutation" });
|
|
13460
|
+
new Set([
|
|
13461
|
+
{
|
|
13462
|
+
id: "person",
|
|
13463
|
+
name: "Person"
|
|
13464
|
+
},
|
|
13465
|
+
{
|
|
13466
|
+
id: "vehicle",
|
|
13467
|
+
name: "Vehicle"
|
|
13468
|
+
},
|
|
13469
|
+
{
|
|
13470
|
+
id: "animal",
|
|
13471
|
+
name: "Animal"
|
|
13472
|
+
},
|
|
13473
|
+
{
|
|
13474
|
+
id: "package",
|
|
13475
|
+
name: "Package"
|
|
13476
|
+
}
|
|
13477
|
+
].map((l) => l.id));
|
|
13404
13478
|
var COCO_TO_MACRO = {
|
|
13405
13479
|
mapping: {
|
|
13406
13480
|
person: "person",
|
|
@@ -14085,7 +14159,17 @@ var alarmPanelCapability = {
|
|
|
14085
14159
|
* full slice; renders an arm button per `availableModes` entry and
|
|
14086
14160
|
* a PIN field iff `requiresCode === true`.
|
|
14087
14161
|
*/
|
|
14088
|
-
runtimeState: AlarmPanelStatusSchema
|
|
14162
|
+
runtimeState: AlarmPanelStatusSchema,
|
|
14163
|
+
/**
|
|
14164
|
+
* Runtime-state durability: **restored** — armed state is the one thing a panel must not lose across a restart.
|
|
14165
|
+
*
|
|
14166
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
14167
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
14168
|
+
*/
|
|
14169
|
+
durability: "restored",
|
|
14170
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
14171
|
+
* whether persisting is worth a SQLite commit. */
|
|
14172
|
+
volatileStateFields: ["lastChangedAt"]
|
|
14089
14173
|
};
|
|
14090
14174
|
/**
|
|
14091
14175
|
* Shared geometry vocabulary for on-frame shape caps — privacy-mask,
|
|
@@ -14226,6 +14310,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14226
14310
|
"alarm-triggered",
|
|
14227
14311
|
"alarm-armed",
|
|
14228
14312
|
"alarm-disarmed",
|
|
14313
|
+
"alarm-arming",
|
|
14314
|
+
"alarm-arm-refused",
|
|
14229
14315
|
"camera-online",
|
|
14230
14316
|
"camera-offline",
|
|
14231
14317
|
"camera-disabled",
|
|
@@ -14262,6 +14348,9 @@ var NcSystemEventConditionSchema = object({
|
|
|
14262
14348
|
nodeIds: array(string().min(1)).min(1).optional(),
|
|
14263
14349
|
packageNames: array(string().min(1)).min(1).optional()
|
|
14264
14350
|
});
|
|
14351
|
+
/** Hard ceiling on a window (24h). A snooze that could not expire would be an
|
|
14352
|
+
* outage the operator asked for once and forgot. */
|
|
14353
|
+
var NC_SNOOZE_MAX_MINUTES = 1440;
|
|
14265
14354
|
/** Weekly schedule — OR of windows; absence on the rule = always active. */
|
|
14266
14355
|
var NcScheduleSchema = object({
|
|
14267
14356
|
windows: array(object({
|
|
@@ -14638,15 +14727,15 @@ var NcConditionsSchema = object({
|
|
|
14638
14727
|
* (an `immediate` rule naming an `audio-*` class, one notification per
|
|
14639
14728
|
* classified sample) stays exactly as it was for rules that already use it.
|
|
14640
14729
|
*
|
|
14641
|
-
*
|
|
14642
|
-
* rather than an
|
|
14643
|
-
* (`camstack/src/data/notification-center.ts`, guarded by
|
|
14644
|
-
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor
|
|
14730
|
+
* In {@link NC_CONDITION_CATALOG} since P2, and the ORDER it got there is the
|
|
14731
|
+
* rule rather than an accident: the viewer mirrors the descriptor enums BY
|
|
14732
|
+
* HAND (`camstack/src/data/notification-center.ts`, guarded by
|
|
14733
|
+
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor strips the
|
|
14645
14734
|
* condition fields it does not know when a rule is saved from the phone.
|
|
14646
14735
|
* Publishing an editor for a condition the app cannot round-trip is how an
|
|
14647
|
-
* operator loses a rule's conditions by opening it — so the
|
|
14648
|
-
*
|
|
14649
|
-
*
|
|
14736
|
+
* operator loses a rule's conditions by opening it — so the viewer mirror
|
|
14737
|
+
* (P3, shipped) went FIRST, and the descriptor an editor renders from
|
|
14738
|
+
* follows here.
|
|
14650
14739
|
*/
|
|
14651
14740
|
audio: NcAudioConditionSchema.optional()
|
|
14652
14741
|
});
|
|
@@ -14882,6 +14971,30 @@ var NcRuleInputSchema = object({
|
|
|
14882
14971
|
*/
|
|
14883
14972
|
snoozeAllowGlobal: boolean().optional(),
|
|
14884
14973
|
/**
|
|
14974
|
+
* The snooze durations THIS rule's notification offers as buttons, in
|
|
14975
|
+
* minutes.
|
|
14976
|
+
*
|
|
14977
|
+
* Three states, and all three are distinct — which is exactly why this is
|
|
14978
|
+
* `.optional()` and never `.default()`. A Zod default does not run on the
|
|
14979
|
+
* addon cap path (three production failures in one day), so a schema default
|
|
14980
|
+
* would collapse the first two:
|
|
14981
|
+
*
|
|
14982
|
+
* | value | meaning |
|
|
14983
|
+
* | --- | --- |
|
|
14984
|
+
* | absent | the operator never said ⇒ {@link NC_DEFAULT_SNOOZE_MINUTES} |
|
|
14985
|
+
* | `[]` | **no snooze buttons on this rule** — the explicit override |
|
|
14986
|
+
* | a list | these choices, de-duplicated and sorted, at most four |
|
|
14987
|
+
*
|
|
14988
|
+
* `.max(4)` because the notifier's own action budget is small (ntfy allows
|
|
14989
|
+
* three buttons in total) and a rule that spent it all on snooze choices
|
|
14990
|
+
* would push its own tap-through actions off the notification.
|
|
14991
|
+
*
|
|
14992
|
+
* An empty list is NOT an alarm exemption: a rule the alarm is about, or
|
|
14993
|
+
* that arms the panel, is exempt automatically and cannot be silenced by a
|
|
14994
|
+
* window from anywhere (D133).
|
|
14995
|
+
*/
|
|
14996
|
+
snoozeOptions: array(number().int().min(1).max(NC_SNOOZE_MAX_MINUTES)).max(4).optional(),
|
|
14997
|
+
/**
|
|
14885
14998
|
* Devices this rule ACTUATES — arm the alarm, open a gate, turn on a light.
|
|
14886
14999
|
*
|
|
14887
15000
|
* This is what makes the rule set the alarm's trigger set without the alarm
|
|
@@ -14981,6 +15094,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
14981
15094
|
"device",
|
|
14982
15095
|
"package",
|
|
14983
15096
|
"occupancy",
|
|
15097
|
+
"audio",
|
|
14984
15098
|
"system"
|
|
14985
15099
|
]),
|
|
14986
15100
|
label: string(),
|
|
@@ -14999,6 +15113,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
14999
15113
|
"crossingSelect",
|
|
15000
15114
|
"polygonDraw",
|
|
15001
15115
|
"occupancy",
|
|
15116
|
+
"audio",
|
|
15002
15117
|
"deviceState",
|
|
15003
15118
|
"systemEvent"
|
|
15004
15119
|
]),
|
|
@@ -15150,7 +15265,20 @@ var NcSnoozeInputSchema = object({
|
|
|
15150
15265
|
ruleId: string().optional(),
|
|
15151
15266
|
/** Required when `scope: 'device'`. */
|
|
15152
15267
|
deviceId: number().int().optional(),
|
|
15153
|
-
|
|
15268
|
+
/**
|
|
15269
|
+
* Narrow the window to these subject classes — "the cat, not the person".
|
|
15270
|
+
*
|
|
15271
|
+
* ORTHOGONAL to `scope`, deliberately, and absent means EVERY class: that is
|
|
15272
|
+
* what every window authored before this field meant, so no persisted row
|
|
15273
|
+
* changes meaning and no client has to learn anything to keep working.
|
|
15274
|
+
*
|
|
15275
|
+
* It is what makes the window's real key `(deviceId, classes[])` and lets it
|
|
15276
|
+
* cross rules (D133): the operator points at a camera and a kind of thing,
|
|
15277
|
+
* not at whichever of their four rules happened to produce the notification
|
|
15278
|
+
* they are dismissing.
|
|
15279
|
+
*/
|
|
15280
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
15281
|
+
durationMinutes: number().int().min(1).max(NC_SNOOZE_MAX_MINUTES),
|
|
15154
15282
|
/**
|
|
15155
15283
|
* Silence this for EVERY recipient, not just the caller. Permission is
|
|
15156
15284
|
* checked server-side (the rule's `snoozeAllowGlobal`, or admin for the
|
|
@@ -15175,6 +15303,10 @@ var NcSnoozeSchema = object({
|
|
|
15175
15303
|
scope: NcSnoozeScopeSchema,
|
|
15176
15304
|
ruleId: string().optional(),
|
|
15177
15305
|
deviceId: number().int().optional(),
|
|
15306
|
+
/** Subject classes this window covers. ABSENT = every class — see
|
|
15307
|
+
* {@link NcSnoozeInputSchema.shape.classes}. Lives in the JSON blob and has
|
|
15308
|
+
* no SQLite column: nothing queries a window by class. */
|
|
15309
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
15178
15310
|
startedAt: number(),
|
|
15179
15311
|
/** Exclusive: at exactly this instant the snooze is over. Expiry is a
|
|
15180
15312
|
* COMPARISON, not a job — no sweeper can leave the operator silenced. */
|
|
@@ -17275,7 +17407,14 @@ var zonesCapability = {
|
|
|
17275
17407
|
* handle. Slice shape is `{ zones: Zone[] }` so future extensions
|
|
17276
17408
|
* (e.g. zone groupings) can sit alongside the polygon list.
|
|
17277
17409
|
*/
|
|
17278
|
-
runtimeState: object({ zones: array(ZoneSchema).readonly() })
|
|
17410
|
+
runtimeState: object({ zones: array(ZoneSchema).readonly() }),
|
|
17411
|
+
/**
|
|
17412
|
+
* 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.
|
|
17413
|
+
*
|
|
17414
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
17415
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
17416
|
+
*/
|
|
17417
|
+
durability: "restored"
|
|
17279
17418
|
};
|
|
17280
17419
|
/**
|
|
17281
17420
|
* A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
|
|
@@ -17445,6 +17584,22 @@ var detectionFpsField = {
|
|
|
17445
17584
|
default: 10,
|
|
17446
17585
|
step: 1
|
|
17447
17586
|
};
|
|
17587
|
+
/**
|
|
17588
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
17589
|
+
*
|
|
17590
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
17591
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
17592
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
17593
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
17594
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
17595
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
17596
|
+
*
|
|
17597
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
17598
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
17599
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
17600
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
17601
|
+
* that ships with an addon deploy.
|
|
17602
|
+
*/
|
|
17448
17603
|
var occupancyRecheckSecField = {
|
|
17449
17604
|
min: 0,
|
|
17450
17605
|
max: 300,
|
|
@@ -17646,15 +17801,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
17646
17801
|
*/
|
|
17647
17802
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
17648
17803
|
/**
|
|
17649
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
17650
|
-
*
|
|
17651
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
17652
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
17653
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
17804
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
17805
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
17654
17806
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
17655
17807
|
* (and only render) when this is enabled.
|
|
17656
|
-
|
|
17657
|
-
|
|
17808
|
+
*
|
|
17809
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
17810
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
17811
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
17812
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
17813
|
+
* object is counted only while the stationary registry holds it, and the
|
|
17814
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
17815
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
17816
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
17817
|
+
*/
|
|
17818
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
17658
17819
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
17659
17820
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
17660
17821
|
/**
|
|
@@ -20074,7 +20235,17 @@ var airQualitySensorCapability = {
|
|
|
20074
20235
|
schema: AirQualitySensorStatusSchema,
|
|
20075
20236
|
kind: "push"
|
|
20076
20237
|
},
|
|
20077
|
-
runtimeState: AirQualitySensorStatusSchema
|
|
20238
|
+
runtimeState: AirQualitySensorStatusSchema,
|
|
20239
|
+
/**
|
|
20240
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
20241
|
+
*
|
|
20242
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20243
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20244
|
+
*/
|
|
20245
|
+
durability: "restored",
|
|
20246
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20247
|
+
* whether persisting is worth a SQLite commit. */
|
|
20248
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
20078
20249
|
};
|
|
20079
20250
|
/**
|
|
20080
20251
|
* Ambient illuminance reading in lux. Drives Home Assistant `sensor`
|
|
@@ -20106,7 +20277,17 @@ var ambientLightSensorCapability = {
|
|
|
20106
20277
|
schema: AmbientLightSensorStatusSchema,
|
|
20107
20278
|
kind: "push"
|
|
20108
20279
|
},
|
|
20109
|
-
runtimeState: AmbientLightSensorStatusSchema
|
|
20280
|
+
runtimeState: AmbientLightSensorStatusSchema,
|
|
20281
|
+
/**
|
|
20282
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
20283
|
+
*
|
|
20284
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20285
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20286
|
+
*/
|
|
20287
|
+
durability: "restored",
|
|
20288
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20289
|
+
* whether persisting is worth a SQLite commit. */
|
|
20290
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
20110
20291
|
};
|
|
20111
20292
|
/**
|
|
20112
20293
|
* Per-class audio metrics aggregated over a sliding window.
|
|
@@ -20224,7 +20405,14 @@ var audioMetricsCapability = {
|
|
|
20224
20405
|
}), AudioMetricsHistorySchema)
|
|
20225
20406
|
},
|
|
20226
20407
|
/** Reactive runtime-state mirror — live `device.state.audioMetrics.value`. */
|
|
20227
|
-
runtimeState: AudioMetricsSnapshotSchema
|
|
20408
|
+
runtimeState: AudioMetricsSnapshotSchema,
|
|
20409
|
+
/**
|
|
20410
|
+
* 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.
|
|
20411
|
+
*
|
|
20412
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20413
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20414
|
+
*/
|
|
20415
|
+
durability: "session"
|
|
20228
20416
|
};
|
|
20229
20417
|
/**
|
|
20230
20418
|
* Automation-control cap. Models HA `automation.*` entities on
|
|
@@ -20286,7 +20474,14 @@ var automationControlCapability = {
|
|
|
20286
20474
|
* reads `enabled` (toggle) + `isRunning` (spinner) + `lastError`
|
|
20287
20475
|
* (badge) directly.
|
|
20288
20476
|
*/
|
|
20289
|
-
runtimeState: AutomationControlStatusSchema
|
|
20477
|
+
runtimeState: AutomationControlStatusSchema,
|
|
20478
|
+
/**
|
|
20479
|
+
* 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.
|
|
20480
|
+
*
|
|
20481
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20482
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20483
|
+
*/
|
|
20484
|
+
durability: "session"
|
|
20290
20485
|
};
|
|
20291
20486
|
/**
|
|
20292
20487
|
* Battery status snapshot. Emitted by providers whose device is
|
|
@@ -20392,7 +20587,17 @@ onStatusChanged: { data: object({
|
|
|
20392
20587
|
* via `device.runtimeState.getCapState('battery')` regardless of
|
|
20393
20588
|
* the underlying driver.
|
|
20394
20589
|
*/
|
|
20395
|
-
runtimeState: BatteryStatusSchema
|
|
20590
|
+
runtimeState: BatteryStatusSchema,
|
|
20591
|
+
/**
|
|
20592
|
+
* 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.
|
|
20593
|
+
*
|
|
20594
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20595
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20596
|
+
*/
|
|
20597
|
+
durability: "restored",
|
|
20598
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20599
|
+
* whether persisting is worth a SQLite commit. */
|
|
20600
|
+
volatileStateFields: ["lastUpdated"]
|
|
20396
20601
|
};
|
|
20397
20602
|
/**
|
|
20398
20603
|
* Generic boolean sensor — last-resort fallback when no domain-
|
|
@@ -20421,7 +20626,17 @@ var binaryCapability = {
|
|
|
20421
20626
|
schema: BinaryStatusSchema,
|
|
20422
20627
|
kind: "push"
|
|
20423
20628
|
},
|
|
20424
|
-
runtimeState: BinaryStatusSchema
|
|
20629
|
+
runtimeState: BinaryStatusSchema,
|
|
20630
|
+
/**
|
|
20631
|
+
* Runtime-state durability: **restored** — transition-driven sensor state; the restored value gives the boot comparison.
|
|
20632
|
+
*
|
|
20633
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20634
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20635
|
+
*/
|
|
20636
|
+
durability: "restored",
|
|
20637
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20638
|
+
* whether persisting is worth a SQLite commit. */
|
|
20639
|
+
volatileStateFields: ["lastChangedAt"]
|
|
20425
20640
|
};
|
|
20426
20641
|
/**
|
|
20427
20642
|
* Dimmable-light brightness control. Co-exists with `switch` on the
|
|
@@ -20474,7 +20689,14 @@ onBrightnessChanged: { data: object({
|
|
|
20474
20689
|
* by the kernel. Read via `device.state.brightness.value` so UI
|
|
20475
20690
|
* sliders surface the current level without polling the provider.
|
|
20476
20691
|
*/
|
|
20477
|
-
runtimeState: BrightnessStatusSchema
|
|
20692
|
+
runtimeState: BrightnessStatusSchema,
|
|
20693
|
+
/**
|
|
20694
|
+
* Runtime-state durability: **session** — live lamp state, re-published by the provider on connect.
|
|
20695
|
+
*
|
|
20696
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20697
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20698
|
+
*/
|
|
20699
|
+
durability: "session"
|
|
20478
20700
|
};
|
|
20479
20701
|
DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _void(), {
|
|
20480
20702
|
kind: "mutation",
|
|
@@ -20562,7 +20784,17 @@ var carbonMonoxideCapability = {
|
|
|
20562
20784
|
schema: CarbonMonoxideStatusSchema,
|
|
20563
20785
|
kind: "push"
|
|
20564
20786
|
},
|
|
20565
|
-
runtimeState: CarbonMonoxideStatusSchema
|
|
20787
|
+
runtimeState: CarbonMonoxideStatusSchema,
|
|
20788
|
+
/**
|
|
20789
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
20790
|
+
*
|
|
20791
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20792
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20793
|
+
*/
|
|
20794
|
+
durability: "restored",
|
|
20795
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20796
|
+
* whether persisting is worth a SQLite commit. */
|
|
20797
|
+
volatileStateFields: ["lastChangedAt"]
|
|
20566
20798
|
};
|
|
20567
20799
|
/**
|
|
20568
20800
|
* HVAC / climate control cap. Models the full surface of a HA
|
|
@@ -20722,7 +20954,14 @@ var climateControlCapability = {
|
|
|
20722
20954
|
* the full slice via `device.state.climate-control.value` and refresh
|
|
20723
20955
|
* on every push without re-querying the provider.
|
|
20724
20956
|
*/
|
|
20725
|
-
runtimeState: ClimateControlStatusSchema
|
|
20957
|
+
runtimeState: ClimateControlStatusSchema,
|
|
20958
|
+
/**
|
|
20959
|
+
* Runtime-state durability: **session** — as `brightness`; `currentTemp` moves continuously and is re-published on connect.
|
|
20960
|
+
*
|
|
20961
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20962
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20963
|
+
*/
|
|
20964
|
+
durability: "session"
|
|
20726
20965
|
};
|
|
20727
20966
|
/**
|
|
20728
20967
|
* Color-light cap. Coexists with `switch` (on/off) and `brightness`
|
|
@@ -20832,7 +21071,14 @@ onColorChanged: { data: object({
|
|
|
20832
21071
|
* kernel. Read via `device.state.color.value` so UI pickers surface
|
|
20833
21072
|
* the current chromaticity without polling the provider.
|
|
20834
21073
|
*/
|
|
20835
|
-
runtimeState: ColorStatusSchema
|
|
21074
|
+
runtimeState: ColorStatusSchema,
|
|
21075
|
+
/**
|
|
21076
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
21077
|
+
*
|
|
21078
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21079
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21080
|
+
*/
|
|
21081
|
+
durability: "session"
|
|
20836
21082
|
};
|
|
20837
21083
|
var ConnectionTestOutcomeSchema = discriminatedUnion("outcome", [
|
|
20838
21084
|
object({
|
|
@@ -20890,7 +21136,17 @@ var connectivityCapability = {
|
|
|
20890
21136
|
schema: ConnectivityStatusSchema,
|
|
20891
21137
|
kind: "push"
|
|
20892
21138
|
},
|
|
20893
|
-
runtimeState: ConnectivityStatusSchema
|
|
21139
|
+
runtimeState: ConnectivityStatusSchema,
|
|
21140
|
+
/**
|
|
21141
|
+
* Runtime-state durability: **restored** — same shape and same argument as `device-status`, for links rather than devices.
|
|
21142
|
+
*
|
|
21143
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21144
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21145
|
+
*/
|
|
21146
|
+
durability: "restored",
|
|
21147
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21148
|
+
* whether persisting is worth a SQLite commit. */
|
|
21149
|
+
volatileStateFields: ["lastChangedAt"]
|
|
20894
21150
|
};
|
|
20895
21151
|
/**
|
|
20896
21152
|
* Generic device-consumables capability — surfaces a device's
|
|
@@ -20972,7 +21228,14 @@ reset: method(object({
|
|
|
20972
21228
|
}
|
|
20973
21229
|
}
|
|
20974
21230
|
},
|
|
20975
|
-
runtimeState: ConsumablesStatusSchema.extend({ lastFetchedAt: number() })
|
|
21231
|
+
runtimeState: ConsumablesStatusSchema.extend({ lastFetchedAt: number() }),
|
|
21232
|
+
/**
|
|
21233
|
+
* Runtime-state durability: **session** — the authority is the appliance; the provider re-reads the whole item array on connect.
|
|
21234
|
+
*
|
|
21235
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21236
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21237
|
+
*/
|
|
21238
|
+
durability: "session"
|
|
20976
21239
|
};
|
|
20977
21240
|
/**
|
|
20978
21241
|
* Door / window / opening / garage / valve contact sensor. Boolean
|
|
@@ -21003,7 +21266,17 @@ var contactCapability = {
|
|
|
21003
21266
|
schema: ContactStatusSchema,
|
|
21004
21267
|
kind: "push"
|
|
21005
21268
|
},
|
|
21006
|
-
runtimeState: ContactStatusSchema
|
|
21269
|
+
runtimeState: ContactStatusSchema,
|
|
21270
|
+
/**
|
|
21271
|
+
* Runtime-state durability: **restored** — a door left open across a restart must still read open.
|
|
21272
|
+
*
|
|
21273
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21274
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21275
|
+
*/
|
|
21276
|
+
durability: "restored",
|
|
21277
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21278
|
+
* whether persisting is worth a SQLite commit. */
|
|
21279
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21007
21280
|
};
|
|
21008
21281
|
/**
|
|
21009
21282
|
* Status slice — flat object (the framework's `runtimeState` contract
|
|
@@ -21109,7 +21382,14 @@ var controlCapability = {
|
|
|
21109
21382
|
* dropdown / text field / date picker) read the slice's discriminant
|
|
21110
21383
|
* and value directly without polling the provider.
|
|
21111
21384
|
*/
|
|
21112
|
-
runtimeState: ControlStatusSchema
|
|
21385
|
+
runtimeState: ControlStatusSchema,
|
|
21386
|
+
/**
|
|
21387
|
+
* Runtime-state durability: **session** — a generic control mirrors an external entity that re-publishes on connect; the options array is re-derived with it.
|
|
21388
|
+
*
|
|
21389
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21390
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21391
|
+
*/
|
|
21392
|
+
durability: "session"
|
|
21113
21393
|
};
|
|
21114
21394
|
var CoverStatusSchema = object({
|
|
21115
21395
|
/** Lifecycle state of the cover. */
|
|
@@ -21170,7 +21450,17 @@ var coverCapability = {
|
|
|
21170
21450
|
* Runtime-state slice — mirrored by the kernel. UI controls watch
|
|
21171
21451
|
* the slice for live position changes during a move.
|
|
21172
21452
|
*/
|
|
21173
|
-
runtimeState: CoverStatusSchema
|
|
21453
|
+
runtimeState: CoverStatusSchema,
|
|
21454
|
+
/**
|
|
21455
|
+
* Runtime-state durability: **restored** — position survives a restart on the device; the mirror should agree at boot rather than read blank.
|
|
21456
|
+
*
|
|
21457
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21458
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21459
|
+
*/
|
|
21460
|
+
durability: "restored",
|
|
21461
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21462
|
+
* whether persisting is worth a SQLite commit. */
|
|
21463
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21174
21464
|
};
|
|
21175
21465
|
/**
|
|
21176
21466
|
* Vendor-neutral day/night (IR-cut) control — the per-camera config cap
|
|
@@ -21264,7 +21554,17 @@ var dayNightCapability = {
|
|
|
21264
21554
|
schema: DayNightStatusSchema,
|
|
21265
21555
|
kind: "poll"
|
|
21266
21556
|
},
|
|
21267
|
-
runtimeState: DayNightStatusSchema
|
|
21557
|
+
runtimeState: DayNightStatusSchema,
|
|
21558
|
+
/**
|
|
21559
|
+
* Runtime-state durability: **restored** — operator-set IR-cut behaviour; mutation-driven.
|
|
21560
|
+
*
|
|
21561
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21562
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21563
|
+
*/
|
|
21564
|
+
durability: "restored",
|
|
21565
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21566
|
+
* whether persisting is worth a SQLite commit. */
|
|
21567
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
21268
21568
|
};
|
|
21269
21569
|
/**
|
|
21270
21570
|
* Generic device-level status snapshot. Auto-registered by `BaseDevice`
|
|
@@ -21311,7 +21611,17 @@ onStatusChanged: { data: object({
|
|
|
21311
21611
|
schema: DeviceStatusSchema,
|
|
21312
21612
|
kind: "push"
|
|
21313
21613
|
},
|
|
21314
|
-
runtimeState: DeviceStatusSchema
|
|
21614
|
+
runtimeState: DeviceStatusSchema,
|
|
21615
|
+
/**
|
|
21616
|
+
* 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.
|
|
21617
|
+
*
|
|
21618
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21619
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21620
|
+
*/
|
|
21621
|
+
durability: "restored",
|
|
21622
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21623
|
+
* whether persisting is worth a SQLite commit. */
|
|
21624
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21315
21625
|
};
|
|
21316
21626
|
/**
|
|
21317
21627
|
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
@@ -21373,7 +21683,14 @@ onPressed: { data: DoorbellPressEventSchema } },
|
|
|
21373
21683
|
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
21374
21684
|
* without subscribing.
|
|
21375
21685
|
*/
|
|
21376
|
-
runtimeState: DoorbellStatusSchema
|
|
21686
|
+
runtimeState: DoorbellStatusSchema,
|
|
21687
|
+
/**
|
|
21688
|
+
* 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.
|
|
21689
|
+
*
|
|
21690
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21691
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21692
|
+
*/
|
|
21693
|
+
durability: "restored"
|
|
21377
21694
|
};
|
|
21378
21695
|
/**
|
|
21379
21696
|
* Enum-state sensor — a string value picked from a finite option set.
|
|
@@ -21413,7 +21730,17 @@ var enumSensorCapability = {
|
|
|
21413
21730
|
schema: EnumSensorStatusSchema,
|
|
21414
21731
|
kind: "push"
|
|
21415
21732
|
},
|
|
21416
|
-
runtimeState: EnumSensorStatusSchema
|
|
21733
|
+
runtimeState: EnumSensorStatusSchema,
|
|
21734
|
+
/**
|
|
21735
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`; 80 devices.
|
|
21736
|
+
*
|
|
21737
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21738
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21739
|
+
*/
|
|
21740
|
+
durability: "restored",
|
|
21741
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21742
|
+
* whether persisting is worth a SQLite commit. */
|
|
21743
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
21417
21744
|
};
|
|
21418
21745
|
/**
|
|
21419
21746
|
* Generic stateless event emitter. Installed on a `DeviceType.EventEmitter`
|
|
@@ -21449,7 +21776,14 @@ var eventEmitterCapability = {
|
|
|
21449
21776
|
schema: EventEmitterStatusSchema,
|
|
21450
21777
|
kind: "push"
|
|
21451
21778
|
},
|
|
21452
|
-
runtimeState: EventEmitterStatusSchema
|
|
21779
|
+
runtimeState: EventEmitterStatusSchema,
|
|
21780
|
+
/**
|
|
21781
|
+
* Runtime-state durability: **session** — `eventCountSinceStart` names its own scope.
|
|
21782
|
+
*
|
|
21783
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21784
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21785
|
+
*/
|
|
21786
|
+
durability: "session"
|
|
21453
21787
|
};
|
|
21454
21788
|
var EventItemSchema = object({
|
|
21455
21789
|
id: string(),
|
|
@@ -21730,7 +22064,14 @@ var fanControlCapability = {
|
|
|
21730
22064
|
* Runtime-state slice — mirrored by the kernel. UI fan speed
|
|
21731
22065
|
* sliders read `percentage` for live updates.
|
|
21732
22066
|
*/
|
|
21733
|
-
runtimeState: FanControlStatusSchema
|
|
22067
|
+
runtimeState: FanControlStatusSchema,
|
|
22068
|
+
/**
|
|
22069
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
22070
|
+
*
|
|
22071
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22072
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22073
|
+
*/
|
|
22074
|
+
durability: "session"
|
|
21734
22075
|
};
|
|
21735
22076
|
/**
|
|
21736
22077
|
* Per-device feature/identity probe slice. Holds the runtime-resolved
|
|
@@ -21806,7 +22147,14 @@ onProbeChanged: { data: object({
|
|
|
21806
22147
|
schema: FeatureProbeStatusSchema,
|
|
21807
22148
|
kind: "push"
|
|
21808
22149
|
},
|
|
21809
|
-
runtimeState: FeatureProbeStatusSchema
|
|
22150
|
+
runtimeState: FeatureProbeStatusSchema,
|
|
22151
|
+
/**
|
|
22152
|
+
* 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.
|
|
22153
|
+
*
|
|
22154
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22155
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22156
|
+
*/
|
|
22157
|
+
durability: "session"
|
|
21810
22158
|
};
|
|
21811
22159
|
/**
|
|
21812
22160
|
* Water leak / moisture sensor. Boolean "is liquid currently
|
|
@@ -21833,7 +22181,17 @@ var floodCapability = {
|
|
|
21833
22181
|
schema: FloodStatusSchema,
|
|
21834
22182
|
kind: "push"
|
|
21835
22183
|
},
|
|
21836
|
-
runtimeState: FloodStatusSchema
|
|
22184
|
+
runtimeState: FloodStatusSchema,
|
|
22185
|
+
/**
|
|
22186
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
22187
|
+
*
|
|
22188
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22189
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22190
|
+
*/
|
|
22191
|
+
durability: "restored",
|
|
22192
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22193
|
+
* whether persisting is worth a SQLite commit. */
|
|
22194
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21837
22195
|
};
|
|
21838
22196
|
/**
|
|
21839
22197
|
* Combustible-gas (LPG / methane / hydrogen) alarm sensor. Drives
|
|
@@ -21856,7 +22214,17 @@ var gasCapability = {
|
|
|
21856
22214
|
schema: GasStatusSchema,
|
|
21857
22215
|
kind: "push"
|
|
21858
22216
|
},
|
|
21859
|
-
runtimeState: GasStatusSchema
|
|
22217
|
+
runtimeState: GasStatusSchema,
|
|
22218
|
+
/**
|
|
22219
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
22220
|
+
*
|
|
22221
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22222
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22223
|
+
*/
|
|
22224
|
+
durability: "restored",
|
|
22225
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22226
|
+
* whether persisting is worth a SQLite commit. */
|
|
22227
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21860
22228
|
};
|
|
21861
22229
|
/**
|
|
21862
22230
|
* Humidifier / dehumidifier cap. Models HA `humidifier.*` entities —
|
|
@@ -21932,7 +22300,14 @@ var humidifierCapability = {
|
|
|
21932
22300
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
21933
22301
|
* slice for live humidity / mode changes.
|
|
21934
22302
|
*/
|
|
21935
|
-
runtimeState: HumidifierStatusSchema
|
|
22303
|
+
runtimeState: HumidifierStatusSchema,
|
|
22304
|
+
/**
|
|
22305
|
+
* Runtime-state durability: **session** — as `climate-control`.
|
|
22306
|
+
*
|
|
22307
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22308
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22309
|
+
*/
|
|
22310
|
+
durability: "session"
|
|
21936
22311
|
};
|
|
21937
22312
|
/**
|
|
21938
22313
|
* Single-metric humidity reading. Drives Home Assistant `sensor`
|
|
@@ -21968,7 +22343,17 @@ var humiditySensorCapability = {
|
|
|
21968
22343
|
schema: HumiditySensorStatusSchema,
|
|
21969
22344
|
kind: "push"
|
|
21970
22345
|
},
|
|
21971
|
-
runtimeState: HumiditySensorStatusSchema
|
|
22346
|
+
runtimeState: HumiditySensorStatusSchema,
|
|
22347
|
+
/**
|
|
22348
|
+
* Runtime-state durability: **restored** — as `numeric-sensor` (67 of 75 writes were the clock alone).
|
|
22349
|
+
*
|
|
22350
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22351
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22352
|
+
*/
|
|
22353
|
+
durability: "restored",
|
|
22354
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22355
|
+
* whether persisting is worth a SQLite commit. */
|
|
22356
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
21972
22357
|
};
|
|
21973
22358
|
/**
|
|
21974
22359
|
* Image display cap. Models a single still image exposed by an integration —
|
|
@@ -22006,7 +22391,14 @@ var imageCapability = {
|
|
|
22006
22391
|
* Runtime-state slice — mirrored by the kernel. The UI reads `url`
|
|
22007
22392
|
* directly and renders the still image.
|
|
22008
22393
|
*/
|
|
22009
|
-
runtimeState: ImageStatusSchema
|
|
22394
|
+
runtimeState: ImageStatusSchema,
|
|
22395
|
+
/**
|
|
22396
|
+
* Runtime-state durability: **session** — a snapshot URL is a session-scoped handle; a restored one points at nothing.
|
|
22397
|
+
*
|
|
22398
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22399
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22400
|
+
*/
|
|
22401
|
+
durability: "session"
|
|
22010
22402
|
};
|
|
22011
22403
|
/**
|
|
22012
22404
|
* Vendor-neutral image / picture-adjustment cap — the per-camera config
|
|
@@ -22155,7 +22547,17 @@ var imageSettingsCapability = {
|
|
|
22155
22547
|
schema: ImageSettingsStatusSchema,
|
|
22156
22548
|
kind: "poll"
|
|
22157
22549
|
},
|
|
22158
|
-
runtimeState: ImageSettingsStatusSchema
|
|
22550
|
+
runtimeState: ImageSettingsStatusSchema,
|
|
22551
|
+
/**
|
|
22552
|
+
* Runtime-state durability: **restored** — operator-set camera imaging; mutation-driven.
|
|
22553
|
+
*
|
|
22554
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22555
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22556
|
+
*/
|
|
22557
|
+
durability: "restored",
|
|
22558
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22559
|
+
* whether persisting is worth a SQLite commit. */
|
|
22560
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
22159
22561
|
};
|
|
22160
22562
|
/**
|
|
22161
22563
|
* integrations — system-scoped singleton capability for integration
|
|
@@ -22495,7 +22897,14 @@ var lawnMowerControlCapability = {
|
|
|
22495
22897
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
22496
22898
|
* slice for live activity + battery changes.
|
|
22497
22899
|
*/
|
|
22498
|
-
runtimeState: LawnMowerControlStatusSchema
|
|
22900
|
+
runtimeState: LawnMowerControlStatusSchema,
|
|
22901
|
+
/**
|
|
22902
|
+
* Runtime-state durability: **session** — as `vacuum-control`.
|
|
22903
|
+
*
|
|
22904
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22905
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22906
|
+
*/
|
|
22907
|
+
durability: "session"
|
|
22499
22908
|
};
|
|
22500
22909
|
/**
|
|
22501
22910
|
* local-network — hub-only singleton.
|
|
@@ -22701,7 +23110,17 @@ var lockControlCapability = {
|
|
|
22701
23110
|
* read `state` and disable themselves during `locking`/`unlocking`
|
|
22702
23111
|
* transitions.
|
|
22703
23112
|
*/
|
|
22704
|
-
runtimeState: LockControlStatusSchema
|
|
23113
|
+
runtimeState: LockControlStatusSchema,
|
|
23114
|
+
/**
|
|
23115
|
+
* Runtime-state durability: **restored** — a lock left locked must still read locked.
|
|
23116
|
+
*
|
|
23117
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23118
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23119
|
+
*/
|
|
23120
|
+
durability: "restored",
|
|
23121
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23122
|
+
* whether persisting is worth a SQLite commit. */
|
|
23123
|
+
volatileStateFields: ["lastChangedAt"]
|
|
22705
23124
|
};
|
|
22706
23125
|
/**
|
|
22707
23126
|
* Media-player cap. Models HA `media_player.*` (Sonos, Chromecast,
|
|
@@ -22863,7 +23282,14 @@ var mediaPlayerCapability = {
|
|
|
22863
23282
|
* full slice for live now-playing, volume, and progress updates
|
|
22864
23283
|
* without polling.
|
|
22865
23284
|
*/
|
|
22866
|
-
runtimeState: MediaPlayerStatusSchema
|
|
23285
|
+
runtimeState: MediaPlayerStatusSchema,
|
|
23286
|
+
/**
|
|
23287
|
+
* Runtime-state durability: **session** — a restored transport position describes a playback that stopped when the hub did.
|
|
23288
|
+
*
|
|
23289
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23290
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23291
|
+
*/
|
|
23292
|
+
durability: "session"
|
|
22867
23293
|
};
|
|
22868
23294
|
/**
|
|
22869
23295
|
* mesh-network — collection cap for mesh-VPN providers.
|
|
@@ -23127,7 +23553,14 @@ onMotionChanged: { data: MotionOnMotionChangedDataSchema } },
|
|
|
23127
23553
|
* `device.state.motion.value`. Reads never invoke the provider, so
|
|
23128
23554
|
* UIs and other addons can poll the cached state safely.
|
|
23129
23555
|
*/
|
|
23130
|
-
runtimeState: MotionStatusSchema
|
|
23556
|
+
runtimeState: MotionStatusSchema,
|
|
23557
|
+
/**
|
|
23558
|
+
* 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.
|
|
23559
|
+
*
|
|
23560
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23561
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23562
|
+
*/
|
|
23563
|
+
durability: "session"
|
|
23131
23564
|
};
|
|
23132
23565
|
/**
|
|
23133
23566
|
* Motion-trigger toggle for accessory devices.
|
|
@@ -23192,7 +23625,14 @@ var motionTriggerCapability = {
|
|
|
23192
23625
|
schema: MotionTriggerStatusSchema,
|
|
23193
23626
|
kind: "command-driven"
|
|
23194
23627
|
},
|
|
23195
|
-
runtimeState: MotionTriggerRuntimeStateSchema
|
|
23628
|
+
runtimeState: MotionTriggerRuntimeStateSchema,
|
|
23629
|
+
/**
|
|
23630
|
+
* 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.
|
|
23631
|
+
*
|
|
23632
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23633
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23634
|
+
*/
|
|
23635
|
+
durability: "session"
|
|
23196
23636
|
};
|
|
23197
23637
|
/**
|
|
23198
23638
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
@@ -23259,7 +23699,17 @@ var motionZonesCapability = {
|
|
|
23259
23699
|
schema: MotionZoneStatusSchema,
|
|
23260
23700
|
kind: "poll"
|
|
23261
23701
|
},
|
|
23262
|
-
runtimeState: MotionZoneStatusSchema
|
|
23702
|
+
runtimeState: MotionZoneStatusSchema,
|
|
23703
|
+
/**
|
|
23704
|
+
* 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.
|
|
23705
|
+
*
|
|
23706
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23707
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23708
|
+
*/
|
|
23709
|
+
durability: "restored",
|
|
23710
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23711
|
+
* whether persisting is worth a SQLite commit. */
|
|
23712
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23263
23713
|
};
|
|
23264
23714
|
/**
|
|
23265
23715
|
* On-camera AI object detection cap. Surfaces per-device the classes
|
|
@@ -23333,7 +23783,17 @@ var nativeObjectDetectionCapability = {
|
|
|
23333
23783
|
schema: NativeObjectDetectionStatusSchema,
|
|
23334
23784
|
kind: "push"
|
|
23335
23785
|
},
|
|
23336
|
-
runtimeState: NativeObjectDetectionRuntimeStateSchema
|
|
23786
|
+
runtimeState: NativeObjectDetectionRuntimeStateSchema,
|
|
23787
|
+
/**
|
|
23788
|
+
* 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.
|
|
23789
|
+
*
|
|
23790
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23791
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23792
|
+
*/
|
|
23793
|
+
durability: "restored",
|
|
23794
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23795
|
+
* whether persisting is worth a SQLite commit. */
|
|
23796
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23337
23797
|
};
|
|
23338
23798
|
/**
|
|
23339
23799
|
* network-quality — system-scoped singleton capability tracking RTT,
|
|
@@ -23667,7 +24127,14 @@ onSent: { data: object({
|
|
|
23667
24127
|
* form reads `supports` to gate optional fields; history pane reads
|
|
23668
24128
|
* `lastSentAt` / `lastError` / `queueDepth`.
|
|
23669
24129
|
*/
|
|
23670
|
-
runtimeState: NotifierStatusSchema
|
|
24130
|
+
runtimeState: NotifierStatusSchema,
|
|
24131
|
+
/**
|
|
24132
|
+
* Runtime-state durability: **session** — live queue depth and last-send state; a restored queue depth describes a queue that no longer exists.
|
|
24133
|
+
*
|
|
24134
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24135
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24136
|
+
*/
|
|
24137
|
+
durability: "session"
|
|
23671
24138
|
};
|
|
23672
24139
|
/**
|
|
23673
24140
|
* Generic numeric sensor — last-resort fallback when no typed numeric
|
|
@@ -23710,7 +24177,17 @@ var numericSensorCapability = {
|
|
|
23710
24177
|
schema: NumericSensorStatusSchema,
|
|
23711
24178
|
kind: "push"
|
|
23712
24179
|
},
|
|
23713
|
-
runtimeState: NumericSensorStatusSchema
|
|
24180
|
+
runtimeState: NumericSensorStatusSchema,
|
|
24181
|
+
/**
|
|
24182
|
+
* 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.
|
|
24183
|
+
*
|
|
24184
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24185
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24186
|
+
*/
|
|
24187
|
+
durability: "restored",
|
|
24188
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24189
|
+
* whether persisting is worth a SQLite commit. */
|
|
24190
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23714
24191
|
};
|
|
23715
24192
|
/**
|
|
23716
24193
|
* Generic on-screen-display (video overlay) cap. Each camera exposes
|
|
@@ -24095,7 +24572,14 @@ var petFeederCapability = {
|
|
|
24095
24572
|
* the full slice via `device.state.petFeeder.value` and refresh on
|
|
24096
24573
|
* every poll without re-querying the provider.
|
|
24097
24574
|
*/
|
|
24098
|
-
runtimeState: PetFeederStatusSchema
|
|
24575
|
+
runtimeState: PetFeederStatusSchema,
|
|
24576
|
+
/**
|
|
24577
|
+
* Runtime-state durability: **session** — live appliance state re-published on connect.
|
|
24578
|
+
*
|
|
24579
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24580
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24581
|
+
*/
|
|
24582
|
+
durability: "session"
|
|
24099
24583
|
};
|
|
24100
24584
|
var VehicleSchema = object({
|
|
24101
24585
|
id: string(),
|
|
@@ -24407,7 +24891,17 @@ var powerMeterCapability = {
|
|
|
24407
24891
|
schema: PowerMeterStatusSchema,
|
|
24408
24892
|
kind: "push"
|
|
24409
24893
|
},
|
|
24410
|
-
runtimeState: PowerMeterStatusSchema
|
|
24894
|
+
runtimeState: PowerMeterStatusSchema,
|
|
24895
|
+
/**
|
|
24896
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`; `kwhTotal` is an accumulator whose restored value is the baseline.
|
|
24897
|
+
*
|
|
24898
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24899
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24900
|
+
*/
|
|
24901
|
+
durability: "restored",
|
|
24902
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24903
|
+
* whether persisting is worth a SQLite commit. */
|
|
24904
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24411
24905
|
};
|
|
24412
24906
|
/**
|
|
24413
24907
|
* Presence cap. Models HA `person.*` and `device_tracker.*` entities
|
|
@@ -24464,7 +24958,17 @@ var presenceCapability = {
|
|
|
24464
24958
|
* the map pin is rendered (use `DeviceFeature.PresenceGps` for the
|
|
24465
24959
|
* pre-fetch fast-path check).
|
|
24466
24960
|
*/
|
|
24467
|
-
runtimeState: PresenceStatusSchema
|
|
24961
|
+
runtimeState: PresenceStatusSchema,
|
|
24962
|
+
/**
|
|
24963
|
+
* Runtime-state durability: **restored** — occupancy-relevant: the restored state is what an occupancy rule compares the first post-restart observation against.
|
|
24964
|
+
*
|
|
24965
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24966
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24967
|
+
*/
|
|
24968
|
+
durability: "restored",
|
|
24969
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24970
|
+
* whether persisting is worth a SQLite commit. */
|
|
24971
|
+
volatileStateFields: ["lastChangedAt"]
|
|
24468
24972
|
};
|
|
24469
24973
|
/**
|
|
24470
24974
|
* Atmospheric pressure reading in hectopascals. Drives Home Assistant
|
|
@@ -24500,7 +25004,17 @@ var pressureSensorCapability = {
|
|
|
24500
25004
|
schema: PressureSensorStatusSchema,
|
|
24501
25005
|
kind: "push"
|
|
24502
25006
|
},
|
|
24503
|
-
runtimeState: PressureSensorStatusSchema
|
|
25007
|
+
runtimeState: PressureSensorStatusSchema,
|
|
25008
|
+
/**
|
|
25009
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
25010
|
+
*
|
|
25011
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25012
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25013
|
+
*/
|
|
25014
|
+
durability: "restored",
|
|
25015
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25016
|
+
* whether persisting is worth a SQLite commit. */
|
|
25017
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24504
25018
|
};
|
|
24505
25019
|
/**
|
|
24506
25020
|
* PRIVACY — what the camera deliberately does not capture. Two planes:
|
|
@@ -24630,7 +25144,17 @@ var privacyMaskCapability = {
|
|
|
24630
25144
|
schema: PrivacyMaskStatusSchema,
|
|
24631
25145
|
kind: "poll"
|
|
24632
25146
|
},
|
|
24633
|
-
runtimeState: PrivacyMaskStatusSchema
|
|
25147
|
+
runtimeState: PrivacyMaskStatusSchema,
|
|
25148
|
+
/**
|
|
25149
|
+
* Runtime-state durability: **restored** — operator-drawn regions, zero real churn — 22 writes in 25 minutes, every one of them the clock.
|
|
25150
|
+
*
|
|
25151
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25152
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25153
|
+
*/
|
|
25154
|
+
durability: "restored",
|
|
25155
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25156
|
+
* whether persisting is worth a SQLite commit. */
|
|
25157
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24634
25158
|
};
|
|
24635
25159
|
var PtzPresetSchema = object({
|
|
24636
25160
|
id: string(),
|
|
@@ -24796,7 +25320,14 @@ var ptzAutotrackCapability = {
|
|
|
24796
25320
|
* fetch / cache / fallback logic out of the four cap methods —
|
|
24797
25321
|
* they become trampolines over `runtimeState`.
|
|
24798
25322
|
*/
|
|
24799
|
-
runtimeState: PtzAutotrackRuntimeStateSchema
|
|
25323
|
+
runtimeState: PtzAutotrackRuntimeStateSchema,
|
|
25324
|
+
/**
|
|
25325
|
+
* Runtime-state durability: **session** — mirrors the camera's own autotrack config, re-read on connect.
|
|
25326
|
+
*
|
|
25327
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25328
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25329
|
+
*/
|
|
25330
|
+
durability: "session"
|
|
24800
25331
|
};
|
|
24801
25332
|
DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
|
|
24802
25333
|
kind: "mutation",
|
|
@@ -25446,7 +25977,14 @@ var sceneMonitorCapability = {
|
|
|
25446
25977
|
schema: SceneMonitorStatusSchema,
|
|
25447
25978
|
kind: "push"
|
|
25448
25979
|
},
|
|
25449
|
-
runtimeState: SceneMonitorStatusSchema
|
|
25980
|
+
runtimeState: SceneMonitorStatusSchema,
|
|
25981
|
+
/**
|
|
25982
|
+
* Runtime-state durability: **session** — re-derived from the current scene on the next evaluation.
|
|
25983
|
+
*
|
|
25984
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25985
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25986
|
+
*/
|
|
25987
|
+
durability: "session"
|
|
25450
25988
|
};
|
|
25451
25989
|
/**
|
|
25452
25990
|
* Per-stage gating mode applied to the zones a rule references.
|
|
@@ -25590,7 +26128,14 @@ var scriptRunnerCapability = {
|
|
|
25590
26128
|
* `isRunning` to render a spinner during execution and surfaces
|
|
25591
26129
|
* `lastError` / `lastRunSuccess` in the recent-runs panel.
|
|
25592
26130
|
*/
|
|
25593
|
-
runtimeState: ScriptRunnerStatusSchema
|
|
26131
|
+
runtimeState: ScriptRunnerStatusSchema,
|
|
26132
|
+
/**
|
|
26133
|
+
* Runtime-state durability: **session** — a restored `isRunning: true` describes a process that died with the previous hub.
|
|
26134
|
+
*
|
|
26135
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26136
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26137
|
+
*/
|
|
26138
|
+
durability: "session"
|
|
25594
26139
|
};
|
|
25595
26140
|
/**
|
|
25596
26141
|
* Smoke alarm sensor — boolean "is smoke currently detected" with
|
|
@@ -25617,7 +26162,17 @@ var smokeCapability = {
|
|
|
25617
26162
|
schema: SmokeStatusSchema,
|
|
25618
26163
|
kind: "push"
|
|
25619
26164
|
},
|
|
25620
|
-
runtimeState: SmokeStatusSchema
|
|
26165
|
+
runtimeState: SmokeStatusSchema,
|
|
26166
|
+
/**
|
|
26167
|
+
* Runtime-state durability: **restored** — a safety sensor must not read "clear" merely because the hub restarted.
|
|
26168
|
+
*
|
|
26169
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26170
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26171
|
+
*/
|
|
26172
|
+
durability: "restored",
|
|
26173
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26174
|
+
* whether persisting is worth a SQLite commit. */
|
|
26175
|
+
volatileStateFields: ["lastChangedAt"]
|
|
25621
26176
|
};
|
|
25622
26177
|
/**
|
|
25623
26178
|
* One publishable camera stream as its OWNING PROVIDER describes it — the same
|
|
@@ -25790,7 +26345,17 @@ var streamParamsCapability = {
|
|
|
25790
26345
|
schema: StreamParamsStatusSchema,
|
|
25791
26346
|
kind: "poll"
|
|
25792
26347
|
},
|
|
25793
|
-
runtimeState: StreamParamsStatusSchema
|
|
26348
|
+
runtimeState: StreamParamsStatusSchema,
|
|
26349
|
+
/**
|
|
26350
|
+
* Runtime-state durability: **restored** — operator-set encoder profile; mutation-driven.
|
|
26351
|
+
*
|
|
26352
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26353
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26354
|
+
*/
|
|
26355
|
+
durability: "restored",
|
|
26356
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26357
|
+
* whether persisting is worth a SQLite commit. */
|
|
26358
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
25794
26359
|
};
|
|
25795
26360
|
/**
|
|
25796
26361
|
* Generic on/off switch cap for accessory children (siren, floodlight,
|
|
@@ -25836,6 +26401,16 @@ var switchCapability = {
|
|
|
25836
26401
|
* not need to re-query the provider after a setState mutation.
|
|
25837
26402
|
*/
|
|
25838
26403
|
runtimeState: SwitchStatusSchema,
|
|
26404
|
+
/**
|
|
26405
|
+
* Runtime-state durability: **restored** — device state an operator reads as authoritative; 55 devices, transition-driven.
|
|
26406
|
+
*
|
|
26407
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26408
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26409
|
+
*/
|
|
26410
|
+
durability: "restored",
|
|
26411
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26412
|
+
* whether persisting is worth a SQLite commit. */
|
|
26413
|
+
volatileStateFields: ["lastChangedAt"],
|
|
25839
26414
|
settings: { bindings: [{
|
|
25840
26415
|
kind: "scalar",
|
|
25841
26416
|
statusPath: "on",
|
|
@@ -25915,7 +26490,17 @@ var tamperCapability = {
|
|
|
25915
26490
|
schema: TamperStatusSchema,
|
|
25916
26491
|
kind: "push"
|
|
25917
26492
|
},
|
|
25918
|
-
runtimeState: TamperStatusSchema
|
|
26493
|
+
runtimeState: TamperStatusSchema,
|
|
26494
|
+
/**
|
|
26495
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
26496
|
+
*
|
|
26497
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26498
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26499
|
+
*/
|
|
26500
|
+
durability: "restored",
|
|
26501
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26502
|
+
* whether persisting is worth a SQLite commit. */
|
|
26503
|
+
volatileStateFields: ["lastChangedAt"]
|
|
25919
26504
|
};
|
|
25920
26505
|
/**
|
|
25921
26506
|
* Single-metric temperature reading. Drives Home Assistant `sensor`
|
|
@@ -25960,7 +26545,17 @@ var temperatureSensorCapability = {
|
|
|
25960
26545
|
schema: TemperatureSensorStatusSchema,
|
|
25961
26546
|
kind: "push"
|
|
25962
26547
|
},
|
|
25963
|
-
runtimeState: TemperatureSensorStatusSchema
|
|
26548
|
+
runtimeState: TemperatureSensorStatusSchema,
|
|
26549
|
+
/**
|
|
26550
|
+
* Runtime-state durability: **restored** — as `numeric-sensor` (69 of 125 writes were the clock alone).
|
|
26551
|
+
*
|
|
26552
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26553
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26554
|
+
*/
|
|
26555
|
+
durability: "restored",
|
|
26556
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26557
|
+
* whether persisting is worth a SQLite commit. */
|
|
26558
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
25964
26559
|
};
|
|
25965
26560
|
/**
|
|
25966
26561
|
* toast — system-scoped singleton capability that streams toast
|
|
@@ -26029,7 +26624,14 @@ var updateCapability = {
|
|
|
26029
26624
|
schema: UpdateStatusSchema,
|
|
26030
26625
|
kind: "poll"
|
|
26031
26626
|
},
|
|
26032
|
-
runtimeState: UpdateStatusSchema
|
|
26627
|
+
runtimeState: UpdateStatusSchema,
|
|
26628
|
+
/**
|
|
26629
|
+
* Runtime-state durability: **session** — a restored `inProgress: true` describes an update that is no longer running; versions are re-probed at boot.
|
|
26630
|
+
*
|
|
26631
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26632
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26633
|
+
*/
|
|
26634
|
+
durability: "session"
|
|
26033
26635
|
};
|
|
26034
26636
|
var UserSummarySchema = object({
|
|
26035
26637
|
id: string(),
|
|
@@ -26363,7 +26965,14 @@ var vacuumControlCapability = {
|
|
|
26363
26965
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
26364
26966
|
* slice for live state + battery + fan-speed changes.
|
|
26365
26967
|
*/
|
|
26366
|
-
runtimeState: VacuumControlStatusSchema
|
|
26968
|
+
runtimeState: VacuumControlStatusSchema,
|
|
26969
|
+
/**
|
|
26970
|
+
* Runtime-state durability: **session** — as `media-player` — a restored `state: cleaning` is a robot that is not cleaning.
|
|
26971
|
+
*
|
|
26972
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26973
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26974
|
+
*/
|
|
26975
|
+
durability: "session"
|
|
26367
26976
|
};
|
|
26368
26977
|
var ValveStatusSchema = object({
|
|
26369
26978
|
/** Lifecycle state of the valve. */
|
|
@@ -26415,7 +27024,14 @@ var valveCapability = {
|
|
|
26415
27024
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
26416
27025
|
* slice for live position changes during a move.
|
|
26417
27026
|
*/
|
|
26418
|
-
runtimeState: ValveStatusSchema
|
|
27027
|
+
runtimeState: ValveStatusSchema,
|
|
27028
|
+
/**
|
|
27029
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
27030
|
+
*
|
|
27031
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27032
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27033
|
+
*/
|
|
27034
|
+
durability: "session"
|
|
26419
27035
|
};
|
|
26420
27036
|
/**
|
|
26421
27037
|
* Vibration / shake / impact sensor. Drives Home Assistant
|
|
@@ -26437,7 +27053,17 @@ var vibrationCapability = {
|
|
|
26437
27053
|
schema: VibrationStatusSchema,
|
|
26438
27054
|
kind: "push"
|
|
26439
27055
|
},
|
|
26440
|
-
runtimeState: VibrationStatusSchema
|
|
27056
|
+
runtimeState: VibrationStatusSchema,
|
|
27057
|
+
/**
|
|
27058
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
27059
|
+
*
|
|
27060
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27061
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27062
|
+
*/
|
|
27063
|
+
durability: "restored",
|
|
27064
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27065
|
+
* whether persisting is worth a SQLite commit. */
|
|
27066
|
+
volatileStateFields: ["lastChangedAt"]
|
|
26441
27067
|
};
|
|
26442
27068
|
/**
|
|
26443
27069
|
* Water heater / boiler cap. Models HA `water_heater.*` entities — a
|
|
@@ -26511,7 +27137,14 @@ var waterHeaterCapability = {
|
|
|
26511
27137
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
26512
27138
|
* slice for live temperature / mode / away changes.
|
|
26513
27139
|
*/
|
|
26514
|
-
runtimeState: WaterHeaterStatusSchema
|
|
27140
|
+
runtimeState: WaterHeaterStatusSchema,
|
|
27141
|
+
/**
|
|
27142
|
+
* Runtime-state durability: **session** — as `climate-control`.
|
|
27143
|
+
*
|
|
27144
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27145
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27146
|
+
*/
|
|
27147
|
+
durability: "session"
|
|
26515
27148
|
};
|
|
26516
27149
|
/**
|
|
26517
27150
|
* Weather provider cap. Models HA `weather.*` entities — a read-only
|
|
@@ -26570,7 +27203,14 @@ var weatherCapability = {
|
|
|
26570
27203
|
* Runtime-state slice — mirrored by the kernel. The UI reads the
|
|
26571
27204
|
* current conditions directly from the slice on each weather push.
|
|
26572
27205
|
*/
|
|
26573
|
-
runtimeState: WeatherStatusSchema
|
|
27206
|
+
runtimeState: WeatherStatusSchema,
|
|
27207
|
+
/**
|
|
27208
|
+
* Runtime-state durability: **session** — a forecast is stale the moment the hub is down; the provider re-fetches on connect.
|
|
27209
|
+
*
|
|
27210
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27211
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27212
|
+
*/
|
|
27213
|
+
durability: "session"
|
|
26574
27214
|
};
|
|
26575
27215
|
/**
|
|
26576
27216
|
* Per-zone occupancy aggregation produced by the analytics frame
|
|
@@ -26732,7 +27372,14 @@ var zoneAnalyticsCapability = {
|
|
|
26732
27372
|
* automatically; the explicit `getCurrentSnapshot` cap method is
|
|
26733
27373
|
* still useful for one-off polls without a subscription.
|
|
26734
27374
|
*/
|
|
26735
|
-
runtimeState: CameraOccupancySnapshotSchema
|
|
27375
|
+
runtimeState: CameraOccupancySnapshotSchema,
|
|
27376
|
+
/**
|
|
27377
|
+
* Runtime-state durability: **session** — per-frame analytics; with `audio-metrics` it is ~90 % of the offered write rate. Re-derived on the next frame.
|
|
27378
|
+
*
|
|
27379
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27380
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27381
|
+
*/
|
|
27382
|
+
durability: "session"
|
|
26736
27383
|
};
|
|
26737
27384
|
/**
|
|
26738
27385
|
* Stages a {@link ZoneRule} can apply to. Discriminator on the rules
|
|
@@ -26810,7 +27457,14 @@ var zoneRulesCapability = {
|
|
|
26810
27457
|
motion: array(ZoneRuleSchema).readonly(),
|
|
26811
27458
|
detection: array(ZoneRuleSchema).readonly(),
|
|
26812
27459
|
package: array(ZoneRuleSchema).readonly()
|
|
26813
|
-
})
|
|
27460
|
+
}),
|
|
27461
|
+
/**
|
|
27462
|
+
* Runtime-state durability: **restored** — operator intent, mutation-only, same argument as `zones`.
|
|
27463
|
+
*
|
|
27464
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27465
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27466
|
+
*/
|
|
27467
|
+
durability: "restored"
|
|
26814
27468
|
};
|
|
26815
27469
|
/**
|
|
26816
27470
|
* Accessory device helpers — shared across drivers.
|
|
@@ -33497,6 +34151,7 @@ Object.freeze({
|
|
|
33497
34151
|
"network-access": "ingress",
|
|
33498
34152
|
"smtp-provider": "email"
|
|
33499
34153
|
});
|
|
34154
|
+
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
33500
34155
|
new Set(["devices", "classes"]);
|
|
33501
34156
|
/**
|
|
33502
34157
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|