@camstack/addon-provider-hikvision 1.2.18 → 1.2.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +732 -77
- package/dist/addon.mjs +732 -77
- package/package.json +1 -1
package/dist/addon.mjs
CHANGED
|
@@ -10928,7 +10928,14 @@ var cameraStreamsCapability = {
|
|
|
10928
10928
|
low: string().optional()
|
|
10929
10929
|
}),
|
|
10930
10930
|
lastChangedAt: number()
|
|
10931
|
-
})
|
|
10931
|
+
}),
|
|
10932
|
+
/**
|
|
10933
|
+
* 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.
|
|
10934
|
+
*
|
|
10935
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
10936
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
10937
|
+
*/
|
|
10938
|
+
durability: "session"
|
|
10932
10939
|
};
|
|
10933
10940
|
/** Where a block runs. The operator chooses — a block driving a device on an
|
|
10934
10941
|
* agent is the reason placement is not fixed to the hub. */
|
|
@@ -11501,6 +11508,13 @@ var deviceDiscoveryCapability = {
|
|
|
11501
11508
|
kind: "poll"
|
|
11502
11509
|
},
|
|
11503
11510
|
runtimeState: DeviceDiscoveryStatusSchema.extend({ lastFetchedAt: number().int().nonnegative() }),
|
|
11511
|
+
/**
|
|
11512
|
+
* Runtime-state durability: **session** — 5.7 KB of scan output on the largest device, fully re-derivable by re-scanning.
|
|
11513
|
+
*
|
|
11514
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
11515
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
11516
|
+
*/
|
|
11517
|
+
durability: "session",
|
|
11504
11518
|
methods: {
|
|
11505
11519
|
/**
|
|
11506
11520
|
* Snapshot of the current `discovered` list. Returns the
|
|
@@ -13370,11 +13384,33 @@ var NotificationFormatSchema = _enum([
|
|
|
13370
13384
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
13371
13385
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
13372
13386
|
* differently.
|
|
13387
|
+
*
|
|
13388
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
13389
|
+
*
|
|
13390
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
13391
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
13392
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
13393
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
13394
|
+
* decides its glyph, which is the only place that decision can be made
|
|
13395
|
+
* honestly.
|
|
13396
|
+
*
|
|
13397
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
13398
|
+
* `disarm` straight through; iOS feeds that string to
|
|
13399
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
13400
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
13401
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
13402
|
+
*
|
|
13403
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
13404
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
13405
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
13406
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
13407
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
13373
13408
|
*/
|
|
13374
13409
|
var NotificationActionIconSchema = _enum([
|
|
13375
13410
|
"acknowledge",
|
|
13376
13411
|
"dismiss",
|
|
13377
13412
|
"silence",
|
|
13413
|
+
"snooze",
|
|
13378
13414
|
"view",
|
|
13379
13415
|
"play",
|
|
13380
13416
|
"open",
|
|
@@ -13382,9 +13418,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
13382
13418
|
"lock",
|
|
13383
13419
|
"unlock",
|
|
13384
13420
|
"arm",
|
|
13421
|
+
"arm-home",
|
|
13422
|
+
"arm-away",
|
|
13423
|
+
"arm-night",
|
|
13385
13424
|
"disarm",
|
|
13386
13425
|
"light",
|
|
13387
|
-
"alert"
|
|
13426
|
+
"alert",
|
|
13427
|
+
"camera"
|
|
13388
13428
|
]);
|
|
13389
13429
|
/** A single tap-through action button. */
|
|
13390
13430
|
var NotificationActionSchema = object({
|
|
@@ -13400,7 +13440,23 @@ var NotificationActionSchema = object({
|
|
|
13400
13440
|
* else — see `notification-center/action-token.ts` for what that does and
|
|
13401
13441
|
* does not buy.
|
|
13402
13442
|
*/
|
|
13403
|
-
destructive: boolean().optional()
|
|
13443
|
+
destructive: boolean().optional(),
|
|
13444
|
+
/**
|
|
13445
|
+
* How the tap should REACH the url.
|
|
13446
|
+
*
|
|
13447
|
+
* `navigate` (absent, and every button authored before this field) opens it:
|
|
13448
|
+
* the phone leaves the notification and shows whatever the callback returns.
|
|
13449
|
+
* That is right for a button whose answer the operator wants to read.
|
|
13450
|
+
*
|
|
13451
|
+
* `background` fires it as a POST and stays put. It exists for the buttons
|
|
13452
|
+
* whose whole point is not to interrupt — "silence this for 30 minutes" is
|
|
13453
|
+
* an answer to the notification, and being thrown into a browser tab to
|
|
13454
|
+
* confirm it costs more attention than the notification did. A backend that
|
|
13455
|
+
* cannot do a background call renders it as an ordinary link (the adapters
|
|
13456
|
+
* fall back rather than dropping the button), so this is a preference, never
|
|
13457
|
+
* a requirement.
|
|
13458
|
+
*/
|
|
13459
|
+
mode: _enum(["navigate", "background"]).optional()
|
|
13404
13460
|
});
|
|
13405
13461
|
/**
|
|
13406
13462
|
* The canonical notification. `body` is the only hard field (Apprise model).
|
|
@@ -13568,6 +13624,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
13568
13624
|
targetId: string(),
|
|
13569
13625
|
enabled: boolean()
|
|
13570
13626
|
}), _void(), { kind: "mutation" });
|
|
13627
|
+
new Set([
|
|
13628
|
+
{
|
|
13629
|
+
id: "person",
|
|
13630
|
+
name: "Person"
|
|
13631
|
+
},
|
|
13632
|
+
{
|
|
13633
|
+
id: "vehicle",
|
|
13634
|
+
name: "Vehicle"
|
|
13635
|
+
},
|
|
13636
|
+
{
|
|
13637
|
+
id: "animal",
|
|
13638
|
+
name: "Animal"
|
|
13639
|
+
},
|
|
13640
|
+
{
|
|
13641
|
+
id: "package",
|
|
13642
|
+
name: "Package"
|
|
13643
|
+
}
|
|
13644
|
+
].map((l) => l.id));
|
|
13571
13645
|
var COCO_TO_MACRO = {
|
|
13572
13646
|
mapping: {
|
|
13573
13647
|
person: "person",
|
|
@@ -14252,7 +14326,17 @@ var alarmPanelCapability = {
|
|
|
14252
14326
|
* full slice; renders an arm button per `availableModes` entry and
|
|
14253
14327
|
* a PIN field iff `requiresCode === true`.
|
|
14254
14328
|
*/
|
|
14255
|
-
runtimeState: AlarmPanelStatusSchema
|
|
14329
|
+
runtimeState: AlarmPanelStatusSchema,
|
|
14330
|
+
/**
|
|
14331
|
+
* Runtime-state durability: **restored** — armed state is the one thing a panel must not lose across a restart.
|
|
14332
|
+
*
|
|
14333
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
14334
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
14335
|
+
*/
|
|
14336
|
+
durability: "restored",
|
|
14337
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
14338
|
+
* whether persisting is worth a SQLite commit. */
|
|
14339
|
+
volatileStateFields: ["lastChangedAt"]
|
|
14256
14340
|
};
|
|
14257
14341
|
/**
|
|
14258
14342
|
* Shared geometry vocabulary for on-frame shape caps — privacy-mask,
|
|
@@ -14393,6 +14477,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14393
14477
|
"alarm-triggered",
|
|
14394
14478
|
"alarm-armed",
|
|
14395
14479
|
"alarm-disarmed",
|
|
14480
|
+
"alarm-arming",
|
|
14481
|
+
"alarm-arm-refused",
|
|
14396
14482
|
"camera-online",
|
|
14397
14483
|
"camera-offline",
|
|
14398
14484
|
"camera-disabled",
|
|
@@ -14429,6 +14515,9 @@ var NcSystemEventConditionSchema = object({
|
|
|
14429
14515
|
nodeIds: array(string().min(1)).min(1).optional(),
|
|
14430
14516
|
packageNames: array(string().min(1)).min(1).optional()
|
|
14431
14517
|
});
|
|
14518
|
+
/** Hard ceiling on a window (24h). A snooze that could not expire would be an
|
|
14519
|
+
* outage the operator asked for once and forgot. */
|
|
14520
|
+
var NC_SNOOZE_MAX_MINUTES = 1440;
|
|
14432
14521
|
/** Weekly schedule — OR of windows; absence on the rule = always active. */
|
|
14433
14522
|
var NcScheduleSchema = object({
|
|
14434
14523
|
windows: array(object({
|
|
@@ -14805,15 +14894,15 @@ var NcConditionsSchema = object({
|
|
|
14805
14894
|
* (an `immediate` rule naming an `audio-*` class, one notification per
|
|
14806
14895
|
* classified sample) stays exactly as it was for rules that already use it.
|
|
14807
14896
|
*
|
|
14808
|
-
*
|
|
14809
|
-
* rather than an
|
|
14810
|
-
* (`camstack/src/data/notification-center.ts`, guarded by
|
|
14811
|
-
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor
|
|
14897
|
+
* In {@link NC_CONDITION_CATALOG} since P2, and the ORDER it got there is the
|
|
14898
|
+
* rule rather than an accident: the viewer mirrors the descriptor enums BY
|
|
14899
|
+
* HAND (`camstack/src/data/notification-center.ts`, guarded by
|
|
14900
|
+
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor strips the
|
|
14812
14901
|
* condition fields it does not know when a rule is saved from the phone.
|
|
14813
14902
|
* Publishing an editor for a condition the app cannot round-trip is how an
|
|
14814
|
-
* operator loses a rule's conditions by opening it — so the
|
|
14815
|
-
*
|
|
14816
|
-
*
|
|
14903
|
+
* operator loses a rule's conditions by opening it — so the viewer mirror
|
|
14904
|
+
* (P3, shipped) went FIRST, and the descriptor an editor renders from
|
|
14905
|
+
* follows here.
|
|
14817
14906
|
*/
|
|
14818
14907
|
audio: NcAudioConditionSchema.optional()
|
|
14819
14908
|
});
|
|
@@ -15049,6 +15138,30 @@ var NcRuleInputSchema = object({
|
|
|
15049
15138
|
*/
|
|
15050
15139
|
snoozeAllowGlobal: boolean().optional(),
|
|
15051
15140
|
/**
|
|
15141
|
+
* The snooze durations THIS rule's notification offers as buttons, in
|
|
15142
|
+
* minutes.
|
|
15143
|
+
*
|
|
15144
|
+
* Three states, and all three are distinct — which is exactly why this is
|
|
15145
|
+
* `.optional()` and never `.default()`. A Zod default does not run on the
|
|
15146
|
+
* addon cap path (three production failures in one day), so a schema default
|
|
15147
|
+
* would collapse the first two:
|
|
15148
|
+
*
|
|
15149
|
+
* | value | meaning |
|
|
15150
|
+
* | --- | --- |
|
|
15151
|
+
* | absent | the operator never said ⇒ {@link NC_DEFAULT_SNOOZE_MINUTES} |
|
|
15152
|
+
* | `[]` | **no snooze buttons on this rule** — the explicit override |
|
|
15153
|
+
* | a list | these choices, de-duplicated and sorted, at most four |
|
|
15154
|
+
*
|
|
15155
|
+
* `.max(4)` because the notifier's own action budget is small (ntfy allows
|
|
15156
|
+
* three buttons in total) and a rule that spent it all on snooze choices
|
|
15157
|
+
* would push its own tap-through actions off the notification.
|
|
15158
|
+
*
|
|
15159
|
+
* An empty list is NOT an alarm exemption: a rule the alarm is about, or
|
|
15160
|
+
* that arms the panel, is exempt automatically and cannot be silenced by a
|
|
15161
|
+
* window from anywhere (D133).
|
|
15162
|
+
*/
|
|
15163
|
+
snoozeOptions: array(number().int().min(1).max(NC_SNOOZE_MAX_MINUTES)).max(4).optional(),
|
|
15164
|
+
/**
|
|
15052
15165
|
* Devices this rule ACTUATES — arm the alarm, open a gate, turn on a light.
|
|
15053
15166
|
*
|
|
15054
15167
|
* This is what makes the rule set the alarm's trigger set without the alarm
|
|
@@ -15148,6 +15261,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
15148
15261
|
"device",
|
|
15149
15262
|
"package",
|
|
15150
15263
|
"occupancy",
|
|
15264
|
+
"audio",
|
|
15151
15265
|
"system"
|
|
15152
15266
|
]),
|
|
15153
15267
|
label: string(),
|
|
@@ -15166,6 +15280,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
15166
15280
|
"crossingSelect",
|
|
15167
15281
|
"polygonDraw",
|
|
15168
15282
|
"occupancy",
|
|
15283
|
+
"audio",
|
|
15169
15284
|
"deviceState",
|
|
15170
15285
|
"systemEvent"
|
|
15171
15286
|
]),
|
|
@@ -15317,7 +15432,20 @@ var NcSnoozeInputSchema = object({
|
|
|
15317
15432
|
ruleId: string().optional(),
|
|
15318
15433
|
/** Required when `scope: 'device'`. */
|
|
15319
15434
|
deviceId: number().int().optional(),
|
|
15320
|
-
|
|
15435
|
+
/**
|
|
15436
|
+
* Narrow the window to these subject classes — "the cat, not the person".
|
|
15437
|
+
*
|
|
15438
|
+
* ORTHOGONAL to `scope`, deliberately, and absent means EVERY class: that is
|
|
15439
|
+
* what every window authored before this field meant, so no persisted row
|
|
15440
|
+
* changes meaning and no client has to learn anything to keep working.
|
|
15441
|
+
*
|
|
15442
|
+
* It is what makes the window's real key `(deviceId, classes[])` and lets it
|
|
15443
|
+
* cross rules (D133): the operator points at a camera and a kind of thing,
|
|
15444
|
+
* not at whichever of their four rules happened to produce the notification
|
|
15445
|
+
* they are dismissing.
|
|
15446
|
+
*/
|
|
15447
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
15448
|
+
durationMinutes: number().int().min(1).max(NC_SNOOZE_MAX_MINUTES),
|
|
15321
15449
|
/**
|
|
15322
15450
|
* Silence this for EVERY recipient, not just the caller. Permission is
|
|
15323
15451
|
* checked server-side (the rule's `snoozeAllowGlobal`, or admin for the
|
|
@@ -15342,6 +15470,10 @@ var NcSnoozeSchema = object({
|
|
|
15342
15470
|
scope: NcSnoozeScopeSchema,
|
|
15343
15471
|
ruleId: string().optional(),
|
|
15344
15472
|
deviceId: number().int().optional(),
|
|
15473
|
+
/** Subject classes this window covers. ABSENT = every class — see
|
|
15474
|
+
* {@link NcSnoozeInputSchema.shape.classes}. Lives in the JSON blob and has
|
|
15475
|
+
* no SQLite column: nothing queries a window by class. */
|
|
15476
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
15345
15477
|
startedAt: number(),
|
|
15346
15478
|
/** Exclusive: at exactly this instant the snooze is over. Expiry is a
|
|
15347
15479
|
* COMPARISON, not a job — no sweeper can leave the operator silenced. */
|
|
@@ -17442,7 +17574,14 @@ var zonesCapability = {
|
|
|
17442
17574
|
* handle. Slice shape is `{ zones: Zone[] }` so future extensions
|
|
17443
17575
|
* (e.g. zone groupings) can sit alongside the polygon list.
|
|
17444
17576
|
*/
|
|
17445
|
-
runtimeState: object({ zones: array(ZoneSchema).readonly() })
|
|
17577
|
+
runtimeState: object({ zones: array(ZoneSchema).readonly() }),
|
|
17578
|
+
/**
|
|
17579
|
+
* 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.
|
|
17580
|
+
*
|
|
17581
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
17582
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
17583
|
+
*/
|
|
17584
|
+
durability: "restored"
|
|
17446
17585
|
};
|
|
17447
17586
|
/**
|
|
17448
17587
|
* A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
|
|
@@ -17612,6 +17751,22 @@ var detectionFpsField = {
|
|
|
17612
17751
|
default: 10,
|
|
17613
17752
|
step: 1
|
|
17614
17753
|
};
|
|
17754
|
+
/**
|
|
17755
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
17756
|
+
*
|
|
17757
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
17758
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
17759
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
17760
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
17761
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
17762
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
17763
|
+
*
|
|
17764
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
17765
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
17766
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
17767
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
17768
|
+
* that ships with an addon deploy.
|
|
17769
|
+
*/
|
|
17615
17770
|
var occupancyRecheckSecField = {
|
|
17616
17771
|
min: 0,
|
|
17617
17772
|
max: 300,
|
|
@@ -17813,15 +17968,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
17813
17968
|
*/
|
|
17814
17969
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
17815
17970
|
/**
|
|
17816
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
17817
|
-
*
|
|
17818
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
17819
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
17820
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
17971
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
17972
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
17821
17973
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
17822
17974
|
* (and only render) when this is enabled.
|
|
17823
|
-
|
|
17824
|
-
|
|
17975
|
+
*
|
|
17976
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
17977
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
17978
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
17979
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
17980
|
+
* object is counted only while the stationary registry holds it, and the
|
|
17981
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
17982
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
17983
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
17984
|
+
*/
|
|
17985
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
17825
17986
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
17826
17987
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
17827
17988
|
/**
|
|
@@ -20336,7 +20497,17 @@ var airQualitySensorCapability = {
|
|
|
20336
20497
|
schema: AirQualitySensorStatusSchema,
|
|
20337
20498
|
kind: "push"
|
|
20338
20499
|
},
|
|
20339
|
-
runtimeState: AirQualitySensorStatusSchema
|
|
20500
|
+
runtimeState: AirQualitySensorStatusSchema,
|
|
20501
|
+
/**
|
|
20502
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
20503
|
+
*
|
|
20504
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20505
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20506
|
+
*/
|
|
20507
|
+
durability: "restored",
|
|
20508
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20509
|
+
* whether persisting is worth a SQLite commit. */
|
|
20510
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
20340
20511
|
};
|
|
20341
20512
|
/**
|
|
20342
20513
|
* Ambient illuminance reading in lux. Drives Home Assistant `sensor`
|
|
@@ -20368,7 +20539,17 @@ var ambientLightSensorCapability = {
|
|
|
20368
20539
|
schema: AmbientLightSensorStatusSchema,
|
|
20369
20540
|
kind: "push"
|
|
20370
20541
|
},
|
|
20371
|
-
runtimeState: AmbientLightSensorStatusSchema
|
|
20542
|
+
runtimeState: AmbientLightSensorStatusSchema,
|
|
20543
|
+
/**
|
|
20544
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
20545
|
+
*
|
|
20546
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20547
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20548
|
+
*/
|
|
20549
|
+
durability: "restored",
|
|
20550
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20551
|
+
* whether persisting is worth a SQLite commit. */
|
|
20552
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
20372
20553
|
};
|
|
20373
20554
|
/**
|
|
20374
20555
|
* Per-class audio metrics aggregated over a sliding window.
|
|
@@ -20486,7 +20667,14 @@ var audioMetricsCapability = {
|
|
|
20486
20667
|
}), AudioMetricsHistorySchema)
|
|
20487
20668
|
},
|
|
20488
20669
|
/** Reactive runtime-state mirror — live `device.state.audioMetrics.value`. */
|
|
20489
|
-
runtimeState: AudioMetricsSnapshotSchema
|
|
20670
|
+
runtimeState: AudioMetricsSnapshotSchema,
|
|
20671
|
+
/**
|
|
20672
|
+
* 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.
|
|
20673
|
+
*
|
|
20674
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20675
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20676
|
+
*/
|
|
20677
|
+
durability: "session"
|
|
20490
20678
|
};
|
|
20491
20679
|
/**
|
|
20492
20680
|
* Automation-control cap. Models HA `automation.*` entities on
|
|
@@ -20548,7 +20736,14 @@ var automationControlCapability = {
|
|
|
20548
20736
|
* reads `enabled` (toggle) + `isRunning` (spinner) + `lastError`
|
|
20549
20737
|
* (badge) directly.
|
|
20550
20738
|
*/
|
|
20551
|
-
runtimeState: AutomationControlStatusSchema
|
|
20739
|
+
runtimeState: AutomationControlStatusSchema,
|
|
20740
|
+
/**
|
|
20741
|
+
* 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.
|
|
20742
|
+
*
|
|
20743
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20744
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20745
|
+
*/
|
|
20746
|
+
durability: "session"
|
|
20552
20747
|
};
|
|
20553
20748
|
/**
|
|
20554
20749
|
* Battery status snapshot. Emitted by providers whose device is
|
|
@@ -20654,7 +20849,17 @@ onStatusChanged: { data: object({
|
|
|
20654
20849
|
* via `device.runtimeState.getCapState('battery')` regardless of
|
|
20655
20850
|
* the underlying driver.
|
|
20656
20851
|
*/
|
|
20657
|
-
runtimeState: BatteryStatusSchema
|
|
20852
|
+
runtimeState: BatteryStatusSchema,
|
|
20853
|
+
/**
|
|
20854
|
+
* 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.
|
|
20855
|
+
*
|
|
20856
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20857
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20858
|
+
*/
|
|
20859
|
+
durability: "restored",
|
|
20860
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20861
|
+
* whether persisting is worth a SQLite commit. */
|
|
20862
|
+
volatileStateFields: ["lastUpdated"]
|
|
20658
20863
|
};
|
|
20659
20864
|
/**
|
|
20660
20865
|
* Generic boolean sensor — last-resort fallback when no domain-
|
|
@@ -20683,7 +20888,17 @@ var binaryCapability = {
|
|
|
20683
20888
|
schema: BinaryStatusSchema,
|
|
20684
20889
|
kind: "push"
|
|
20685
20890
|
},
|
|
20686
|
-
runtimeState: BinaryStatusSchema
|
|
20891
|
+
runtimeState: BinaryStatusSchema,
|
|
20892
|
+
/**
|
|
20893
|
+
* Runtime-state durability: **restored** — transition-driven sensor state; the restored value gives the boot comparison.
|
|
20894
|
+
*
|
|
20895
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20896
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20897
|
+
*/
|
|
20898
|
+
durability: "restored",
|
|
20899
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20900
|
+
* whether persisting is worth a SQLite commit. */
|
|
20901
|
+
volatileStateFields: ["lastChangedAt"]
|
|
20687
20902
|
};
|
|
20688
20903
|
/**
|
|
20689
20904
|
* Dimmable-light brightness control. Co-exists with `switch` on the
|
|
@@ -20736,7 +20951,14 @@ onBrightnessChanged: { data: object({
|
|
|
20736
20951
|
* by the kernel. Read via `device.state.brightness.value` so UI
|
|
20737
20952
|
* sliders surface the current level without polling the provider.
|
|
20738
20953
|
*/
|
|
20739
|
-
runtimeState: BrightnessStatusSchema
|
|
20954
|
+
runtimeState: BrightnessStatusSchema,
|
|
20955
|
+
/**
|
|
20956
|
+
* Runtime-state durability: **session** — live lamp state, re-published by the provider on connect.
|
|
20957
|
+
*
|
|
20958
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20959
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20960
|
+
*/
|
|
20961
|
+
durability: "session"
|
|
20740
20962
|
};
|
|
20741
20963
|
DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _void(), {
|
|
20742
20964
|
kind: "mutation",
|
|
@@ -20824,7 +21046,17 @@ var carbonMonoxideCapability = {
|
|
|
20824
21046
|
schema: CarbonMonoxideStatusSchema,
|
|
20825
21047
|
kind: "push"
|
|
20826
21048
|
},
|
|
20827
|
-
runtimeState: CarbonMonoxideStatusSchema
|
|
21049
|
+
runtimeState: CarbonMonoxideStatusSchema,
|
|
21050
|
+
/**
|
|
21051
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
21052
|
+
*
|
|
21053
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21054
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21055
|
+
*/
|
|
21056
|
+
durability: "restored",
|
|
21057
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21058
|
+
* whether persisting is worth a SQLite commit. */
|
|
21059
|
+
volatileStateFields: ["lastChangedAt"]
|
|
20828
21060
|
};
|
|
20829
21061
|
/**
|
|
20830
21062
|
* HVAC / climate control cap. Models the full surface of a HA
|
|
@@ -20984,7 +21216,14 @@ var climateControlCapability = {
|
|
|
20984
21216
|
* the full slice via `device.state.climate-control.value` and refresh
|
|
20985
21217
|
* on every push without re-querying the provider.
|
|
20986
21218
|
*/
|
|
20987
|
-
runtimeState: ClimateControlStatusSchema
|
|
21219
|
+
runtimeState: ClimateControlStatusSchema,
|
|
21220
|
+
/**
|
|
21221
|
+
* Runtime-state durability: **session** — as `brightness`; `currentTemp` moves continuously and is re-published on connect.
|
|
21222
|
+
*
|
|
21223
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21224
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21225
|
+
*/
|
|
21226
|
+
durability: "session"
|
|
20988
21227
|
};
|
|
20989
21228
|
/**
|
|
20990
21229
|
* Color-light cap. Coexists with `switch` (on/off) and `brightness`
|
|
@@ -21094,7 +21333,14 @@ onColorChanged: { data: object({
|
|
|
21094
21333
|
* kernel. Read via `device.state.color.value` so UI pickers surface
|
|
21095
21334
|
* the current chromaticity without polling the provider.
|
|
21096
21335
|
*/
|
|
21097
|
-
runtimeState: ColorStatusSchema
|
|
21336
|
+
runtimeState: ColorStatusSchema,
|
|
21337
|
+
/**
|
|
21338
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
21339
|
+
*
|
|
21340
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21341
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21342
|
+
*/
|
|
21343
|
+
durability: "session"
|
|
21098
21344
|
};
|
|
21099
21345
|
var ConnectionTestOutcomeSchema = discriminatedUnion("outcome", [
|
|
21100
21346
|
object({
|
|
@@ -21152,7 +21398,17 @@ var connectivityCapability = {
|
|
|
21152
21398
|
schema: ConnectivityStatusSchema,
|
|
21153
21399
|
kind: "push"
|
|
21154
21400
|
},
|
|
21155
|
-
runtimeState: ConnectivityStatusSchema
|
|
21401
|
+
runtimeState: ConnectivityStatusSchema,
|
|
21402
|
+
/**
|
|
21403
|
+
* Runtime-state durability: **restored** — same shape and same argument as `device-status`, for links rather than devices.
|
|
21404
|
+
*
|
|
21405
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21406
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21407
|
+
*/
|
|
21408
|
+
durability: "restored",
|
|
21409
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21410
|
+
* whether persisting is worth a SQLite commit. */
|
|
21411
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21156
21412
|
};
|
|
21157
21413
|
/**
|
|
21158
21414
|
* Generic device-consumables capability — surfaces a device's
|
|
@@ -21234,7 +21490,14 @@ reset: method(object({
|
|
|
21234
21490
|
}
|
|
21235
21491
|
}
|
|
21236
21492
|
},
|
|
21237
|
-
runtimeState: ConsumablesStatusSchema.extend({ lastFetchedAt: number() })
|
|
21493
|
+
runtimeState: ConsumablesStatusSchema.extend({ lastFetchedAt: number() }),
|
|
21494
|
+
/**
|
|
21495
|
+
* Runtime-state durability: **session** — the authority is the appliance; the provider re-reads the whole item array on connect.
|
|
21496
|
+
*
|
|
21497
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21498
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21499
|
+
*/
|
|
21500
|
+
durability: "session"
|
|
21238
21501
|
};
|
|
21239
21502
|
/**
|
|
21240
21503
|
* Door / window / opening / garage / valve contact sensor. Boolean
|
|
@@ -21265,7 +21528,17 @@ var contactCapability = {
|
|
|
21265
21528
|
schema: ContactStatusSchema,
|
|
21266
21529
|
kind: "push"
|
|
21267
21530
|
},
|
|
21268
|
-
runtimeState: ContactStatusSchema
|
|
21531
|
+
runtimeState: ContactStatusSchema,
|
|
21532
|
+
/**
|
|
21533
|
+
* Runtime-state durability: **restored** — a door left open across a restart must still read open.
|
|
21534
|
+
*
|
|
21535
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21536
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21537
|
+
*/
|
|
21538
|
+
durability: "restored",
|
|
21539
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21540
|
+
* whether persisting is worth a SQLite commit. */
|
|
21541
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21269
21542
|
};
|
|
21270
21543
|
/**
|
|
21271
21544
|
* Status slice — flat object (the framework's `runtimeState` contract
|
|
@@ -21371,7 +21644,14 @@ var controlCapability = {
|
|
|
21371
21644
|
* dropdown / text field / date picker) read the slice's discriminant
|
|
21372
21645
|
* and value directly without polling the provider.
|
|
21373
21646
|
*/
|
|
21374
|
-
runtimeState: ControlStatusSchema
|
|
21647
|
+
runtimeState: ControlStatusSchema,
|
|
21648
|
+
/**
|
|
21649
|
+
* Runtime-state durability: **session** — a generic control mirrors an external entity that re-publishes on connect; the options array is re-derived with it.
|
|
21650
|
+
*
|
|
21651
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21652
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21653
|
+
*/
|
|
21654
|
+
durability: "session"
|
|
21375
21655
|
};
|
|
21376
21656
|
var CoverStatusSchema = object({
|
|
21377
21657
|
/** Lifecycle state of the cover. */
|
|
@@ -21432,7 +21712,17 @@ var coverCapability = {
|
|
|
21432
21712
|
* Runtime-state slice — mirrored by the kernel. UI controls watch
|
|
21433
21713
|
* the slice for live position changes during a move.
|
|
21434
21714
|
*/
|
|
21435
|
-
runtimeState: CoverStatusSchema
|
|
21715
|
+
runtimeState: CoverStatusSchema,
|
|
21716
|
+
/**
|
|
21717
|
+
* Runtime-state durability: **restored** — position survives a restart on the device; the mirror should agree at boot rather than read blank.
|
|
21718
|
+
*
|
|
21719
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21720
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21721
|
+
*/
|
|
21722
|
+
durability: "restored",
|
|
21723
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21724
|
+
* whether persisting is worth a SQLite commit. */
|
|
21725
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21436
21726
|
};
|
|
21437
21727
|
/**
|
|
21438
21728
|
* Vendor-neutral day/night (IR-cut) control — the per-camera config cap
|
|
@@ -21526,7 +21816,17 @@ var dayNightCapability = {
|
|
|
21526
21816
|
schema: DayNightStatusSchema,
|
|
21527
21817
|
kind: "poll"
|
|
21528
21818
|
},
|
|
21529
|
-
runtimeState: DayNightStatusSchema
|
|
21819
|
+
runtimeState: DayNightStatusSchema,
|
|
21820
|
+
/**
|
|
21821
|
+
* Runtime-state durability: **restored** — operator-set IR-cut behaviour; mutation-driven.
|
|
21822
|
+
*
|
|
21823
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21824
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21825
|
+
*/
|
|
21826
|
+
durability: "restored",
|
|
21827
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21828
|
+
* whether persisting is worth a SQLite commit. */
|
|
21829
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
21530
21830
|
};
|
|
21531
21831
|
/**
|
|
21532
21832
|
* Generic device-level status snapshot. Auto-registered by `BaseDevice`
|
|
@@ -21573,7 +21873,17 @@ onStatusChanged: { data: object({
|
|
|
21573
21873
|
schema: DeviceStatusSchema,
|
|
21574
21874
|
kind: "push"
|
|
21575
21875
|
},
|
|
21576
|
-
runtimeState: DeviceStatusSchema
|
|
21876
|
+
runtimeState: DeviceStatusSchema,
|
|
21877
|
+
/**
|
|
21878
|
+
* 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.
|
|
21879
|
+
*
|
|
21880
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21881
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21882
|
+
*/
|
|
21883
|
+
durability: "restored",
|
|
21884
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21885
|
+
* whether persisting is worth a SQLite commit. */
|
|
21886
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21577
21887
|
};
|
|
21578
21888
|
/**
|
|
21579
21889
|
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
@@ -21635,7 +21945,14 @@ onPressed: { data: DoorbellPressEventSchema } },
|
|
|
21635
21945
|
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
21636
21946
|
* without subscribing.
|
|
21637
21947
|
*/
|
|
21638
|
-
runtimeState: DoorbellStatusSchema
|
|
21948
|
+
runtimeState: DoorbellStatusSchema,
|
|
21949
|
+
/**
|
|
21950
|
+
* 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.
|
|
21951
|
+
*
|
|
21952
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21953
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21954
|
+
*/
|
|
21955
|
+
durability: "restored"
|
|
21639
21956
|
};
|
|
21640
21957
|
/**
|
|
21641
21958
|
* Enum-state sensor — a string value picked from a finite option set.
|
|
@@ -21675,7 +21992,17 @@ var enumSensorCapability = {
|
|
|
21675
21992
|
schema: EnumSensorStatusSchema,
|
|
21676
21993
|
kind: "push"
|
|
21677
21994
|
},
|
|
21678
|
-
runtimeState: EnumSensorStatusSchema
|
|
21995
|
+
runtimeState: EnumSensorStatusSchema,
|
|
21996
|
+
/**
|
|
21997
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`; 80 devices.
|
|
21998
|
+
*
|
|
21999
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22000
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22001
|
+
*/
|
|
22002
|
+
durability: "restored",
|
|
22003
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22004
|
+
* whether persisting is worth a SQLite commit. */
|
|
22005
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
21679
22006
|
};
|
|
21680
22007
|
/**
|
|
21681
22008
|
* Generic stateless event emitter. Installed on a `DeviceType.EventEmitter`
|
|
@@ -21711,7 +22038,14 @@ var eventEmitterCapability = {
|
|
|
21711
22038
|
schema: EventEmitterStatusSchema,
|
|
21712
22039
|
kind: "push"
|
|
21713
22040
|
},
|
|
21714
|
-
runtimeState: EventEmitterStatusSchema
|
|
22041
|
+
runtimeState: EventEmitterStatusSchema,
|
|
22042
|
+
/**
|
|
22043
|
+
* Runtime-state durability: **session** — `eventCountSinceStart` names its own scope.
|
|
22044
|
+
*
|
|
22045
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22046
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22047
|
+
*/
|
|
22048
|
+
durability: "session"
|
|
21715
22049
|
};
|
|
21716
22050
|
var EventItemSchema = object({
|
|
21717
22051
|
id: string(),
|
|
@@ -21992,7 +22326,14 @@ var fanControlCapability = {
|
|
|
21992
22326
|
* Runtime-state slice — mirrored by the kernel. UI fan speed
|
|
21993
22327
|
* sliders read `percentage` for live updates.
|
|
21994
22328
|
*/
|
|
21995
|
-
runtimeState: FanControlStatusSchema
|
|
22329
|
+
runtimeState: FanControlStatusSchema,
|
|
22330
|
+
/**
|
|
22331
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
22332
|
+
*
|
|
22333
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22334
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22335
|
+
*/
|
|
22336
|
+
durability: "session"
|
|
21996
22337
|
};
|
|
21997
22338
|
/**
|
|
21998
22339
|
* Per-device feature/identity probe slice. Holds the runtime-resolved
|
|
@@ -22068,7 +22409,14 @@ onProbeChanged: { data: object({
|
|
|
22068
22409
|
schema: FeatureProbeStatusSchema,
|
|
22069
22410
|
kind: "push"
|
|
22070
22411
|
},
|
|
22071
|
-
runtimeState: FeatureProbeStatusSchema
|
|
22412
|
+
runtimeState: FeatureProbeStatusSchema,
|
|
22413
|
+
/**
|
|
22414
|
+
* 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.
|
|
22415
|
+
*
|
|
22416
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22417
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22418
|
+
*/
|
|
22419
|
+
durability: "session"
|
|
22072
22420
|
};
|
|
22073
22421
|
/**
|
|
22074
22422
|
* Water leak / moisture sensor. Boolean "is liquid currently
|
|
@@ -22095,7 +22443,17 @@ var floodCapability = {
|
|
|
22095
22443
|
schema: FloodStatusSchema,
|
|
22096
22444
|
kind: "push"
|
|
22097
22445
|
},
|
|
22098
|
-
runtimeState: FloodStatusSchema
|
|
22446
|
+
runtimeState: FloodStatusSchema,
|
|
22447
|
+
/**
|
|
22448
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
22449
|
+
*
|
|
22450
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22451
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22452
|
+
*/
|
|
22453
|
+
durability: "restored",
|
|
22454
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22455
|
+
* whether persisting is worth a SQLite commit. */
|
|
22456
|
+
volatileStateFields: ["lastChangedAt"]
|
|
22099
22457
|
};
|
|
22100
22458
|
/**
|
|
22101
22459
|
* Combustible-gas (LPG / methane / hydrogen) alarm sensor. Drives
|
|
@@ -22118,7 +22476,17 @@ var gasCapability = {
|
|
|
22118
22476
|
schema: GasStatusSchema,
|
|
22119
22477
|
kind: "push"
|
|
22120
22478
|
},
|
|
22121
|
-
runtimeState: GasStatusSchema
|
|
22479
|
+
runtimeState: GasStatusSchema,
|
|
22480
|
+
/**
|
|
22481
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
22482
|
+
*
|
|
22483
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22484
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22485
|
+
*/
|
|
22486
|
+
durability: "restored",
|
|
22487
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22488
|
+
* whether persisting is worth a SQLite commit. */
|
|
22489
|
+
volatileStateFields: ["lastChangedAt"]
|
|
22122
22490
|
};
|
|
22123
22491
|
/**
|
|
22124
22492
|
* Humidifier / dehumidifier cap. Models HA `humidifier.*` entities —
|
|
@@ -22194,7 +22562,14 @@ var humidifierCapability = {
|
|
|
22194
22562
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
22195
22563
|
* slice for live humidity / mode changes.
|
|
22196
22564
|
*/
|
|
22197
|
-
runtimeState: HumidifierStatusSchema
|
|
22565
|
+
runtimeState: HumidifierStatusSchema,
|
|
22566
|
+
/**
|
|
22567
|
+
* Runtime-state durability: **session** — as `climate-control`.
|
|
22568
|
+
*
|
|
22569
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22570
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22571
|
+
*/
|
|
22572
|
+
durability: "session"
|
|
22198
22573
|
};
|
|
22199
22574
|
/**
|
|
22200
22575
|
* Single-metric humidity reading. Drives Home Assistant `sensor`
|
|
@@ -22230,7 +22605,17 @@ var humiditySensorCapability = {
|
|
|
22230
22605
|
schema: HumiditySensorStatusSchema,
|
|
22231
22606
|
kind: "push"
|
|
22232
22607
|
},
|
|
22233
|
-
runtimeState: HumiditySensorStatusSchema
|
|
22608
|
+
runtimeState: HumiditySensorStatusSchema,
|
|
22609
|
+
/**
|
|
22610
|
+
* Runtime-state durability: **restored** — as `numeric-sensor` (67 of 75 writes were the clock alone).
|
|
22611
|
+
*
|
|
22612
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22613
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22614
|
+
*/
|
|
22615
|
+
durability: "restored",
|
|
22616
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22617
|
+
* whether persisting is worth a SQLite commit. */
|
|
22618
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
22234
22619
|
};
|
|
22235
22620
|
/**
|
|
22236
22621
|
* Image display cap. Models a single still image exposed by an integration —
|
|
@@ -22268,7 +22653,14 @@ var imageCapability = {
|
|
|
22268
22653
|
* Runtime-state slice — mirrored by the kernel. The UI reads `url`
|
|
22269
22654
|
* directly and renders the still image.
|
|
22270
22655
|
*/
|
|
22271
|
-
runtimeState: ImageStatusSchema
|
|
22656
|
+
runtimeState: ImageStatusSchema,
|
|
22657
|
+
/**
|
|
22658
|
+
* Runtime-state durability: **session** — a snapshot URL is a session-scoped handle; a restored one points at nothing.
|
|
22659
|
+
*
|
|
22660
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22661
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22662
|
+
*/
|
|
22663
|
+
durability: "session"
|
|
22272
22664
|
};
|
|
22273
22665
|
/**
|
|
22274
22666
|
* Vendor-neutral image / picture-adjustment cap — the per-camera config
|
|
@@ -22417,7 +22809,17 @@ var imageSettingsCapability = {
|
|
|
22417
22809
|
schema: ImageSettingsStatusSchema,
|
|
22418
22810
|
kind: "poll"
|
|
22419
22811
|
},
|
|
22420
|
-
runtimeState: ImageSettingsStatusSchema
|
|
22812
|
+
runtimeState: ImageSettingsStatusSchema,
|
|
22813
|
+
/**
|
|
22814
|
+
* Runtime-state durability: **restored** — operator-set camera imaging; mutation-driven.
|
|
22815
|
+
*
|
|
22816
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22817
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22818
|
+
*/
|
|
22819
|
+
durability: "restored",
|
|
22820
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22821
|
+
* whether persisting is worth a SQLite commit. */
|
|
22822
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
22421
22823
|
};
|
|
22422
22824
|
/**
|
|
22423
22825
|
* integrations — system-scoped singleton capability for integration
|
|
@@ -22808,7 +23210,14 @@ var lawnMowerControlCapability = {
|
|
|
22808
23210
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
22809
23211
|
* slice for live activity + battery changes.
|
|
22810
23212
|
*/
|
|
22811
|
-
runtimeState: LawnMowerControlStatusSchema
|
|
23213
|
+
runtimeState: LawnMowerControlStatusSchema,
|
|
23214
|
+
/**
|
|
23215
|
+
* Runtime-state durability: **session** — as `vacuum-control`.
|
|
23216
|
+
*
|
|
23217
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23218
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23219
|
+
*/
|
|
23220
|
+
durability: "session"
|
|
22812
23221
|
};
|
|
22813
23222
|
/**
|
|
22814
23223
|
* local-network — hub-only singleton.
|
|
@@ -23014,7 +23423,17 @@ var lockControlCapability = {
|
|
|
23014
23423
|
* read `state` and disable themselves during `locking`/`unlocking`
|
|
23015
23424
|
* transitions.
|
|
23016
23425
|
*/
|
|
23017
|
-
runtimeState: LockControlStatusSchema
|
|
23426
|
+
runtimeState: LockControlStatusSchema,
|
|
23427
|
+
/**
|
|
23428
|
+
* Runtime-state durability: **restored** — a lock left locked must still read locked.
|
|
23429
|
+
*
|
|
23430
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23431
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23432
|
+
*/
|
|
23433
|
+
durability: "restored",
|
|
23434
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23435
|
+
* whether persisting is worth a SQLite commit. */
|
|
23436
|
+
volatileStateFields: ["lastChangedAt"]
|
|
23018
23437
|
};
|
|
23019
23438
|
/**
|
|
23020
23439
|
* Media-player cap. Models HA `media_player.*` (Sonos, Chromecast,
|
|
@@ -23176,7 +23595,14 @@ var mediaPlayerCapability = {
|
|
|
23176
23595
|
* full slice for live now-playing, volume, and progress updates
|
|
23177
23596
|
* without polling.
|
|
23178
23597
|
*/
|
|
23179
|
-
runtimeState: MediaPlayerStatusSchema
|
|
23598
|
+
runtimeState: MediaPlayerStatusSchema,
|
|
23599
|
+
/**
|
|
23600
|
+
* Runtime-state durability: **session** — a restored transport position describes a playback that stopped when the hub did.
|
|
23601
|
+
*
|
|
23602
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23603
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23604
|
+
*/
|
|
23605
|
+
durability: "session"
|
|
23180
23606
|
};
|
|
23181
23607
|
/**
|
|
23182
23608
|
* mesh-network — collection cap for mesh-VPN providers.
|
|
@@ -23440,7 +23866,14 @@ onMotionChanged: { data: MotionOnMotionChangedDataSchema } },
|
|
|
23440
23866
|
* `device.state.motion.value`. Reads never invoke the provider, so
|
|
23441
23867
|
* UIs and other addons can poll the cached state safely.
|
|
23442
23868
|
*/
|
|
23443
|
-
runtimeState: MotionStatusSchema
|
|
23869
|
+
runtimeState: MotionStatusSchema,
|
|
23870
|
+
/**
|
|
23871
|
+
* 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.
|
|
23872
|
+
*
|
|
23873
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23874
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23875
|
+
*/
|
|
23876
|
+
durability: "session"
|
|
23444
23877
|
};
|
|
23445
23878
|
/**
|
|
23446
23879
|
* Motion-trigger toggle for accessory devices.
|
|
@@ -23505,7 +23938,14 @@ var motionTriggerCapability = {
|
|
|
23505
23938
|
schema: MotionTriggerStatusSchema,
|
|
23506
23939
|
kind: "command-driven"
|
|
23507
23940
|
},
|
|
23508
|
-
runtimeState: MotionTriggerRuntimeStateSchema
|
|
23941
|
+
runtimeState: MotionTriggerRuntimeStateSchema,
|
|
23942
|
+
/**
|
|
23943
|
+
* 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.
|
|
23944
|
+
*
|
|
23945
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23946
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23947
|
+
*/
|
|
23948
|
+
durability: "session"
|
|
23509
23949
|
};
|
|
23510
23950
|
/**
|
|
23511
23951
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
@@ -23572,7 +24012,17 @@ var motionZonesCapability = {
|
|
|
23572
24012
|
schema: MotionZoneStatusSchema,
|
|
23573
24013
|
kind: "poll"
|
|
23574
24014
|
},
|
|
23575
|
-
runtimeState: MotionZoneStatusSchema
|
|
24015
|
+
runtimeState: MotionZoneStatusSchema,
|
|
24016
|
+
/**
|
|
24017
|
+
* 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.
|
|
24018
|
+
*
|
|
24019
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24020
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24021
|
+
*/
|
|
24022
|
+
durability: "restored",
|
|
24023
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24024
|
+
* whether persisting is worth a SQLite commit. */
|
|
24025
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23576
24026
|
};
|
|
23577
24027
|
/**
|
|
23578
24028
|
* On-camera AI object detection cap. Surfaces per-device the classes
|
|
@@ -23646,7 +24096,17 @@ var nativeObjectDetectionCapability = {
|
|
|
23646
24096
|
schema: NativeObjectDetectionStatusSchema,
|
|
23647
24097
|
kind: "push"
|
|
23648
24098
|
},
|
|
23649
|
-
runtimeState: NativeObjectDetectionRuntimeStateSchema
|
|
24099
|
+
runtimeState: NativeObjectDetectionRuntimeStateSchema,
|
|
24100
|
+
/**
|
|
24101
|
+
* 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.
|
|
24102
|
+
*
|
|
24103
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24104
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24105
|
+
*/
|
|
24106
|
+
durability: "restored",
|
|
24107
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24108
|
+
* whether persisting is worth a SQLite commit. */
|
|
24109
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23650
24110
|
};
|
|
23651
24111
|
/**
|
|
23652
24112
|
* network-quality — system-scoped singleton capability tracking RTT,
|
|
@@ -23980,7 +24440,14 @@ onSent: { data: object({
|
|
|
23980
24440
|
* form reads `supports` to gate optional fields; history pane reads
|
|
23981
24441
|
* `lastSentAt` / `lastError` / `queueDepth`.
|
|
23982
24442
|
*/
|
|
23983
|
-
runtimeState: NotifierStatusSchema
|
|
24443
|
+
runtimeState: NotifierStatusSchema,
|
|
24444
|
+
/**
|
|
24445
|
+
* Runtime-state durability: **session** — live queue depth and last-send state; a restored queue depth describes a queue that no longer exists.
|
|
24446
|
+
*
|
|
24447
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24448
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24449
|
+
*/
|
|
24450
|
+
durability: "session"
|
|
23984
24451
|
};
|
|
23985
24452
|
/**
|
|
23986
24453
|
* Generic numeric sensor — last-resort fallback when no typed numeric
|
|
@@ -24023,7 +24490,17 @@ var numericSensorCapability = {
|
|
|
24023
24490
|
schema: NumericSensorStatusSchema,
|
|
24024
24491
|
kind: "push"
|
|
24025
24492
|
},
|
|
24026
|
-
runtimeState: NumericSensorStatusSchema
|
|
24493
|
+
runtimeState: NumericSensorStatusSchema,
|
|
24494
|
+
/**
|
|
24495
|
+
* 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.
|
|
24496
|
+
*
|
|
24497
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24498
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24499
|
+
*/
|
|
24500
|
+
durability: "restored",
|
|
24501
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24502
|
+
* whether persisting is worth a SQLite commit. */
|
|
24503
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24027
24504
|
};
|
|
24028
24505
|
/**
|
|
24029
24506
|
* Generic on-screen-display (video overlay) cap. Each camera exposes
|
|
@@ -24454,7 +24931,14 @@ var petFeederCapability = {
|
|
|
24454
24931
|
* the full slice via `device.state.petFeeder.value` and refresh on
|
|
24455
24932
|
* every poll without re-querying the provider.
|
|
24456
24933
|
*/
|
|
24457
|
-
runtimeState: PetFeederStatusSchema
|
|
24934
|
+
runtimeState: PetFeederStatusSchema,
|
|
24935
|
+
/**
|
|
24936
|
+
* Runtime-state durability: **session** — live appliance state re-published on connect.
|
|
24937
|
+
*
|
|
24938
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24939
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24940
|
+
*/
|
|
24941
|
+
durability: "session"
|
|
24458
24942
|
};
|
|
24459
24943
|
var VehicleSchema = object({
|
|
24460
24944
|
id: string(),
|
|
@@ -24766,7 +25250,17 @@ var powerMeterCapability = {
|
|
|
24766
25250
|
schema: PowerMeterStatusSchema,
|
|
24767
25251
|
kind: "push"
|
|
24768
25252
|
},
|
|
24769
|
-
runtimeState: PowerMeterStatusSchema
|
|
25253
|
+
runtimeState: PowerMeterStatusSchema,
|
|
25254
|
+
/**
|
|
25255
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`; `kwhTotal` is an accumulator whose restored value is the baseline.
|
|
25256
|
+
*
|
|
25257
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25258
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25259
|
+
*/
|
|
25260
|
+
durability: "restored",
|
|
25261
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25262
|
+
* whether persisting is worth a SQLite commit. */
|
|
25263
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24770
25264
|
};
|
|
24771
25265
|
/**
|
|
24772
25266
|
* Presence cap. Models HA `person.*` and `device_tracker.*` entities
|
|
@@ -24823,7 +25317,17 @@ var presenceCapability = {
|
|
|
24823
25317
|
* the map pin is rendered (use `DeviceFeature.PresenceGps` for the
|
|
24824
25318
|
* pre-fetch fast-path check).
|
|
24825
25319
|
*/
|
|
24826
|
-
runtimeState: PresenceStatusSchema
|
|
25320
|
+
runtimeState: PresenceStatusSchema,
|
|
25321
|
+
/**
|
|
25322
|
+
* Runtime-state durability: **restored** — occupancy-relevant: the restored state is what an occupancy rule compares the first post-restart observation against.
|
|
25323
|
+
*
|
|
25324
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25325
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25326
|
+
*/
|
|
25327
|
+
durability: "restored",
|
|
25328
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25329
|
+
* whether persisting is worth a SQLite commit. */
|
|
25330
|
+
volatileStateFields: ["lastChangedAt"]
|
|
24827
25331
|
};
|
|
24828
25332
|
/**
|
|
24829
25333
|
* Atmospheric pressure reading in hectopascals. Drives Home Assistant
|
|
@@ -24859,7 +25363,17 @@ var pressureSensorCapability = {
|
|
|
24859
25363
|
schema: PressureSensorStatusSchema,
|
|
24860
25364
|
kind: "push"
|
|
24861
25365
|
},
|
|
24862
|
-
runtimeState: PressureSensorStatusSchema
|
|
25366
|
+
runtimeState: PressureSensorStatusSchema,
|
|
25367
|
+
/**
|
|
25368
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
25369
|
+
*
|
|
25370
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25371
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25372
|
+
*/
|
|
25373
|
+
durability: "restored",
|
|
25374
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25375
|
+
* whether persisting is worth a SQLite commit. */
|
|
25376
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24863
25377
|
};
|
|
24864
25378
|
/**
|
|
24865
25379
|
* PRIVACY — what the camera deliberately does not capture. Two planes:
|
|
@@ -24989,7 +25503,17 @@ var privacyMaskCapability = {
|
|
|
24989
25503
|
schema: PrivacyMaskStatusSchema,
|
|
24990
25504
|
kind: "poll"
|
|
24991
25505
|
},
|
|
24992
|
-
runtimeState: PrivacyMaskStatusSchema
|
|
25506
|
+
runtimeState: PrivacyMaskStatusSchema,
|
|
25507
|
+
/**
|
|
25508
|
+
* Runtime-state durability: **restored** — operator-drawn regions, zero real churn — 22 writes in 25 minutes, every one of them the clock.
|
|
25509
|
+
*
|
|
25510
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25511
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25512
|
+
*/
|
|
25513
|
+
durability: "restored",
|
|
25514
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25515
|
+
* whether persisting is worth a SQLite commit. */
|
|
25516
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24993
25517
|
};
|
|
24994
25518
|
/**
|
|
24995
25519
|
* Collapse a camera's PER-PROFILE audio flags into the one answer
|
|
@@ -25217,7 +25741,14 @@ var ptzAutotrackCapability = {
|
|
|
25217
25741
|
* fetch / cache / fallback logic out of the four cap methods —
|
|
25218
25742
|
* they become trampolines over `runtimeState`.
|
|
25219
25743
|
*/
|
|
25220
|
-
runtimeState: PtzAutotrackRuntimeStateSchema
|
|
25744
|
+
runtimeState: PtzAutotrackRuntimeStateSchema,
|
|
25745
|
+
/**
|
|
25746
|
+
* Runtime-state durability: **session** — mirrors the camera's own autotrack config, re-read on connect.
|
|
25747
|
+
*
|
|
25748
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25749
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25750
|
+
*/
|
|
25751
|
+
durability: "session"
|
|
25221
25752
|
};
|
|
25222
25753
|
/**
|
|
25223
25754
|
* reboot — device-scoped capability for "soft" device reboots (firmware
|
|
@@ -25892,7 +26423,14 @@ var sceneMonitorCapability = {
|
|
|
25892
26423
|
schema: SceneMonitorStatusSchema,
|
|
25893
26424
|
kind: "push"
|
|
25894
26425
|
},
|
|
25895
|
-
runtimeState: SceneMonitorStatusSchema
|
|
26426
|
+
runtimeState: SceneMonitorStatusSchema,
|
|
26427
|
+
/**
|
|
26428
|
+
* Runtime-state durability: **session** — re-derived from the current scene on the next evaluation.
|
|
26429
|
+
*
|
|
26430
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26431
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26432
|
+
*/
|
|
26433
|
+
durability: "session"
|
|
25896
26434
|
};
|
|
25897
26435
|
/**
|
|
25898
26436
|
* Per-stage gating mode applied to the zones a rule references.
|
|
@@ -26036,7 +26574,14 @@ var scriptRunnerCapability = {
|
|
|
26036
26574
|
* `isRunning` to render a spinner during execution and surfaces
|
|
26037
26575
|
* `lastError` / `lastRunSuccess` in the recent-runs panel.
|
|
26038
26576
|
*/
|
|
26039
|
-
runtimeState: ScriptRunnerStatusSchema
|
|
26577
|
+
runtimeState: ScriptRunnerStatusSchema,
|
|
26578
|
+
/**
|
|
26579
|
+
* Runtime-state durability: **session** — a restored `isRunning: true` describes a process that died with the previous hub.
|
|
26580
|
+
*
|
|
26581
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26582
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26583
|
+
*/
|
|
26584
|
+
durability: "session"
|
|
26040
26585
|
};
|
|
26041
26586
|
/**
|
|
26042
26587
|
* Smoke alarm sensor — boolean "is smoke currently detected" with
|
|
@@ -26063,7 +26608,17 @@ var smokeCapability = {
|
|
|
26063
26608
|
schema: SmokeStatusSchema,
|
|
26064
26609
|
kind: "push"
|
|
26065
26610
|
},
|
|
26066
|
-
runtimeState: SmokeStatusSchema
|
|
26611
|
+
runtimeState: SmokeStatusSchema,
|
|
26612
|
+
/**
|
|
26613
|
+
* Runtime-state durability: **restored** — a safety sensor must not read "clear" merely because the hub restarted.
|
|
26614
|
+
*
|
|
26615
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26616
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26617
|
+
*/
|
|
26618
|
+
durability: "restored",
|
|
26619
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26620
|
+
* whether persisting is worth a SQLite commit. */
|
|
26621
|
+
volatileStateFields: ["lastChangedAt"]
|
|
26067
26622
|
};
|
|
26068
26623
|
/**
|
|
26069
26624
|
* One publishable camera stream as its OWNING PROVIDER describes it — the same
|
|
@@ -26249,7 +26804,17 @@ var streamParamsCapability = {
|
|
|
26249
26804
|
schema: StreamParamsStatusSchema,
|
|
26250
26805
|
kind: "poll"
|
|
26251
26806
|
},
|
|
26252
|
-
runtimeState: StreamParamsStatusSchema
|
|
26807
|
+
runtimeState: StreamParamsStatusSchema,
|
|
26808
|
+
/**
|
|
26809
|
+
* Runtime-state durability: **restored** — operator-set encoder profile; mutation-driven.
|
|
26810
|
+
*
|
|
26811
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26812
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26813
|
+
*/
|
|
26814
|
+
durability: "restored",
|
|
26815
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26816
|
+
* whether persisting is worth a SQLite commit. */
|
|
26817
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
26253
26818
|
};
|
|
26254
26819
|
/**
|
|
26255
26820
|
* The three well-known stream profiles in render order. Exported so the
|
|
@@ -26493,6 +27058,16 @@ var switchCapability = {
|
|
|
26493
27058
|
* not need to re-query the provider after a setState mutation.
|
|
26494
27059
|
*/
|
|
26495
27060
|
runtimeState: SwitchStatusSchema,
|
|
27061
|
+
/**
|
|
27062
|
+
* Runtime-state durability: **restored** — device state an operator reads as authoritative; 55 devices, transition-driven.
|
|
27063
|
+
*
|
|
27064
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27065
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27066
|
+
*/
|
|
27067
|
+
durability: "restored",
|
|
27068
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27069
|
+
* whether persisting is worth a SQLite commit. */
|
|
27070
|
+
volatileStateFields: ["lastChangedAt"],
|
|
26496
27071
|
settings: { bindings: [{
|
|
26497
27072
|
kind: "scalar",
|
|
26498
27073
|
statusPath: "on",
|
|
@@ -26572,7 +27147,17 @@ var tamperCapability = {
|
|
|
26572
27147
|
schema: TamperStatusSchema,
|
|
26573
27148
|
kind: "push"
|
|
26574
27149
|
},
|
|
26575
|
-
runtimeState: TamperStatusSchema
|
|
27150
|
+
runtimeState: TamperStatusSchema,
|
|
27151
|
+
/**
|
|
27152
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
27153
|
+
*
|
|
27154
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27155
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27156
|
+
*/
|
|
27157
|
+
durability: "restored",
|
|
27158
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27159
|
+
* whether persisting is worth a SQLite commit. */
|
|
27160
|
+
volatileStateFields: ["lastChangedAt"]
|
|
26576
27161
|
};
|
|
26577
27162
|
/**
|
|
26578
27163
|
* Single-metric temperature reading. Drives Home Assistant `sensor`
|
|
@@ -26617,7 +27202,17 @@ var temperatureSensorCapability = {
|
|
|
26617
27202
|
schema: TemperatureSensorStatusSchema,
|
|
26618
27203
|
kind: "push"
|
|
26619
27204
|
},
|
|
26620
|
-
runtimeState: TemperatureSensorStatusSchema
|
|
27205
|
+
runtimeState: TemperatureSensorStatusSchema,
|
|
27206
|
+
/**
|
|
27207
|
+
* Runtime-state durability: **restored** — as `numeric-sensor` (69 of 125 writes were the clock alone).
|
|
27208
|
+
*
|
|
27209
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27210
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27211
|
+
*/
|
|
27212
|
+
durability: "restored",
|
|
27213
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27214
|
+
* whether persisting is worth a SQLite commit. */
|
|
27215
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
26621
27216
|
};
|
|
26622
27217
|
/**
|
|
26623
27218
|
* toast — system-scoped singleton capability that streams toast
|
|
@@ -26686,7 +27281,14 @@ var updateCapability = {
|
|
|
26686
27281
|
schema: UpdateStatusSchema,
|
|
26687
27282
|
kind: "poll"
|
|
26688
27283
|
},
|
|
26689
|
-
runtimeState: UpdateStatusSchema
|
|
27284
|
+
runtimeState: UpdateStatusSchema,
|
|
27285
|
+
/**
|
|
27286
|
+
* Runtime-state durability: **session** — a restored `inProgress: true` describes an update that is no longer running; versions are re-probed at boot.
|
|
27287
|
+
*
|
|
27288
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27289
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27290
|
+
*/
|
|
27291
|
+
durability: "session"
|
|
26690
27292
|
};
|
|
26691
27293
|
var UserSummarySchema = object({
|
|
26692
27294
|
id: string(),
|
|
@@ -27020,7 +27622,14 @@ var vacuumControlCapability = {
|
|
|
27020
27622
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
27021
27623
|
* slice for live state + battery + fan-speed changes.
|
|
27022
27624
|
*/
|
|
27023
|
-
runtimeState: VacuumControlStatusSchema
|
|
27625
|
+
runtimeState: VacuumControlStatusSchema,
|
|
27626
|
+
/**
|
|
27627
|
+
* Runtime-state durability: **session** — as `media-player` — a restored `state: cleaning` is a robot that is not cleaning.
|
|
27628
|
+
*
|
|
27629
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27630
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27631
|
+
*/
|
|
27632
|
+
durability: "session"
|
|
27024
27633
|
};
|
|
27025
27634
|
var ValveStatusSchema = object({
|
|
27026
27635
|
/** Lifecycle state of the valve. */
|
|
@@ -27072,7 +27681,14 @@ var valveCapability = {
|
|
|
27072
27681
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
27073
27682
|
* slice for live position changes during a move.
|
|
27074
27683
|
*/
|
|
27075
|
-
runtimeState: ValveStatusSchema
|
|
27684
|
+
runtimeState: ValveStatusSchema,
|
|
27685
|
+
/**
|
|
27686
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
27687
|
+
*
|
|
27688
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27689
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27690
|
+
*/
|
|
27691
|
+
durability: "session"
|
|
27076
27692
|
};
|
|
27077
27693
|
/**
|
|
27078
27694
|
* Vibration / shake / impact sensor. Drives Home Assistant
|
|
@@ -27094,7 +27710,17 @@ var vibrationCapability = {
|
|
|
27094
27710
|
schema: VibrationStatusSchema,
|
|
27095
27711
|
kind: "push"
|
|
27096
27712
|
},
|
|
27097
|
-
runtimeState: VibrationStatusSchema
|
|
27713
|
+
runtimeState: VibrationStatusSchema,
|
|
27714
|
+
/**
|
|
27715
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
27716
|
+
*
|
|
27717
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27718
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27719
|
+
*/
|
|
27720
|
+
durability: "restored",
|
|
27721
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27722
|
+
* whether persisting is worth a SQLite commit. */
|
|
27723
|
+
volatileStateFields: ["lastChangedAt"]
|
|
27098
27724
|
};
|
|
27099
27725
|
/**
|
|
27100
27726
|
* Water heater / boiler cap. Models HA `water_heater.*` entities — a
|
|
@@ -27168,7 +27794,14 @@ var waterHeaterCapability = {
|
|
|
27168
27794
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
27169
27795
|
* slice for live temperature / mode / away changes.
|
|
27170
27796
|
*/
|
|
27171
|
-
runtimeState: WaterHeaterStatusSchema
|
|
27797
|
+
runtimeState: WaterHeaterStatusSchema,
|
|
27798
|
+
/**
|
|
27799
|
+
* Runtime-state durability: **session** — as `climate-control`.
|
|
27800
|
+
*
|
|
27801
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27802
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27803
|
+
*/
|
|
27804
|
+
durability: "session"
|
|
27172
27805
|
};
|
|
27173
27806
|
/**
|
|
27174
27807
|
* Weather provider cap. Models HA `weather.*` entities — a read-only
|
|
@@ -27227,7 +27860,14 @@ var weatherCapability = {
|
|
|
27227
27860
|
* Runtime-state slice — mirrored by the kernel. The UI reads the
|
|
27228
27861
|
* current conditions directly from the slice on each weather push.
|
|
27229
27862
|
*/
|
|
27230
|
-
runtimeState: WeatherStatusSchema
|
|
27863
|
+
runtimeState: WeatherStatusSchema,
|
|
27864
|
+
/**
|
|
27865
|
+
* Runtime-state durability: **session** — a forecast is stale the moment the hub is down; the provider re-fetches on connect.
|
|
27866
|
+
*
|
|
27867
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27868
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27869
|
+
*/
|
|
27870
|
+
durability: "session"
|
|
27231
27871
|
};
|
|
27232
27872
|
/**
|
|
27233
27873
|
* Per-zone occupancy aggregation produced by the analytics frame
|
|
@@ -27389,7 +28029,14 @@ var zoneAnalyticsCapability = {
|
|
|
27389
28029
|
* automatically; the explicit `getCurrentSnapshot` cap method is
|
|
27390
28030
|
* still useful for one-off polls without a subscription.
|
|
27391
28031
|
*/
|
|
27392
|
-
runtimeState: CameraOccupancySnapshotSchema
|
|
28032
|
+
runtimeState: CameraOccupancySnapshotSchema,
|
|
28033
|
+
/**
|
|
28034
|
+
* Runtime-state durability: **session** — per-frame analytics; with `audio-metrics` it is ~90 % of the offered write rate. Re-derived on the next frame.
|
|
28035
|
+
*
|
|
28036
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
28037
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
28038
|
+
*/
|
|
28039
|
+
durability: "session"
|
|
27393
28040
|
};
|
|
27394
28041
|
/**
|
|
27395
28042
|
* Stages a {@link ZoneRule} can apply to. Discriminator on the rules
|
|
@@ -27467,7 +28114,14 @@ var zoneRulesCapability = {
|
|
|
27467
28114
|
motion: array(ZoneRuleSchema).readonly(),
|
|
27468
28115
|
detection: array(ZoneRuleSchema).readonly(),
|
|
27469
28116
|
package: array(ZoneRuleSchema).readonly()
|
|
27470
|
-
})
|
|
28117
|
+
}),
|
|
28118
|
+
/**
|
|
28119
|
+
* Runtime-state durability: **restored** — operator intent, mutation-only, same argument as `zones`.
|
|
28120
|
+
*
|
|
28121
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
28122
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
28123
|
+
*/
|
|
28124
|
+
durability: "restored"
|
|
27471
28125
|
};
|
|
27472
28126
|
/**
|
|
27473
28127
|
* Accessory device helpers — shared across drivers.
|
|
@@ -34300,6 +34954,7 @@ Object.freeze({
|
|
|
34300
34954
|
"network-access": "ingress",
|
|
34301
34955
|
"smtp-provider": "email"
|
|
34302
34956
|
});
|
|
34957
|
+
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
34303
34958
|
new Set(["devices", "classes"]);
|
|
34304
34959
|
/**
|
|
34305
34960
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|