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