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