@camstack/addon-provider-amcrest 0.2.16 → 0.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.mjs
CHANGED
|
@@ -10751,7 +10751,14 @@ var cameraStreamsCapability = {
|
|
|
10751
10751
|
low: string().optional()
|
|
10752
10752
|
}),
|
|
10753
10753
|
lastChangedAt: number()
|
|
10754
|
-
})
|
|
10754
|
+
}),
|
|
10755
|
+
/**
|
|
10756
|
+
* 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.
|
|
10757
|
+
*
|
|
10758
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
10759
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
10760
|
+
*/
|
|
10761
|
+
durability: "session"
|
|
10755
10762
|
};
|
|
10756
10763
|
/** Where a block runs. The operator chooses — a block driving a device on an
|
|
10757
10764
|
* agent is the reason placement is not fixed to the hub. */
|
|
@@ -11312,6 +11319,13 @@ var deviceDiscoveryCapability = {
|
|
|
11312
11319
|
kind: "poll"
|
|
11313
11320
|
},
|
|
11314
11321
|
runtimeState: DeviceDiscoveryStatusSchema.extend({ lastFetchedAt: number().int().nonnegative() }),
|
|
11322
|
+
/**
|
|
11323
|
+
* Runtime-state durability: **session** — 5.7 KB of scan output on the largest device, fully re-derivable by re-scanning.
|
|
11324
|
+
*
|
|
11325
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
11326
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
11327
|
+
*/
|
|
11328
|
+
durability: "session",
|
|
11315
11329
|
methods: {
|
|
11316
11330
|
/**
|
|
11317
11331
|
* Snapshot of the current `discovered` list. Returns the
|
|
@@ -13181,11 +13195,33 @@ var NotificationFormatSchema = _enum([
|
|
|
13181
13195
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
13182
13196
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
13183
13197
|
* differently.
|
|
13198
|
+
*
|
|
13199
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
13200
|
+
*
|
|
13201
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
13202
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
13203
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
13204
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
13205
|
+
* decides its glyph, which is the only place that decision can be made
|
|
13206
|
+
* honestly.
|
|
13207
|
+
*
|
|
13208
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
13209
|
+
* `disarm` straight through; iOS feeds that string to
|
|
13210
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
13211
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
13212
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
13213
|
+
*
|
|
13214
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
13215
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
13216
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
13217
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
13218
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
13184
13219
|
*/
|
|
13185
13220
|
var NotificationActionIconSchema = _enum([
|
|
13186
13221
|
"acknowledge",
|
|
13187
13222
|
"dismiss",
|
|
13188
13223
|
"silence",
|
|
13224
|
+
"snooze",
|
|
13189
13225
|
"view",
|
|
13190
13226
|
"play",
|
|
13191
13227
|
"open",
|
|
@@ -13193,9 +13229,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
13193
13229
|
"lock",
|
|
13194
13230
|
"unlock",
|
|
13195
13231
|
"arm",
|
|
13232
|
+
"arm-home",
|
|
13233
|
+
"arm-away",
|
|
13234
|
+
"arm-night",
|
|
13196
13235
|
"disarm",
|
|
13197
13236
|
"light",
|
|
13198
|
-
"alert"
|
|
13237
|
+
"alert",
|
|
13238
|
+
"camera"
|
|
13199
13239
|
]);
|
|
13200
13240
|
/** A single tap-through action button. */
|
|
13201
13241
|
var NotificationActionSchema = object({
|
|
@@ -13211,7 +13251,23 @@ var NotificationActionSchema = object({
|
|
|
13211
13251
|
* else — see `notification-center/action-token.ts` for what that does and
|
|
13212
13252
|
* does not buy.
|
|
13213
13253
|
*/
|
|
13214
|
-
destructive: boolean().optional()
|
|
13254
|
+
destructive: boolean().optional(),
|
|
13255
|
+
/**
|
|
13256
|
+
* How the tap should REACH the url.
|
|
13257
|
+
*
|
|
13258
|
+
* `navigate` (absent, and every button authored before this field) opens it:
|
|
13259
|
+
* the phone leaves the notification and shows whatever the callback returns.
|
|
13260
|
+
* That is right for a button whose answer the operator wants to read.
|
|
13261
|
+
*
|
|
13262
|
+
* `background` fires it as a POST and stays put. It exists for the buttons
|
|
13263
|
+
* whose whole point is not to interrupt — "silence this for 30 minutes" is
|
|
13264
|
+
* an answer to the notification, and being thrown into a browser tab to
|
|
13265
|
+
* confirm it costs more attention than the notification did. A backend that
|
|
13266
|
+
* cannot do a background call renders it as an ordinary link (the adapters
|
|
13267
|
+
* fall back rather than dropping the button), so this is a preference, never
|
|
13268
|
+
* a requirement.
|
|
13269
|
+
*/
|
|
13270
|
+
mode: _enum(["navigate", "background"]).optional()
|
|
13215
13271
|
});
|
|
13216
13272
|
/**
|
|
13217
13273
|
* The canonical notification. `body` is the only hard field (Apprise model).
|
|
@@ -13379,6 +13435,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
13379
13435
|
targetId: string(),
|
|
13380
13436
|
enabled: boolean()
|
|
13381
13437
|
}), _void(), { kind: "mutation" });
|
|
13438
|
+
new Set([
|
|
13439
|
+
{
|
|
13440
|
+
id: "person",
|
|
13441
|
+
name: "Person"
|
|
13442
|
+
},
|
|
13443
|
+
{
|
|
13444
|
+
id: "vehicle",
|
|
13445
|
+
name: "Vehicle"
|
|
13446
|
+
},
|
|
13447
|
+
{
|
|
13448
|
+
id: "animal",
|
|
13449
|
+
name: "Animal"
|
|
13450
|
+
},
|
|
13451
|
+
{
|
|
13452
|
+
id: "package",
|
|
13453
|
+
name: "Package"
|
|
13454
|
+
}
|
|
13455
|
+
].map((l) => l.id));
|
|
13382
13456
|
var COCO_TO_MACRO = {
|
|
13383
13457
|
mapping: {
|
|
13384
13458
|
person: "person",
|
|
@@ -14063,7 +14137,17 @@ var alarmPanelCapability = {
|
|
|
14063
14137
|
* full slice; renders an arm button per `availableModes` entry and
|
|
14064
14138
|
* a PIN field iff `requiresCode === true`.
|
|
14065
14139
|
*/
|
|
14066
|
-
runtimeState: AlarmPanelStatusSchema
|
|
14140
|
+
runtimeState: AlarmPanelStatusSchema,
|
|
14141
|
+
/**
|
|
14142
|
+
* Runtime-state durability: **restored** — armed state is the one thing a panel must not lose across a restart.
|
|
14143
|
+
*
|
|
14144
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
14145
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
14146
|
+
*/
|
|
14147
|
+
durability: "restored",
|
|
14148
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
14149
|
+
* whether persisting is worth a SQLite commit. */
|
|
14150
|
+
volatileStateFields: ["lastChangedAt"]
|
|
14067
14151
|
};
|
|
14068
14152
|
/**
|
|
14069
14153
|
* Shared geometry vocabulary for on-frame shape caps — privacy-mask,
|
|
@@ -14204,6 +14288,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14204
14288
|
"alarm-triggered",
|
|
14205
14289
|
"alarm-armed",
|
|
14206
14290
|
"alarm-disarmed",
|
|
14291
|
+
"alarm-arming",
|
|
14292
|
+
"alarm-arm-refused",
|
|
14207
14293
|
"camera-online",
|
|
14208
14294
|
"camera-offline",
|
|
14209
14295
|
"camera-disabled",
|
|
@@ -14240,6 +14326,9 @@ var NcSystemEventConditionSchema = object({
|
|
|
14240
14326
|
nodeIds: array(string().min(1)).min(1).optional(),
|
|
14241
14327
|
packageNames: array(string().min(1)).min(1).optional()
|
|
14242
14328
|
});
|
|
14329
|
+
/** Hard ceiling on a window (24h). A snooze that could not expire would be an
|
|
14330
|
+
* outage the operator asked for once and forgot. */
|
|
14331
|
+
var NC_SNOOZE_MAX_MINUTES = 1440;
|
|
14243
14332
|
/** Weekly schedule — OR of windows; absence on the rule = always active. */
|
|
14244
14333
|
var NcScheduleSchema = object({
|
|
14245
14334
|
windows: array(object({
|
|
@@ -14616,15 +14705,15 @@ var NcConditionsSchema = object({
|
|
|
14616
14705
|
* (an `immediate` rule naming an `audio-*` class, one notification per
|
|
14617
14706
|
* classified sample) stays exactly as it was for rules that already use it.
|
|
14618
14707
|
*
|
|
14619
|
-
*
|
|
14620
|
-
* rather than an
|
|
14621
|
-
* (`camstack/src/data/notification-center.ts`, guarded by
|
|
14622
|
-
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor
|
|
14708
|
+
* In {@link NC_CONDITION_CATALOG} since P2, and the ORDER it got there is the
|
|
14709
|
+
* rule rather than an accident: the viewer mirrors the descriptor enums BY
|
|
14710
|
+
* HAND (`camstack/src/data/notification-center.ts`, guarded by
|
|
14711
|
+
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor strips the
|
|
14623
14712
|
* condition fields it does not know when a rule is saved from the phone.
|
|
14624
14713
|
* Publishing an editor for a condition the app cannot round-trip is how an
|
|
14625
|
-
* operator loses a rule's conditions by opening it — so the
|
|
14626
|
-
*
|
|
14627
|
-
*
|
|
14714
|
+
* operator loses a rule's conditions by opening it — so the viewer mirror
|
|
14715
|
+
* (P3, shipped) went FIRST, and the descriptor an editor renders from
|
|
14716
|
+
* follows here.
|
|
14628
14717
|
*/
|
|
14629
14718
|
audio: NcAudioConditionSchema.optional()
|
|
14630
14719
|
});
|
|
@@ -14860,6 +14949,30 @@ var NcRuleInputSchema = object({
|
|
|
14860
14949
|
*/
|
|
14861
14950
|
snoozeAllowGlobal: boolean().optional(),
|
|
14862
14951
|
/**
|
|
14952
|
+
* The snooze durations THIS rule's notification offers as buttons, in
|
|
14953
|
+
* minutes.
|
|
14954
|
+
*
|
|
14955
|
+
* Three states, and all three are distinct — which is exactly why this is
|
|
14956
|
+
* `.optional()` and never `.default()`. A Zod default does not run on the
|
|
14957
|
+
* addon cap path (three production failures in one day), so a schema default
|
|
14958
|
+
* would collapse the first two:
|
|
14959
|
+
*
|
|
14960
|
+
* | value | meaning |
|
|
14961
|
+
* | --- | --- |
|
|
14962
|
+
* | absent | the operator never said ⇒ {@link NC_DEFAULT_SNOOZE_MINUTES} |
|
|
14963
|
+
* | `[]` | **no snooze buttons on this rule** — the explicit override |
|
|
14964
|
+
* | a list | these choices, de-duplicated and sorted, at most four |
|
|
14965
|
+
*
|
|
14966
|
+
* `.max(4)` because the notifier's own action budget is small (ntfy allows
|
|
14967
|
+
* three buttons in total) and a rule that spent it all on snooze choices
|
|
14968
|
+
* would push its own tap-through actions off the notification.
|
|
14969
|
+
*
|
|
14970
|
+
* An empty list is NOT an alarm exemption: a rule the alarm is about, or
|
|
14971
|
+
* that arms the panel, is exempt automatically and cannot be silenced by a
|
|
14972
|
+
* window from anywhere (D133).
|
|
14973
|
+
*/
|
|
14974
|
+
snoozeOptions: array(number().int().min(1).max(NC_SNOOZE_MAX_MINUTES)).max(4).optional(),
|
|
14975
|
+
/**
|
|
14863
14976
|
* Devices this rule ACTUATES — arm the alarm, open a gate, turn on a light.
|
|
14864
14977
|
*
|
|
14865
14978
|
* This is what makes the rule set the alarm's trigger set without the alarm
|
|
@@ -14959,6 +15072,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
14959
15072
|
"device",
|
|
14960
15073
|
"package",
|
|
14961
15074
|
"occupancy",
|
|
15075
|
+
"audio",
|
|
14962
15076
|
"system"
|
|
14963
15077
|
]),
|
|
14964
15078
|
label: string(),
|
|
@@ -14977,6 +15091,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
14977
15091
|
"crossingSelect",
|
|
14978
15092
|
"polygonDraw",
|
|
14979
15093
|
"occupancy",
|
|
15094
|
+
"audio",
|
|
14980
15095
|
"deviceState",
|
|
14981
15096
|
"systemEvent"
|
|
14982
15097
|
]),
|
|
@@ -15128,7 +15243,20 @@ var NcSnoozeInputSchema = object({
|
|
|
15128
15243
|
ruleId: string().optional(),
|
|
15129
15244
|
/** Required when `scope: 'device'`. */
|
|
15130
15245
|
deviceId: number().int().optional(),
|
|
15131
|
-
|
|
15246
|
+
/**
|
|
15247
|
+
* Narrow the window to these subject classes — "the cat, not the person".
|
|
15248
|
+
*
|
|
15249
|
+
* ORTHOGONAL to `scope`, deliberately, and absent means EVERY class: that is
|
|
15250
|
+
* what every window authored before this field meant, so no persisted row
|
|
15251
|
+
* changes meaning and no client has to learn anything to keep working.
|
|
15252
|
+
*
|
|
15253
|
+
* It is what makes the window's real key `(deviceId, classes[])` and lets it
|
|
15254
|
+
* cross rules (D133): the operator points at a camera and a kind of thing,
|
|
15255
|
+
* not at whichever of their four rules happened to produce the notification
|
|
15256
|
+
* they are dismissing.
|
|
15257
|
+
*/
|
|
15258
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
15259
|
+
durationMinutes: number().int().min(1).max(NC_SNOOZE_MAX_MINUTES),
|
|
15132
15260
|
/**
|
|
15133
15261
|
* Silence this for EVERY recipient, not just the caller. Permission is
|
|
15134
15262
|
* checked server-side (the rule's `snoozeAllowGlobal`, or admin for the
|
|
@@ -15153,6 +15281,10 @@ var NcSnoozeSchema = object({
|
|
|
15153
15281
|
scope: NcSnoozeScopeSchema,
|
|
15154
15282
|
ruleId: string().optional(),
|
|
15155
15283
|
deviceId: number().int().optional(),
|
|
15284
|
+
/** Subject classes this window covers. ABSENT = every class — see
|
|
15285
|
+
* {@link NcSnoozeInputSchema.shape.classes}. Lives in the JSON blob and has
|
|
15286
|
+
* no SQLite column: nothing queries a window by class. */
|
|
15287
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
15156
15288
|
startedAt: number(),
|
|
15157
15289
|
/** Exclusive: at exactly this instant the snooze is over. Expiry is a
|
|
15158
15290
|
* COMPARISON, not a job — no sweeper can leave the operator silenced. */
|
|
@@ -17253,7 +17385,14 @@ var zonesCapability = {
|
|
|
17253
17385
|
* handle. Slice shape is `{ zones: Zone[] }` so future extensions
|
|
17254
17386
|
* (e.g. zone groupings) can sit alongside the polygon list.
|
|
17255
17387
|
*/
|
|
17256
|
-
runtimeState: object({ zones: array(ZoneSchema).readonly() })
|
|
17388
|
+
runtimeState: object({ zones: array(ZoneSchema).readonly() }),
|
|
17389
|
+
/**
|
|
17390
|
+
* 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.
|
|
17391
|
+
*
|
|
17392
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
17393
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
17394
|
+
*/
|
|
17395
|
+
durability: "restored"
|
|
17257
17396
|
};
|
|
17258
17397
|
/**
|
|
17259
17398
|
* A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
|
|
@@ -17423,6 +17562,22 @@ var detectionFpsField = {
|
|
|
17423
17562
|
default: 10,
|
|
17424
17563
|
step: 1
|
|
17425
17564
|
};
|
|
17565
|
+
/**
|
|
17566
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
17567
|
+
*
|
|
17568
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
17569
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
17570
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
17571
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
17572
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
17573
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
17574
|
+
*
|
|
17575
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
17576
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
17577
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
17578
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
17579
|
+
* that ships with an addon deploy.
|
|
17580
|
+
*/
|
|
17426
17581
|
var occupancyRecheckSecField = {
|
|
17427
17582
|
min: 0,
|
|
17428
17583
|
max: 300,
|
|
@@ -17624,15 +17779,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
17624
17779
|
*/
|
|
17625
17780
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
17626
17781
|
/**
|
|
17627
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
17628
|
-
*
|
|
17629
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
17630
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
17631
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
17782
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
17783
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
17632
17784
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
17633
17785
|
* (and only render) when this is enabled.
|
|
17634
|
-
|
|
17635
|
-
|
|
17786
|
+
*
|
|
17787
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
17788
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
17789
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
17790
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
17791
|
+
* object is counted only while the stationary registry holds it, and the
|
|
17792
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
17793
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
17794
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
17795
|
+
*/
|
|
17796
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
17636
17797
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
17637
17798
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
17638
17799
|
/**
|
|
@@ -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
|
|
@@ -24214,7 +24691,14 @@ var petFeederCapability = {
|
|
|
24214
24691
|
* the full slice via `device.state.petFeeder.value` and refresh on
|
|
24215
24692
|
* every poll without re-querying the provider.
|
|
24216
24693
|
*/
|
|
24217
|
-
runtimeState: PetFeederStatusSchema
|
|
24694
|
+
runtimeState: PetFeederStatusSchema,
|
|
24695
|
+
/**
|
|
24696
|
+
* Runtime-state durability: **session** — live appliance state re-published on connect.
|
|
24697
|
+
*
|
|
24698
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24699
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24700
|
+
*/
|
|
24701
|
+
durability: "session"
|
|
24218
24702
|
};
|
|
24219
24703
|
var VehicleSchema = object({
|
|
24220
24704
|
id: string(),
|
|
@@ -24526,7 +25010,17 @@ var powerMeterCapability = {
|
|
|
24526
25010
|
schema: PowerMeterStatusSchema,
|
|
24527
25011
|
kind: "push"
|
|
24528
25012
|
},
|
|
24529
|
-
runtimeState: PowerMeterStatusSchema
|
|
25013
|
+
runtimeState: PowerMeterStatusSchema,
|
|
25014
|
+
/**
|
|
25015
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`; `kwhTotal` is an accumulator whose restored value is the baseline.
|
|
25016
|
+
*
|
|
25017
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25018
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25019
|
+
*/
|
|
25020
|
+
durability: "restored",
|
|
25021
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25022
|
+
* whether persisting is worth a SQLite commit. */
|
|
25023
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24530
25024
|
};
|
|
24531
25025
|
/**
|
|
24532
25026
|
* Presence cap. Models HA `person.*` and `device_tracker.*` entities
|
|
@@ -24583,7 +25077,17 @@ var presenceCapability = {
|
|
|
24583
25077
|
* the map pin is rendered (use `DeviceFeature.PresenceGps` for the
|
|
24584
25078
|
* pre-fetch fast-path check).
|
|
24585
25079
|
*/
|
|
24586
|
-
runtimeState: PresenceStatusSchema
|
|
25080
|
+
runtimeState: PresenceStatusSchema,
|
|
25081
|
+
/**
|
|
25082
|
+
* Runtime-state durability: **restored** — occupancy-relevant: the restored state is what an occupancy rule compares the first post-restart observation against.
|
|
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: ["lastChangedAt"]
|
|
24587
25091
|
};
|
|
24588
25092
|
/**
|
|
24589
25093
|
* Atmospheric pressure reading in hectopascals. Drives Home Assistant
|
|
@@ -24619,7 +25123,17 @@ var pressureSensorCapability = {
|
|
|
24619
25123
|
schema: PressureSensorStatusSchema,
|
|
24620
25124
|
kind: "push"
|
|
24621
25125
|
},
|
|
24622
|
-
runtimeState: PressureSensorStatusSchema
|
|
25126
|
+
runtimeState: PressureSensorStatusSchema,
|
|
25127
|
+
/**
|
|
25128
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
25129
|
+
*
|
|
25130
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25131
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25132
|
+
*/
|
|
25133
|
+
durability: "restored",
|
|
25134
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25135
|
+
* whether persisting is worth a SQLite commit. */
|
|
25136
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24623
25137
|
};
|
|
24624
25138
|
/**
|
|
24625
25139
|
* PRIVACY — what the camera deliberately does not capture. Two planes:
|
|
@@ -24749,7 +25263,17 @@ var privacyMaskCapability = {
|
|
|
24749
25263
|
schema: PrivacyMaskStatusSchema,
|
|
24750
25264
|
kind: "poll"
|
|
24751
25265
|
},
|
|
24752
|
-
runtimeState: PrivacyMaskStatusSchema
|
|
25266
|
+
runtimeState: PrivacyMaskStatusSchema,
|
|
25267
|
+
/**
|
|
25268
|
+
* Runtime-state durability: **restored** — operator-drawn regions, zero real churn — 22 writes in 25 minutes, every one of them the clock.
|
|
25269
|
+
*
|
|
25270
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25271
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25272
|
+
*/
|
|
25273
|
+
durability: "restored",
|
|
25274
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25275
|
+
* whether persisting is worth a SQLite commit. */
|
|
25276
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24753
25277
|
};
|
|
24754
25278
|
var PtzPresetSchema = object({
|
|
24755
25279
|
id: string(),
|
|
@@ -24957,7 +25481,14 @@ var ptzAutotrackCapability = {
|
|
|
24957
25481
|
* fetch / cache / fallback logic out of the four cap methods —
|
|
24958
25482
|
* they become trampolines over `runtimeState`.
|
|
24959
25483
|
*/
|
|
24960
|
-
runtimeState: PtzAutotrackRuntimeStateSchema
|
|
25484
|
+
runtimeState: PtzAutotrackRuntimeStateSchema,
|
|
25485
|
+
/**
|
|
25486
|
+
* Runtime-state durability: **session** — mirrors the camera's own autotrack config, re-read on connect.
|
|
25487
|
+
*
|
|
25488
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25489
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25490
|
+
*/
|
|
25491
|
+
durability: "session"
|
|
24961
25492
|
};
|
|
24962
25493
|
DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
|
|
24963
25494
|
kind: "mutation",
|
|
@@ -25607,7 +26138,14 @@ var sceneMonitorCapability = {
|
|
|
25607
26138
|
schema: SceneMonitorStatusSchema,
|
|
25608
26139
|
kind: "push"
|
|
25609
26140
|
},
|
|
25610
|
-
runtimeState: SceneMonitorStatusSchema
|
|
26141
|
+
runtimeState: SceneMonitorStatusSchema,
|
|
26142
|
+
/**
|
|
26143
|
+
* Runtime-state durability: **session** — re-derived from the current scene on the next evaluation.
|
|
26144
|
+
*
|
|
26145
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26146
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26147
|
+
*/
|
|
26148
|
+
durability: "session"
|
|
25611
26149
|
};
|
|
25612
26150
|
/**
|
|
25613
26151
|
* Per-stage gating mode applied to the zones a rule references.
|
|
@@ -25751,7 +26289,14 @@ var scriptRunnerCapability = {
|
|
|
25751
26289
|
* `isRunning` to render a spinner during execution and surfaces
|
|
25752
26290
|
* `lastError` / `lastRunSuccess` in the recent-runs panel.
|
|
25753
26291
|
*/
|
|
25754
|
-
runtimeState: ScriptRunnerStatusSchema
|
|
26292
|
+
runtimeState: ScriptRunnerStatusSchema,
|
|
26293
|
+
/**
|
|
26294
|
+
* Runtime-state durability: **session** — a restored `isRunning: true` describes a process that died with the previous hub.
|
|
26295
|
+
*
|
|
26296
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26297
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26298
|
+
*/
|
|
26299
|
+
durability: "session"
|
|
25755
26300
|
};
|
|
25756
26301
|
/**
|
|
25757
26302
|
* Smoke alarm sensor — boolean "is smoke currently detected" with
|
|
@@ -25778,7 +26323,17 @@ var smokeCapability = {
|
|
|
25778
26323
|
schema: SmokeStatusSchema,
|
|
25779
26324
|
kind: "push"
|
|
25780
26325
|
},
|
|
25781
|
-
runtimeState: SmokeStatusSchema
|
|
26326
|
+
runtimeState: SmokeStatusSchema,
|
|
26327
|
+
/**
|
|
26328
|
+
* Runtime-state durability: **restored** — a safety sensor must not read "clear" merely because the hub restarted.
|
|
26329
|
+
*
|
|
26330
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26331
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26332
|
+
*/
|
|
26333
|
+
durability: "restored",
|
|
26334
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26335
|
+
* whether persisting is worth a SQLite commit. */
|
|
26336
|
+
volatileStateFields: ["lastChangedAt"]
|
|
25782
26337
|
};
|
|
25783
26338
|
/**
|
|
25784
26339
|
* One publishable camera stream as its OWNING PROVIDER describes it — the same
|
|
@@ -25964,7 +26519,17 @@ var streamParamsCapability = {
|
|
|
25964
26519
|
schema: StreamParamsStatusSchema,
|
|
25965
26520
|
kind: "poll"
|
|
25966
26521
|
},
|
|
25967
|
-
runtimeState: StreamParamsStatusSchema
|
|
26522
|
+
runtimeState: StreamParamsStatusSchema,
|
|
26523
|
+
/**
|
|
26524
|
+
* Runtime-state durability: **restored** — operator-set encoder profile; mutation-driven.
|
|
26525
|
+
*
|
|
26526
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26527
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26528
|
+
*/
|
|
26529
|
+
durability: "restored",
|
|
26530
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26531
|
+
* whether persisting is worth a SQLite commit. */
|
|
26532
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
25968
26533
|
};
|
|
25969
26534
|
/**
|
|
25970
26535
|
* The three well-known stream profiles in render order. Exported so the
|
|
@@ -26208,6 +26773,16 @@ var switchCapability = {
|
|
|
26208
26773
|
* not need to re-query the provider after a setState mutation.
|
|
26209
26774
|
*/
|
|
26210
26775
|
runtimeState: SwitchStatusSchema,
|
|
26776
|
+
/**
|
|
26777
|
+
* Runtime-state durability: **restored** — device state an operator reads as authoritative; 55 devices, transition-driven.
|
|
26778
|
+
*
|
|
26779
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26780
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26781
|
+
*/
|
|
26782
|
+
durability: "restored",
|
|
26783
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26784
|
+
* whether persisting is worth a SQLite commit. */
|
|
26785
|
+
volatileStateFields: ["lastChangedAt"],
|
|
26211
26786
|
settings: { bindings: [{
|
|
26212
26787
|
kind: "scalar",
|
|
26213
26788
|
statusPath: "on",
|
|
@@ -26287,7 +26862,17 @@ var tamperCapability = {
|
|
|
26287
26862
|
schema: TamperStatusSchema,
|
|
26288
26863
|
kind: "push"
|
|
26289
26864
|
},
|
|
26290
|
-
runtimeState: TamperStatusSchema
|
|
26865
|
+
runtimeState: TamperStatusSchema,
|
|
26866
|
+
/**
|
|
26867
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
26868
|
+
*
|
|
26869
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26870
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26871
|
+
*/
|
|
26872
|
+
durability: "restored",
|
|
26873
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26874
|
+
* whether persisting is worth a SQLite commit. */
|
|
26875
|
+
volatileStateFields: ["lastChangedAt"]
|
|
26291
26876
|
};
|
|
26292
26877
|
/**
|
|
26293
26878
|
* Single-metric temperature reading. Drives Home Assistant `sensor`
|
|
@@ -26332,7 +26917,17 @@ var temperatureSensorCapability = {
|
|
|
26332
26917
|
schema: TemperatureSensorStatusSchema,
|
|
26333
26918
|
kind: "push"
|
|
26334
26919
|
},
|
|
26335
|
-
runtimeState: TemperatureSensorStatusSchema
|
|
26920
|
+
runtimeState: TemperatureSensorStatusSchema,
|
|
26921
|
+
/**
|
|
26922
|
+
* Runtime-state durability: **restored** — as `numeric-sensor` (69 of 125 writes were the clock alone).
|
|
26923
|
+
*
|
|
26924
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26925
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26926
|
+
*/
|
|
26927
|
+
durability: "restored",
|
|
26928
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26929
|
+
* whether persisting is worth a SQLite commit. */
|
|
26930
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
26336
26931
|
};
|
|
26337
26932
|
/**
|
|
26338
26933
|
* toast — system-scoped singleton capability that streams toast
|
|
@@ -26401,7 +26996,14 @@ var updateCapability = {
|
|
|
26401
26996
|
schema: UpdateStatusSchema,
|
|
26402
26997
|
kind: "poll"
|
|
26403
26998
|
},
|
|
26404
|
-
runtimeState: UpdateStatusSchema
|
|
26999
|
+
runtimeState: UpdateStatusSchema,
|
|
27000
|
+
/**
|
|
27001
|
+
* Runtime-state durability: **session** — a restored `inProgress: true` describes an update that is no longer running; versions are re-probed at boot.
|
|
27002
|
+
*
|
|
27003
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27004
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27005
|
+
*/
|
|
27006
|
+
durability: "session"
|
|
26405
27007
|
};
|
|
26406
27008
|
var UserSummarySchema = object({
|
|
26407
27009
|
id: string(),
|
|
@@ -26735,7 +27337,14 @@ var vacuumControlCapability = {
|
|
|
26735
27337
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
26736
27338
|
* slice for live state + battery + fan-speed changes.
|
|
26737
27339
|
*/
|
|
26738
|
-
runtimeState: VacuumControlStatusSchema
|
|
27340
|
+
runtimeState: VacuumControlStatusSchema,
|
|
27341
|
+
/**
|
|
27342
|
+
* Runtime-state durability: **session** — as `media-player` — a restored `state: cleaning` is a robot that is not cleaning.
|
|
27343
|
+
*
|
|
27344
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27345
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27346
|
+
*/
|
|
27347
|
+
durability: "session"
|
|
26739
27348
|
};
|
|
26740
27349
|
var ValveStatusSchema = object({
|
|
26741
27350
|
/** Lifecycle state of the valve. */
|
|
@@ -26787,7 +27396,14 @@ var valveCapability = {
|
|
|
26787
27396
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
26788
27397
|
* slice for live position changes during a move.
|
|
26789
27398
|
*/
|
|
26790
|
-
runtimeState: ValveStatusSchema
|
|
27399
|
+
runtimeState: ValveStatusSchema,
|
|
27400
|
+
/**
|
|
27401
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
27402
|
+
*
|
|
27403
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27404
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27405
|
+
*/
|
|
27406
|
+
durability: "session"
|
|
26791
27407
|
};
|
|
26792
27408
|
/**
|
|
26793
27409
|
* Vibration / shake / impact sensor. Drives Home Assistant
|
|
@@ -26809,7 +27425,17 @@ var vibrationCapability = {
|
|
|
26809
27425
|
schema: VibrationStatusSchema,
|
|
26810
27426
|
kind: "push"
|
|
26811
27427
|
},
|
|
26812
|
-
runtimeState: VibrationStatusSchema
|
|
27428
|
+
runtimeState: VibrationStatusSchema,
|
|
27429
|
+
/**
|
|
27430
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
27431
|
+
*
|
|
27432
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27433
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27434
|
+
*/
|
|
27435
|
+
durability: "restored",
|
|
27436
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27437
|
+
* whether persisting is worth a SQLite commit. */
|
|
27438
|
+
volatileStateFields: ["lastChangedAt"]
|
|
26813
27439
|
};
|
|
26814
27440
|
/**
|
|
26815
27441
|
* Water heater / boiler cap. Models HA `water_heater.*` entities — a
|
|
@@ -26883,7 +27509,14 @@ var waterHeaterCapability = {
|
|
|
26883
27509
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
26884
27510
|
* slice for live temperature / mode / away changes.
|
|
26885
27511
|
*/
|
|
26886
|
-
runtimeState: WaterHeaterStatusSchema
|
|
27512
|
+
runtimeState: WaterHeaterStatusSchema,
|
|
27513
|
+
/**
|
|
27514
|
+
* Runtime-state durability: **session** — as `climate-control`.
|
|
27515
|
+
*
|
|
27516
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27517
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27518
|
+
*/
|
|
27519
|
+
durability: "session"
|
|
26887
27520
|
};
|
|
26888
27521
|
/**
|
|
26889
27522
|
* Weather provider cap. Models HA `weather.*` entities — a read-only
|
|
@@ -26942,7 +27575,14 @@ var weatherCapability = {
|
|
|
26942
27575
|
* Runtime-state slice — mirrored by the kernel. The UI reads the
|
|
26943
27576
|
* current conditions directly from the slice on each weather push.
|
|
26944
27577
|
*/
|
|
26945
|
-
runtimeState: WeatherStatusSchema
|
|
27578
|
+
runtimeState: WeatherStatusSchema,
|
|
27579
|
+
/**
|
|
27580
|
+
* Runtime-state durability: **session** — a forecast is stale the moment the hub is down; the provider re-fetches on connect.
|
|
27581
|
+
*
|
|
27582
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27583
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27584
|
+
*/
|
|
27585
|
+
durability: "session"
|
|
26946
27586
|
};
|
|
26947
27587
|
/**
|
|
26948
27588
|
* Per-zone occupancy aggregation produced by the analytics frame
|
|
@@ -27104,7 +27744,14 @@ var zoneAnalyticsCapability = {
|
|
|
27104
27744
|
* automatically; the explicit `getCurrentSnapshot` cap method is
|
|
27105
27745
|
* still useful for one-off polls without a subscription.
|
|
27106
27746
|
*/
|
|
27107
|
-
runtimeState: CameraOccupancySnapshotSchema
|
|
27747
|
+
runtimeState: CameraOccupancySnapshotSchema,
|
|
27748
|
+
/**
|
|
27749
|
+
* Runtime-state durability: **session** — per-frame analytics; with `audio-metrics` it is ~90 % of the offered write rate. Re-derived on the next frame.
|
|
27750
|
+
*
|
|
27751
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27752
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27753
|
+
*/
|
|
27754
|
+
durability: "session"
|
|
27108
27755
|
};
|
|
27109
27756
|
/**
|
|
27110
27757
|
* Stages a {@link ZoneRule} can apply to. Discriminator on the rules
|
|
@@ -27182,7 +27829,14 @@ var zoneRulesCapability = {
|
|
|
27182
27829
|
motion: array(ZoneRuleSchema).readonly(),
|
|
27183
27830
|
detection: array(ZoneRuleSchema).readonly(),
|
|
27184
27831
|
package: array(ZoneRuleSchema).readonly()
|
|
27185
|
-
})
|
|
27832
|
+
}),
|
|
27833
|
+
/**
|
|
27834
|
+
* Runtime-state durability: **restored** — operator intent, mutation-only, same argument as `zones`.
|
|
27835
|
+
*
|
|
27836
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27837
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27838
|
+
*/
|
|
27839
|
+
durability: "restored"
|
|
27186
27840
|
};
|
|
27187
27841
|
/**
|
|
27188
27842
|
* Accessory device helpers — shared across drivers.
|
|
@@ -34000,6 +34654,7 @@ Object.freeze({
|
|
|
34000
34654
|
"network-access": "ingress",
|
|
34001
34655
|
"smtp-provider": "email"
|
|
34002
34656
|
});
|
|
34657
|
+
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
34003
34658
|
new Set(["devices", "classes"]);
|
|
34004
34659
|
/**
|
|
34005
34660
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|