@camstack/addon-provider-petkit 0.2.15 → 0.2.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +732 -77
- package/dist/addon.mjs +732 -77
- package/package.json +1 -1
package/dist/addon.mjs
CHANGED
|
@@ -11872,7 +11872,14 @@ var cameraStreamsCapability = {
|
|
|
11872
11872
|
low: string().optional()
|
|
11873
11873
|
}),
|
|
11874
11874
|
lastChangedAt: number()
|
|
11875
|
-
})
|
|
11875
|
+
}),
|
|
11876
|
+
/**
|
|
11877
|
+
* 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.
|
|
11878
|
+
*
|
|
11879
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
11880
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
11881
|
+
*/
|
|
11882
|
+
durability: "session"
|
|
11876
11883
|
};
|
|
11877
11884
|
/** Where a block runs. The operator chooses — a block driving a device on an
|
|
11878
11885
|
* agent is the reason placement is not fixed to the hub. */
|
|
@@ -12433,6 +12440,13 @@ var deviceDiscoveryCapability = {
|
|
|
12433
12440
|
kind: "poll"
|
|
12434
12441
|
},
|
|
12435
12442
|
runtimeState: DeviceDiscoveryStatusSchema.extend({ lastFetchedAt: number().int().nonnegative() }),
|
|
12443
|
+
/**
|
|
12444
|
+
* Runtime-state durability: **session** — 5.7 KB of scan output on the largest device, fully re-derivable by re-scanning.
|
|
12445
|
+
*
|
|
12446
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
12447
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
12448
|
+
*/
|
|
12449
|
+
durability: "session",
|
|
12436
12450
|
methods: {
|
|
12437
12451
|
/**
|
|
12438
12452
|
* Snapshot of the current `discovered` list. Returns the
|
|
@@ -14319,11 +14333,33 @@ var NotificationFormatSchema = _enum([
|
|
|
14319
14333
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
14320
14334
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
14321
14335
|
* differently.
|
|
14336
|
+
*
|
|
14337
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
14338
|
+
*
|
|
14339
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
14340
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
14341
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
14342
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
14343
|
+
* decides its glyph, which is the only place that decision can be made
|
|
14344
|
+
* honestly.
|
|
14345
|
+
*
|
|
14346
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
14347
|
+
* `disarm` straight through; iOS feeds that string to
|
|
14348
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
14349
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
14350
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
14351
|
+
*
|
|
14352
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
14353
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
14354
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
14355
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
14356
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
14322
14357
|
*/
|
|
14323
14358
|
var NotificationActionIconSchema = _enum([
|
|
14324
14359
|
"acknowledge",
|
|
14325
14360
|
"dismiss",
|
|
14326
14361
|
"silence",
|
|
14362
|
+
"snooze",
|
|
14327
14363
|
"view",
|
|
14328
14364
|
"play",
|
|
14329
14365
|
"open",
|
|
@@ -14331,9 +14367,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
14331
14367
|
"lock",
|
|
14332
14368
|
"unlock",
|
|
14333
14369
|
"arm",
|
|
14370
|
+
"arm-home",
|
|
14371
|
+
"arm-away",
|
|
14372
|
+
"arm-night",
|
|
14334
14373
|
"disarm",
|
|
14335
14374
|
"light",
|
|
14336
|
-
"alert"
|
|
14375
|
+
"alert",
|
|
14376
|
+
"camera"
|
|
14337
14377
|
]);
|
|
14338
14378
|
/** A single tap-through action button. */
|
|
14339
14379
|
var NotificationActionSchema = object({
|
|
@@ -14349,7 +14389,23 @@ var NotificationActionSchema = object({
|
|
|
14349
14389
|
* else — see `notification-center/action-token.ts` for what that does and
|
|
14350
14390
|
* does not buy.
|
|
14351
14391
|
*/
|
|
14352
|
-
destructive: boolean().optional()
|
|
14392
|
+
destructive: boolean().optional(),
|
|
14393
|
+
/**
|
|
14394
|
+
* How the tap should REACH the url.
|
|
14395
|
+
*
|
|
14396
|
+
* `navigate` (absent, and every button authored before this field) opens it:
|
|
14397
|
+
* the phone leaves the notification and shows whatever the callback returns.
|
|
14398
|
+
* That is right for a button whose answer the operator wants to read.
|
|
14399
|
+
*
|
|
14400
|
+
* `background` fires it as a POST and stays put. It exists for the buttons
|
|
14401
|
+
* whose whole point is not to interrupt — "silence this for 30 minutes" is
|
|
14402
|
+
* an answer to the notification, and being thrown into a browser tab to
|
|
14403
|
+
* confirm it costs more attention than the notification did. A backend that
|
|
14404
|
+
* cannot do a background call renders it as an ordinary link (the adapters
|
|
14405
|
+
* fall back rather than dropping the button), so this is a preference, never
|
|
14406
|
+
* a requirement.
|
|
14407
|
+
*/
|
|
14408
|
+
mode: _enum(["navigate", "background"]).optional()
|
|
14353
14409
|
});
|
|
14354
14410
|
/**
|
|
14355
14411
|
* The canonical notification. `body` is the only hard field (Apprise model).
|
|
@@ -14517,6 +14573,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
14517
14573
|
targetId: string(),
|
|
14518
14574
|
enabled: boolean()
|
|
14519
14575
|
}), _void(), { kind: "mutation" });
|
|
14576
|
+
new Set([
|
|
14577
|
+
{
|
|
14578
|
+
id: "person",
|
|
14579
|
+
name: "Person"
|
|
14580
|
+
},
|
|
14581
|
+
{
|
|
14582
|
+
id: "vehicle",
|
|
14583
|
+
name: "Vehicle"
|
|
14584
|
+
},
|
|
14585
|
+
{
|
|
14586
|
+
id: "animal",
|
|
14587
|
+
name: "Animal"
|
|
14588
|
+
},
|
|
14589
|
+
{
|
|
14590
|
+
id: "package",
|
|
14591
|
+
name: "Package"
|
|
14592
|
+
}
|
|
14593
|
+
].map((l) => l.id));
|
|
14520
14594
|
var COCO_TO_MACRO = {
|
|
14521
14595
|
mapping: {
|
|
14522
14596
|
person: "person",
|
|
@@ -15201,7 +15275,17 @@ var alarmPanelCapability = {
|
|
|
15201
15275
|
* full slice; renders an arm button per `availableModes` entry and
|
|
15202
15276
|
* a PIN field iff `requiresCode === true`.
|
|
15203
15277
|
*/
|
|
15204
|
-
runtimeState: AlarmPanelStatusSchema
|
|
15278
|
+
runtimeState: AlarmPanelStatusSchema,
|
|
15279
|
+
/**
|
|
15280
|
+
* Runtime-state durability: **restored** — armed state is the one thing a panel must not lose across a restart.
|
|
15281
|
+
*
|
|
15282
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
15283
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
15284
|
+
*/
|
|
15285
|
+
durability: "restored",
|
|
15286
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
15287
|
+
* whether persisting is worth a SQLite commit. */
|
|
15288
|
+
volatileStateFields: ["lastChangedAt"]
|
|
15205
15289
|
};
|
|
15206
15290
|
/**
|
|
15207
15291
|
* Shared geometry vocabulary for on-frame shape caps — privacy-mask,
|
|
@@ -15342,6 +15426,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
15342
15426
|
"alarm-triggered",
|
|
15343
15427
|
"alarm-armed",
|
|
15344
15428
|
"alarm-disarmed",
|
|
15429
|
+
"alarm-arming",
|
|
15430
|
+
"alarm-arm-refused",
|
|
15345
15431
|
"camera-online",
|
|
15346
15432
|
"camera-offline",
|
|
15347
15433
|
"camera-disabled",
|
|
@@ -15378,6 +15464,9 @@ var NcSystemEventConditionSchema = object({
|
|
|
15378
15464
|
nodeIds: array(string().min(1)).min(1).optional(),
|
|
15379
15465
|
packageNames: array(string().min(1)).min(1).optional()
|
|
15380
15466
|
});
|
|
15467
|
+
/** Hard ceiling on a window (24h). A snooze that could not expire would be an
|
|
15468
|
+
* outage the operator asked for once and forgot. */
|
|
15469
|
+
var NC_SNOOZE_MAX_MINUTES = 1440;
|
|
15381
15470
|
/** Weekly schedule — OR of windows; absence on the rule = always active. */
|
|
15382
15471
|
var NcScheduleSchema = object({
|
|
15383
15472
|
windows: array(object({
|
|
@@ -15754,15 +15843,15 @@ var NcConditionsSchema = object({
|
|
|
15754
15843
|
* (an `immediate` rule naming an `audio-*` class, one notification per
|
|
15755
15844
|
* classified sample) stays exactly as it was for rules that already use it.
|
|
15756
15845
|
*
|
|
15757
|
-
*
|
|
15758
|
-
* rather than an
|
|
15759
|
-
* (`camstack/src/data/notification-center.ts`, guarded by
|
|
15760
|
-
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor
|
|
15846
|
+
* In {@link NC_CONDITION_CATALOG} since P2, and the ORDER it got there is the
|
|
15847
|
+
* rule rather than an accident: the viewer mirrors the descriptor enums BY
|
|
15848
|
+
* HAND (`camstack/src/data/notification-center.ts`, guarded by
|
|
15849
|
+
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor strips the
|
|
15761
15850
|
* condition fields it does not know when a rule is saved from the phone.
|
|
15762
15851
|
* Publishing an editor for a condition the app cannot round-trip is how an
|
|
15763
|
-
* operator loses a rule's conditions by opening it — so the
|
|
15764
|
-
*
|
|
15765
|
-
*
|
|
15852
|
+
* operator loses a rule's conditions by opening it — so the viewer mirror
|
|
15853
|
+
* (P3, shipped) went FIRST, and the descriptor an editor renders from
|
|
15854
|
+
* follows here.
|
|
15766
15855
|
*/
|
|
15767
15856
|
audio: NcAudioConditionSchema.optional()
|
|
15768
15857
|
});
|
|
@@ -15998,6 +16087,30 @@ var NcRuleInputSchema = object({
|
|
|
15998
16087
|
*/
|
|
15999
16088
|
snoozeAllowGlobal: boolean().optional(),
|
|
16000
16089
|
/**
|
|
16090
|
+
* The snooze durations THIS rule's notification offers as buttons, in
|
|
16091
|
+
* minutes.
|
|
16092
|
+
*
|
|
16093
|
+
* Three states, and all three are distinct — which is exactly why this is
|
|
16094
|
+
* `.optional()` and never `.default()`. A Zod default does not run on the
|
|
16095
|
+
* addon cap path (three production failures in one day), so a schema default
|
|
16096
|
+
* would collapse the first two:
|
|
16097
|
+
*
|
|
16098
|
+
* | value | meaning |
|
|
16099
|
+
* | --- | --- |
|
|
16100
|
+
* | absent | the operator never said ⇒ {@link NC_DEFAULT_SNOOZE_MINUTES} |
|
|
16101
|
+
* | `[]` | **no snooze buttons on this rule** — the explicit override |
|
|
16102
|
+
* | a list | these choices, de-duplicated and sorted, at most four |
|
|
16103
|
+
*
|
|
16104
|
+
* `.max(4)` because the notifier's own action budget is small (ntfy allows
|
|
16105
|
+
* three buttons in total) and a rule that spent it all on snooze choices
|
|
16106
|
+
* would push its own tap-through actions off the notification.
|
|
16107
|
+
*
|
|
16108
|
+
* An empty list is NOT an alarm exemption: a rule the alarm is about, or
|
|
16109
|
+
* that arms the panel, is exempt automatically and cannot be silenced by a
|
|
16110
|
+
* window from anywhere (D133).
|
|
16111
|
+
*/
|
|
16112
|
+
snoozeOptions: array(number().int().min(1).max(NC_SNOOZE_MAX_MINUTES)).max(4).optional(),
|
|
16113
|
+
/**
|
|
16001
16114
|
* Devices this rule ACTUATES — arm the alarm, open a gate, turn on a light.
|
|
16002
16115
|
*
|
|
16003
16116
|
* This is what makes the rule set the alarm's trigger set without the alarm
|
|
@@ -16097,6 +16210,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
16097
16210
|
"device",
|
|
16098
16211
|
"package",
|
|
16099
16212
|
"occupancy",
|
|
16213
|
+
"audio",
|
|
16100
16214
|
"system"
|
|
16101
16215
|
]),
|
|
16102
16216
|
label: string(),
|
|
@@ -16115,6 +16229,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
16115
16229
|
"crossingSelect",
|
|
16116
16230
|
"polygonDraw",
|
|
16117
16231
|
"occupancy",
|
|
16232
|
+
"audio",
|
|
16118
16233
|
"deviceState",
|
|
16119
16234
|
"systemEvent"
|
|
16120
16235
|
]),
|
|
@@ -16266,7 +16381,20 @@ var NcSnoozeInputSchema = object({
|
|
|
16266
16381
|
ruleId: string().optional(),
|
|
16267
16382
|
/** Required when `scope: 'device'`. */
|
|
16268
16383
|
deviceId: number().int().optional(),
|
|
16269
|
-
|
|
16384
|
+
/**
|
|
16385
|
+
* Narrow the window to these subject classes — "the cat, not the person".
|
|
16386
|
+
*
|
|
16387
|
+
* ORTHOGONAL to `scope`, deliberately, and absent means EVERY class: that is
|
|
16388
|
+
* what every window authored before this field meant, so no persisted row
|
|
16389
|
+
* changes meaning and no client has to learn anything to keep working.
|
|
16390
|
+
*
|
|
16391
|
+
* It is what makes the window's real key `(deviceId, classes[])` and lets it
|
|
16392
|
+
* cross rules (D133): the operator points at a camera and a kind of thing,
|
|
16393
|
+
* not at whichever of their four rules happened to produce the notification
|
|
16394
|
+
* they are dismissing.
|
|
16395
|
+
*/
|
|
16396
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
16397
|
+
durationMinutes: number().int().min(1).max(NC_SNOOZE_MAX_MINUTES),
|
|
16270
16398
|
/**
|
|
16271
16399
|
* Silence this for EVERY recipient, not just the caller. Permission is
|
|
16272
16400
|
* checked server-side (the rule's `snoozeAllowGlobal`, or admin for the
|
|
@@ -16291,6 +16419,10 @@ var NcSnoozeSchema = object({
|
|
|
16291
16419
|
scope: NcSnoozeScopeSchema,
|
|
16292
16420
|
ruleId: string().optional(),
|
|
16293
16421
|
deviceId: number().int().optional(),
|
|
16422
|
+
/** Subject classes this window covers. ABSENT = every class — see
|
|
16423
|
+
* {@link NcSnoozeInputSchema.shape.classes}. Lives in the JSON blob and has
|
|
16424
|
+
* no SQLite column: nothing queries a window by class. */
|
|
16425
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
16294
16426
|
startedAt: number(),
|
|
16295
16427
|
/** Exclusive: at exactly this instant the snooze is over. Expiry is a
|
|
16296
16428
|
* COMPARISON, not a job — no sweeper can leave the operator silenced. */
|
|
@@ -18391,7 +18523,14 @@ var zonesCapability = {
|
|
|
18391
18523
|
* handle. Slice shape is `{ zones: Zone[] }` so future extensions
|
|
18392
18524
|
* (e.g. zone groupings) can sit alongside the polygon list.
|
|
18393
18525
|
*/
|
|
18394
|
-
runtimeState: object({ zones: array(ZoneSchema).readonly() })
|
|
18526
|
+
runtimeState: object({ zones: array(ZoneSchema).readonly() }),
|
|
18527
|
+
/**
|
|
18528
|
+
* 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.
|
|
18529
|
+
*
|
|
18530
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
18531
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
18532
|
+
*/
|
|
18533
|
+
durability: "restored"
|
|
18395
18534
|
};
|
|
18396
18535
|
/**
|
|
18397
18536
|
* A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
|
|
@@ -18561,6 +18700,22 @@ var detectionFpsField = {
|
|
|
18561
18700
|
default: 10,
|
|
18562
18701
|
step: 1
|
|
18563
18702
|
};
|
|
18703
|
+
/**
|
|
18704
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
18705
|
+
*
|
|
18706
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
18707
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
18708
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
18709
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
18710
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
18711
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
18712
|
+
*
|
|
18713
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
18714
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
18715
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
18716
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
18717
|
+
* that ships with an addon deploy.
|
|
18718
|
+
*/
|
|
18564
18719
|
var occupancyRecheckSecField = {
|
|
18565
18720
|
min: 0,
|
|
18566
18721
|
max: 300,
|
|
@@ -18762,15 +18917,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
18762
18917
|
*/
|
|
18763
18918
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
18764
18919
|
/**
|
|
18765
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
18766
|
-
*
|
|
18767
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
18768
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
18769
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
18920
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
18921
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
18770
18922
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
18771
18923
|
* (and only render) when this is enabled.
|
|
18772
|
-
|
|
18773
|
-
|
|
18924
|
+
*
|
|
18925
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
18926
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
18927
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
18928
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
18929
|
+
* object is counted only while the stationary registry holds it, and the
|
|
18930
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
18931
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
18932
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
18933
|
+
*/
|
|
18934
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
18774
18935
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
18775
18936
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
18776
18937
|
/**
|
|
@@ -21190,7 +21351,17 @@ var airQualitySensorCapability = {
|
|
|
21190
21351
|
schema: AirQualitySensorStatusSchema,
|
|
21191
21352
|
kind: "push"
|
|
21192
21353
|
},
|
|
21193
|
-
runtimeState: AirQualitySensorStatusSchema
|
|
21354
|
+
runtimeState: AirQualitySensorStatusSchema,
|
|
21355
|
+
/**
|
|
21356
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
21357
|
+
*
|
|
21358
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21359
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21360
|
+
*/
|
|
21361
|
+
durability: "restored",
|
|
21362
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21363
|
+
* whether persisting is worth a SQLite commit. */
|
|
21364
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
21194
21365
|
};
|
|
21195
21366
|
/**
|
|
21196
21367
|
* Ambient illuminance reading in lux. Drives Home Assistant `sensor`
|
|
@@ -21222,7 +21393,17 @@ var ambientLightSensorCapability = {
|
|
|
21222
21393
|
schema: AmbientLightSensorStatusSchema,
|
|
21223
21394
|
kind: "push"
|
|
21224
21395
|
},
|
|
21225
|
-
runtimeState: AmbientLightSensorStatusSchema
|
|
21396
|
+
runtimeState: AmbientLightSensorStatusSchema,
|
|
21397
|
+
/**
|
|
21398
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
21399
|
+
*
|
|
21400
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21401
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21402
|
+
*/
|
|
21403
|
+
durability: "restored",
|
|
21404
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21405
|
+
* whether persisting is worth a SQLite commit. */
|
|
21406
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
21226
21407
|
};
|
|
21227
21408
|
/**
|
|
21228
21409
|
* Per-class audio metrics aggregated over a sliding window.
|
|
@@ -21340,7 +21521,14 @@ var audioMetricsCapability = {
|
|
|
21340
21521
|
}), AudioMetricsHistorySchema)
|
|
21341
21522
|
},
|
|
21342
21523
|
/** Reactive runtime-state mirror — live `device.state.audioMetrics.value`. */
|
|
21343
|
-
runtimeState: AudioMetricsSnapshotSchema
|
|
21524
|
+
runtimeState: AudioMetricsSnapshotSchema,
|
|
21525
|
+
/**
|
|
21526
|
+
* 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.
|
|
21527
|
+
*
|
|
21528
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21529
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21530
|
+
*/
|
|
21531
|
+
durability: "session"
|
|
21344
21532
|
};
|
|
21345
21533
|
/**
|
|
21346
21534
|
* Automation-control cap. Models HA `automation.*` entities on
|
|
@@ -21402,7 +21590,14 @@ var automationControlCapability = {
|
|
|
21402
21590
|
* reads `enabled` (toggle) + `isRunning` (spinner) + `lastError`
|
|
21403
21591
|
* (badge) directly.
|
|
21404
21592
|
*/
|
|
21405
|
-
runtimeState: AutomationControlStatusSchema
|
|
21593
|
+
runtimeState: AutomationControlStatusSchema,
|
|
21594
|
+
/**
|
|
21595
|
+
* 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.
|
|
21596
|
+
*
|
|
21597
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21598
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21599
|
+
*/
|
|
21600
|
+
durability: "session"
|
|
21406
21601
|
};
|
|
21407
21602
|
/**
|
|
21408
21603
|
* Battery status snapshot. Emitted by providers whose device is
|
|
@@ -21508,7 +21703,17 @@ onStatusChanged: { data: object({
|
|
|
21508
21703
|
* via `device.runtimeState.getCapState('battery')` regardless of
|
|
21509
21704
|
* the underlying driver.
|
|
21510
21705
|
*/
|
|
21511
|
-
runtimeState: BatteryStatusSchema
|
|
21706
|
+
runtimeState: BatteryStatusSchema,
|
|
21707
|
+
/**
|
|
21708
|
+
* 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.
|
|
21709
|
+
*
|
|
21710
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21711
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21712
|
+
*/
|
|
21713
|
+
durability: "restored",
|
|
21714
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21715
|
+
* whether persisting is worth a SQLite commit. */
|
|
21716
|
+
volatileStateFields: ["lastUpdated"]
|
|
21512
21717
|
};
|
|
21513
21718
|
/**
|
|
21514
21719
|
* Generic boolean sensor — last-resort fallback when no domain-
|
|
@@ -21537,7 +21742,17 @@ var binaryCapability = {
|
|
|
21537
21742
|
schema: BinaryStatusSchema,
|
|
21538
21743
|
kind: "push"
|
|
21539
21744
|
},
|
|
21540
|
-
runtimeState: BinaryStatusSchema
|
|
21745
|
+
runtimeState: BinaryStatusSchema,
|
|
21746
|
+
/**
|
|
21747
|
+
* Runtime-state durability: **restored** — transition-driven sensor state; the restored value gives the boot comparison.
|
|
21748
|
+
*
|
|
21749
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21750
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21751
|
+
*/
|
|
21752
|
+
durability: "restored",
|
|
21753
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21754
|
+
* whether persisting is worth a SQLite commit. */
|
|
21755
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21541
21756
|
};
|
|
21542
21757
|
/**
|
|
21543
21758
|
* Dimmable-light brightness control. Co-exists with `switch` on the
|
|
@@ -21590,7 +21805,14 @@ onBrightnessChanged: { data: object({
|
|
|
21590
21805
|
* by the kernel. Read via `device.state.brightness.value` so UI
|
|
21591
21806
|
* sliders surface the current level without polling the provider.
|
|
21592
21807
|
*/
|
|
21593
|
-
runtimeState: BrightnessStatusSchema
|
|
21808
|
+
runtimeState: BrightnessStatusSchema,
|
|
21809
|
+
/**
|
|
21810
|
+
* Runtime-state durability: **session** — live lamp state, re-published by the provider on connect.
|
|
21811
|
+
*
|
|
21812
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21813
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21814
|
+
*/
|
|
21815
|
+
durability: "session"
|
|
21594
21816
|
};
|
|
21595
21817
|
DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _void(), {
|
|
21596
21818
|
kind: "mutation",
|
|
@@ -21678,7 +21900,17 @@ var carbonMonoxideCapability = {
|
|
|
21678
21900
|
schema: CarbonMonoxideStatusSchema,
|
|
21679
21901
|
kind: "push"
|
|
21680
21902
|
},
|
|
21681
|
-
runtimeState: CarbonMonoxideStatusSchema
|
|
21903
|
+
runtimeState: CarbonMonoxideStatusSchema,
|
|
21904
|
+
/**
|
|
21905
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
21906
|
+
*
|
|
21907
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21908
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21909
|
+
*/
|
|
21910
|
+
durability: "restored",
|
|
21911
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21912
|
+
* whether persisting is worth a SQLite commit. */
|
|
21913
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21682
21914
|
};
|
|
21683
21915
|
/**
|
|
21684
21916
|
* HVAC / climate control cap. Models the full surface of a HA
|
|
@@ -21838,7 +22070,14 @@ var climateControlCapability = {
|
|
|
21838
22070
|
* the full slice via `device.state.climate-control.value` and refresh
|
|
21839
22071
|
* on every push without re-querying the provider.
|
|
21840
22072
|
*/
|
|
21841
|
-
runtimeState: ClimateControlStatusSchema
|
|
22073
|
+
runtimeState: ClimateControlStatusSchema,
|
|
22074
|
+
/**
|
|
22075
|
+
* Runtime-state durability: **session** — as `brightness`; `currentTemp` moves continuously and is re-published on connect.
|
|
22076
|
+
*
|
|
22077
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22078
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22079
|
+
*/
|
|
22080
|
+
durability: "session"
|
|
21842
22081
|
};
|
|
21843
22082
|
/**
|
|
21844
22083
|
* Color-light cap. Coexists with `switch` (on/off) and `brightness`
|
|
@@ -21948,7 +22187,14 @@ onColorChanged: { data: object({
|
|
|
21948
22187
|
* kernel. Read via `device.state.color.value` so UI pickers surface
|
|
21949
22188
|
* the current chromaticity without polling the provider.
|
|
21950
22189
|
*/
|
|
21951
|
-
runtimeState: ColorStatusSchema
|
|
22190
|
+
runtimeState: ColorStatusSchema,
|
|
22191
|
+
/**
|
|
22192
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
22193
|
+
*
|
|
22194
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22195
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22196
|
+
*/
|
|
22197
|
+
durability: "session"
|
|
21952
22198
|
};
|
|
21953
22199
|
var ConnectionTestOutcomeSchema = discriminatedUnion("outcome", [
|
|
21954
22200
|
object({
|
|
@@ -22014,7 +22260,17 @@ var connectivityCapability = {
|
|
|
22014
22260
|
schema: ConnectivityStatusSchema,
|
|
22015
22261
|
kind: "push"
|
|
22016
22262
|
},
|
|
22017
|
-
runtimeState: ConnectivityStatusSchema
|
|
22263
|
+
runtimeState: ConnectivityStatusSchema,
|
|
22264
|
+
/**
|
|
22265
|
+
* Runtime-state durability: **restored** — same shape and same argument as `device-status`, for links rather than devices.
|
|
22266
|
+
*
|
|
22267
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22268
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22269
|
+
*/
|
|
22270
|
+
durability: "restored",
|
|
22271
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22272
|
+
* whether persisting is worth a SQLite commit. */
|
|
22273
|
+
volatileStateFields: ["lastChangedAt"]
|
|
22018
22274
|
};
|
|
22019
22275
|
/**
|
|
22020
22276
|
* Generic device-consumables capability — surfaces a device's
|
|
@@ -22096,7 +22352,14 @@ reset: method(object({
|
|
|
22096
22352
|
}
|
|
22097
22353
|
}
|
|
22098
22354
|
},
|
|
22099
|
-
runtimeState: ConsumablesStatusSchema.extend({ lastFetchedAt: number() })
|
|
22355
|
+
runtimeState: ConsumablesStatusSchema.extend({ lastFetchedAt: number() }),
|
|
22356
|
+
/**
|
|
22357
|
+
* Runtime-state durability: **session** — the authority is the appliance; the provider re-reads the whole item array on connect.
|
|
22358
|
+
*
|
|
22359
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22360
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22361
|
+
*/
|
|
22362
|
+
durability: "session"
|
|
22100
22363
|
};
|
|
22101
22364
|
/**
|
|
22102
22365
|
* Door / window / opening / garage / valve contact sensor. Boolean
|
|
@@ -22127,7 +22390,17 @@ var contactCapability = {
|
|
|
22127
22390
|
schema: ContactStatusSchema,
|
|
22128
22391
|
kind: "push"
|
|
22129
22392
|
},
|
|
22130
|
-
runtimeState: ContactStatusSchema
|
|
22393
|
+
runtimeState: ContactStatusSchema,
|
|
22394
|
+
/**
|
|
22395
|
+
* Runtime-state durability: **restored** — a door left open across a restart must still read open.
|
|
22396
|
+
*
|
|
22397
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22398
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22399
|
+
*/
|
|
22400
|
+
durability: "restored",
|
|
22401
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22402
|
+
* whether persisting is worth a SQLite commit. */
|
|
22403
|
+
volatileStateFields: ["lastChangedAt"]
|
|
22131
22404
|
};
|
|
22132
22405
|
/**
|
|
22133
22406
|
* Status slice — flat object (the framework's `runtimeState` contract
|
|
@@ -22233,7 +22506,14 @@ var controlCapability = {
|
|
|
22233
22506
|
* dropdown / text field / date picker) read the slice's discriminant
|
|
22234
22507
|
* and value directly without polling the provider.
|
|
22235
22508
|
*/
|
|
22236
|
-
runtimeState: ControlStatusSchema
|
|
22509
|
+
runtimeState: ControlStatusSchema,
|
|
22510
|
+
/**
|
|
22511
|
+
* Runtime-state durability: **session** — a generic control mirrors an external entity that re-publishes on connect; the options array is re-derived with it.
|
|
22512
|
+
*
|
|
22513
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22514
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22515
|
+
*/
|
|
22516
|
+
durability: "session"
|
|
22237
22517
|
};
|
|
22238
22518
|
var CoverStatusSchema = object({
|
|
22239
22519
|
/** Lifecycle state of the cover. */
|
|
@@ -22294,7 +22574,17 @@ var coverCapability = {
|
|
|
22294
22574
|
* Runtime-state slice — mirrored by the kernel. UI controls watch
|
|
22295
22575
|
* the slice for live position changes during a move.
|
|
22296
22576
|
*/
|
|
22297
|
-
runtimeState: CoverStatusSchema
|
|
22577
|
+
runtimeState: CoverStatusSchema,
|
|
22578
|
+
/**
|
|
22579
|
+
* Runtime-state durability: **restored** — position survives a restart on the device; the mirror should agree at boot rather than read blank.
|
|
22580
|
+
*
|
|
22581
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22582
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22583
|
+
*/
|
|
22584
|
+
durability: "restored",
|
|
22585
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22586
|
+
* whether persisting is worth a SQLite commit. */
|
|
22587
|
+
volatileStateFields: ["lastChangedAt"]
|
|
22298
22588
|
};
|
|
22299
22589
|
/**
|
|
22300
22590
|
* Vendor-neutral day/night (IR-cut) control — the per-camera config cap
|
|
@@ -22388,7 +22678,17 @@ var dayNightCapability = {
|
|
|
22388
22678
|
schema: DayNightStatusSchema,
|
|
22389
22679
|
kind: "poll"
|
|
22390
22680
|
},
|
|
22391
|
-
runtimeState: DayNightStatusSchema
|
|
22681
|
+
runtimeState: DayNightStatusSchema,
|
|
22682
|
+
/**
|
|
22683
|
+
* Runtime-state durability: **restored** — operator-set IR-cut behaviour; mutation-driven.
|
|
22684
|
+
*
|
|
22685
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22686
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22687
|
+
*/
|
|
22688
|
+
durability: "restored",
|
|
22689
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22690
|
+
* whether persisting is worth a SQLite commit. */
|
|
22691
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
22392
22692
|
};
|
|
22393
22693
|
/**
|
|
22394
22694
|
* Generic device-level status snapshot. Auto-registered by `BaseDevice`
|
|
@@ -22435,7 +22735,17 @@ onStatusChanged: { data: object({
|
|
|
22435
22735
|
schema: DeviceStatusSchema,
|
|
22436
22736
|
kind: "push"
|
|
22437
22737
|
},
|
|
22438
|
-
runtimeState: DeviceStatusSchema
|
|
22738
|
+
runtimeState: DeviceStatusSchema,
|
|
22739
|
+
/**
|
|
22740
|
+
* 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.
|
|
22741
|
+
*
|
|
22742
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22743
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22744
|
+
*/
|
|
22745
|
+
durability: "restored",
|
|
22746
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22747
|
+
* whether persisting is worth a SQLite commit. */
|
|
22748
|
+
volatileStateFields: ["lastChangedAt"]
|
|
22439
22749
|
};
|
|
22440
22750
|
/**
|
|
22441
22751
|
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
@@ -22497,7 +22807,14 @@ onPressed: { data: DoorbellPressEventSchema } },
|
|
|
22497
22807
|
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
22498
22808
|
* without subscribing.
|
|
22499
22809
|
*/
|
|
22500
|
-
runtimeState: DoorbellStatusSchema
|
|
22810
|
+
runtimeState: DoorbellStatusSchema,
|
|
22811
|
+
/**
|
|
22812
|
+
* 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.
|
|
22813
|
+
*
|
|
22814
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22815
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22816
|
+
*/
|
|
22817
|
+
durability: "restored"
|
|
22501
22818
|
};
|
|
22502
22819
|
/**
|
|
22503
22820
|
* Enum-state sensor — a string value picked from a finite option set.
|
|
@@ -22537,7 +22854,17 @@ var enumSensorCapability = {
|
|
|
22537
22854
|
schema: EnumSensorStatusSchema,
|
|
22538
22855
|
kind: "push"
|
|
22539
22856
|
},
|
|
22540
|
-
runtimeState: EnumSensorStatusSchema
|
|
22857
|
+
runtimeState: EnumSensorStatusSchema,
|
|
22858
|
+
/**
|
|
22859
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`; 80 devices.
|
|
22860
|
+
*
|
|
22861
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22862
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22863
|
+
*/
|
|
22864
|
+
durability: "restored",
|
|
22865
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22866
|
+
* whether persisting is worth a SQLite commit. */
|
|
22867
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
22541
22868
|
};
|
|
22542
22869
|
/**
|
|
22543
22870
|
* Generic stateless event emitter. Installed on a `DeviceType.EventEmitter`
|
|
@@ -22573,7 +22900,14 @@ var eventEmitterCapability = {
|
|
|
22573
22900
|
schema: EventEmitterStatusSchema,
|
|
22574
22901
|
kind: "push"
|
|
22575
22902
|
},
|
|
22576
|
-
runtimeState: EventEmitterStatusSchema
|
|
22903
|
+
runtimeState: EventEmitterStatusSchema,
|
|
22904
|
+
/**
|
|
22905
|
+
* Runtime-state durability: **session** — `eventCountSinceStart` names its own scope.
|
|
22906
|
+
*
|
|
22907
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22908
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22909
|
+
*/
|
|
22910
|
+
durability: "session"
|
|
22577
22911
|
};
|
|
22578
22912
|
var EventItemSchema = object({
|
|
22579
22913
|
id: string(),
|
|
@@ -22854,7 +23188,14 @@ var fanControlCapability = {
|
|
|
22854
23188
|
* Runtime-state slice — mirrored by the kernel. UI fan speed
|
|
22855
23189
|
* sliders read `percentage` for live updates.
|
|
22856
23190
|
*/
|
|
22857
|
-
runtimeState: FanControlStatusSchema
|
|
23191
|
+
runtimeState: FanControlStatusSchema,
|
|
23192
|
+
/**
|
|
23193
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
23194
|
+
*
|
|
23195
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23196
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23197
|
+
*/
|
|
23198
|
+
durability: "session"
|
|
22858
23199
|
};
|
|
22859
23200
|
/**
|
|
22860
23201
|
* Per-device feature/identity probe slice. Holds the runtime-resolved
|
|
@@ -22930,7 +23271,14 @@ onProbeChanged: { data: object({
|
|
|
22930
23271
|
schema: FeatureProbeStatusSchema,
|
|
22931
23272
|
kind: "push"
|
|
22932
23273
|
},
|
|
22933
|
-
runtimeState: FeatureProbeStatusSchema
|
|
23274
|
+
runtimeState: FeatureProbeStatusSchema,
|
|
23275
|
+
/**
|
|
23276
|
+
* 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.
|
|
23277
|
+
*
|
|
23278
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23279
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23280
|
+
*/
|
|
23281
|
+
durability: "session"
|
|
22934
23282
|
};
|
|
22935
23283
|
/**
|
|
22936
23284
|
* Water leak / moisture sensor. Boolean "is liquid currently
|
|
@@ -22957,7 +23305,17 @@ var floodCapability = {
|
|
|
22957
23305
|
schema: FloodStatusSchema,
|
|
22958
23306
|
kind: "push"
|
|
22959
23307
|
},
|
|
22960
|
-
runtimeState: FloodStatusSchema
|
|
23308
|
+
runtimeState: FloodStatusSchema,
|
|
23309
|
+
/**
|
|
23310
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
23311
|
+
*
|
|
23312
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23313
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23314
|
+
*/
|
|
23315
|
+
durability: "restored",
|
|
23316
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23317
|
+
* whether persisting is worth a SQLite commit. */
|
|
23318
|
+
volatileStateFields: ["lastChangedAt"]
|
|
22961
23319
|
};
|
|
22962
23320
|
/**
|
|
22963
23321
|
* Combustible-gas (LPG / methane / hydrogen) alarm sensor. Drives
|
|
@@ -22980,7 +23338,17 @@ var gasCapability = {
|
|
|
22980
23338
|
schema: GasStatusSchema,
|
|
22981
23339
|
kind: "push"
|
|
22982
23340
|
},
|
|
22983
|
-
runtimeState: GasStatusSchema
|
|
23341
|
+
runtimeState: GasStatusSchema,
|
|
23342
|
+
/**
|
|
23343
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
23344
|
+
*
|
|
23345
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23346
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23347
|
+
*/
|
|
23348
|
+
durability: "restored",
|
|
23349
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23350
|
+
* whether persisting is worth a SQLite commit. */
|
|
23351
|
+
volatileStateFields: ["lastChangedAt"]
|
|
22984
23352
|
};
|
|
22985
23353
|
/**
|
|
22986
23354
|
* Humidifier / dehumidifier cap. Models HA `humidifier.*` entities —
|
|
@@ -23056,7 +23424,14 @@ var humidifierCapability = {
|
|
|
23056
23424
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
23057
23425
|
* slice for live humidity / mode changes.
|
|
23058
23426
|
*/
|
|
23059
|
-
runtimeState: HumidifierStatusSchema
|
|
23427
|
+
runtimeState: HumidifierStatusSchema,
|
|
23428
|
+
/**
|
|
23429
|
+
* Runtime-state durability: **session** — as `climate-control`.
|
|
23430
|
+
*
|
|
23431
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23432
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23433
|
+
*/
|
|
23434
|
+
durability: "session"
|
|
23060
23435
|
};
|
|
23061
23436
|
/**
|
|
23062
23437
|
* Single-metric humidity reading. Drives Home Assistant `sensor`
|
|
@@ -23092,7 +23467,17 @@ var humiditySensorCapability = {
|
|
|
23092
23467
|
schema: HumiditySensorStatusSchema,
|
|
23093
23468
|
kind: "push"
|
|
23094
23469
|
},
|
|
23095
|
-
runtimeState: HumiditySensorStatusSchema
|
|
23470
|
+
runtimeState: HumiditySensorStatusSchema,
|
|
23471
|
+
/**
|
|
23472
|
+
* Runtime-state durability: **restored** — as `numeric-sensor` (67 of 75 writes were the clock alone).
|
|
23473
|
+
*
|
|
23474
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23475
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23476
|
+
*/
|
|
23477
|
+
durability: "restored",
|
|
23478
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23479
|
+
* whether persisting is worth a SQLite commit. */
|
|
23480
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23096
23481
|
};
|
|
23097
23482
|
/**
|
|
23098
23483
|
* Image display cap. Models a single still image exposed by an integration —
|
|
@@ -23130,7 +23515,14 @@ var imageCapability = {
|
|
|
23130
23515
|
* Runtime-state slice — mirrored by the kernel. The UI reads `url`
|
|
23131
23516
|
* directly and renders the still image.
|
|
23132
23517
|
*/
|
|
23133
|
-
runtimeState: ImageStatusSchema
|
|
23518
|
+
runtimeState: ImageStatusSchema,
|
|
23519
|
+
/**
|
|
23520
|
+
* Runtime-state durability: **session** — a snapshot URL is a session-scoped handle; a restored one points at nothing.
|
|
23521
|
+
*
|
|
23522
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23523
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23524
|
+
*/
|
|
23525
|
+
durability: "session"
|
|
23134
23526
|
};
|
|
23135
23527
|
/**
|
|
23136
23528
|
* Vendor-neutral image / picture-adjustment cap — the per-camera config
|
|
@@ -23279,7 +23671,17 @@ var imageSettingsCapability = {
|
|
|
23279
23671
|
schema: ImageSettingsStatusSchema,
|
|
23280
23672
|
kind: "poll"
|
|
23281
23673
|
},
|
|
23282
|
-
runtimeState: ImageSettingsStatusSchema
|
|
23674
|
+
runtimeState: ImageSettingsStatusSchema,
|
|
23675
|
+
/**
|
|
23676
|
+
* Runtime-state durability: **restored** — operator-set camera imaging; mutation-driven.
|
|
23677
|
+
*
|
|
23678
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23679
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23680
|
+
*/
|
|
23681
|
+
durability: "restored",
|
|
23682
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23683
|
+
* whether persisting is worth a SQLite commit. */
|
|
23684
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23283
23685
|
};
|
|
23284
23686
|
/**
|
|
23285
23687
|
* integrations — system-scoped singleton capability for integration
|
|
@@ -23619,7 +24021,14 @@ var lawnMowerControlCapability = {
|
|
|
23619
24021
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
23620
24022
|
* slice for live activity + battery changes.
|
|
23621
24023
|
*/
|
|
23622
|
-
runtimeState: LawnMowerControlStatusSchema
|
|
24024
|
+
runtimeState: LawnMowerControlStatusSchema,
|
|
24025
|
+
/**
|
|
24026
|
+
* Runtime-state durability: **session** — as `vacuum-control`.
|
|
24027
|
+
*
|
|
24028
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24029
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24030
|
+
*/
|
|
24031
|
+
durability: "session"
|
|
23623
24032
|
};
|
|
23624
24033
|
/**
|
|
23625
24034
|
* local-network — hub-only singleton.
|
|
@@ -23825,7 +24234,17 @@ var lockControlCapability = {
|
|
|
23825
24234
|
* read `state` and disable themselves during `locking`/`unlocking`
|
|
23826
24235
|
* transitions.
|
|
23827
24236
|
*/
|
|
23828
|
-
runtimeState: LockControlStatusSchema
|
|
24237
|
+
runtimeState: LockControlStatusSchema,
|
|
24238
|
+
/**
|
|
24239
|
+
* Runtime-state durability: **restored** — a lock left locked must still read locked.
|
|
24240
|
+
*
|
|
24241
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24242
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24243
|
+
*/
|
|
24244
|
+
durability: "restored",
|
|
24245
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24246
|
+
* whether persisting is worth a SQLite commit. */
|
|
24247
|
+
volatileStateFields: ["lastChangedAt"]
|
|
23829
24248
|
};
|
|
23830
24249
|
/**
|
|
23831
24250
|
* Media-player cap. Models HA `media_player.*` (Sonos, Chromecast,
|
|
@@ -23987,7 +24406,14 @@ var mediaPlayerCapability = {
|
|
|
23987
24406
|
* full slice for live now-playing, volume, and progress updates
|
|
23988
24407
|
* without polling.
|
|
23989
24408
|
*/
|
|
23990
|
-
runtimeState: MediaPlayerStatusSchema
|
|
24409
|
+
runtimeState: MediaPlayerStatusSchema,
|
|
24410
|
+
/**
|
|
24411
|
+
* Runtime-state durability: **session** — a restored transport position describes a playback that stopped when the hub did.
|
|
24412
|
+
*
|
|
24413
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24414
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24415
|
+
*/
|
|
24416
|
+
durability: "session"
|
|
23991
24417
|
};
|
|
23992
24418
|
/**
|
|
23993
24419
|
* mesh-network — collection cap for mesh-VPN providers.
|
|
@@ -24251,7 +24677,14 @@ onMotionChanged: { data: MotionOnMotionChangedDataSchema } },
|
|
|
24251
24677
|
* `device.state.motion.value`. Reads never invoke the provider, so
|
|
24252
24678
|
* UIs and other addons can poll the cached state safely.
|
|
24253
24679
|
*/
|
|
24254
|
-
runtimeState: MotionStatusSchema
|
|
24680
|
+
runtimeState: MotionStatusSchema,
|
|
24681
|
+
/**
|
|
24682
|
+
* 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.
|
|
24683
|
+
*
|
|
24684
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24685
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24686
|
+
*/
|
|
24687
|
+
durability: "session"
|
|
24255
24688
|
};
|
|
24256
24689
|
/**
|
|
24257
24690
|
* Motion-trigger toggle for accessory devices.
|
|
@@ -24316,7 +24749,14 @@ var motionTriggerCapability = {
|
|
|
24316
24749
|
schema: MotionTriggerStatusSchema,
|
|
24317
24750
|
kind: "command-driven"
|
|
24318
24751
|
},
|
|
24319
|
-
runtimeState: MotionTriggerRuntimeStateSchema
|
|
24752
|
+
runtimeState: MotionTriggerRuntimeStateSchema,
|
|
24753
|
+
/**
|
|
24754
|
+
* 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.
|
|
24755
|
+
*
|
|
24756
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24757
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24758
|
+
*/
|
|
24759
|
+
durability: "session"
|
|
24320
24760
|
};
|
|
24321
24761
|
/**
|
|
24322
24762
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
@@ -24383,7 +24823,17 @@ var motionZonesCapability = {
|
|
|
24383
24823
|
schema: MotionZoneStatusSchema,
|
|
24384
24824
|
kind: "poll"
|
|
24385
24825
|
},
|
|
24386
|
-
runtimeState: MotionZoneStatusSchema
|
|
24826
|
+
runtimeState: MotionZoneStatusSchema,
|
|
24827
|
+
/**
|
|
24828
|
+
* 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.
|
|
24829
|
+
*
|
|
24830
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24831
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24832
|
+
*/
|
|
24833
|
+
durability: "restored",
|
|
24834
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24835
|
+
* whether persisting is worth a SQLite commit. */
|
|
24836
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24387
24837
|
};
|
|
24388
24838
|
/**
|
|
24389
24839
|
* On-camera AI object detection cap. Surfaces per-device the classes
|
|
@@ -24457,7 +24907,17 @@ var nativeObjectDetectionCapability = {
|
|
|
24457
24907
|
schema: NativeObjectDetectionStatusSchema,
|
|
24458
24908
|
kind: "push"
|
|
24459
24909
|
},
|
|
24460
|
-
runtimeState: NativeObjectDetectionRuntimeStateSchema
|
|
24910
|
+
runtimeState: NativeObjectDetectionRuntimeStateSchema,
|
|
24911
|
+
/**
|
|
24912
|
+
* 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.
|
|
24913
|
+
*
|
|
24914
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24915
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24916
|
+
*/
|
|
24917
|
+
durability: "restored",
|
|
24918
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24919
|
+
* whether persisting is worth a SQLite commit. */
|
|
24920
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24461
24921
|
};
|
|
24462
24922
|
/**
|
|
24463
24923
|
* network-quality — system-scoped singleton capability tracking RTT,
|
|
@@ -24791,7 +25251,14 @@ onSent: { data: object({
|
|
|
24791
25251
|
* form reads `supports` to gate optional fields; history pane reads
|
|
24792
25252
|
* `lastSentAt` / `lastError` / `queueDepth`.
|
|
24793
25253
|
*/
|
|
24794
|
-
runtimeState: NotifierStatusSchema
|
|
25254
|
+
runtimeState: NotifierStatusSchema,
|
|
25255
|
+
/**
|
|
25256
|
+
* Runtime-state durability: **session** — live queue depth and last-send state; a restored queue depth describes a queue that no longer exists.
|
|
25257
|
+
*
|
|
25258
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25259
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25260
|
+
*/
|
|
25261
|
+
durability: "session"
|
|
24795
25262
|
};
|
|
24796
25263
|
/**
|
|
24797
25264
|
* Generic numeric sensor — last-resort fallback when no typed numeric
|
|
@@ -24834,7 +25301,17 @@ var numericSensorCapability = {
|
|
|
24834
25301
|
schema: NumericSensorStatusSchema,
|
|
24835
25302
|
kind: "push"
|
|
24836
25303
|
},
|
|
24837
|
-
runtimeState: NumericSensorStatusSchema
|
|
25304
|
+
runtimeState: NumericSensorStatusSchema,
|
|
25305
|
+
/**
|
|
25306
|
+
* 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.
|
|
25307
|
+
*
|
|
25308
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25309
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25310
|
+
*/
|
|
25311
|
+
durability: "restored",
|
|
25312
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25313
|
+
* whether persisting is worth a SQLite commit. */
|
|
25314
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24838
25315
|
};
|
|
24839
25316
|
/**
|
|
24840
25317
|
* Generic on-screen-display (video overlay) cap. Each camera exposes
|
|
@@ -25219,7 +25696,14 @@ var petFeederCapability = {
|
|
|
25219
25696
|
* the full slice via `device.state.petFeeder.value` and refresh on
|
|
25220
25697
|
* every poll without re-querying the provider.
|
|
25221
25698
|
*/
|
|
25222
|
-
runtimeState: PetFeederStatusSchema
|
|
25699
|
+
runtimeState: PetFeederStatusSchema,
|
|
25700
|
+
/**
|
|
25701
|
+
* Runtime-state durability: **session** — live appliance state re-published on connect.
|
|
25702
|
+
*
|
|
25703
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25704
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25705
|
+
*/
|
|
25706
|
+
durability: "session"
|
|
25223
25707
|
};
|
|
25224
25708
|
var VehicleSchema = object({
|
|
25225
25709
|
id: string(),
|
|
@@ -25531,7 +26015,17 @@ var powerMeterCapability = {
|
|
|
25531
26015
|
schema: PowerMeterStatusSchema,
|
|
25532
26016
|
kind: "push"
|
|
25533
26017
|
},
|
|
25534
|
-
runtimeState: PowerMeterStatusSchema
|
|
26018
|
+
runtimeState: PowerMeterStatusSchema,
|
|
26019
|
+
/**
|
|
26020
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`; `kwhTotal` is an accumulator whose restored value is the baseline.
|
|
26021
|
+
*
|
|
26022
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26023
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26024
|
+
*/
|
|
26025
|
+
durability: "restored",
|
|
26026
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26027
|
+
* whether persisting is worth a SQLite commit. */
|
|
26028
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
25535
26029
|
};
|
|
25536
26030
|
/**
|
|
25537
26031
|
* Presence cap. Models HA `person.*` and `device_tracker.*` entities
|
|
@@ -25588,7 +26082,17 @@ var presenceCapability = {
|
|
|
25588
26082
|
* the map pin is rendered (use `DeviceFeature.PresenceGps` for the
|
|
25589
26083
|
* pre-fetch fast-path check).
|
|
25590
26084
|
*/
|
|
25591
|
-
runtimeState: PresenceStatusSchema
|
|
26085
|
+
runtimeState: PresenceStatusSchema,
|
|
26086
|
+
/**
|
|
26087
|
+
* Runtime-state durability: **restored** — occupancy-relevant: the restored state is what an occupancy rule compares the first post-restart observation against.
|
|
26088
|
+
*
|
|
26089
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26090
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26091
|
+
*/
|
|
26092
|
+
durability: "restored",
|
|
26093
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26094
|
+
* whether persisting is worth a SQLite commit. */
|
|
26095
|
+
volatileStateFields: ["lastChangedAt"]
|
|
25592
26096
|
};
|
|
25593
26097
|
/**
|
|
25594
26098
|
* Atmospheric pressure reading in hectopascals. Drives Home Assistant
|
|
@@ -25624,7 +26128,17 @@ var pressureSensorCapability = {
|
|
|
25624
26128
|
schema: PressureSensorStatusSchema,
|
|
25625
26129
|
kind: "push"
|
|
25626
26130
|
},
|
|
25627
|
-
runtimeState: PressureSensorStatusSchema
|
|
26131
|
+
runtimeState: PressureSensorStatusSchema,
|
|
26132
|
+
/**
|
|
26133
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
26134
|
+
*
|
|
26135
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26136
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26137
|
+
*/
|
|
26138
|
+
durability: "restored",
|
|
26139
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26140
|
+
* whether persisting is worth a SQLite commit. */
|
|
26141
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
25628
26142
|
};
|
|
25629
26143
|
/**
|
|
25630
26144
|
* PRIVACY — what the camera deliberately does not capture. Two planes:
|
|
@@ -25754,7 +26268,17 @@ var privacyMaskCapability = {
|
|
|
25754
26268
|
schema: PrivacyMaskStatusSchema,
|
|
25755
26269
|
kind: "poll"
|
|
25756
26270
|
},
|
|
25757
|
-
runtimeState: PrivacyMaskStatusSchema
|
|
26271
|
+
runtimeState: PrivacyMaskStatusSchema,
|
|
26272
|
+
/**
|
|
26273
|
+
* Runtime-state durability: **restored** — operator-drawn regions, zero real churn — 22 writes in 25 minutes, every one of them the clock.
|
|
26274
|
+
*
|
|
26275
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26276
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26277
|
+
*/
|
|
26278
|
+
durability: "restored",
|
|
26279
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26280
|
+
* whether persisting is worth a SQLite commit. */
|
|
26281
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
25758
26282
|
};
|
|
25759
26283
|
var PtzPresetSchema = object({
|
|
25760
26284
|
id: string(),
|
|
@@ -25920,7 +26444,14 @@ var ptzAutotrackCapability = {
|
|
|
25920
26444
|
* fetch / cache / fallback logic out of the four cap methods —
|
|
25921
26445
|
* they become trampolines over `runtimeState`.
|
|
25922
26446
|
*/
|
|
25923
|
-
runtimeState: PtzAutotrackRuntimeStateSchema
|
|
26447
|
+
runtimeState: PtzAutotrackRuntimeStateSchema,
|
|
26448
|
+
/**
|
|
26449
|
+
* Runtime-state durability: **session** — mirrors the camera's own autotrack config, re-read on connect.
|
|
26450
|
+
*
|
|
26451
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26452
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26453
|
+
*/
|
|
26454
|
+
durability: "session"
|
|
25924
26455
|
};
|
|
25925
26456
|
DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
|
|
25926
26457
|
kind: "mutation",
|
|
@@ -26570,7 +27101,14 @@ var sceneMonitorCapability = {
|
|
|
26570
27101
|
schema: SceneMonitorStatusSchema,
|
|
26571
27102
|
kind: "push"
|
|
26572
27103
|
},
|
|
26573
|
-
runtimeState: SceneMonitorStatusSchema
|
|
27104
|
+
runtimeState: SceneMonitorStatusSchema,
|
|
27105
|
+
/**
|
|
27106
|
+
* Runtime-state durability: **session** — re-derived from the current scene on the next evaluation.
|
|
27107
|
+
*
|
|
27108
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27109
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27110
|
+
*/
|
|
27111
|
+
durability: "session"
|
|
26574
27112
|
};
|
|
26575
27113
|
/**
|
|
26576
27114
|
* Per-stage gating mode applied to the zones a rule references.
|
|
@@ -26714,7 +27252,14 @@ var scriptRunnerCapability = {
|
|
|
26714
27252
|
* `isRunning` to render a spinner during execution and surfaces
|
|
26715
27253
|
* `lastError` / `lastRunSuccess` in the recent-runs panel.
|
|
26716
27254
|
*/
|
|
26717
|
-
runtimeState: ScriptRunnerStatusSchema
|
|
27255
|
+
runtimeState: ScriptRunnerStatusSchema,
|
|
27256
|
+
/**
|
|
27257
|
+
* Runtime-state durability: **session** — a restored `isRunning: true` describes a process that died with the previous hub.
|
|
27258
|
+
*
|
|
27259
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27260
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27261
|
+
*/
|
|
27262
|
+
durability: "session"
|
|
26718
27263
|
};
|
|
26719
27264
|
/**
|
|
26720
27265
|
* Smoke alarm sensor — boolean "is smoke currently detected" with
|
|
@@ -26741,7 +27286,17 @@ var smokeCapability = {
|
|
|
26741
27286
|
schema: SmokeStatusSchema,
|
|
26742
27287
|
kind: "push"
|
|
26743
27288
|
},
|
|
26744
|
-
runtimeState: SmokeStatusSchema
|
|
27289
|
+
runtimeState: SmokeStatusSchema,
|
|
27290
|
+
/**
|
|
27291
|
+
* Runtime-state durability: **restored** — a safety sensor must not read "clear" merely because the hub restarted.
|
|
27292
|
+
*
|
|
27293
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27294
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27295
|
+
*/
|
|
27296
|
+
durability: "restored",
|
|
27297
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27298
|
+
* whether persisting is worth a SQLite commit. */
|
|
27299
|
+
volatileStateFields: ["lastChangedAt"]
|
|
26745
27300
|
};
|
|
26746
27301
|
/**
|
|
26747
27302
|
* One publishable camera stream as its OWNING PROVIDER describes it — the same
|
|
@@ -26914,7 +27469,17 @@ var streamParamsCapability = {
|
|
|
26914
27469
|
schema: StreamParamsStatusSchema,
|
|
26915
27470
|
kind: "poll"
|
|
26916
27471
|
},
|
|
26917
|
-
runtimeState: StreamParamsStatusSchema
|
|
27472
|
+
runtimeState: StreamParamsStatusSchema,
|
|
27473
|
+
/**
|
|
27474
|
+
* Runtime-state durability: **restored** — operator-set encoder profile; mutation-driven.
|
|
27475
|
+
*
|
|
27476
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27477
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27478
|
+
*/
|
|
27479
|
+
durability: "restored",
|
|
27480
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27481
|
+
* whether persisting is worth a SQLite commit. */
|
|
27482
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
26918
27483
|
};
|
|
26919
27484
|
/**
|
|
26920
27485
|
* Generic on/off switch cap for accessory children (siren, floodlight,
|
|
@@ -26960,6 +27525,16 @@ var switchCapability = {
|
|
|
26960
27525
|
* not need to re-query the provider after a setState mutation.
|
|
26961
27526
|
*/
|
|
26962
27527
|
runtimeState: SwitchStatusSchema,
|
|
27528
|
+
/**
|
|
27529
|
+
* Runtime-state durability: **restored** — device state an operator reads as authoritative; 55 devices, transition-driven.
|
|
27530
|
+
*
|
|
27531
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27532
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27533
|
+
*/
|
|
27534
|
+
durability: "restored",
|
|
27535
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27536
|
+
* whether persisting is worth a SQLite commit. */
|
|
27537
|
+
volatileStateFields: ["lastChangedAt"],
|
|
26963
27538
|
settings: { bindings: [{
|
|
26964
27539
|
kind: "scalar",
|
|
26965
27540
|
statusPath: "on",
|
|
@@ -27039,7 +27614,17 @@ var tamperCapability = {
|
|
|
27039
27614
|
schema: TamperStatusSchema,
|
|
27040
27615
|
kind: "push"
|
|
27041
27616
|
},
|
|
27042
|
-
runtimeState: TamperStatusSchema
|
|
27617
|
+
runtimeState: TamperStatusSchema,
|
|
27618
|
+
/**
|
|
27619
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
27620
|
+
*
|
|
27621
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27622
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27623
|
+
*/
|
|
27624
|
+
durability: "restored",
|
|
27625
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27626
|
+
* whether persisting is worth a SQLite commit. */
|
|
27627
|
+
volatileStateFields: ["lastChangedAt"]
|
|
27043
27628
|
};
|
|
27044
27629
|
/**
|
|
27045
27630
|
* Single-metric temperature reading. Drives Home Assistant `sensor`
|
|
@@ -27084,7 +27669,17 @@ var temperatureSensorCapability = {
|
|
|
27084
27669
|
schema: TemperatureSensorStatusSchema,
|
|
27085
27670
|
kind: "push"
|
|
27086
27671
|
},
|
|
27087
|
-
runtimeState: TemperatureSensorStatusSchema
|
|
27672
|
+
runtimeState: TemperatureSensorStatusSchema,
|
|
27673
|
+
/**
|
|
27674
|
+
* Runtime-state durability: **restored** — as `numeric-sensor` (69 of 125 writes were the clock alone).
|
|
27675
|
+
*
|
|
27676
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27677
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27678
|
+
*/
|
|
27679
|
+
durability: "restored",
|
|
27680
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27681
|
+
* whether persisting is worth a SQLite commit. */
|
|
27682
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
27088
27683
|
};
|
|
27089
27684
|
/**
|
|
27090
27685
|
* toast — system-scoped singleton capability that streams toast
|
|
@@ -27153,7 +27748,14 @@ var updateCapability = {
|
|
|
27153
27748
|
schema: UpdateStatusSchema,
|
|
27154
27749
|
kind: "poll"
|
|
27155
27750
|
},
|
|
27156
|
-
runtimeState: UpdateStatusSchema
|
|
27751
|
+
runtimeState: UpdateStatusSchema,
|
|
27752
|
+
/**
|
|
27753
|
+
* Runtime-state durability: **session** — a restored `inProgress: true` describes an update that is no longer running; versions are re-probed at boot.
|
|
27754
|
+
*
|
|
27755
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27756
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27757
|
+
*/
|
|
27758
|
+
durability: "session"
|
|
27157
27759
|
};
|
|
27158
27760
|
var UserSummarySchema = object({
|
|
27159
27761
|
id: string(),
|
|
@@ -27487,7 +28089,14 @@ var vacuumControlCapability = {
|
|
|
27487
28089
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
27488
28090
|
* slice for live state + battery + fan-speed changes.
|
|
27489
28091
|
*/
|
|
27490
|
-
runtimeState: VacuumControlStatusSchema
|
|
28092
|
+
runtimeState: VacuumControlStatusSchema,
|
|
28093
|
+
/**
|
|
28094
|
+
* Runtime-state durability: **session** — as `media-player` — a restored `state: cleaning` is a robot that is not cleaning.
|
|
28095
|
+
*
|
|
28096
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
28097
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
28098
|
+
*/
|
|
28099
|
+
durability: "session"
|
|
27491
28100
|
};
|
|
27492
28101
|
var ValveStatusSchema = object({
|
|
27493
28102
|
/** Lifecycle state of the valve. */
|
|
@@ -27539,7 +28148,14 @@ var valveCapability = {
|
|
|
27539
28148
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
27540
28149
|
* slice for live position changes during a move.
|
|
27541
28150
|
*/
|
|
27542
|
-
runtimeState: ValveStatusSchema
|
|
28151
|
+
runtimeState: ValveStatusSchema,
|
|
28152
|
+
/**
|
|
28153
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
28154
|
+
*
|
|
28155
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
28156
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
28157
|
+
*/
|
|
28158
|
+
durability: "session"
|
|
27543
28159
|
};
|
|
27544
28160
|
/**
|
|
27545
28161
|
* Vibration / shake / impact sensor. Drives Home Assistant
|
|
@@ -27561,7 +28177,17 @@ var vibrationCapability = {
|
|
|
27561
28177
|
schema: VibrationStatusSchema,
|
|
27562
28178
|
kind: "push"
|
|
27563
28179
|
},
|
|
27564
|
-
runtimeState: VibrationStatusSchema
|
|
28180
|
+
runtimeState: VibrationStatusSchema,
|
|
28181
|
+
/**
|
|
28182
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
28183
|
+
*
|
|
28184
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
28185
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
28186
|
+
*/
|
|
28187
|
+
durability: "restored",
|
|
28188
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
28189
|
+
* whether persisting is worth a SQLite commit. */
|
|
28190
|
+
volatileStateFields: ["lastChangedAt"]
|
|
27565
28191
|
};
|
|
27566
28192
|
/**
|
|
27567
28193
|
* Water heater / boiler cap. Models HA `water_heater.*` entities — a
|
|
@@ -27635,7 +28261,14 @@ var waterHeaterCapability = {
|
|
|
27635
28261
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
27636
28262
|
* slice for live temperature / mode / away changes.
|
|
27637
28263
|
*/
|
|
27638
|
-
runtimeState: WaterHeaterStatusSchema
|
|
28264
|
+
runtimeState: WaterHeaterStatusSchema,
|
|
28265
|
+
/**
|
|
28266
|
+
* Runtime-state durability: **session** — as `climate-control`.
|
|
28267
|
+
*
|
|
28268
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
28269
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
28270
|
+
*/
|
|
28271
|
+
durability: "session"
|
|
27639
28272
|
};
|
|
27640
28273
|
/**
|
|
27641
28274
|
* Weather provider cap. Models HA `weather.*` entities — a read-only
|
|
@@ -27694,7 +28327,14 @@ var weatherCapability = {
|
|
|
27694
28327
|
* Runtime-state slice — mirrored by the kernel. The UI reads the
|
|
27695
28328
|
* current conditions directly from the slice on each weather push.
|
|
27696
28329
|
*/
|
|
27697
|
-
runtimeState: WeatherStatusSchema
|
|
28330
|
+
runtimeState: WeatherStatusSchema,
|
|
28331
|
+
/**
|
|
28332
|
+
* Runtime-state durability: **session** — a forecast is stale the moment the hub is down; the provider re-fetches on connect.
|
|
28333
|
+
*
|
|
28334
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
28335
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
28336
|
+
*/
|
|
28337
|
+
durability: "session"
|
|
27698
28338
|
};
|
|
27699
28339
|
/**
|
|
27700
28340
|
* Per-zone occupancy aggregation produced by the analytics frame
|
|
@@ -27856,7 +28496,14 @@ var zoneAnalyticsCapability = {
|
|
|
27856
28496
|
* automatically; the explicit `getCurrentSnapshot` cap method is
|
|
27857
28497
|
* still useful for one-off polls without a subscription.
|
|
27858
28498
|
*/
|
|
27859
|
-
runtimeState: CameraOccupancySnapshotSchema
|
|
28499
|
+
runtimeState: CameraOccupancySnapshotSchema,
|
|
28500
|
+
/**
|
|
28501
|
+
* Runtime-state durability: **session** — per-frame analytics; with `audio-metrics` it is ~90 % of the offered write rate. Re-derived on the next frame.
|
|
28502
|
+
*
|
|
28503
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
28504
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
28505
|
+
*/
|
|
28506
|
+
durability: "session"
|
|
27860
28507
|
};
|
|
27861
28508
|
/**
|
|
27862
28509
|
* Stages a {@link ZoneRule} can apply to. Discriminator on the rules
|
|
@@ -27934,7 +28581,14 @@ var zoneRulesCapability = {
|
|
|
27934
28581
|
motion: array(ZoneRuleSchema).readonly(),
|
|
27935
28582
|
detection: array(ZoneRuleSchema).readonly(),
|
|
27936
28583
|
package: array(ZoneRuleSchema).readonly()
|
|
27937
|
-
})
|
|
28584
|
+
}),
|
|
28585
|
+
/**
|
|
28586
|
+
* Runtime-state durability: **restored** — operator intent, mutation-only, same argument as `zones`.
|
|
28587
|
+
*
|
|
28588
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
28589
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
28590
|
+
*/
|
|
28591
|
+
durability: "restored"
|
|
27938
28592
|
};
|
|
27939
28593
|
/**
|
|
27940
28594
|
* Accessory device helpers — shared across drivers.
|
|
@@ -34621,6 +35275,7 @@ Object.freeze({
|
|
|
34621
35275
|
"network-access": "ingress",
|
|
34622
35276
|
"smtp-provider": "email"
|
|
34623
35277
|
});
|
|
35278
|
+
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
34624
35279
|
new Set(["devices", "classes"]);
|
|
34625
35280
|
/**
|
|
34626
35281
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|