@camstack/addon-provider-ecowitt 0.2.13 → 0.2.15
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 +723 -95
- package/dist/addon.mjs +723 -95
- package/package.json +1 -1
package/dist/addon.mjs
CHANGED
|
@@ -10773,7 +10773,14 @@ var cameraStreamsCapability = {
|
|
|
10773
10773
|
low: string().optional()
|
|
10774
10774
|
}),
|
|
10775
10775
|
lastChangedAt: number()
|
|
10776
|
-
})
|
|
10776
|
+
}),
|
|
10777
|
+
/**
|
|
10778
|
+
* 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.
|
|
10779
|
+
*
|
|
10780
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
10781
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
10782
|
+
*/
|
|
10783
|
+
durability: "session"
|
|
10777
10784
|
};
|
|
10778
10785
|
/** Where a block runs. The operator chooses — a block driving a device on an
|
|
10779
10786
|
* agent is the reason placement is not fixed to the hub. */
|
|
@@ -11334,6 +11341,13 @@ var deviceDiscoveryCapability = {
|
|
|
11334
11341
|
kind: "poll"
|
|
11335
11342
|
},
|
|
11336
11343
|
runtimeState: DeviceDiscoveryStatusSchema.extend({ lastFetchedAt: number().int().nonnegative() }),
|
|
11344
|
+
/**
|
|
11345
|
+
* Runtime-state durability: **session** — 5.7 KB of scan output on the largest device, fully re-derivable by re-scanning.
|
|
11346
|
+
*
|
|
11347
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
11348
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
11349
|
+
*/
|
|
11350
|
+
durability: "session",
|
|
11337
11351
|
methods: {
|
|
11338
11352
|
/**
|
|
11339
11353
|
* Snapshot of the current `discovered` list. Returns the
|
|
@@ -13233,7 +13247,23 @@ var NotificationActionSchema = object({
|
|
|
13233
13247
|
* else — see `notification-center/action-token.ts` for what that does and
|
|
13234
13248
|
* does not buy.
|
|
13235
13249
|
*/
|
|
13236
|
-
destructive: boolean().optional()
|
|
13250
|
+
destructive: boolean().optional(),
|
|
13251
|
+
/**
|
|
13252
|
+
* How the tap should REACH the url.
|
|
13253
|
+
*
|
|
13254
|
+
* `navigate` (absent, and every button authored before this field) opens it:
|
|
13255
|
+
* the phone leaves the notification and shows whatever the callback returns.
|
|
13256
|
+
* That is right for a button whose answer the operator wants to read.
|
|
13257
|
+
*
|
|
13258
|
+
* `background` fires it as a POST and stays put. It exists for the buttons
|
|
13259
|
+
* whose whole point is not to interrupt — "silence this for 30 minutes" is
|
|
13260
|
+
* an answer to the notification, and being thrown into a browser tab to
|
|
13261
|
+
* confirm it costs more attention than the notification did. A backend that
|
|
13262
|
+
* cannot do a background call renders it as an ordinary link (the adapters
|
|
13263
|
+
* fall back rather than dropping the button), so this is a preference, never
|
|
13264
|
+
* a requirement.
|
|
13265
|
+
*/
|
|
13266
|
+
mode: _enum(["navigate", "background"]).optional()
|
|
13237
13267
|
});
|
|
13238
13268
|
/**
|
|
13239
13269
|
* The canonical notification. `body` is the only hard field (Apprise model).
|
|
@@ -14085,7 +14115,17 @@ var alarmPanelCapability = {
|
|
|
14085
14115
|
* full slice; renders an arm button per `availableModes` entry and
|
|
14086
14116
|
* a PIN field iff `requiresCode === true`.
|
|
14087
14117
|
*/
|
|
14088
|
-
runtimeState: AlarmPanelStatusSchema
|
|
14118
|
+
runtimeState: AlarmPanelStatusSchema,
|
|
14119
|
+
/**
|
|
14120
|
+
* Runtime-state durability: **restored** — armed state is the one thing a panel must not lose across a restart.
|
|
14121
|
+
*
|
|
14122
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
14123
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
14124
|
+
*/
|
|
14125
|
+
durability: "restored",
|
|
14126
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
14127
|
+
* whether persisting is worth a SQLite commit. */
|
|
14128
|
+
volatileStateFields: ["lastChangedAt"]
|
|
14089
14129
|
};
|
|
14090
14130
|
/**
|
|
14091
14131
|
* Shared geometry vocabulary for on-frame shape caps — privacy-mask,
|
|
@@ -14262,6 +14302,9 @@ var NcSystemEventConditionSchema = object({
|
|
|
14262
14302
|
nodeIds: array(string().min(1)).min(1).optional(),
|
|
14263
14303
|
packageNames: array(string().min(1)).min(1).optional()
|
|
14264
14304
|
});
|
|
14305
|
+
/** Hard ceiling on a window (24h). A snooze that could not expire would be an
|
|
14306
|
+
* outage the operator asked for once and forgot. */
|
|
14307
|
+
var NC_SNOOZE_MAX_MINUTES = 1440;
|
|
14265
14308
|
/** Weekly schedule — OR of windows; absence on the rule = always active. */
|
|
14266
14309
|
var NcScheduleSchema = object({
|
|
14267
14310
|
windows: array(object({
|
|
@@ -14638,15 +14681,15 @@ var NcConditionsSchema = object({
|
|
|
14638
14681
|
* (an `immediate` rule naming an `audio-*` class, one notification per
|
|
14639
14682
|
* classified sample) stays exactly as it was for rules that already use it.
|
|
14640
14683
|
*
|
|
14641
|
-
*
|
|
14642
|
-
* rather than an
|
|
14643
|
-
* (`camstack/src/data/notification-center.ts`, guarded by
|
|
14644
|
-
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor
|
|
14684
|
+
* In {@link NC_CONDITION_CATALOG} since P2, and the ORDER it got there is the
|
|
14685
|
+
* rule rather than an accident: the viewer mirrors the descriptor enums BY
|
|
14686
|
+
* HAND (`camstack/src/data/notification-center.ts`, guarded by
|
|
14687
|
+
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor strips the
|
|
14645
14688
|
* condition fields it does not know when a rule is saved from the phone.
|
|
14646
14689
|
* Publishing an editor for a condition the app cannot round-trip is how an
|
|
14647
|
-
* operator loses a rule's conditions by opening it — so the
|
|
14648
|
-
*
|
|
14649
|
-
*
|
|
14690
|
+
* operator loses a rule's conditions by opening it — so the viewer mirror
|
|
14691
|
+
* (P3, shipped) went FIRST, and the descriptor an editor renders from
|
|
14692
|
+
* follows here.
|
|
14650
14693
|
*/
|
|
14651
14694
|
audio: NcAudioConditionSchema.optional()
|
|
14652
14695
|
});
|
|
@@ -14882,6 +14925,30 @@ var NcRuleInputSchema = object({
|
|
|
14882
14925
|
*/
|
|
14883
14926
|
snoozeAllowGlobal: boolean().optional(),
|
|
14884
14927
|
/**
|
|
14928
|
+
* The snooze durations THIS rule's notification offers as buttons, in
|
|
14929
|
+
* minutes.
|
|
14930
|
+
*
|
|
14931
|
+
* Three states, and all three are distinct — which is exactly why this is
|
|
14932
|
+
* `.optional()` and never `.default()`. A Zod default does not run on the
|
|
14933
|
+
* addon cap path (three production failures in one day), so a schema default
|
|
14934
|
+
* would collapse the first two:
|
|
14935
|
+
*
|
|
14936
|
+
* | value | meaning |
|
|
14937
|
+
* | --- | --- |
|
|
14938
|
+
* | absent | the operator never said ⇒ {@link NC_DEFAULT_SNOOZE_MINUTES} |
|
|
14939
|
+
* | `[]` | **no snooze buttons on this rule** — the explicit override |
|
|
14940
|
+
* | a list | these choices, de-duplicated and sorted, at most four |
|
|
14941
|
+
*
|
|
14942
|
+
* `.max(4)` because the notifier's own action budget is small (ntfy allows
|
|
14943
|
+
* three buttons in total) and a rule that spent it all on snooze choices
|
|
14944
|
+
* would push its own tap-through actions off the notification.
|
|
14945
|
+
*
|
|
14946
|
+
* An empty list is NOT an alarm exemption: a rule the alarm is about, or
|
|
14947
|
+
* that arms the panel, is exempt automatically and cannot be silenced by a
|
|
14948
|
+
* window from anywhere (D133).
|
|
14949
|
+
*/
|
|
14950
|
+
snoozeOptions: array(number().int().min(1).max(NC_SNOOZE_MAX_MINUTES)).max(4).optional(),
|
|
14951
|
+
/**
|
|
14885
14952
|
* Devices this rule ACTUATES — arm the alarm, open a gate, turn on a light.
|
|
14886
14953
|
*
|
|
14887
14954
|
* This is what makes the rule set the alarm's trigger set without the alarm
|
|
@@ -14981,6 +15048,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
14981
15048
|
"device",
|
|
14982
15049
|
"package",
|
|
14983
15050
|
"occupancy",
|
|
15051
|
+
"audio",
|
|
14984
15052
|
"system"
|
|
14985
15053
|
]),
|
|
14986
15054
|
label: string(),
|
|
@@ -14999,6 +15067,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
14999
15067
|
"crossingSelect",
|
|
15000
15068
|
"polygonDraw",
|
|
15001
15069
|
"occupancy",
|
|
15070
|
+
"audio",
|
|
15002
15071
|
"deviceState",
|
|
15003
15072
|
"systemEvent"
|
|
15004
15073
|
]),
|
|
@@ -15150,7 +15219,20 @@ var NcSnoozeInputSchema = object({
|
|
|
15150
15219
|
ruleId: string().optional(),
|
|
15151
15220
|
/** Required when `scope: 'device'`. */
|
|
15152
15221
|
deviceId: number().int().optional(),
|
|
15153
|
-
|
|
15222
|
+
/**
|
|
15223
|
+
* Narrow the window to these subject classes — "the cat, not the person".
|
|
15224
|
+
*
|
|
15225
|
+
* ORTHOGONAL to `scope`, deliberately, and absent means EVERY class: that is
|
|
15226
|
+
* what every window authored before this field meant, so no persisted row
|
|
15227
|
+
* changes meaning and no client has to learn anything to keep working.
|
|
15228
|
+
*
|
|
15229
|
+
* It is what makes the window's real key `(deviceId, classes[])` and lets it
|
|
15230
|
+
* cross rules (D133): the operator points at a camera and a kind of thing,
|
|
15231
|
+
* not at whichever of their four rules happened to produce the notification
|
|
15232
|
+
* they are dismissing.
|
|
15233
|
+
*/
|
|
15234
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
15235
|
+
durationMinutes: number().int().min(1).max(NC_SNOOZE_MAX_MINUTES),
|
|
15154
15236
|
/**
|
|
15155
15237
|
* Silence this for EVERY recipient, not just the caller. Permission is
|
|
15156
15238
|
* checked server-side (the rule's `snoozeAllowGlobal`, or admin for the
|
|
@@ -15175,6 +15257,10 @@ var NcSnoozeSchema = object({
|
|
|
15175
15257
|
scope: NcSnoozeScopeSchema,
|
|
15176
15258
|
ruleId: string().optional(),
|
|
15177
15259
|
deviceId: number().int().optional(),
|
|
15260
|
+
/** Subject classes this window covers. ABSENT = every class — see
|
|
15261
|
+
* {@link NcSnoozeInputSchema.shape.classes}. Lives in the JSON blob and has
|
|
15262
|
+
* no SQLite column: nothing queries a window by class. */
|
|
15263
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
15178
15264
|
startedAt: number(),
|
|
15179
15265
|
/** Exclusive: at exactly this instant the snooze is over. Expiry is a
|
|
15180
15266
|
* COMPARISON, not a job — no sweeper can leave the operator silenced. */
|
|
@@ -17275,7 +17361,14 @@ var zonesCapability = {
|
|
|
17275
17361
|
* handle. Slice shape is `{ zones: Zone[] }` so future extensions
|
|
17276
17362
|
* (e.g. zone groupings) can sit alongside the polygon list.
|
|
17277
17363
|
*/
|
|
17278
|
-
runtimeState: object({ zones: array(ZoneSchema).readonly() })
|
|
17364
|
+
runtimeState: object({ zones: array(ZoneSchema).readonly() }),
|
|
17365
|
+
/**
|
|
17366
|
+
* 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.
|
|
17367
|
+
*
|
|
17368
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
17369
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
17370
|
+
*/
|
|
17371
|
+
durability: "restored"
|
|
17279
17372
|
};
|
|
17280
17373
|
/**
|
|
17281
17374
|
* A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
|
|
@@ -20074,7 +20167,17 @@ var airQualitySensorCapability = {
|
|
|
20074
20167
|
schema: AirQualitySensorStatusSchema,
|
|
20075
20168
|
kind: "push"
|
|
20076
20169
|
},
|
|
20077
|
-
runtimeState: AirQualitySensorStatusSchema
|
|
20170
|
+
runtimeState: AirQualitySensorStatusSchema,
|
|
20171
|
+
/**
|
|
20172
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
20173
|
+
*
|
|
20174
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20175
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20176
|
+
*/
|
|
20177
|
+
durability: "restored",
|
|
20178
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20179
|
+
* whether persisting is worth a SQLite commit. */
|
|
20180
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
20078
20181
|
};
|
|
20079
20182
|
/**
|
|
20080
20183
|
* Ambient illuminance reading in lux. Drives Home Assistant `sensor`
|
|
@@ -20106,7 +20209,17 @@ var ambientLightSensorCapability = {
|
|
|
20106
20209
|
schema: AmbientLightSensorStatusSchema,
|
|
20107
20210
|
kind: "push"
|
|
20108
20211
|
},
|
|
20109
|
-
runtimeState: AmbientLightSensorStatusSchema
|
|
20212
|
+
runtimeState: AmbientLightSensorStatusSchema,
|
|
20213
|
+
/**
|
|
20214
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
20215
|
+
*
|
|
20216
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20217
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20218
|
+
*/
|
|
20219
|
+
durability: "restored",
|
|
20220
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20221
|
+
* whether persisting is worth a SQLite commit. */
|
|
20222
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
20110
20223
|
};
|
|
20111
20224
|
/**
|
|
20112
20225
|
* Per-class audio metrics aggregated over a sliding window.
|
|
@@ -20224,7 +20337,14 @@ var audioMetricsCapability = {
|
|
|
20224
20337
|
}), AudioMetricsHistorySchema)
|
|
20225
20338
|
},
|
|
20226
20339
|
/** Reactive runtime-state mirror — live `device.state.audioMetrics.value`. */
|
|
20227
|
-
runtimeState: AudioMetricsSnapshotSchema
|
|
20340
|
+
runtimeState: AudioMetricsSnapshotSchema,
|
|
20341
|
+
/**
|
|
20342
|
+
* 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.
|
|
20343
|
+
*
|
|
20344
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20345
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20346
|
+
*/
|
|
20347
|
+
durability: "session"
|
|
20228
20348
|
};
|
|
20229
20349
|
/**
|
|
20230
20350
|
* Automation-control cap. Models HA `automation.*` entities on
|
|
@@ -20286,7 +20406,14 @@ var automationControlCapability = {
|
|
|
20286
20406
|
* reads `enabled` (toggle) + `isRunning` (spinner) + `lastError`
|
|
20287
20407
|
* (badge) directly.
|
|
20288
20408
|
*/
|
|
20289
|
-
runtimeState: AutomationControlStatusSchema
|
|
20409
|
+
runtimeState: AutomationControlStatusSchema,
|
|
20410
|
+
/**
|
|
20411
|
+
* 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.
|
|
20412
|
+
*
|
|
20413
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20414
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20415
|
+
*/
|
|
20416
|
+
durability: "session"
|
|
20290
20417
|
};
|
|
20291
20418
|
/**
|
|
20292
20419
|
* Battery status snapshot. Emitted by providers whose device is
|
|
@@ -20392,7 +20519,17 @@ onStatusChanged: { data: object({
|
|
|
20392
20519
|
* via `device.runtimeState.getCapState('battery')` regardless of
|
|
20393
20520
|
* the underlying driver.
|
|
20394
20521
|
*/
|
|
20395
|
-
runtimeState: BatteryStatusSchema
|
|
20522
|
+
runtimeState: BatteryStatusSchema,
|
|
20523
|
+
/**
|
|
20524
|
+
* 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.
|
|
20525
|
+
*
|
|
20526
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20527
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20528
|
+
*/
|
|
20529
|
+
durability: "restored",
|
|
20530
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20531
|
+
* whether persisting is worth a SQLite commit. */
|
|
20532
|
+
volatileStateFields: ["lastUpdated"]
|
|
20396
20533
|
};
|
|
20397
20534
|
/**
|
|
20398
20535
|
* Generic boolean sensor — last-resort fallback when no domain-
|
|
@@ -20421,7 +20558,17 @@ var binaryCapability = {
|
|
|
20421
20558
|
schema: BinaryStatusSchema,
|
|
20422
20559
|
kind: "push"
|
|
20423
20560
|
},
|
|
20424
|
-
runtimeState: BinaryStatusSchema
|
|
20561
|
+
runtimeState: BinaryStatusSchema,
|
|
20562
|
+
/**
|
|
20563
|
+
* Runtime-state durability: **restored** — transition-driven sensor state; the restored value gives the boot comparison.
|
|
20564
|
+
*
|
|
20565
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20566
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20567
|
+
*/
|
|
20568
|
+
durability: "restored",
|
|
20569
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20570
|
+
* whether persisting is worth a SQLite commit. */
|
|
20571
|
+
volatileStateFields: ["lastChangedAt"]
|
|
20425
20572
|
};
|
|
20426
20573
|
/**
|
|
20427
20574
|
* Dimmable-light brightness control. Co-exists with `switch` on the
|
|
@@ -20474,7 +20621,14 @@ onBrightnessChanged: { data: object({
|
|
|
20474
20621
|
* by the kernel. Read via `device.state.brightness.value` so UI
|
|
20475
20622
|
* sliders surface the current level without polling the provider.
|
|
20476
20623
|
*/
|
|
20477
|
-
runtimeState: BrightnessStatusSchema
|
|
20624
|
+
runtimeState: BrightnessStatusSchema,
|
|
20625
|
+
/**
|
|
20626
|
+
* Runtime-state durability: **session** — live lamp state, re-published by the provider on connect.
|
|
20627
|
+
*
|
|
20628
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20629
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20630
|
+
*/
|
|
20631
|
+
durability: "session"
|
|
20478
20632
|
};
|
|
20479
20633
|
DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _void(), {
|
|
20480
20634
|
kind: "mutation",
|
|
@@ -20562,7 +20716,17 @@ var carbonMonoxideCapability = {
|
|
|
20562
20716
|
schema: CarbonMonoxideStatusSchema,
|
|
20563
20717
|
kind: "push"
|
|
20564
20718
|
},
|
|
20565
|
-
runtimeState: CarbonMonoxideStatusSchema
|
|
20719
|
+
runtimeState: CarbonMonoxideStatusSchema,
|
|
20720
|
+
/**
|
|
20721
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
20722
|
+
*
|
|
20723
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20724
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20725
|
+
*/
|
|
20726
|
+
durability: "restored",
|
|
20727
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20728
|
+
* whether persisting is worth a SQLite commit. */
|
|
20729
|
+
volatileStateFields: ["lastChangedAt"]
|
|
20566
20730
|
};
|
|
20567
20731
|
/**
|
|
20568
20732
|
* HVAC / climate control cap. Models the full surface of a HA
|
|
@@ -20722,7 +20886,14 @@ var climateControlCapability = {
|
|
|
20722
20886
|
* the full slice via `device.state.climate-control.value` and refresh
|
|
20723
20887
|
* on every push without re-querying the provider.
|
|
20724
20888
|
*/
|
|
20725
|
-
runtimeState: ClimateControlStatusSchema
|
|
20889
|
+
runtimeState: ClimateControlStatusSchema,
|
|
20890
|
+
/**
|
|
20891
|
+
* Runtime-state durability: **session** — as `brightness`; `currentTemp` moves continuously and is re-published on connect.
|
|
20892
|
+
*
|
|
20893
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20894
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20895
|
+
*/
|
|
20896
|
+
durability: "session"
|
|
20726
20897
|
};
|
|
20727
20898
|
/**
|
|
20728
20899
|
* Color-light cap. Coexists with `switch` (on/off) and `brightness`
|
|
@@ -20832,7 +21003,14 @@ onColorChanged: { data: object({
|
|
|
20832
21003
|
* kernel. Read via `device.state.color.value` so UI pickers surface
|
|
20833
21004
|
* the current chromaticity without polling the provider.
|
|
20834
21005
|
*/
|
|
20835
|
-
runtimeState: ColorStatusSchema
|
|
21006
|
+
runtimeState: ColorStatusSchema,
|
|
21007
|
+
/**
|
|
21008
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
21009
|
+
*
|
|
21010
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21011
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21012
|
+
*/
|
|
21013
|
+
durability: "session"
|
|
20836
21014
|
};
|
|
20837
21015
|
var ConnectionTestOutcomeSchema = discriminatedUnion("outcome", [
|
|
20838
21016
|
object({
|
|
@@ -20890,7 +21068,17 @@ var connectivityCapability = {
|
|
|
20890
21068
|
schema: ConnectivityStatusSchema,
|
|
20891
21069
|
kind: "push"
|
|
20892
21070
|
},
|
|
20893
|
-
runtimeState: ConnectivityStatusSchema
|
|
21071
|
+
runtimeState: ConnectivityStatusSchema,
|
|
21072
|
+
/**
|
|
21073
|
+
* Runtime-state durability: **restored** — same shape and same argument as `device-status`, for links rather than devices.
|
|
21074
|
+
*
|
|
21075
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21076
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21077
|
+
*/
|
|
21078
|
+
durability: "restored",
|
|
21079
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21080
|
+
* whether persisting is worth a SQLite commit. */
|
|
21081
|
+
volatileStateFields: ["lastChangedAt"]
|
|
20894
21082
|
};
|
|
20895
21083
|
/**
|
|
20896
21084
|
* Generic device-consumables capability — surfaces a device's
|
|
@@ -20972,7 +21160,14 @@ reset: method(object({
|
|
|
20972
21160
|
}
|
|
20973
21161
|
}
|
|
20974
21162
|
},
|
|
20975
|
-
runtimeState: ConsumablesStatusSchema.extend({ lastFetchedAt: number() })
|
|
21163
|
+
runtimeState: ConsumablesStatusSchema.extend({ lastFetchedAt: number() }),
|
|
21164
|
+
/**
|
|
21165
|
+
* Runtime-state durability: **session** — the authority is the appliance; the provider re-reads the whole item array on connect.
|
|
21166
|
+
*
|
|
21167
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21168
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21169
|
+
*/
|
|
21170
|
+
durability: "session"
|
|
20976
21171
|
};
|
|
20977
21172
|
/**
|
|
20978
21173
|
* Door / window / opening / garage / valve contact sensor. Boolean
|
|
@@ -21003,7 +21198,17 @@ var contactCapability = {
|
|
|
21003
21198
|
schema: ContactStatusSchema,
|
|
21004
21199
|
kind: "push"
|
|
21005
21200
|
},
|
|
21006
|
-
runtimeState: ContactStatusSchema
|
|
21201
|
+
runtimeState: ContactStatusSchema,
|
|
21202
|
+
/**
|
|
21203
|
+
* Runtime-state durability: **restored** — a door left open across a restart must still read open.
|
|
21204
|
+
*
|
|
21205
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21206
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21207
|
+
*/
|
|
21208
|
+
durability: "restored",
|
|
21209
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21210
|
+
* whether persisting is worth a SQLite commit. */
|
|
21211
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21007
21212
|
};
|
|
21008
21213
|
/**
|
|
21009
21214
|
* Status slice — flat object (the framework's `runtimeState` contract
|
|
@@ -21109,7 +21314,14 @@ var controlCapability = {
|
|
|
21109
21314
|
* dropdown / text field / date picker) read the slice's discriminant
|
|
21110
21315
|
* and value directly without polling the provider.
|
|
21111
21316
|
*/
|
|
21112
|
-
runtimeState: ControlStatusSchema
|
|
21317
|
+
runtimeState: ControlStatusSchema,
|
|
21318
|
+
/**
|
|
21319
|
+
* Runtime-state durability: **session** — a generic control mirrors an external entity that re-publishes on connect; the options array is re-derived with it.
|
|
21320
|
+
*
|
|
21321
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21322
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21323
|
+
*/
|
|
21324
|
+
durability: "session"
|
|
21113
21325
|
};
|
|
21114
21326
|
var CoverStatusSchema = object({
|
|
21115
21327
|
/** Lifecycle state of the cover. */
|
|
@@ -21170,7 +21382,17 @@ var coverCapability = {
|
|
|
21170
21382
|
* Runtime-state slice — mirrored by the kernel. UI controls watch
|
|
21171
21383
|
* the slice for live position changes during a move.
|
|
21172
21384
|
*/
|
|
21173
|
-
runtimeState: CoverStatusSchema
|
|
21385
|
+
runtimeState: CoverStatusSchema,
|
|
21386
|
+
/**
|
|
21387
|
+
* Runtime-state durability: **restored** — position survives a restart on the device; the mirror should agree at boot rather than read blank.
|
|
21388
|
+
*
|
|
21389
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21390
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21391
|
+
*/
|
|
21392
|
+
durability: "restored",
|
|
21393
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21394
|
+
* whether persisting is worth a SQLite commit. */
|
|
21395
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21174
21396
|
};
|
|
21175
21397
|
/**
|
|
21176
21398
|
* Vendor-neutral day/night (IR-cut) control — the per-camera config cap
|
|
@@ -21264,7 +21486,17 @@ var dayNightCapability = {
|
|
|
21264
21486
|
schema: DayNightStatusSchema,
|
|
21265
21487
|
kind: "poll"
|
|
21266
21488
|
},
|
|
21267
|
-
runtimeState: DayNightStatusSchema
|
|
21489
|
+
runtimeState: DayNightStatusSchema,
|
|
21490
|
+
/**
|
|
21491
|
+
* Runtime-state durability: **restored** — operator-set IR-cut behaviour; mutation-driven.
|
|
21492
|
+
*
|
|
21493
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21494
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21495
|
+
*/
|
|
21496
|
+
durability: "restored",
|
|
21497
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21498
|
+
* whether persisting is worth a SQLite commit. */
|
|
21499
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
21268
21500
|
};
|
|
21269
21501
|
/**
|
|
21270
21502
|
* Generic device-level status snapshot. Auto-registered by `BaseDevice`
|
|
@@ -21311,7 +21543,17 @@ onStatusChanged: { data: object({
|
|
|
21311
21543
|
schema: DeviceStatusSchema,
|
|
21312
21544
|
kind: "push"
|
|
21313
21545
|
},
|
|
21314
|
-
runtimeState: DeviceStatusSchema
|
|
21546
|
+
runtimeState: DeviceStatusSchema,
|
|
21547
|
+
/**
|
|
21548
|
+
* 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.
|
|
21549
|
+
*
|
|
21550
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21551
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21552
|
+
*/
|
|
21553
|
+
durability: "restored",
|
|
21554
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21555
|
+
* whether persisting is worth a SQLite commit. */
|
|
21556
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21315
21557
|
};
|
|
21316
21558
|
/**
|
|
21317
21559
|
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
@@ -21373,7 +21615,14 @@ onPressed: { data: DoorbellPressEventSchema } },
|
|
|
21373
21615
|
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
21374
21616
|
* without subscribing.
|
|
21375
21617
|
*/
|
|
21376
|
-
runtimeState: DoorbellStatusSchema
|
|
21618
|
+
runtimeState: DoorbellStatusSchema,
|
|
21619
|
+
/**
|
|
21620
|
+
* 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.
|
|
21621
|
+
*
|
|
21622
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21623
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21624
|
+
*/
|
|
21625
|
+
durability: "restored"
|
|
21377
21626
|
};
|
|
21378
21627
|
/**
|
|
21379
21628
|
* Enum-state sensor — a string value picked from a finite option set.
|
|
@@ -21413,7 +21662,17 @@ var enumSensorCapability = {
|
|
|
21413
21662
|
schema: EnumSensorStatusSchema,
|
|
21414
21663
|
kind: "push"
|
|
21415
21664
|
},
|
|
21416
|
-
runtimeState: EnumSensorStatusSchema
|
|
21665
|
+
runtimeState: EnumSensorStatusSchema,
|
|
21666
|
+
/**
|
|
21667
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`; 80 devices.
|
|
21668
|
+
*
|
|
21669
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21670
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21671
|
+
*/
|
|
21672
|
+
durability: "restored",
|
|
21673
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21674
|
+
* whether persisting is worth a SQLite commit. */
|
|
21675
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
21417
21676
|
};
|
|
21418
21677
|
/**
|
|
21419
21678
|
* Generic stateless event emitter. Installed on a `DeviceType.EventEmitter`
|
|
@@ -21449,7 +21708,14 @@ var eventEmitterCapability = {
|
|
|
21449
21708
|
schema: EventEmitterStatusSchema,
|
|
21450
21709
|
kind: "push"
|
|
21451
21710
|
},
|
|
21452
|
-
runtimeState: EventEmitterStatusSchema
|
|
21711
|
+
runtimeState: EventEmitterStatusSchema,
|
|
21712
|
+
/**
|
|
21713
|
+
* Runtime-state durability: **session** — `eventCountSinceStart` names its own scope.
|
|
21714
|
+
*
|
|
21715
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21716
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21717
|
+
*/
|
|
21718
|
+
durability: "session"
|
|
21453
21719
|
};
|
|
21454
21720
|
var EventItemSchema = object({
|
|
21455
21721
|
id: string(),
|
|
@@ -21730,7 +21996,14 @@ var fanControlCapability = {
|
|
|
21730
21996
|
* Runtime-state slice — mirrored by the kernel. UI fan speed
|
|
21731
21997
|
* sliders read `percentage` for live updates.
|
|
21732
21998
|
*/
|
|
21733
|
-
runtimeState: FanControlStatusSchema
|
|
21999
|
+
runtimeState: FanControlStatusSchema,
|
|
22000
|
+
/**
|
|
22001
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
22002
|
+
*
|
|
22003
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22004
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22005
|
+
*/
|
|
22006
|
+
durability: "session"
|
|
21734
22007
|
};
|
|
21735
22008
|
/**
|
|
21736
22009
|
* Per-device feature/identity probe slice. Holds the runtime-resolved
|
|
@@ -21806,7 +22079,14 @@ onProbeChanged: { data: object({
|
|
|
21806
22079
|
schema: FeatureProbeStatusSchema,
|
|
21807
22080
|
kind: "push"
|
|
21808
22081
|
},
|
|
21809
|
-
runtimeState: FeatureProbeStatusSchema
|
|
22082
|
+
runtimeState: FeatureProbeStatusSchema,
|
|
22083
|
+
/**
|
|
22084
|
+
* 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.
|
|
22085
|
+
*
|
|
22086
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22087
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22088
|
+
*/
|
|
22089
|
+
durability: "session"
|
|
21810
22090
|
};
|
|
21811
22091
|
/**
|
|
21812
22092
|
* Water leak / moisture sensor. Boolean "is liquid currently
|
|
@@ -21833,7 +22113,17 @@ var floodCapability = {
|
|
|
21833
22113
|
schema: FloodStatusSchema,
|
|
21834
22114
|
kind: "push"
|
|
21835
22115
|
},
|
|
21836
|
-
runtimeState: FloodStatusSchema
|
|
22116
|
+
runtimeState: FloodStatusSchema,
|
|
22117
|
+
/**
|
|
22118
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
22119
|
+
*
|
|
22120
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22121
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22122
|
+
*/
|
|
22123
|
+
durability: "restored",
|
|
22124
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22125
|
+
* whether persisting is worth a SQLite commit. */
|
|
22126
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21837
22127
|
};
|
|
21838
22128
|
/**
|
|
21839
22129
|
* Combustible-gas (LPG / methane / hydrogen) alarm sensor. Drives
|
|
@@ -21856,7 +22146,17 @@ var gasCapability = {
|
|
|
21856
22146
|
schema: GasStatusSchema,
|
|
21857
22147
|
kind: "push"
|
|
21858
22148
|
},
|
|
21859
|
-
runtimeState: GasStatusSchema
|
|
22149
|
+
runtimeState: GasStatusSchema,
|
|
22150
|
+
/**
|
|
22151
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
22152
|
+
*
|
|
22153
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22154
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22155
|
+
*/
|
|
22156
|
+
durability: "restored",
|
|
22157
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22158
|
+
* whether persisting is worth a SQLite commit. */
|
|
22159
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21860
22160
|
};
|
|
21861
22161
|
/**
|
|
21862
22162
|
* Humidifier / dehumidifier cap. Models HA `humidifier.*` entities —
|
|
@@ -21932,7 +22232,14 @@ var humidifierCapability = {
|
|
|
21932
22232
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
21933
22233
|
* slice for live humidity / mode changes.
|
|
21934
22234
|
*/
|
|
21935
|
-
runtimeState: HumidifierStatusSchema
|
|
22235
|
+
runtimeState: HumidifierStatusSchema,
|
|
22236
|
+
/**
|
|
22237
|
+
* Runtime-state durability: **session** — as `climate-control`.
|
|
22238
|
+
*
|
|
22239
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22240
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22241
|
+
*/
|
|
22242
|
+
durability: "session"
|
|
21936
22243
|
};
|
|
21937
22244
|
/**
|
|
21938
22245
|
* Single-metric humidity reading. Drives Home Assistant `sensor`
|
|
@@ -21968,7 +22275,17 @@ var humiditySensorCapability = {
|
|
|
21968
22275
|
schema: HumiditySensorStatusSchema,
|
|
21969
22276
|
kind: "push"
|
|
21970
22277
|
},
|
|
21971
|
-
runtimeState: HumiditySensorStatusSchema
|
|
22278
|
+
runtimeState: HumiditySensorStatusSchema,
|
|
22279
|
+
/**
|
|
22280
|
+
* Runtime-state durability: **restored** — as `numeric-sensor` (67 of 75 writes were the clock alone).
|
|
22281
|
+
*
|
|
22282
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22283
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22284
|
+
*/
|
|
22285
|
+
durability: "restored",
|
|
22286
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22287
|
+
* whether persisting is worth a SQLite commit. */
|
|
22288
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
21972
22289
|
};
|
|
21973
22290
|
/**
|
|
21974
22291
|
* Image display cap. Models a single still image exposed by an integration —
|
|
@@ -22006,7 +22323,14 @@ var imageCapability = {
|
|
|
22006
22323
|
* Runtime-state slice — mirrored by the kernel. The UI reads `url`
|
|
22007
22324
|
* directly and renders the still image.
|
|
22008
22325
|
*/
|
|
22009
|
-
runtimeState: ImageStatusSchema
|
|
22326
|
+
runtimeState: ImageStatusSchema,
|
|
22327
|
+
/**
|
|
22328
|
+
* Runtime-state durability: **session** — a snapshot URL is a session-scoped handle; a restored one points at nothing.
|
|
22329
|
+
*
|
|
22330
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22331
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22332
|
+
*/
|
|
22333
|
+
durability: "session"
|
|
22010
22334
|
};
|
|
22011
22335
|
/**
|
|
22012
22336
|
* Vendor-neutral image / picture-adjustment cap — the per-camera config
|
|
@@ -22155,7 +22479,17 @@ var imageSettingsCapability = {
|
|
|
22155
22479
|
schema: ImageSettingsStatusSchema,
|
|
22156
22480
|
kind: "poll"
|
|
22157
22481
|
},
|
|
22158
|
-
runtimeState: ImageSettingsStatusSchema
|
|
22482
|
+
runtimeState: ImageSettingsStatusSchema,
|
|
22483
|
+
/**
|
|
22484
|
+
* Runtime-state durability: **restored** — operator-set camera imaging; mutation-driven.
|
|
22485
|
+
*
|
|
22486
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22487
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22488
|
+
*/
|
|
22489
|
+
durability: "restored",
|
|
22490
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22491
|
+
* whether persisting is worth a SQLite commit. */
|
|
22492
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
22159
22493
|
};
|
|
22160
22494
|
/**
|
|
22161
22495
|
* integrations — system-scoped singleton capability for integration
|
|
@@ -22495,7 +22829,14 @@ var lawnMowerControlCapability = {
|
|
|
22495
22829
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
22496
22830
|
* slice for live activity + battery changes.
|
|
22497
22831
|
*/
|
|
22498
|
-
runtimeState: LawnMowerControlStatusSchema
|
|
22832
|
+
runtimeState: LawnMowerControlStatusSchema,
|
|
22833
|
+
/**
|
|
22834
|
+
* Runtime-state durability: **session** — as `vacuum-control`.
|
|
22835
|
+
*
|
|
22836
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22837
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22838
|
+
*/
|
|
22839
|
+
durability: "session"
|
|
22499
22840
|
};
|
|
22500
22841
|
/**
|
|
22501
22842
|
* local-network — hub-only singleton.
|
|
@@ -22701,7 +23042,17 @@ var lockControlCapability = {
|
|
|
22701
23042
|
* read `state` and disable themselves during `locking`/`unlocking`
|
|
22702
23043
|
* transitions.
|
|
22703
23044
|
*/
|
|
22704
|
-
runtimeState: LockControlStatusSchema
|
|
23045
|
+
runtimeState: LockControlStatusSchema,
|
|
23046
|
+
/**
|
|
23047
|
+
* Runtime-state durability: **restored** — a lock left locked must still read locked.
|
|
23048
|
+
*
|
|
23049
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23050
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23051
|
+
*/
|
|
23052
|
+
durability: "restored",
|
|
23053
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23054
|
+
* whether persisting is worth a SQLite commit. */
|
|
23055
|
+
volatileStateFields: ["lastChangedAt"]
|
|
22705
23056
|
};
|
|
22706
23057
|
/**
|
|
22707
23058
|
* Media-player cap. Models HA `media_player.*` (Sonos, Chromecast,
|
|
@@ -22863,7 +23214,14 @@ var mediaPlayerCapability = {
|
|
|
22863
23214
|
* full slice for live now-playing, volume, and progress updates
|
|
22864
23215
|
* without polling.
|
|
22865
23216
|
*/
|
|
22866
|
-
runtimeState: MediaPlayerStatusSchema
|
|
23217
|
+
runtimeState: MediaPlayerStatusSchema,
|
|
23218
|
+
/**
|
|
23219
|
+
* Runtime-state durability: **session** — a restored transport position describes a playback that stopped when the hub did.
|
|
23220
|
+
*
|
|
23221
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23222
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23223
|
+
*/
|
|
23224
|
+
durability: "session"
|
|
22867
23225
|
};
|
|
22868
23226
|
/**
|
|
22869
23227
|
* mesh-network — collection cap for mesh-VPN providers.
|
|
@@ -23127,7 +23485,14 @@ onMotionChanged: { data: MotionOnMotionChangedDataSchema } },
|
|
|
23127
23485
|
* `device.state.motion.value`. Reads never invoke the provider, so
|
|
23128
23486
|
* UIs and other addons can poll the cached state safely.
|
|
23129
23487
|
*/
|
|
23130
|
-
runtimeState: MotionStatusSchema
|
|
23488
|
+
runtimeState: MotionStatusSchema,
|
|
23489
|
+
/**
|
|
23490
|
+
* 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.
|
|
23491
|
+
*
|
|
23492
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23493
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23494
|
+
*/
|
|
23495
|
+
durability: "session"
|
|
23131
23496
|
};
|
|
23132
23497
|
/**
|
|
23133
23498
|
* Motion-trigger toggle for accessory devices.
|
|
@@ -23192,7 +23557,14 @@ var motionTriggerCapability = {
|
|
|
23192
23557
|
schema: MotionTriggerStatusSchema,
|
|
23193
23558
|
kind: "command-driven"
|
|
23194
23559
|
},
|
|
23195
|
-
runtimeState: MotionTriggerRuntimeStateSchema
|
|
23560
|
+
runtimeState: MotionTriggerRuntimeStateSchema,
|
|
23561
|
+
/**
|
|
23562
|
+
* 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.
|
|
23563
|
+
*
|
|
23564
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23565
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23566
|
+
*/
|
|
23567
|
+
durability: "session"
|
|
23196
23568
|
};
|
|
23197
23569
|
/**
|
|
23198
23570
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
@@ -23259,7 +23631,17 @@ var motionZonesCapability = {
|
|
|
23259
23631
|
schema: MotionZoneStatusSchema,
|
|
23260
23632
|
kind: "poll"
|
|
23261
23633
|
},
|
|
23262
|
-
runtimeState: MotionZoneStatusSchema
|
|
23634
|
+
runtimeState: MotionZoneStatusSchema,
|
|
23635
|
+
/**
|
|
23636
|
+
* 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.
|
|
23637
|
+
*
|
|
23638
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23639
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23640
|
+
*/
|
|
23641
|
+
durability: "restored",
|
|
23642
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23643
|
+
* whether persisting is worth a SQLite commit. */
|
|
23644
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23263
23645
|
};
|
|
23264
23646
|
/**
|
|
23265
23647
|
* On-camera AI object detection cap. Surfaces per-device the classes
|
|
@@ -23333,7 +23715,17 @@ var nativeObjectDetectionCapability = {
|
|
|
23333
23715
|
schema: NativeObjectDetectionStatusSchema,
|
|
23334
23716
|
kind: "push"
|
|
23335
23717
|
},
|
|
23336
|
-
runtimeState: NativeObjectDetectionRuntimeStateSchema
|
|
23718
|
+
runtimeState: NativeObjectDetectionRuntimeStateSchema,
|
|
23719
|
+
/**
|
|
23720
|
+
* 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.
|
|
23721
|
+
*
|
|
23722
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23723
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23724
|
+
*/
|
|
23725
|
+
durability: "restored",
|
|
23726
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23727
|
+
* whether persisting is worth a SQLite commit. */
|
|
23728
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23337
23729
|
};
|
|
23338
23730
|
/**
|
|
23339
23731
|
* network-quality — system-scoped singleton capability tracking RTT,
|
|
@@ -23667,7 +24059,14 @@ onSent: { data: object({
|
|
|
23667
24059
|
* form reads `supports` to gate optional fields; history pane reads
|
|
23668
24060
|
* `lastSentAt` / `lastError` / `queueDepth`.
|
|
23669
24061
|
*/
|
|
23670
|
-
runtimeState: NotifierStatusSchema
|
|
24062
|
+
runtimeState: NotifierStatusSchema,
|
|
24063
|
+
/**
|
|
24064
|
+
* Runtime-state durability: **session** — live queue depth and last-send state; a restored queue depth describes a queue that no longer exists.
|
|
24065
|
+
*
|
|
24066
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24067
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24068
|
+
*/
|
|
24069
|
+
durability: "session"
|
|
23671
24070
|
};
|
|
23672
24071
|
/**
|
|
23673
24072
|
* Generic numeric sensor — last-resort fallback when no typed numeric
|
|
@@ -23710,7 +24109,17 @@ var numericSensorCapability = {
|
|
|
23710
24109
|
schema: NumericSensorStatusSchema,
|
|
23711
24110
|
kind: "push"
|
|
23712
24111
|
},
|
|
23713
|
-
runtimeState: NumericSensorStatusSchema
|
|
24112
|
+
runtimeState: NumericSensorStatusSchema,
|
|
24113
|
+
/**
|
|
24114
|
+
* 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.
|
|
24115
|
+
*
|
|
24116
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24117
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24118
|
+
*/
|
|
24119
|
+
durability: "restored",
|
|
24120
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24121
|
+
* whether persisting is worth a SQLite commit. */
|
|
24122
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23714
24123
|
};
|
|
23715
24124
|
/**
|
|
23716
24125
|
* Generic on-screen-display (video overlay) cap. Each camera exposes
|
|
@@ -24095,7 +24504,14 @@ var petFeederCapability = {
|
|
|
24095
24504
|
* the full slice via `device.state.petFeeder.value` and refresh on
|
|
24096
24505
|
* every poll without re-querying the provider.
|
|
24097
24506
|
*/
|
|
24098
|
-
runtimeState: PetFeederStatusSchema
|
|
24507
|
+
runtimeState: PetFeederStatusSchema,
|
|
24508
|
+
/**
|
|
24509
|
+
* Runtime-state durability: **session** — live appliance state re-published on connect.
|
|
24510
|
+
*
|
|
24511
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24512
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24513
|
+
*/
|
|
24514
|
+
durability: "session"
|
|
24099
24515
|
};
|
|
24100
24516
|
var VehicleSchema = object({
|
|
24101
24517
|
id: string(),
|
|
@@ -24407,7 +24823,17 @@ var powerMeterCapability = {
|
|
|
24407
24823
|
schema: PowerMeterStatusSchema,
|
|
24408
24824
|
kind: "push"
|
|
24409
24825
|
},
|
|
24410
|
-
runtimeState: PowerMeterStatusSchema
|
|
24826
|
+
runtimeState: PowerMeterStatusSchema,
|
|
24827
|
+
/**
|
|
24828
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`; `kwhTotal` is an accumulator whose restored value is the baseline.
|
|
24829
|
+
*
|
|
24830
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24831
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24832
|
+
*/
|
|
24833
|
+
durability: "restored",
|
|
24834
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24835
|
+
* whether persisting is worth a SQLite commit. */
|
|
24836
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24411
24837
|
};
|
|
24412
24838
|
/**
|
|
24413
24839
|
* Presence cap. Models HA `person.*` and `device_tracker.*` entities
|
|
@@ -24464,7 +24890,17 @@ var presenceCapability = {
|
|
|
24464
24890
|
* the map pin is rendered (use `DeviceFeature.PresenceGps` for the
|
|
24465
24891
|
* pre-fetch fast-path check).
|
|
24466
24892
|
*/
|
|
24467
|
-
runtimeState: PresenceStatusSchema
|
|
24893
|
+
runtimeState: PresenceStatusSchema,
|
|
24894
|
+
/**
|
|
24895
|
+
* Runtime-state durability: **restored** — occupancy-relevant: the restored state is what an occupancy rule compares the first post-restart observation against.
|
|
24896
|
+
*
|
|
24897
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24898
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24899
|
+
*/
|
|
24900
|
+
durability: "restored",
|
|
24901
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24902
|
+
* whether persisting is worth a SQLite commit. */
|
|
24903
|
+
volatileStateFields: ["lastChangedAt"]
|
|
24468
24904
|
};
|
|
24469
24905
|
/**
|
|
24470
24906
|
* Atmospheric pressure reading in hectopascals. Drives Home Assistant
|
|
@@ -24500,7 +24936,17 @@ var pressureSensorCapability = {
|
|
|
24500
24936
|
schema: PressureSensorStatusSchema,
|
|
24501
24937
|
kind: "push"
|
|
24502
24938
|
},
|
|
24503
|
-
runtimeState: PressureSensorStatusSchema
|
|
24939
|
+
runtimeState: PressureSensorStatusSchema,
|
|
24940
|
+
/**
|
|
24941
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
24942
|
+
*
|
|
24943
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24944
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24945
|
+
*/
|
|
24946
|
+
durability: "restored",
|
|
24947
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24948
|
+
* whether persisting is worth a SQLite commit. */
|
|
24949
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24504
24950
|
};
|
|
24505
24951
|
/**
|
|
24506
24952
|
* PRIVACY — what the camera deliberately does not capture. Two planes:
|
|
@@ -24630,7 +25076,17 @@ var privacyMaskCapability = {
|
|
|
24630
25076
|
schema: PrivacyMaskStatusSchema,
|
|
24631
25077
|
kind: "poll"
|
|
24632
25078
|
},
|
|
24633
|
-
runtimeState: PrivacyMaskStatusSchema
|
|
25079
|
+
runtimeState: PrivacyMaskStatusSchema,
|
|
25080
|
+
/**
|
|
25081
|
+
* Runtime-state durability: **restored** — operator-drawn regions, zero real churn — 22 writes in 25 minutes, every one of them the clock.
|
|
25082
|
+
*
|
|
25083
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25084
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25085
|
+
*/
|
|
25086
|
+
durability: "restored",
|
|
25087
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25088
|
+
* whether persisting is worth a SQLite commit. */
|
|
25089
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24634
25090
|
};
|
|
24635
25091
|
var PtzPresetSchema = object({
|
|
24636
25092
|
id: string(),
|
|
@@ -24796,7 +25252,14 @@ var ptzAutotrackCapability = {
|
|
|
24796
25252
|
* fetch / cache / fallback logic out of the four cap methods —
|
|
24797
25253
|
* they become trampolines over `runtimeState`.
|
|
24798
25254
|
*/
|
|
24799
|
-
runtimeState: PtzAutotrackRuntimeStateSchema
|
|
25255
|
+
runtimeState: PtzAutotrackRuntimeStateSchema,
|
|
25256
|
+
/**
|
|
25257
|
+
* Runtime-state durability: **session** — mirrors the camera's own autotrack config, re-read on connect.
|
|
25258
|
+
*
|
|
25259
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25260
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25261
|
+
*/
|
|
25262
|
+
durability: "session"
|
|
24800
25263
|
};
|
|
24801
25264
|
DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
|
|
24802
25265
|
kind: "mutation",
|
|
@@ -25143,13 +25606,24 @@ method(object({
|
|
|
25143
25606
|
/** Playback-speed multiplier for the render (1 = realtime). */
|
|
25144
25607
|
var ExportSpeedSchema = number().min(.25).max(32);
|
|
25145
25608
|
/**
|
|
25146
|
-
* One dense interval, in SECONDS FROM THE EXPORT'S OWN `fromMs`.
|
|
25609
|
+
* One dense interval, in WALL-CLOCK SECONDS FROM THE EXPORT'S OWN `fromMs`.
|
|
25610
|
+
*
|
|
25611
|
+
* **Wall clock, not ffmpeg's `t`** — and the recorder translates. A caller
|
|
25612
|
+
* derives these bounds from things that happened at a TIME (a track's
|
|
25613
|
+
* `firstSeen`), while `t` runs over the source playlist: the concatenation of
|
|
25614
|
+
* every segment present for the range, with each recording GAP removed. The
|
|
25615
|
+
* two agree only on a window that recorded without one interruption, and only
|
|
25616
|
+
* the render side knows the segments, so the translation lives there
|
|
25617
|
+
* (`export-dense-map.ts`, addon-pipeline).
|
|
25618
|
+
*
|
|
25619
|
+
* It was not always so. These seconds were fed to `between(t,…)` verbatim, and
|
|
25620
|
+
* on a 10 h window holding 29,393 s of footage every range landed late by the
|
|
25621
|
+
* gap accumulated before it — up to 6,607 s, well past EOF. Nothing matched,
|
|
25622
|
+
* the video was a uniform timelapse, and the log line reported the five ranges
|
|
25623
|
+
* that had been ASKED for (2026-08-13, export `57d14363`, camera 615).
|
|
25147
25624
|
*
|
|
25148
|
-
* Relative and not absolute epoch
|
|
25149
|
-
*
|
|
25150
|
-
* playlist. Handing it absolute epochs would make every call site responsible
|
|
25151
|
-
* for the same subtraction, and the one that forgot would emit a filter that
|
|
25152
|
-
* selects nothing — silently, as a uniform timelapse.
|
|
25625
|
+
* Relative and not absolute epoch, because an absolute epoch would make every
|
|
25626
|
+
* call site responsible for the same subtraction.
|
|
25153
25627
|
*/
|
|
25154
25628
|
var ExportDenseRangeSchema = object({
|
|
25155
25629
|
fromSec: number().nonnegative(),
|
|
@@ -25435,7 +25909,14 @@ var sceneMonitorCapability = {
|
|
|
25435
25909
|
schema: SceneMonitorStatusSchema,
|
|
25436
25910
|
kind: "push"
|
|
25437
25911
|
},
|
|
25438
|
-
runtimeState: SceneMonitorStatusSchema
|
|
25912
|
+
runtimeState: SceneMonitorStatusSchema,
|
|
25913
|
+
/**
|
|
25914
|
+
* Runtime-state durability: **session** — re-derived from the current scene on the next evaluation.
|
|
25915
|
+
*
|
|
25916
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25917
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25918
|
+
*/
|
|
25919
|
+
durability: "session"
|
|
25439
25920
|
};
|
|
25440
25921
|
/**
|
|
25441
25922
|
* Per-stage gating mode applied to the zones a rule references.
|
|
@@ -25579,7 +26060,14 @@ var scriptRunnerCapability = {
|
|
|
25579
26060
|
* `isRunning` to render a spinner during execution and surfaces
|
|
25580
26061
|
* `lastError` / `lastRunSuccess` in the recent-runs panel.
|
|
25581
26062
|
*/
|
|
25582
|
-
runtimeState: ScriptRunnerStatusSchema
|
|
26063
|
+
runtimeState: ScriptRunnerStatusSchema,
|
|
26064
|
+
/**
|
|
26065
|
+
* Runtime-state durability: **session** — a restored `isRunning: true` describes a process that died with the previous hub.
|
|
26066
|
+
*
|
|
26067
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26068
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26069
|
+
*/
|
|
26070
|
+
durability: "session"
|
|
25583
26071
|
};
|
|
25584
26072
|
/**
|
|
25585
26073
|
* Smoke alarm sensor — boolean "is smoke currently detected" with
|
|
@@ -25606,7 +26094,17 @@ var smokeCapability = {
|
|
|
25606
26094
|
schema: SmokeStatusSchema,
|
|
25607
26095
|
kind: "push"
|
|
25608
26096
|
},
|
|
25609
|
-
runtimeState: SmokeStatusSchema
|
|
26097
|
+
runtimeState: SmokeStatusSchema,
|
|
26098
|
+
/**
|
|
26099
|
+
* Runtime-state durability: **restored** — a safety sensor must not read "clear" merely because the hub restarted.
|
|
26100
|
+
*
|
|
26101
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26102
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26103
|
+
*/
|
|
26104
|
+
durability: "restored",
|
|
26105
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26106
|
+
* whether persisting is worth a SQLite commit. */
|
|
26107
|
+
volatileStateFields: ["lastChangedAt"]
|
|
25610
26108
|
};
|
|
25611
26109
|
/**
|
|
25612
26110
|
* One publishable camera stream as its OWNING PROVIDER describes it — the same
|
|
@@ -25779,7 +26277,17 @@ var streamParamsCapability = {
|
|
|
25779
26277
|
schema: StreamParamsStatusSchema,
|
|
25780
26278
|
kind: "poll"
|
|
25781
26279
|
},
|
|
25782
|
-
runtimeState: StreamParamsStatusSchema
|
|
26280
|
+
runtimeState: StreamParamsStatusSchema,
|
|
26281
|
+
/**
|
|
26282
|
+
* Runtime-state durability: **restored** — operator-set encoder profile; mutation-driven.
|
|
26283
|
+
*
|
|
26284
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26285
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26286
|
+
*/
|
|
26287
|
+
durability: "restored",
|
|
26288
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26289
|
+
* whether persisting is worth a SQLite commit. */
|
|
26290
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
25783
26291
|
};
|
|
25784
26292
|
/**
|
|
25785
26293
|
* Generic on/off switch cap for accessory children (siren, floodlight,
|
|
@@ -25825,6 +26333,16 @@ var switchCapability = {
|
|
|
25825
26333
|
* not need to re-query the provider after a setState mutation.
|
|
25826
26334
|
*/
|
|
25827
26335
|
runtimeState: SwitchStatusSchema,
|
|
26336
|
+
/**
|
|
26337
|
+
* Runtime-state durability: **restored** — device state an operator reads as authoritative; 55 devices, transition-driven.
|
|
26338
|
+
*
|
|
26339
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26340
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26341
|
+
*/
|
|
26342
|
+
durability: "restored",
|
|
26343
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26344
|
+
* whether persisting is worth a SQLite commit. */
|
|
26345
|
+
volatileStateFields: ["lastChangedAt"],
|
|
25828
26346
|
settings: { bindings: [{
|
|
25829
26347
|
kind: "scalar",
|
|
25830
26348
|
statusPath: "on",
|
|
@@ -25904,7 +26422,17 @@ var tamperCapability = {
|
|
|
25904
26422
|
schema: TamperStatusSchema,
|
|
25905
26423
|
kind: "push"
|
|
25906
26424
|
},
|
|
25907
|
-
runtimeState: TamperStatusSchema
|
|
26425
|
+
runtimeState: TamperStatusSchema,
|
|
26426
|
+
/**
|
|
26427
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
26428
|
+
*
|
|
26429
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26430
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26431
|
+
*/
|
|
26432
|
+
durability: "restored",
|
|
26433
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26434
|
+
* whether persisting is worth a SQLite commit. */
|
|
26435
|
+
volatileStateFields: ["lastChangedAt"]
|
|
25908
26436
|
};
|
|
25909
26437
|
/**
|
|
25910
26438
|
* Single-metric temperature reading. Drives Home Assistant `sensor`
|
|
@@ -25949,7 +26477,17 @@ var temperatureSensorCapability = {
|
|
|
25949
26477
|
schema: TemperatureSensorStatusSchema,
|
|
25950
26478
|
kind: "push"
|
|
25951
26479
|
},
|
|
25952
|
-
runtimeState: TemperatureSensorStatusSchema
|
|
26480
|
+
runtimeState: TemperatureSensorStatusSchema,
|
|
26481
|
+
/**
|
|
26482
|
+
* Runtime-state durability: **restored** — as `numeric-sensor` (69 of 125 writes were the clock alone).
|
|
26483
|
+
*
|
|
26484
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26485
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26486
|
+
*/
|
|
26487
|
+
durability: "restored",
|
|
26488
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26489
|
+
* whether persisting is worth a SQLite commit. */
|
|
26490
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
25953
26491
|
};
|
|
25954
26492
|
/**
|
|
25955
26493
|
* toast — system-scoped singleton capability that streams toast
|
|
@@ -26018,7 +26556,14 @@ var updateCapability = {
|
|
|
26018
26556
|
schema: UpdateStatusSchema,
|
|
26019
26557
|
kind: "poll"
|
|
26020
26558
|
},
|
|
26021
|
-
runtimeState: UpdateStatusSchema
|
|
26559
|
+
runtimeState: UpdateStatusSchema,
|
|
26560
|
+
/**
|
|
26561
|
+
* Runtime-state durability: **session** — a restored `inProgress: true` describes an update that is no longer running; versions are re-probed at boot.
|
|
26562
|
+
*
|
|
26563
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26564
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26565
|
+
*/
|
|
26566
|
+
durability: "session"
|
|
26022
26567
|
};
|
|
26023
26568
|
var UserSummarySchema = object({
|
|
26024
26569
|
id: string(),
|
|
@@ -26352,7 +26897,14 @@ var vacuumControlCapability = {
|
|
|
26352
26897
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
26353
26898
|
* slice for live state + battery + fan-speed changes.
|
|
26354
26899
|
*/
|
|
26355
|
-
runtimeState: VacuumControlStatusSchema
|
|
26900
|
+
runtimeState: VacuumControlStatusSchema,
|
|
26901
|
+
/**
|
|
26902
|
+
* Runtime-state durability: **session** — as `media-player` — a restored `state: cleaning` is a robot that is not cleaning.
|
|
26903
|
+
*
|
|
26904
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26905
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26906
|
+
*/
|
|
26907
|
+
durability: "session"
|
|
26356
26908
|
};
|
|
26357
26909
|
var ValveStatusSchema = object({
|
|
26358
26910
|
/** Lifecycle state of the valve. */
|
|
@@ -26404,7 +26956,14 @@ var valveCapability = {
|
|
|
26404
26956
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
26405
26957
|
* slice for live position changes during a move.
|
|
26406
26958
|
*/
|
|
26407
|
-
runtimeState: ValveStatusSchema
|
|
26959
|
+
runtimeState: ValveStatusSchema,
|
|
26960
|
+
/**
|
|
26961
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
26962
|
+
*
|
|
26963
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26964
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26965
|
+
*/
|
|
26966
|
+
durability: "session"
|
|
26408
26967
|
};
|
|
26409
26968
|
/**
|
|
26410
26969
|
* Vibration / shake / impact sensor. Drives Home Assistant
|
|
@@ -26426,7 +26985,17 @@ var vibrationCapability = {
|
|
|
26426
26985
|
schema: VibrationStatusSchema,
|
|
26427
26986
|
kind: "push"
|
|
26428
26987
|
},
|
|
26429
|
-
runtimeState: VibrationStatusSchema
|
|
26988
|
+
runtimeState: VibrationStatusSchema,
|
|
26989
|
+
/**
|
|
26990
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
26991
|
+
*
|
|
26992
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26993
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26994
|
+
*/
|
|
26995
|
+
durability: "restored",
|
|
26996
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26997
|
+
* whether persisting is worth a SQLite commit. */
|
|
26998
|
+
volatileStateFields: ["lastChangedAt"]
|
|
26430
26999
|
};
|
|
26431
27000
|
/**
|
|
26432
27001
|
* Water heater / boiler cap. Models HA `water_heater.*` entities — a
|
|
@@ -26500,7 +27069,14 @@ var waterHeaterCapability = {
|
|
|
26500
27069
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
26501
27070
|
* slice for live temperature / mode / away changes.
|
|
26502
27071
|
*/
|
|
26503
|
-
runtimeState: WaterHeaterStatusSchema
|
|
27072
|
+
runtimeState: WaterHeaterStatusSchema,
|
|
27073
|
+
/**
|
|
27074
|
+
* Runtime-state durability: **session** — as `climate-control`.
|
|
27075
|
+
*
|
|
27076
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27077
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27078
|
+
*/
|
|
27079
|
+
durability: "session"
|
|
26504
27080
|
};
|
|
26505
27081
|
/**
|
|
26506
27082
|
* Weather provider cap. Models HA `weather.*` entities — a read-only
|
|
@@ -26559,7 +27135,14 @@ var weatherCapability = {
|
|
|
26559
27135
|
* Runtime-state slice — mirrored by the kernel. The UI reads the
|
|
26560
27136
|
* current conditions directly from the slice on each weather push.
|
|
26561
27137
|
*/
|
|
26562
|
-
runtimeState: WeatherStatusSchema
|
|
27138
|
+
runtimeState: WeatherStatusSchema,
|
|
27139
|
+
/**
|
|
27140
|
+
* Runtime-state durability: **session** — a forecast is stale the moment the hub is down; the provider re-fetches on connect.
|
|
27141
|
+
*
|
|
27142
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27143
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27144
|
+
*/
|
|
27145
|
+
durability: "session"
|
|
26563
27146
|
};
|
|
26564
27147
|
/**
|
|
26565
27148
|
* Per-zone occupancy aggregation produced by the analytics frame
|
|
@@ -26721,7 +27304,14 @@ var zoneAnalyticsCapability = {
|
|
|
26721
27304
|
* automatically; the explicit `getCurrentSnapshot` cap method is
|
|
26722
27305
|
* still useful for one-off polls without a subscription.
|
|
26723
27306
|
*/
|
|
26724
|
-
runtimeState: CameraOccupancySnapshotSchema
|
|
27307
|
+
runtimeState: CameraOccupancySnapshotSchema,
|
|
27308
|
+
/**
|
|
27309
|
+
* Runtime-state durability: **session** — per-frame analytics; with `audio-metrics` it is ~90 % of the offered write rate. Re-derived on the next frame.
|
|
27310
|
+
*
|
|
27311
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27312
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27313
|
+
*/
|
|
27314
|
+
durability: "session"
|
|
26725
27315
|
};
|
|
26726
27316
|
/**
|
|
26727
27317
|
* Stages a {@link ZoneRule} can apply to. Discriminator on the rules
|
|
@@ -26799,7 +27389,14 @@ var zoneRulesCapability = {
|
|
|
26799
27389
|
motion: array(ZoneRuleSchema).readonly(),
|
|
26800
27390
|
detection: array(ZoneRuleSchema).readonly(),
|
|
26801
27391
|
package: array(ZoneRuleSchema).readonly()
|
|
26802
|
-
})
|
|
27392
|
+
}),
|
|
27393
|
+
/**
|
|
27394
|
+
* Runtime-state durability: **restored** — operator intent, mutation-only, same argument as `zones`.
|
|
27395
|
+
*
|
|
27396
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27397
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27398
|
+
*/
|
|
27399
|
+
durability: "restored"
|
|
26803
27400
|
};
|
|
26804
27401
|
/**
|
|
26805
27402
|
* Accessory device helpers — shared across drivers.
|
|
@@ -33486,6 +34083,7 @@ Object.freeze({
|
|
|
33486
34083
|
"network-access": "ingress",
|
|
33487
34084
|
"smtp-provider": "email"
|
|
33488
34085
|
});
|
|
34086
|
+
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
33489
34087
|
new Set(["devices", "classes"]);
|
|
33490
34088
|
/**
|
|
33491
34089
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
@@ -33763,25 +34361,32 @@ object({
|
|
|
33763
34361
|
var NativeLeaseAdmissionSchema = _enum(["all", "inferred"]);
|
|
33764
34362
|
object({
|
|
33765
34363
|
/**
|
|
33766
|
-
* How
|
|
34364
|
+
* How many delivered frames the worker HOLDS at once, waiting for each one's
|
|
34365
|
+
* detection result.
|
|
33767
34366
|
*
|
|
33768
|
-
*
|
|
33769
|
-
*
|
|
33770
|
-
*
|
|
33771
|
-
*
|
|
33772
|
-
*
|
|
34367
|
+
* This replaced a TTL on 2026-08-13, and the replacement is the whole point:
|
|
34368
|
+
* a time window was never related to the event the pixels were waiting for.
|
|
34369
|
+
* A held frame now lives from delivery until the runner has its `FrameResult`
|
|
34370
|
+
* — at which moment the runner cuts the subject tiles it actually wanted and
|
|
34371
|
+
* releases the frame. The bound exists only so a runner that stops answering
|
|
34372
|
+
* cannot pin RAM: above it the OLDEST held frame is dropped and counted.
|
|
34373
|
+
*
|
|
34374
|
+
* Sizing: the steady state is `inferenceLatency × deliveredFps`, measured at
|
|
34375
|
+
* 40-160 ms × ≤25 fps = 1-4 frames. The default leaves headroom for a hiccup
|
|
34376
|
+
* without ever approaching the old resident set (43 frames × 24.9 MB at 4K).
|
|
34377
|
+
* Raising it does not buy hit rate — it buys tolerance for a slow runner, and
|
|
34378
|
+
* `holdOverflow` on the metrics line is what says you need it.
|
|
33773
34379
|
*/
|
|
33774
|
-
|
|
34380
|
+
holdFrames: number().int().min(1).max(64),
|
|
33775
34381
|
/**
|
|
33776
34382
|
* Hard per-decode-worker RAM ceiling for retained native frames, in MB.
|
|
33777
34383
|
*
|
|
33778
|
-
*
|
|
33779
|
-
*
|
|
33780
|
-
*
|
|
33781
|
-
*
|
|
33782
|
-
*
|
|
33783
|
-
*
|
|
33784
|
-
* rather than giving RAM back — lower this knob if RAM is what you wanted.
|
|
34384
|
+
* Since 2026-08-13 this is a SAFETY ceiling and nothing else: `holdFrames`
|
|
34385
|
+
* is what decides how much is held, and the ceiling is the number above which
|
|
34386
|
+
* something is wrong. Before that it was the effective cap — at 1024 MB with
|
|
34387
|
+
* a 2 800 ms TTL a 4K camera sat pinned at `leaseMb:1020, leaseFrames:43`
|
|
34388
|
+
* with the TTL expiring nothing, which is exactly the confusion the hold
|
|
34389
|
+
* removes. `leaseMb` / `leaseFrames` still say what is resident.
|
|
33785
34390
|
* `0` DISABLES the lease entirely and falls the worker back to the tiny
|
|
33786
34391
|
* leak-prone GPU surface ring (~85% crop miss; that is what the lease exists
|
|
33787
34392
|
* to replace).
|
|
@@ -33807,22 +34412,45 @@ object({
|
|
|
33807
34412
|
* there is the signal that some caller names frames outside the inference set
|
|
33808
34413
|
* and that this must go back to `all`.
|
|
33809
34414
|
*/
|
|
33810
|
-
admission: NativeLeaseAdmissionSchema
|
|
34415
|
+
admission: NativeLeaseAdmissionSchema,
|
|
34416
|
+
/**
|
|
34417
|
+
* RAM ceiling per decode worker, in MB, for the SUBJECT TILES — the
|
|
34418
|
+
* compressed native crops the worker cuts at the moment a frame's detection
|
|
34419
|
+
* result arrives, and keeps long after the frame itself is freed.
|
|
34420
|
+
*
|
|
34421
|
+
* This is the knob that replaced the old retention window, and it buys about
|
|
34422
|
+
* three orders of magnitude more of it: a tile is one subject at native
|
|
34423
|
+
* resolution, JPEG-encoded (~60-120 KB on a 4K person), against ~24.9 MB for
|
|
34424
|
+
* the frame it was cut from. A frame on which nothing was detected costs
|
|
34425
|
+
* nothing at all, which is the real change — the old lease paid per FRAME and
|
|
34426
|
+
* was interrogated per SUBJECT.
|
|
34427
|
+
*
|
|
34428
|
+
* `0` DISABLES tiles, leaving only the hold window and the ≤640 RAM
|
|
34429
|
+
* fallback — i.e. the pre-2026-08-13 miss profile. Set it there only to
|
|
34430
|
+
* reproduce that.
|
|
34431
|
+
*/
|
|
34432
|
+
tileBudgetMb: number().int().min(0).max(1024)
|
|
33811
34433
|
});
|
|
33812
34434
|
/**
|
|
33813
|
-
* The values in force when the operator has set nothing
|
|
33814
|
-
*
|
|
33815
|
-
*
|
|
34435
|
+
* The values in force when the operator has set nothing.
|
|
34436
|
+
*
|
|
34437
|
+
* `budgetMb` stays at 1024 on the day the hold landed, deliberately: it stopped
|
|
34438
|
+
* being the retention window and became the OOM ceiling, and lowering a ceiling
|
|
34439
|
+
* in the same change that redefines it would make a regression and a retune
|
|
34440
|
+
* indistinguishable. Cut it once `tileHits` / `holdOverflow` have been read on
|
|
34441
|
+
* live traffic.
|
|
33816
34442
|
*/
|
|
33817
34443
|
var DEFAULT_NATIVE_LEASE_SETTINGS = {
|
|
33818
|
-
|
|
34444
|
+
holdFrames: 8,
|
|
33819
34445
|
budgetMb: 1024,
|
|
33820
34446
|
activityMs: 15e3,
|
|
34447
|
+
tileBudgetMb: 64,
|
|
33821
34448
|
admission: "inferred"
|
|
33822
34449
|
};
|
|
33823
|
-
DEFAULT_NATIVE_LEASE_SETTINGS.
|
|
34450
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.holdFrames;
|
|
33824
34451
|
DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
|
|
33825
34452
|
DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
|
|
34453
|
+
DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
|
|
33826
34454
|
DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
33827
34455
|
//#endregion
|
|
33828
34456
|
//#region node_modules/@apocaliss92/nodewitt/node_modules/zod/v3/helpers/util.js
|