@camstack/addon-provider-homematic 1.2.16 → 1.2.18
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
|
@@ -10829,7 +10829,14 @@ var cameraStreamsCapability = {
|
|
|
10829
10829
|
low: string().optional()
|
|
10830
10830
|
}),
|
|
10831
10831
|
lastChangedAt: number()
|
|
10832
|
-
})
|
|
10832
|
+
}),
|
|
10833
|
+
/**
|
|
10834
|
+
* 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.
|
|
10835
|
+
*
|
|
10836
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
10837
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
10838
|
+
*/
|
|
10839
|
+
durability: "session"
|
|
10833
10840
|
};
|
|
10834
10841
|
/** Where a block runs. The operator chooses — a block driving a device on an
|
|
10835
10842
|
* agent is the reason placement is not fixed to the hub. */
|
|
@@ -11390,6 +11397,13 @@ var deviceDiscoveryCapability = {
|
|
|
11390
11397
|
kind: "poll"
|
|
11391
11398
|
},
|
|
11392
11399
|
runtimeState: DeviceDiscoveryStatusSchema.extend({ lastFetchedAt: number().int().nonnegative() }),
|
|
11400
|
+
/**
|
|
11401
|
+
* Runtime-state durability: **session** — 5.7 KB of scan output on the largest device, fully re-derivable by re-scanning.
|
|
11402
|
+
*
|
|
11403
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
11404
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
11405
|
+
*/
|
|
11406
|
+
durability: "session",
|
|
11393
11407
|
methods: {
|
|
11394
11408
|
/**
|
|
11395
11409
|
* Snapshot of the current `discovered` list. Returns the
|
|
@@ -13276,11 +13290,33 @@ var NotificationFormatSchema = _enum([
|
|
|
13276
13290
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
13277
13291
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
13278
13292
|
* differently.
|
|
13293
|
+
*
|
|
13294
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
13295
|
+
*
|
|
13296
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
13297
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
13298
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
13299
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
13300
|
+
* decides its glyph, which is the only place that decision can be made
|
|
13301
|
+
* honestly.
|
|
13302
|
+
*
|
|
13303
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
13304
|
+
* `disarm` straight through; iOS feeds that string to
|
|
13305
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
13306
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
13307
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
13308
|
+
*
|
|
13309
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
13310
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
13311
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
13312
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
13313
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
13279
13314
|
*/
|
|
13280
13315
|
var NotificationActionIconSchema = _enum([
|
|
13281
13316
|
"acknowledge",
|
|
13282
13317
|
"dismiss",
|
|
13283
13318
|
"silence",
|
|
13319
|
+
"snooze",
|
|
13284
13320
|
"view",
|
|
13285
13321
|
"play",
|
|
13286
13322
|
"open",
|
|
@@ -13288,9 +13324,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
13288
13324
|
"lock",
|
|
13289
13325
|
"unlock",
|
|
13290
13326
|
"arm",
|
|
13327
|
+
"arm-home",
|
|
13328
|
+
"arm-away",
|
|
13329
|
+
"arm-night",
|
|
13291
13330
|
"disarm",
|
|
13292
13331
|
"light",
|
|
13293
|
-
"alert"
|
|
13332
|
+
"alert",
|
|
13333
|
+
"camera"
|
|
13294
13334
|
]);
|
|
13295
13335
|
/** A single tap-through action button. */
|
|
13296
13336
|
var NotificationActionSchema = object({
|
|
@@ -13306,7 +13346,23 @@ var NotificationActionSchema = object({
|
|
|
13306
13346
|
* else — see `notification-center/action-token.ts` for what that does and
|
|
13307
13347
|
* does not buy.
|
|
13308
13348
|
*/
|
|
13309
|
-
destructive: boolean().optional()
|
|
13349
|
+
destructive: boolean().optional(),
|
|
13350
|
+
/**
|
|
13351
|
+
* How the tap should REACH the url.
|
|
13352
|
+
*
|
|
13353
|
+
* `navigate` (absent, and every button authored before this field) opens it:
|
|
13354
|
+
* the phone leaves the notification and shows whatever the callback returns.
|
|
13355
|
+
* That is right for a button whose answer the operator wants to read.
|
|
13356
|
+
*
|
|
13357
|
+
* `background` fires it as a POST and stays put. It exists for the buttons
|
|
13358
|
+
* whose whole point is not to interrupt — "silence this for 30 minutes" is
|
|
13359
|
+
* an answer to the notification, and being thrown into a browser tab to
|
|
13360
|
+
* confirm it costs more attention than the notification did. A backend that
|
|
13361
|
+
* cannot do a background call renders it as an ordinary link (the adapters
|
|
13362
|
+
* fall back rather than dropping the button), so this is a preference, never
|
|
13363
|
+
* a requirement.
|
|
13364
|
+
*/
|
|
13365
|
+
mode: _enum(["navigate", "background"]).optional()
|
|
13310
13366
|
});
|
|
13311
13367
|
/**
|
|
13312
13368
|
* The canonical notification. `body` is the only hard field (Apprise model).
|
|
@@ -13474,6 +13530,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
13474
13530
|
targetId: string(),
|
|
13475
13531
|
enabled: boolean()
|
|
13476
13532
|
}), _void(), { kind: "mutation" });
|
|
13533
|
+
new Set([
|
|
13534
|
+
{
|
|
13535
|
+
id: "person",
|
|
13536
|
+
name: "Person"
|
|
13537
|
+
},
|
|
13538
|
+
{
|
|
13539
|
+
id: "vehicle",
|
|
13540
|
+
name: "Vehicle"
|
|
13541
|
+
},
|
|
13542
|
+
{
|
|
13543
|
+
id: "animal",
|
|
13544
|
+
name: "Animal"
|
|
13545
|
+
},
|
|
13546
|
+
{
|
|
13547
|
+
id: "package",
|
|
13548
|
+
name: "Package"
|
|
13549
|
+
}
|
|
13550
|
+
].map((l) => l.id));
|
|
13477
13551
|
var COCO_TO_MACRO = {
|
|
13478
13552
|
mapping: {
|
|
13479
13553
|
person: "person",
|
|
@@ -14158,7 +14232,17 @@ var alarmPanelCapability = {
|
|
|
14158
14232
|
* full slice; renders an arm button per `availableModes` entry and
|
|
14159
14233
|
* a PIN field iff `requiresCode === true`.
|
|
14160
14234
|
*/
|
|
14161
|
-
runtimeState: AlarmPanelStatusSchema
|
|
14235
|
+
runtimeState: AlarmPanelStatusSchema,
|
|
14236
|
+
/**
|
|
14237
|
+
* Runtime-state durability: **restored** — armed state is the one thing a panel must not lose across a restart.
|
|
14238
|
+
*
|
|
14239
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
14240
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
14241
|
+
*/
|
|
14242
|
+
durability: "restored",
|
|
14243
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
14244
|
+
* whether persisting is worth a SQLite commit. */
|
|
14245
|
+
volatileStateFields: ["lastChangedAt"]
|
|
14162
14246
|
};
|
|
14163
14247
|
/**
|
|
14164
14248
|
* Shared geometry vocabulary for on-frame shape caps — privacy-mask,
|
|
@@ -14299,6 +14383,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14299
14383
|
"alarm-triggered",
|
|
14300
14384
|
"alarm-armed",
|
|
14301
14385
|
"alarm-disarmed",
|
|
14386
|
+
"alarm-arming",
|
|
14387
|
+
"alarm-arm-refused",
|
|
14302
14388
|
"camera-online",
|
|
14303
14389
|
"camera-offline",
|
|
14304
14390
|
"camera-disabled",
|
|
@@ -14335,6 +14421,9 @@ var NcSystemEventConditionSchema = object({
|
|
|
14335
14421
|
nodeIds: array(string().min(1)).min(1).optional(),
|
|
14336
14422
|
packageNames: array(string().min(1)).min(1).optional()
|
|
14337
14423
|
});
|
|
14424
|
+
/** Hard ceiling on a window (24h). A snooze that could not expire would be an
|
|
14425
|
+
* outage the operator asked for once and forgot. */
|
|
14426
|
+
var NC_SNOOZE_MAX_MINUTES = 1440;
|
|
14338
14427
|
/** Weekly schedule — OR of windows; absence on the rule = always active. */
|
|
14339
14428
|
var NcScheduleSchema = object({
|
|
14340
14429
|
windows: array(object({
|
|
@@ -14711,15 +14800,15 @@ var NcConditionsSchema = object({
|
|
|
14711
14800
|
* (an `immediate` rule naming an `audio-*` class, one notification per
|
|
14712
14801
|
* classified sample) stays exactly as it was for rules that already use it.
|
|
14713
14802
|
*
|
|
14714
|
-
*
|
|
14715
|
-
* rather than an
|
|
14716
|
-
* (`camstack/src/data/notification-center.ts`, guarded by
|
|
14717
|
-
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor
|
|
14803
|
+
* In {@link NC_CONDITION_CATALOG} since P2, and the ORDER it got there is the
|
|
14804
|
+
* rule rather than an accident: the viewer mirrors the descriptor enums BY
|
|
14805
|
+
* HAND (`camstack/src/data/notification-center.ts`, guarded by
|
|
14806
|
+
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor strips the
|
|
14718
14807
|
* condition fields it does not know when a rule is saved from the phone.
|
|
14719
14808
|
* Publishing an editor for a condition the app cannot round-trip is how an
|
|
14720
|
-
* operator loses a rule's conditions by opening it — so the
|
|
14721
|
-
*
|
|
14722
|
-
*
|
|
14809
|
+
* operator loses a rule's conditions by opening it — so the viewer mirror
|
|
14810
|
+
* (P3, shipped) went FIRST, and the descriptor an editor renders from
|
|
14811
|
+
* follows here.
|
|
14723
14812
|
*/
|
|
14724
14813
|
audio: NcAudioConditionSchema.optional()
|
|
14725
14814
|
});
|
|
@@ -14955,6 +15044,30 @@ var NcRuleInputSchema = object({
|
|
|
14955
15044
|
*/
|
|
14956
15045
|
snoozeAllowGlobal: boolean().optional(),
|
|
14957
15046
|
/**
|
|
15047
|
+
* The snooze durations THIS rule's notification offers as buttons, in
|
|
15048
|
+
* minutes.
|
|
15049
|
+
*
|
|
15050
|
+
* Three states, and all three are distinct — which is exactly why this is
|
|
15051
|
+
* `.optional()` and never `.default()`. A Zod default does not run on the
|
|
15052
|
+
* addon cap path (three production failures in one day), so a schema default
|
|
15053
|
+
* would collapse the first two:
|
|
15054
|
+
*
|
|
15055
|
+
* | value | meaning |
|
|
15056
|
+
* | --- | --- |
|
|
15057
|
+
* | absent | the operator never said ⇒ {@link NC_DEFAULT_SNOOZE_MINUTES} |
|
|
15058
|
+
* | `[]` | **no snooze buttons on this rule** — the explicit override |
|
|
15059
|
+
* | a list | these choices, de-duplicated and sorted, at most four |
|
|
15060
|
+
*
|
|
15061
|
+
* `.max(4)` because the notifier's own action budget is small (ntfy allows
|
|
15062
|
+
* three buttons in total) and a rule that spent it all on snooze choices
|
|
15063
|
+
* would push its own tap-through actions off the notification.
|
|
15064
|
+
*
|
|
15065
|
+
* An empty list is NOT an alarm exemption: a rule the alarm is about, or
|
|
15066
|
+
* that arms the panel, is exempt automatically and cannot be silenced by a
|
|
15067
|
+
* window from anywhere (D133).
|
|
15068
|
+
*/
|
|
15069
|
+
snoozeOptions: array(number().int().min(1).max(NC_SNOOZE_MAX_MINUTES)).max(4).optional(),
|
|
15070
|
+
/**
|
|
14958
15071
|
* Devices this rule ACTUATES — arm the alarm, open a gate, turn on a light.
|
|
14959
15072
|
*
|
|
14960
15073
|
* This is what makes the rule set the alarm's trigger set without the alarm
|
|
@@ -15054,6 +15167,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
15054
15167
|
"device",
|
|
15055
15168
|
"package",
|
|
15056
15169
|
"occupancy",
|
|
15170
|
+
"audio",
|
|
15057
15171
|
"system"
|
|
15058
15172
|
]),
|
|
15059
15173
|
label: string(),
|
|
@@ -15072,6 +15186,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
15072
15186
|
"crossingSelect",
|
|
15073
15187
|
"polygonDraw",
|
|
15074
15188
|
"occupancy",
|
|
15189
|
+
"audio",
|
|
15075
15190
|
"deviceState",
|
|
15076
15191
|
"systemEvent"
|
|
15077
15192
|
]),
|
|
@@ -15223,7 +15338,20 @@ var NcSnoozeInputSchema = object({
|
|
|
15223
15338
|
ruleId: string().optional(),
|
|
15224
15339
|
/** Required when `scope: 'device'`. */
|
|
15225
15340
|
deviceId: number().int().optional(),
|
|
15226
|
-
|
|
15341
|
+
/**
|
|
15342
|
+
* Narrow the window to these subject classes — "the cat, not the person".
|
|
15343
|
+
*
|
|
15344
|
+
* ORTHOGONAL to `scope`, deliberately, and absent means EVERY class: that is
|
|
15345
|
+
* what every window authored before this field meant, so no persisted row
|
|
15346
|
+
* changes meaning and no client has to learn anything to keep working.
|
|
15347
|
+
*
|
|
15348
|
+
* It is what makes the window's real key `(deviceId, classes[])` and lets it
|
|
15349
|
+
* cross rules (D133): the operator points at a camera and a kind of thing,
|
|
15350
|
+
* not at whichever of their four rules happened to produce the notification
|
|
15351
|
+
* they are dismissing.
|
|
15352
|
+
*/
|
|
15353
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
15354
|
+
durationMinutes: number().int().min(1).max(NC_SNOOZE_MAX_MINUTES),
|
|
15227
15355
|
/**
|
|
15228
15356
|
* Silence this for EVERY recipient, not just the caller. Permission is
|
|
15229
15357
|
* checked server-side (the rule's `snoozeAllowGlobal`, or admin for the
|
|
@@ -15248,6 +15376,10 @@ var NcSnoozeSchema = object({
|
|
|
15248
15376
|
scope: NcSnoozeScopeSchema,
|
|
15249
15377
|
ruleId: string().optional(),
|
|
15250
15378
|
deviceId: number().int().optional(),
|
|
15379
|
+
/** Subject classes this window covers. ABSENT = every class — see
|
|
15380
|
+
* {@link NcSnoozeInputSchema.shape.classes}. Lives in the JSON blob and has
|
|
15381
|
+
* no SQLite column: nothing queries a window by class. */
|
|
15382
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
15251
15383
|
startedAt: number(),
|
|
15252
15384
|
/** Exclusive: at exactly this instant the snooze is over. Expiry is a
|
|
15253
15385
|
* COMPARISON, not a job — no sweeper can leave the operator silenced. */
|
|
@@ -17348,7 +17480,14 @@ var zonesCapability = {
|
|
|
17348
17480
|
* handle. Slice shape is `{ zones: Zone[] }` so future extensions
|
|
17349
17481
|
* (e.g. zone groupings) can sit alongside the polygon list.
|
|
17350
17482
|
*/
|
|
17351
|
-
runtimeState: object({ zones: array(ZoneSchema).readonly() })
|
|
17483
|
+
runtimeState: object({ zones: array(ZoneSchema).readonly() }),
|
|
17484
|
+
/**
|
|
17485
|
+
* 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.
|
|
17486
|
+
*
|
|
17487
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
17488
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
17489
|
+
*/
|
|
17490
|
+
durability: "restored"
|
|
17352
17491
|
};
|
|
17353
17492
|
/**
|
|
17354
17493
|
* A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
|
|
@@ -17518,6 +17657,22 @@ var detectionFpsField = {
|
|
|
17518
17657
|
default: 10,
|
|
17519
17658
|
step: 1
|
|
17520
17659
|
};
|
|
17660
|
+
/**
|
|
17661
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
17662
|
+
*
|
|
17663
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
17664
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
17665
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
17666
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
17667
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
17668
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
17669
|
+
*
|
|
17670
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
17671
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
17672
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
17673
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
17674
|
+
* that ships with an addon deploy.
|
|
17675
|
+
*/
|
|
17521
17676
|
var occupancyRecheckSecField = {
|
|
17522
17677
|
min: 0,
|
|
17523
17678
|
max: 300,
|
|
@@ -17719,15 +17874,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
17719
17874
|
*/
|
|
17720
17875
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
17721
17876
|
/**
|
|
17722
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
17723
|
-
*
|
|
17724
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
17725
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
17726
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
17877
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
17878
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
17727
17879
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
17728
17880
|
* (and only render) when this is enabled.
|
|
17729
|
-
|
|
17730
|
-
|
|
17881
|
+
*
|
|
17882
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
17883
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
17884
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
17885
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
17886
|
+
* object is counted only while the stationary registry holds it, and the
|
|
17887
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
17888
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
17889
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
17890
|
+
*/
|
|
17891
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
17731
17892
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
17732
17893
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
17733
17894
|
/**
|
|
@@ -20147,7 +20308,17 @@ var airQualitySensorCapability = {
|
|
|
20147
20308
|
schema: AirQualitySensorStatusSchema,
|
|
20148
20309
|
kind: "push"
|
|
20149
20310
|
},
|
|
20150
|
-
runtimeState: AirQualitySensorStatusSchema
|
|
20311
|
+
runtimeState: AirQualitySensorStatusSchema,
|
|
20312
|
+
/**
|
|
20313
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
20314
|
+
*
|
|
20315
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20316
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20317
|
+
*/
|
|
20318
|
+
durability: "restored",
|
|
20319
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20320
|
+
* whether persisting is worth a SQLite commit. */
|
|
20321
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
20151
20322
|
};
|
|
20152
20323
|
/**
|
|
20153
20324
|
* Ambient illuminance reading in lux. Drives Home Assistant `sensor`
|
|
@@ -20179,7 +20350,17 @@ var ambientLightSensorCapability = {
|
|
|
20179
20350
|
schema: AmbientLightSensorStatusSchema,
|
|
20180
20351
|
kind: "push"
|
|
20181
20352
|
},
|
|
20182
|
-
runtimeState: AmbientLightSensorStatusSchema
|
|
20353
|
+
runtimeState: AmbientLightSensorStatusSchema,
|
|
20354
|
+
/**
|
|
20355
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
20356
|
+
*
|
|
20357
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20358
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20359
|
+
*/
|
|
20360
|
+
durability: "restored",
|
|
20361
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20362
|
+
* whether persisting is worth a SQLite commit. */
|
|
20363
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
20183
20364
|
};
|
|
20184
20365
|
/**
|
|
20185
20366
|
* Per-class audio metrics aggregated over a sliding window.
|
|
@@ -20297,7 +20478,14 @@ var audioMetricsCapability = {
|
|
|
20297
20478
|
}), AudioMetricsHistorySchema)
|
|
20298
20479
|
},
|
|
20299
20480
|
/** Reactive runtime-state mirror — live `device.state.audioMetrics.value`. */
|
|
20300
|
-
runtimeState: AudioMetricsSnapshotSchema
|
|
20481
|
+
runtimeState: AudioMetricsSnapshotSchema,
|
|
20482
|
+
/**
|
|
20483
|
+
* 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.
|
|
20484
|
+
*
|
|
20485
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20486
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20487
|
+
*/
|
|
20488
|
+
durability: "session"
|
|
20301
20489
|
};
|
|
20302
20490
|
/**
|
|
20303
20491
|
* Automation-control cap. Models HA `automation.*` entities on
|
|
@@ -20359,7 +20547,14 @@ var automationControlCapability = {
|
|
|
20359
20547
|
* reads `enabled` (toggle) + `isRunning` (spinner) + `lastError`
|
|
20360
20548
|
* (badge) directly.
|
|
20361
20549
|
*/
|
|
20362
|
-
runtimeState: AutomationControlStatusSchema
|
|
20550
|
+
runtimeState: AutomationControlStatusSchema,
|
|
20551
|
+
/**
|
|
20552
|
+
* 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.
|
|
20553
|
+
*
|
|
20554
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20555
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20556
|
+
*/
|
|
20557
|
+
durability: "session"
|
|
20363
20558
|
};
|
|
20364
20559
|
/**
|
|
20365
20560
|
* Battery status snapshot. Emitted by providers whose device is
|
|
@@ -20465,7 +20660,17 @@ onStatusChanged: { data: object({
|
|
|
20465
20660
|
* via `device.runtimeState.getCapState('battery')` regardless of
|
|
20466
20661
|
* the underlying driver.
|
|
20467
20662
|
*/
|
|
20468
|
-
runtimeState: BatteryStatusSchema
|
|
20663
|
+
runtimeState: BatteryStatusSchema,
|
|
20664
|
+
/**
|
|
20665
|
+
* 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.
|
|
20666
|
+
*
|
|
20667
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20668
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20669
|
+
*/
|
|
20670
|
+
durability: "restored",
|
|
20671
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20672
|
+
* whether persisting is worth a SQLite commit. */
|
|
20673
|
+
volatileStateFields: ["lastUpdated"]
|
|
20469
20674
|
};
|
|
20470
20675
|
/**
|
|
20471
20676
|
* Generic boolean sensor — last-resort fallback when no domain-
|
|
@@ -20494,7 +20699,17 @@ var binaryCapability = {
|
|
|
20494
20699
|
schema: BinaryStatusSchema,
|
|
20495
20700
|
kind: "push"
|
|
20496
20701
|
},
|
|
20497
|
-
runtimeState: BinaryStatusSchema
|
|
20702
|
+
runtimeState: BinaryStatusSchema,
|
|
20703
|
+
/**
|
|
20704
|
+
* Runtime-state durability: **restored** — transition-driven sensor state; the restored value gives the boot comparison.
|
|
20705
|
+
*
|
|
20706
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20707
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20708
|
+
*/
|
|
20709
|
+
durability: "restored",
|
|
20710
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20711
|
+
* whether persisting is worth a SQLite commit. */
|
|
20712
|
+
volatileStateFields: ["lastChangedAt"]
|
|
20498
20713
|
};
|
|
20499
20714
|
/**
|
|
20500
20715
|
* Dimmable-light brightness control. Co-exists with `switch` on the
|
|
@@ -20547,7 +20762,14 @@ onBrightnessChanged: { data: object({
|
|
|
20547
20762
|
* by the kernel. Read via `device.state.brightness.value` so UI
|
|
20548
20763
|
* sliders surface the current level without polling the provider.
|
|
20549
20764
|
*/
|
|
20550
|
-
runtimeState: BrightnessStatusSchema
|
|
20765
|
+
runtimeState: BrightnessStatusSchema,
|
|
20766
|
+
/**
|
|
20767
|
+
* Runtime-state durability: **session** — live lamp state, re-published by the provider on connect.
|
|
20768
|
+
*
|
|
20769
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20770
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20771
|
+
*/
|
|
20772
|
+
durability: "session"
|
|
20551
20773
|
};
|
|
20552
20774
|
DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _void(), {
|
|
20553
20775
|
kind: "mutation",
|
|
@@ -20635,7 +20857,17 @@ var carbonMonoxideCapability = {
|
|
|
20635
20857
|
schema: CarbonMonoxideStatusSchema,
|
|
20636
20858
|
kind: "push"
|
|
20637
20859
|
},
|
|
20638
|
-
runtimeState: CarbonMonoxideStatusSchema
|
|
20860
|
+
runtimeState: CarbonMonoxideStatusSchema,
|
|
20861
|
+
/**
|
|
20862
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
20863
|
+
*
|
|
20864
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20865
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20866
|
+
*/
|
|
20867
|
+
durability: "restored",
|
|
20868
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20869
|
+
* whether persisting is worth a SQLite commit. */
|
|
20870
|
+
volatileStateFields: ["lastChangedAt"]
|
|
20639
20871
|
};
|
|
20640
20872
|
/**
|
|
20641
20873
|
* HVAC / climate control cap. Models the full surface of a HA
|
|
@@ -20795,7 +21027,14 @@ var climateControlCapability = {
|
|
|
20795
21027
|
* the full slice via `device.state.climate-control.value` and refresh
|
|
20796
21028
|
* on every push without re-querying the provider.
|
|
20797
21029
|
*/
|
|
20798
|
-
runtimeState: ClimateControlStatusSchema
|
|
21030
|
+
runtimeState: ClimateControlStatusSchema,
|
|
21031
|
+
/**
|
|
21032
|
+
* Runtime-state durability: **session** — as `brightness`; `currentTemp` moves continuously and is re-published on connect.
|
|
21033
|
+
*
|
|
21034
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21035
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21036
|
+
*/
|
|
21037
|
+
durability: "session"
|
|
20799
21038
|
};
|
|
20800
21039
|
/**
|
|
20801
21040
|
* Color-light cap. Coexists with `switch` (on/off) and `brightness`
|
|
@@ -20905,7 +21144,14 @@ onColorChanged: { data: object({
|
|
|
20905
21144
|
* kernel. Read via `device.state.color.value` so UI pickers surface
|
|
20906
21145
|
* the current chromaticity without polling the provider.
|
|
20907
21146
|
*/
|
|
20908
|
-
runtimeState: ColorStatusSchema
|
|
21147
|
+
runtimeState: ColorStatusSchema,
|
|
21148
|
+
/**
|
|
21149
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
21150
|
+
*
|
|
21151
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21152
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21153
|
+
*/
|
|
21154
|
+
durability: "session"
|
|
20909
21155
|
};
|
|
20910
21156
|
var ConnectionTestOutcomeSchema = discriminatedUnion("outcome", [
|
|
20911
21157
|
object({
|
|
@@ -20963,7 +21209,17 @@ var connectivityCapability = {
|
|
|
20963
21209
|
schema: ConnectivityStatusSchema,
|
|
20964
21210
|
kind: "push"
|
|
20965
21211
|
},
|
|
20966
|
-
runtimeState: ConnectivityStatusSchema
|
|
21212
|
+
runtimeState: ConnectivityStatusSchema,
|
|
21213
|
+
/**
|
|
21214
|
+
* Runtime-state durability: **restored** — same shape and same argument as `device-status`, for links rather than devices.
|
|
21215
|
+
*
|
|
21216
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21217
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21218
|
+
*/
|
|
21219
|
+
durability: "restored",
|
|
21220
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21221
|
+
* whether persisting is worth a SQLite commit. */
|
|
21222
|
+
volatileStateFields: ["lastChangedAt"]
|
|
20967
21223
|
};
|
|
20968
21224
|
/**
|
|
20969
21225
|
* Generic device-consumables capability — surfaces a device's
|
|
@@ -21045,7 +21301,14 @@ reset: method(object({
|
|
|
21045
21301
|
}
|
|
21046
21302
|
}
|
|
21047
21303
|
},
|
|
21048
|
-
runtimeState: ConsumablesStatusSchema.extend({ lastFetchedAt: number() })
|
|
21304
|
+
runtimeState: ConsumablesStatusSchema.extend({ lastFetchedAt: number() }),
|
|
21305
|
+
/**
|
|
21306
|
+
* Runtime-state durability: **session** — the authority is the appliance; the provider re-reads the whole item array on connect.
|
|
21307
|
+
*
|
|
21308
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21309
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21310
|
+
*/
|
|
21311
|
+
durability: "session"
|
|
21049
21312
|
};
|
|
21050
21313
|
/**
|
|
21051
21314
|
* Door / window / opening / garage / valve contact sensor. Boolean
|
|
@@ -21076,7 +21339,17 @@ var contactCapability = {
|
|
|
21076
21339
|
schema: ContactStatusSchema,
|
|
21077
21340
|
kind: "push"
|
|
21078
21341
|
},
|
|
21079
|
-
runtimeState: ContactStatusSchema
|
|
21342
|
+
runtimeState: ContactStatusSchema,
|
|
21343
|
+
/**
|
|
21344
|
+
* Runtime-state durability: **restored** — a door left open across a restart must still read open.
|
|
21345
|
+
*
|
|
21346
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21347
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21348
|
+
*/
|
|
21349
|
+
durability: "restored",
|
|
21350
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21351
|
+
* whether persisting is worth a SQLite commit. */
|
|
21352
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21080
21353
|
};
|
|
21081
21354
|
/**
|
|
21082
21355
|
* Status slice — flat object (the framework's `runtimeState` contract
|
|
@@ -21182,7 +21455,14 @@ var controlCapability = {
|
|
|
21182
21455
|
* dropdown / text field / date picker) read the slice's discriminant
|
|
21183
21456
|
* and value directly without polling the provider.
|
|
21184
21457
|
*/
|
|
21185
|
-
runtimeState: ControlStatusSchema
|
|
21458
|
+
runtimeState: ControlStatusSchema,
|
|
21459
|
+
/**
|
|
21460
|
+
* Runtime-state durability: **session** — a generic control mirrors an external entity that re-publishes on connect; the options array is re-derived with it.
|
|
21461
|
+
*
|
|
21462
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21463
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21464
|
+
*/
|
|
21465
|
+
durability: "session"
|
|
21186
21466
|
};
|
|
21187
21467
|
var CoverStatusSchema = object({
|
|
21188
21468
|
/** Lifecycle state of the cover. */
|
|
@@ -21243,7 +21523,17 @@ var coverCapability = {
|
|
|
21243
21523
|
* Runtime-state slice — mirrored by the kernel. UI controls watch
|
|
21244
21524
|
* the slice for live position changes during a move.
|
|
21245
21525
|
*/
|
|
21246
|
-
runtimeState: CoverStatusSchema
|
|
21526
|
+
runtimeState: CoverStatusSchema,
|
|
21527
|
+
/**
|
|
21528
|
+
* Runtime-state durability: **restored** — position survives a restart on the device; the mirror should agree at boot rather than read blank.
|
|
21529
|
+
*
|
|
21530
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21531
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21532
|
+
*/
|
|
21533
|
+
durability: "restored",
|
|
21534
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21535
|
+
* whether persisting is worth a SQLite commit. */
|
|
21536
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21247
21537
|
};
|
|
21248
21538
|
/**
|
|
21249
21539
|
* Vendor-neutral day/night (IR-cut) control — the per-camera config cap
|
|
@@ -21337,7 +21627,17 @@ var dayNightCapability = {
|
|
|
21337
21627
|
schema: DayNightStatusSchema,
|
|
21338
21628
|
kind: "poll"
|
|
21339
21629
|
},
|
|
21340
|
-
runtimeState: DayNightStatusSchema
|
|
21630
|
+
runtimeState: DayNightStatusSchema,
|
|
21631
|
+
/**
|
|
21632
|
+
* Runtime-state durability: **restored** — operator-set IR-cut behaviour; mutation-driven.
|
|
21633
|
+
*
|
|
21634
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21635
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21636
|
+
*/
|
|
21637
|
+
durability: "restored",
|
|
21638
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21639
|
+
* whether persisting is worth a SQLite commit. */
|
|
21640
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
21341
21641
|
};
|
|
21342
21642
|
/**
|
|
21343
21643
|
* Generic device-level status snapshot. Auto-registered by `BaseDevice`
|
|
@@ -21384,7 +21684,17 @@ onStatusChanged: { data: object({
|
|
|
21384
21684
|
schema: DeviceStatusSchema,
|
|
21385
21685
|
kind: "push"
|
|
21386
21686
|
},
|
|
21387
|
-
runtimeState: DeviceStatusSchema
|
|
21687
|
+
runtimeState: DeviceStatusSchema,
|
|
21688
|
+
/**
|
|
21689
|
+
* 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.
|
|
21690
|
+
*
|
|
21691
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21692
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21693
|
+
*/
|
|
21694
|
+
durability: "restored",
|
|
21695
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21696
|
+
* whether persisting is worth a SQLite commit. */
|
|
21697
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21388
21698
|
};
|
|
21389
21699
|
/**
|
|
21390
21700
|
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
@@ -21446,7 +21756,14 @@ onPressed: { data: DoorbellPressEventSchema } },
|
|
|
21446
21756
|
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
21447
21757
|
* without subscribing.
|
|
21448
21758
|
*/
|
|
21449
|
-
runtimeState: DoorbellStatusSchema
|
|
21759
|
+
runtimeState: DoorbellStatusSchema,
|
|
21760
|
+
/**
|
|
21761
|
+
* 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.
|
|
21762
|
+
*
|
|
21763
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21764
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21765
|
+
*/
|
|
21766
|
+
durability: "restored"
|
|
21450
21767
|
};
|
|
21451
21768
|
/**
|
|
21452
21769
|
* Enum-state sensor — a string value picked from a finite option set.
|
|
@@ -21486,7 +21803,17 @@ var enumSensorCapability = {
|
|
|
21486
21803
|
schema: EnumSensorStatusSchema,
|
|
21487
21804
|
kind: "push"
|
|
21488
21805
|
},
|
|
21489
|
-
runtimeState: EnumSensorStatusSchema
|
|
21806
|
+
runtimeState: EnumSensorStatusSchema,
|
|
21807
|
+
/**
|
|
21808
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`; 80 devices.
|
|
21809
|
+
*
|
|
21810
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21811
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21812
|
+
*/
|
|
21813
|
+
durability: "restored",
|
|
21814
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21815
|
+
* whether persisting is worth a SQLite commit. */
|
|
21816
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
21490
21817
|
};
|
|
21491
21818
|
/**
|
|
21492
21819
|
* Generic stateless event emitter. Installed on a `DeviceType.EventEmitter`
|
|
@@ -21522,7 +21849,14 @@ var eventEmitterCapability = {
|
|
|
21522
21849
|
schema: EventEmitterStatusSchema,
|
|
21523
21850
|
kind: "push"
|
|
21524
21851
|
},
|
|
21525
|
-
runtimeState: EventEmitterStatusSchema
|
|
21852
|
+
runtimeState: EventEmitterStatusSchema,
|
|
21853
|
+
/**
|
|
21854
|
+
* Runtime-state durability: **session** — `eventCountSinceStart` names its own scope.
|
|
21855
|
+
*
|
|
21856
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21857
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21858
|
+
*/
|
|
21859
|
+
durability: "session"
|
|
21526
21860
|
};
|
|
21527
21861
|
var EventItemSchema = object({
|
|
21528
21862
|
id: string(),
|
|
@@ -21803,7 +22137,14 @@ var fanControlCapability = {
|
|
|
21803
22137
|
* Runtime-state slice — mirrored by the kernel. UI fan speed
|
|
21804
22138
|
* sliders read `percentage` for live updates.
|
|
21805
22139
|
*/
|
|
21806
|
-
runtimeState: FanControlStatusSchema
|
|
22140
|
+
runtimeState: FanControlStatusSchema,
|
|
22141
|
+
/**
|
|
22142
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
22143
|
+
*
|
|
22144
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22145
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22146
|
+
*/
|
|
22147
|
+
durability: "session"
|
|
21807
22148
|
};
|
|
21808
22149
|
/**
|
|
21809
22150
|
* Per-device feature/identity probe slice. Holds the runtime-resolved
|
|
@@ -21879,7 +22220,14 @@ onProbeChanged: { data: object({
|
|
|
21879
22220
|
schema: FeatureProbeStatusSchema,
|
|
21880
22221
|
kind: "push"
|
|
21881
22222
|
},
|
|
21882
|
-
runtimeState: FeatureProbeStatusSchema
|
|
22223
|
+
runtimeState: FeatureProbeStatusSchema,
|
|
22224
|
+
/**
|
|
22225
|
+
* 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.
|
|
22226
|
+
*
|
|
22227
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22228
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22229
|
+
*/
|
|
22230
|
+
durability: "session"
|
|
21883
22231
|
};
|
|
21884
22232
|
/**
|
|
21885
22233
|
* Water leak / moisture sensor. Boolean "is liquid currently
|
|
@@ -21906,7 +22254,17 @@ var floodCapability = {
|
|
|
21906
22254
|
schema: FloodStatusSchema,
|
|
21907
22255
|
kind: "push"
|
|
21908
22256
|
},
|
|
21909
|
-
runtimeState: FloodStatusSchema
|
|
22257
|
+
runtimeState: FloodStatusSchema,
|
|
22258
|
+
/**
|
|
22259
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
22260
|
+
*
|
|
22261
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22262
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22263
|
+
*/
|
|
22264
|
+
durability: "restored",
|
|
22265
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22266
|
+
* whether persisting is worth a SQLite commit. */
|
|
22267
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21910
22268
|
};
|
|
21911
22269
|
/**
|
|
21912
22270
|
* Combustible-gas (LPG / methane / hydrogen) alarm sensor. Drives
|
|
@@ -21929,7 +22287,17 @@ var gasCapability = {
|
|
|
21929
22287
|
schema: GasStatusSchema,
|
|
21930
22288
|
kind: "push"
|
|
21931
22289
|
},
|
|
21932
|
-
runtimeState: GasStatusSchema
|
|
22290
|
+
runtimeState: GasStatusSchema,
|
|
22291
|
+
/**
|
|
22292
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
22293
|
+
*
|
|
22294
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22295
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22296
|
+
*/
|
|
22297
|
+
durability: "restored",
|
|
22298
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22299
|
+
* whether persisting is worth a SQLite commit. */
|
|
22300
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21933
22301
|
};
|
|
21934
22302
|
/**
|
|
21935
22303
|
* Humidifier / dehumidifier cap. Models HA `humidifier.*` entities —
|
|
@@ -22005,7 +22373,14 @@ var humidifierCapability = {
|
|
|
22005
22373
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
22006
22374
|
* slice for live humidity / mode changes.
|
|
22007
22375
|
*/
|
|
22008
|
-
runtimeState: HumidifierStatusSchema
|
|
22376
|
+
runtimeState: HumidifierStatusSchema,
|
|
22377
|
+
/**
|
|
22378
|
+
* Runtime-state durability: **session** — as `climate-control`.
|
|
22379
|
+
*
|
|
22380
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22381
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22382
|
+
*/
|
|
22383
|
+
durability: "session"
|
|
22009
22384
|
};
|
|
22010
22385
|
/**
|
|
22011
22386
|
* Single-metric humidity reading. Drives Home Assistant `sensor`
|
|
@@ -22041,7 +22416,17 @@ var humiditySensorCapability = {
|
|
|
22041
22416
|
schema: HumiditySensorStatusSchema,
|
|
22042
22417
|
kind: "push"
|
|
22043
22418
|
},
|
|
22044
|
-
runtimeState: HumiditySensorStatusSchema
|
|
22419
|
+
runtimeState: HumiditySensorStatusSchema,
|
|
22420
|
+
/**
|
|
22421
|
+
* Runtime-state durability: **restored** — as `numeric-sensor` (67 of 75 writes were the clock alone).
|
|
22422
|
+
*
|
|
22423
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22424
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22425
|
+
*/
|
|
22426
|
+
durability: "restored",
|
|
22427
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22428
|
+
* whether persisting is worth a SQLite commit. */
|
|
22429
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
22045
22430
|
};
|
|
22046
22431
|
/**
|
|
22047
22432
|
* Image display cap. Models a single still image exposed by an integration —
|
|
@@ -22079,7 +22464,14 @@ var imageCapability = {
|
|
|
22079
22464
|
* Runtime-state slice — mirrored by the kernel. The UI reads `url`
|
|
22080
22465
|
* directly and renders the still image.
|
|
22081
22466
|
*/
|
|
22082
|
-
runtimeState: ImageStatusSchema
|
|
22467
|
+
runtimeState: ImageStatusSchema,
|
|
22468
|
+
/**
|
|
22469
|
+
* Runtime-state durability: **session** — a snapshot URL is a session-scoped handle; a restored one points at nothing.
|
|
22470
|
+
*
|
|
22471
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22472
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22473
|
+
*/
|
|
22474
|
+
durability: "session"
|
|
22083
22475
|
};
|
|
22084
22476
|
/**
|
|
22085
22477
|
* Vendor-neutral image / picture-adjustment cap — the per-camera config
|
|
@@ -22228,7 +22620,17 @@ var imageSettingsCapability = {
|
|
|
22228
22620
|
schema: ImageSettingsStatusSchema,
|
|
22229
22621
|
kind: "poll"
|
|
22230
22622
|
},
|
|
22231
|
-
runtimeState: ImageSettingsStatusSchema
|
|
22623
|
+
runtimeState: ImageSettingsStatusSchema,
|
|
22624
|
+
/**
|
|
22625
|
+
* Runtime-state durability: **restored** — operator-set camera imaging; mutation-driven.
|
|
22626
|
+
*
|
|
22627
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22628
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22629
|
+
*/
|
|
22630
|
+
durability: "restored",
|
|
22631
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22632
|
+
* whether persisting is worth a SQLite commit. */
|
|
22633
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
22232
22634
|
};
|
|
22233
22635
|
/**
|
|
22234
22636
|
* integrations — system-scoped singleton capability for integration
|
|
@@ -22568,7 +22970,14 @@ var lawnMowerControlCapability = {
|
|
|
22568
22970
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
22569
22971
|
* slice for live activity + battery changes.
|
|
22570
22972
|
*/
|
|
22571
|
-
runtimeState: LawnMowerControlStatusSchema
|
|
22973
|
+
runtimeState: LawnMowerControlStatusSchema,
|
|
22974
|
+
/**
|
|
22975
|
+
* Runtime-state durability: **session** — as `vacuum-control`.
|
|
22976
|
+
*
|
|
22977
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22978
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22979
|
+
*/
|
|
22980
|
+
durability: "session"
|
|
22572
22981
|
};
|
|
22573
22982
|
/**
|
|
22574
22983
|
* local-network — hub-only singleton.
|
|
@@ -22774,7 +23183,17 @@ var lockControlCapability = {
|
|
|
22774
23183
|
* read `state` and disable themselves during `locking`/`unlocking`
|
|
22775
23184
|
* transitions.
|
|
22776
23185
|
*/
|
|
22777
|
-
runtimeState: LockControlStatusSchema
|
|
23186
|
+
runtimeState: LockControlStatusSchema,
|
|
23187
|
+
/**
|
|
23188
|
+
* Runtime-state durability: **restored** — a lock left locked must still read locked.
|
|
23189
|
+
*
|
|
23190
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23191
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23192
|
+
*/
|
|
23193
|
+
durability: "restored",
|
|
23194
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23195
|
+
* whether persisting is worth a SQLite commit. */
|
|
23196
|
+
volatileStateFields: ["lastChangedAt"]
|
|
22778
23197
|
};
|
|
22779
23198
|
/**
|
|
22780
23199
|
* Media-player cap. Models HA `media_player.*` (Sonos, Chromecast,
|
|
@@ -22936,7 +23355,14 @@ var mediaPlayerCapability = {
|
|
|
22936
23355
|
* full slice for live now-playing, volume, and progress updates
|
|
22937
23356
|
* without polling.
|
|
22938
23357
|
*/
|
|
22939
|
-
runtimeState: MediaPlayerStatusSchema
|
|
23358
|
+
runtimeState: MediaPlayerStatusSchema,
|
|
23359
|
+
/**
|
|
23360
|
+
* Runtime-state durability: **session** — a restored transport position describes a playback that stopped when the hub did.
|
|
23361
|
+
*
|
|
23362
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23363
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23364
|
+
*/
|
|
23365
|
+
durability: "session"
|
|
22940
23366
|
};
|
|
22941
23367
|
/**
|
|
22942
23368
|
* mesh-network — collection cap for mesh-VPN providers.
|
|
@@ -23200,7 +23626,14 @@ onMotionChanged: { data: MotionOnMotionChangedDataSchema } },
|
|
|
23200
23626
|
* `device.state.motion.value`. Reads never invoke the provider, so
|
|
23201
23627
|
* UIs and other addons can poll the cached state safely.
|
|
23202
23628
|
*/
|
|
23203
|
-
runtimeState: MotionStatusSchema
|
|
23629
|
+
runtimeState: MotionStatusSchema,
|
|
23630
|
+
/**
|
|
23631
|
+
* 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.
|
|
23632
|
+
*
|
|
23633
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23634
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23635
|
+
*/
|
|
23636
|
+
durability: "session"
|
|
23204
23637
|
};
|
|
23205
23638
|
/**
|
|
23206
23639
|
* Motion-trigger toggle for accessory devices.
|
|
@@ -23265,7 +23698,14 @@ var motionTriggerCapability = {
|
|
|
23265
23698
|
schema: MotionTriggerStatusSchema,
|
|
23266
23699
|
kind: "command-driven"
|
|
23267
23700
|
},
|
|
23268
|
-
runtimeState: MotionTriggerRuntimeStateSchema
|
|
23701
|
+
runtimeState: MotionTriggerRuntimeStateSchema,
|
|
23702
|
+
/**
|
|
23703
|
+
* 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.
|
|
23704
|
+
*
|
|
23705
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23706
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23707
|
+
*/
|
|
23708
|
+
durability: "session"
|
|
23269
23709
|
};
|
|
23270
23710
|
/**
|
|
23271
23711
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
@@ -23332,7 +23772,17 @@ var motionZonesCapability = {
|
|
|
23332
23772
|
schema: MotionZoneStatusSchema,
|
|
23333
23773
|
kind: "poll"
|
|
23334
23774
|
},
|
|
23335
|
-
runtimeState: MotionZoneStatusSchema
|
|
23775
|
+
runtimeState: MotionZoneStatusSchema,
|
|
23776
|
+
/**
|
|
23777
|
+
* 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.
|
|
23778
|
+
*
|
|
23779
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23780
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23781
|
+
*/
|
|
23782
|
+
durability: "restored",
|
|
23783
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23784
|
+
* whether persisting is worth a SQLite commit. */
|
|
23785
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23336
23786
|
};
|
|
23337
23787
|
/**
|
|
23338
23788
|
* On-camera AI object detection cap. Surfaces per-device the classes
|
|
@@ -23406,7 +23856,17 @@ var nativeObjectDetectionCapability = {
|
|
|
23406
23856
|
schema: NativeObjectDetectionStatusSchema,
|
|
23407
23857
|
kind: "push"
|
|
23408
23858
|
},
|
|
23409
|
-
runtimeState: NativeObjectDetectionRuntimeStateSchema
|
|
23859
|
+
runtimeState: NativeObjectDetectionRuntimeStateSchema,
|
|
23860
|
+
/**
|
|
23861
|
+
* 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.
|
|
23862
|
+
*
|
|
23863
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23864
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23865
|
+
*/
|
|
23866
|
+
durability: "restored",
|
|
23867
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23868
|
+
* whether persisting is worth a SQLite commit. */
|
|
23869
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23410
23870
|
};
|
|
23411
23871
|
/**
|
|
23412
23872
|
* network-quality — system-scoped singleton capability tracking RTT,
|
|
@@ -23740,7 +24200,14 @@ onSent: { data: object({
|
|
|
23740
24200
|
* form reads `supports` to gate optional fields; history pane reads
|
|
23741
24201
|
* `lastSentAt` / `lastError` / `queueDepth`.
|
|
23742
24202
|
*/
|
|
23743
|
-
runtimeState: NotifierStatusSchema
|
|
24203
|
+
runtimeState: NotifierStatusSchema,
|
|
24204
|
+
/**
|
|
24205
|
+
* Runtime-state durability: **session** — live queue depth and last-send state; a restored queue depth describes a queue that no longer exists.
|
|
24206
|
+
*
|
|
24207
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24208
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24209
|
+
*/
|
|
24210
|
+
durability: "session"
|
|
23744
24211
|
};
|
|
23745
24212
|
/**
|
|
23746
24213
|
* Generic numeric sensor — last-resort fallback when no typed numeric
|
|
@@ -23783,7 +24250,17 @@ var numericSensorCapability = {
|
|
|
23783
24250
|
schema: NumericSensorStatusSchema,
|
|
23784
24251
|
kind: "push"
|
|
23785
24252
|
},
|
|
23786
|
-
runtimeState: NumericSensorStatusSchema
|
|
24253
|
+
runtimeState: NumericSensorStatusSchema,
|
|
24254
|
+
/**
|
|
24255
|
+
* 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.
|
|
24256
|
+
*
|
|
24257
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24258
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24259
|
+
*/
|
|
24260
|
+
durability: "restored",
|
|
24261
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24262
|
+
* whether persisting is worth a SQLite commit. */
|
|
24263
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23787
24264
|
};
|
|
23788
24265
|
/**
|
|
23789
24266
|
* Generic on-screen-display (video overlay) cap. Each camera exposes
|
|
@@ -24168,7 +24645,14 @@ var petFeederCapability = {
|
|
|
24168
24645
|
* the full slice via `device.state.petFeeder.value` and refresh on
|
|
24169
24646
|
* every poll without re-querying the provider.
|
|
24170
24647
|
*/
|
|
24171
|
-
runtimeState: PetFeederStatusSchema
|
|
24648
|
+
runtimeState: PetFeederStatusSchema,
|
|
24649
|
+
/**
|
|
24650
|
+
* Runtime-state durability: **session** — live appliance state re-published on connect.
|
|
24651
|
+
*
|
|
24652
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24653
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24654
|
+
*/
|
|
24655
|
+
durability: "session"
|
|
24172
24656
|
};
|
|
24173
24657
|
var VehicleSchema = object({
|
|
24174
24658
|
id: string(),
|
|
@@ -24480,7 +24964,17 @@ var powerMeterCapability = {
|
|
|
24480
24964
|
schema: PowerMeterStatusSchema,
|
|
24481
24965
|
kind: "push"
|
|
24482
24966
|
},
|
|
24483
|
-
runtimeState: PowerMeterStatusSchema
|
|
24967
|
+
runtimeState: PowerMeterStatusSchema,
|
|
24968
|
+
/**
|
|
24969
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`; `kwhTotal` is an accumulator whose restored value is the baseline.
|
|
24970
|
+
*
|
|
24971
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24972
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24973
|
+
*/
|
|
24974
|
+
durability: "restored",
|
|
24975
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24976
|
+
* whether persisting is worth a SQLite commit. */
|
|
24977
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24484
24978
|
};
|
|
24485
24979
|
/**
|
|
24486
24980
|
* Presence cap. Models HA `person.*` and `device_tracker.*` entities
|
|
@@ -24537,7 +25031,17 @@ var presenceCapability = {
|
|
|
24537
25031
|
* the map pin is rendered (use `DeviceFeature.PresenceGps` for the
|
|
24538
25032
|
* pre-fetch fast-path check).
|
|
24539
25033
|
*/
|
|
24540
|
-
runtimeState: PresenceStatusSchema
|
|
25034
|
+
runtimeState: PresenceStatusSchema,
|
|
25035
|
+
/**
|
|
25036
|
+
* Runtime-state durability: **restored** — occupancy-relevant: the restored state is what an occupancy rule compares the first post-restart observation against.
|
|
25037
|
+
*
|
|
25038
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25039
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25040
|
+
*/
|
|
25041
|
+
durability: "restored",
|
|
25042
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25043
|
+
* whether persisting is worth a SQLite commit. */
|
|
25044
|
+
volatileStateFields: ["lastChangedAt"]
|
|
24541
25045
|
};
|
|
24542
25046
|
/**
|
|
24543
25047
|
* Atmospheric pressure reading in hectopascals. Drives Home Assistant
|
|
@@ -24573,7 +25077,17 @@ var pressureSensorCapability = {
|
|
|
24573
25077
|
schema: PressureSensorStatusSchema,
|
|
24574
25078
|
kind: "push"
|
|
24575
25079
|
},
|
|
24576
|
-
runtimeState: PressureSensorStatusSchema
|
|
25080
|
+
runtimeState: PressureSensorStatusSchema,
|
|
25081
|
+
/**
|
|
25082
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
25083
|
+
*
|
|
25084
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25085
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25086
|
+
*/
|
|
25087
|
+
durability: "restored",
|
|
25088
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25089
|
+
* whether persisting is worth a SQLite commit. */
|
|
25090
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24577
25091
|
};
|
|
24578
25092
|
/**
|
|
24579
25093
|
* PRIVACY — what the camera deliberately does not capture. Two planes:
|
|
@@ -24703,7 +25217,17 @@ var privacyMaskCapability = {
|
|
|
24703
25217
|
schema: PrivacyMaskStatusSchema,
|
|
24704
25218
|
kind: "poll"
|
|
24705
25219
|
},
|
|
24706
|
-
runtimeState: PrivacyMaskStatusSchema
|
|
25220
|
+
runtimeState: PrivacyMaskStatusSchema,
|
|
25221
|
+
/**
|
|
25222
|
+
* Runtime-state durability: **restored** — operator-drawn regions, zero real churn — 22 writes in 25 minutes, every one of them the clock.
|
|
25223
|
+
*
|
|
25224
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25225
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25226
|
+
*/
|
|
25227
|
+
durability: "restored",
|
|
25228
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25229
|
+
* whether persisting is worth a SQLite commit. */
|
|
25230
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24707
25231
|
};
|
|
24708
25232
|
var PtzPresetSchema = object({
|
|
24709
25233
|
id: string(),
|
|
@@ -24869,7 +25393,14 @@ var ptzAutotrackCapability = {
|
|
|
24869
25393
|
* fetch / cache / fallback logic out of the four cap methods —
|
|
24870
25394
|
* they become trampolines over `runtimeState`.
|
|
24871
25395
|
*/
|
|
24872
|
-
runtimeState: PtzAutotrackRuntimeStateSchema
|
|
25396
|
+
runtimeState: PtzAutotrackRuntimeStateSchema,
|
|
25397
|
+
/**
|
|
25398
|
+
* Runtime-state durability: **session** — mirrors the camera's own autotrack config, re-read on connect.
|
|
25399
|
+
*
|
|
25400
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25401
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25402
|
+
*/
|
|
25403
|
+
durability: "session"
|
|
24873
25404
|
};
|
|
24874
25405
|
DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
|
|
24875
25406
|
kind: "mutation",
|
|
@@ -25519,7 +26050,14 @@ var sceneMonitorCapability = {
|
|
|
25519
26050
|
schema: SceneMonitorStatusSchema,
|
|
25520
26051
|
kind: "push"
|
|
25521
26052
|
},
|
|
25522
|
-
runtimeState: SceneMonitorStatusSchema
|
|
26053
|
+
runtimeState: SceneMonitorStatusSchema,
|
|
26054
|
+
/**
|
|
26055
|
+
* Runtime-state durability: **session** — re-derived from the current scene on the next evaluation.
|
|
26056
|
+
*
|
|
26057
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26058
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26059
|
+
*/
|
|
26060
|
+
durability: "session"
|
|
25523
26061
|
};
|
|
25524
26062
|
/**
|
|
25525
26063
|
* Per-stage gating mode applied to the zones a rule references.
|
|
@@ -25663,7 +26201,14 @@ var scriptRunnerCapability = {
|
|
|
25663
26201
|
* `isRunning` to render a spinner during execution and surfaces
|
|
25664
26202
|
* `lastError` / `lastRunSuccess` in the recent-runs panel.
|
|
25665
26203
|
*/
|
|
25666
|
-
runtimeState: ScriptRunnerStatusSchema
|
|
26204
|
+
runtimeState: ScriptRunnerStatusSchema,
|
|
26205
|
+
/**
|
|
26206
|
+
* Runtime-state durability: **session** — a restored `isRunning: true` describes a process that died with the previous hub.
|
|
26207
|
+
*
|
|
26208
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26209
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26210
|
+
*/
|
|
26211
|
+
durability: "session"
|
|
25667
26212
|
};
|
|
25668
26213
|
/**
|
|
25669
26214
|
* Smoke alarm sensor — boolean "is smoke currently detected" with
|
|
@@ -25690,7 +26235,17 @@ var smokeCapability = {
|
|
|
25690
26235
|
schema: SmokeStatusSchema,
|
|
25691
26236
|
kind: "push"
|
|
25692
26237
|
},
|
|
25693
|
-
runtimeState: SmokeStatusSchema
|
|
26238
|
+
runtimeState: SmokeStatusSchema,
|
|
26239
|
+
/**
|
|
26240
|
+
* Runtime-state durability: **restored** — a safety sensor must not read "clear" merely because the hub restarted.
|
|
26241
|
+
*
|
|
26242
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26243
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26244
|
+
*/
|
|
26245
|
+
durability: "restored",
|
|
26246
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26247
|
+
* whether persisting is worth a SQLite commit. */
|
|
26248
|
+
volatileStateFields: ["lastChangedAt"]
|
|
25694
26249
|
};
|
|
25695
26250
|
/**
|
|
25696
26251
|
* One publishable camera stream as its OWNING PROVIDER describes it — the same
|
|
@@ -25863,7 +26418,17 @@ var streamParamsCapability = {
|
|
|
25863
26418
|
schema: StreamParamsStatusSchema,
|
|
25864
26419
|
kind: "poll"
|
|
25865
26420
|
},
|
|
25866
|
-
runtimeState: StreamParamsStatusSchema
|
|
26421
|
+
runtimeState: StreamParamsStatusSchema,
|
|
26422
|
+
/**
|
|
26423
|
+
* Runtime-state durability: **restored** — operator-set encoder profile; mutation-driven.
|
|
26424
|
+
*
|
|
26425
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26426
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26427
|
+
*/
|
|
26428
|
+
durability: "restored",
|
|
26429
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26430
|
+
* whether persisting is worth a SQLite commit. */
|
|
26431
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
25867
26432
|
};
|
|
25868
26433
|
/**
|
|
25869
26434
|
* Generic on/off switch cap for accessory children (siren, floodlight,
|
|
@@ -25909,6 +26474,16 @@ var switchCapability = {
|
|
|
25909
26474
|
* not need to re-query the provider after a setState mutation.
|
|
25910
26475
|
*/
|
|
25911
26476
|
runtimeState: SwitchStatusSchema,
|
|
26477
|
+
/**
|
|
26478
|
+
* Runtime-state durability: **restored** — device state an operator reads as authoritative; 55 devices, transition-driven.
|
|
26479
|
+
*
|
|
26480
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26481
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26482
|
+
*/
|
|
26483
|
+
durability: "restored",
|
|
26484
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26485
|
+
* whether persisting is worth a SQLite commit. */
|
|
26486
|
+
volatileStateFields: ["lastChangedAt"],
|
|
25912
26487
|
settings: { bindings: [{
|
|
25913
26488
|
kind: "scalar",
|
|
25914
26489
|
statusPath: "on",
|
|
@@ -25988,7 +26563,17 @@ var tamperCapability = {
|
|
|
25988
26563
|
schema: TamperStatusSchema,
|
|
25989
26564
|
kind: "push"
|
|
25990
26565
|
},
|
|
25991
|
-
runtimeState: TamperStatusSchema
|
|
26566
|
+
runtimeState: TamperStatusSchema,
|
|
26567
|
+
/**
|
|
26568
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
26569
|
+
*
|
|
26570
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26571
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26572
|
+
*/
|
|
26573
|
+
durability: "restored",
|
|
26574
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26575
|
+
* whether persisting is worth a SQLite commit. */
|
|
26576
|
+
volatileStateFields: ["lastChangedAt"]
|
|
25992
26577
|
};
|
|
25993
26578
|
/**
|
|
25994
26579
|
* Single-metric temperature reading. Drives Home Assistant `sensor`
|
|
@@ -26033,7 +26618,17 @@ var temperatureSensorCapability = {
|
|
|
26033
26618
|
schema: TemperatureSensorStatusSchema,
|
|
26034
26619
|
kind: "push"
|
|
26035
26620
|
},
|
|
26036
|
-
runtimeState: TemperatureSensorStatusSchema
|
|
26621
|
+
runtimeState: TemperatureSensorStatusSchema,
|
|
26622
|
+
/**
|
|
26623
|
+
* Runtime-state durability: **restored** — as `numeric-sensor` (69 of 125 writes were the clock alone).
|
|
26624
|
+
*
|
|
26625
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26626
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26627
|
+
*/
|
|
26628
|
+
durability: "restored",
|
|
26629
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26630
|
+
* whether persisting is worth a SQLite commit. */
|
|
26631
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
26037
26632
|
};
|
|
26038
26633
|
/**
|
|
26039
26634
|
* toast — system-scoped singleton capability that streams toast
|
|
@@ -26102,7 +26697,14 @@ var updateCapability = {
|
|
|
26102
26697
|
schema: UpdateStatusSchema,
|
|
26103
26698
|
kind: "poll"
|
|
26104
26699
|
},
|
|
26105
|
-
runtimeState: UpdateStatusSchema
|
|
26700
|
+
runtimeState: UpdateStatusSchema,
|
|
26701
|
+
/**
|
|
26702
|
+
* Runtime-state durability: **session** — a restored `inProgress: true` describes an update that is no longer running; versions are re-probed at boot.
|
|
26703
|
+
*
|
|
26704
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26705
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26706
|
+
*/
|
|
26707
|
+
durability: "session"
|
|
26106
26708
|
};
|
|
26107
26709
|
var UserSummarySchema = object({
|
|
26108
26710
|
id: string(),
|
|
@@ -26436,7 +27038,14 @@ var vacuumControlCapability = {
|
|
|
26436
27038
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
26437
27039
|
* slice for live state + battery + fan-speed changes.
|
|
26438
27040
|
*/
|
|
26439
|
-
runtimeState: VacuumControlStatusSchema
|
|
27041
|
+
runtimeState: VacuumControlStatusSchema,
|
|
27042
|
+
/**
|
|
27043
|
+
* Runtime-state durability: **session** — as `media-player` — a restored `state: cleaning` is a robot that is not cleaning.
|
|
27044
|
+
*
|
|
27045
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27046
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27047
|
+
*/
|
|
27048
|
+
durability: "session"
|
|
26440
27049
|
};
|
|
26441
27050
|
var ValveStatusSchema = object({
|
|
26442
27051
|
/** Lifecycle state of the valve. */
|
|
@@ -26488,7 +27097,14 @@ var valveCapability = {
|
|
|
26488
27097
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
26489
27098
|
* slice for live position changes during a move.
|
|
26490
27099
|
*/
|
|
26491
|
-
runtimeState: ValveStatusSchema
|
|
27100
|
+
runtimeState: ValveStatusSchema,
|
|
27101
|
+
/**
|
|
27102
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
27103
|
+
*
|
|
27104
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27105
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27106
|
+
*/
|
|
27107
|
+
durability: "session"
|
|
26492
27108
|
};
|
|
26493
27109
|
/**
|
|
26494
27110
|
* Vibration / shake / impact sensor. Drives Home Assistant
|
|
@@ -26510,7 +27126,17 @@ var vibrationCapability = {
|
|
|
26510
27126
|
schema: VibrationStatusSchema,
|
|
26511
27127
|
kind: "push"
|
|
26512
27128
|
},
|
|
26513
|
-
runtimeState: VibrationStatusSchema
|
|
27129
|
+
runtimeState: VibrationStatusSchema,
|
|
27130
|
+
/**
|
|
27131
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
27132
|
+
*
|
|
27133
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27134
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27135
|
+
*/
|
|
27136
|
+
durability: "restored",
|
|
27137
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27138
|
+
* whether persisting is worth a SQLite commit. */
|
|
27139
|
+
volatileStateFields: ["lastChangedAt"]
|
|
26514
27140
|
};
|
|
26515
27141
|
/**
|
|
26516
27142
|
* Water heater / boiler cap. Models HA `water_heater.*` entities — a
|
|
@@ -26584,7 +27210,14 @@ var waterHeaterCapability = {
|
|
|
26584
27210
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
26585
27211
|
* slice for live temperature / mode / away changes.
|
|
26586
27212
|
*/
|
|
26587
|
-
runtimeState: WaterHeaterStatusSchema
|
|
27213
|
+
runtimeState: WaterHeaterStatusSchema,
|
|
27214
|
+
/**
|
|
27215
|
+
* Runtime-state durability: **session** — as `climate-control`.
|
|
27216
|
+
*
|
|
27217
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27218
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27219
|
+
*/
|
|
27220
|
+
durability: "session"
|
|
26588
27221
|
};
|
|
26589
27222
|
/**
|
|
26590
27223
|
* Weather provider cap. Models HA `weather.*` entities — a read-only
|
|
@@ -26643,7 +27276,14 @@ var weatherCapability = {
|
|
|
26643
27276
|
* Runtime-state slice — mirrored by the kernel. The UI reads the
|
|
26644
27277
|
* current conditions directly from the slice on each weather push.
|
|
26645
27278
|
*/
|
|
26646
|
-
runtimeState: WeatherStatusSchema
|
|
27279
|
+
runtimeState: WeatherStatusSchema,
|
|
27280
|
+
/**
|
|
27281
|
+
* Runtime-state durability: **session** — a forecast is stale the moment the hub is down; the provider re-fetches on connect.
|
|
27282
|
+
*
|
|
27283
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27284
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27285
|
+
*/
|
|
27286
|
+
durability: "session"
|
|
26647
27287
|
};
|
|
26648
27288
|
/**
|
|
26649
27289
|
* Per-zone occupancy aggregation produced by the analytics frame
|
|
@@ -26805,7 +27445,14 @@ var zoneAnalyticsCapability = {
|
|
|
26805
27445
|
* automatically; the explicit `getCurrentSnapshot` cap method is
|
|
26806
27446
|
* still useful for one-off polls without a subscription.
|
|
26807
27447
|
*/
|
|
26808
|
-
runtimeState: CameraOccupancySnapshotSchema
|
|
27448
|
+
runtimeState: CameraOccupancySnapshotSchema,
|
|
27449
|
+
/**
|
|
27450
|
+
* Runtime-state durability: **session** — per-frame analytics; with `audio-metrics` it is ~90 % of the offered write rate. Re-derived on the next frame.
|
|
27451
|
+
*
|
|
27452
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27453
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27454
|
+
*/
|
|
27455
|
+
durability: "session"
|
|
26809
27456
|
};
|
|
26810
27457
|
/**
|
|
26811
27458
|
* Stages a {@link ZoneRule} can apply to. Discriminator on the rules
|
|
@@ -26883,7 +27530,14 @@ var zoneRulesCapability = {
|
|
|
26883
27530
|
motion: array(ZoneRuleSchema).readonly(),
|
|
26884
27531
|
detection: array(ZoneRuleSchema).readonly(),
|
|
26885
27532
|
package: array(ZoneRuleSchema).readonly()
|
|
26886
|
-
})
|
|
27533
|
+
}),
|
|
27534
|
+
/**
|
|
27535
|
+
* Runtime-state durability: **restored** — operator intent, mutation-only, same argument as `zones`.
|
|
27536
|
+
*
|
|
27537
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27538
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27539
|
+
*/
|
|
27540
|
+
durability: "restored"
|
|
26887
27541
|
};
|
|
26888
27542
|
/**
|
|
26889
27543
|
* Accessory device helpers — shared across drivers.
|
|
@@ -33570,6 +34224,7 @@ Object.freeze({
|
|
|
33570
34224
|
"network-access": "ingress",
|
|
33571
34225
|
"smtp-provider": "email"
|
|
33572
34226
|
});
|
|
34227
|
+
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
33573
34228
|
new Set(["devices", "classes"]);
|
|
33574
34229
|
/**
|
|
33575
34230
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|