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