@camstack/addon-provider-wyze 0.2.14 → 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 +656 -69
- package/dist/addon.mjs +656 -69
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -10788,7 +10788,14 @@ var cameraStreamsCapability = {
|
|
|
10788
10788
|
low: string().optional()
|
|
10789
10789
|
}),
|
|
10790
10790
|
lastChangedAt: number()
|
|
10791
|
-
})
|
|
10791
|
+
}),
|
|
10792
|
+
/**
|
|
10793
|
+
* 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.
|
|
10794
|
+
*
|
|
10795
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
10796
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
10797
|
+
*/
|
|
10798
|
+
durability: "session"
|
|
10792
10799
|
};
|
|
10793
10800
|
/** Where a block runs. The operator chooses — a block driving a device on an
|
|
10794
10801
|
* agent is the reason placement is not fixed to the hub. */
|
|
@@ -11349,6 +11356,13 @@ var deviceDiscoveryCapability = {
|
|
|
11349
11356
|
kind: "poll"
|
|
11350
11357
|
},
|
|
11351
11358
|
runtimeState: DeviceDiscoveryStatusSchema.extend({ lastFetchedAt: number().int().nonnegative() }),
|
|
11359
|
+
/**
|
|
11360
|
+
* Runtime-state durability: **session** — 5.7 KB of scan output on the largest device, fully re-derivable by re-scanning.
|
|
11361
|
+
*
|
|
11362
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
11363
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
11364
|
+
*/
|
|
11365
|
+
durability: "session",
|
|
11352
11366
|
methods: {
|
|
11353
11367
|
/**
|
|
11354
11368
|
* Snapshot of the current `discovered` list. Returns the
|
|
@@ -13265,7 +13279,23 @@ var NotificationActionSchema = object({
|
|
|
13265
13279
|
* else — see `notification-center/action-token.ts` for what that does and
|
|
13266
13280
|
* does not buy.
|
|
13267
13281
|
*/
|
|
13268
|
-
destructive: boolean().optional()
|
|
13282
|
+
destructive: boolean().optional(),
|
|
13283
|
+
/**
|
|
13284
|
+
* How the tap should REACH the url.
|
|
13285
|
+
*
|
|
13286
|
+
* `navigate` (absent, and every button authored before this field) opens it:
|
|
13287
|
+
* the phone leaves the notification and shows whatever the callback returns.
|
|
13288
|
+
* That is right for a button whose answer the operator wants to read.
|
|
13289
|
+
*
|
|
13290
|
+
* `background` fires it as a POST and stays put. It exists for the buttons
|
|
13291
|
+
* whose whole point is not to interrupt — "silence this for 30 minutes" is
|
|
13292
|
+
* an answer to the notification, and being thrown into a browser tab to
|
|
13293
|
+
* confirm it costs more attention than the notification did. A backend that
|
|
13294
|
+
* cannot do a background call renders it as an ordinary link (the adapters
|
|
13295
|
+
* fall back rather than dropping the button), so this is a preference, never
|
|
13296
|
+
* a requirement.
|
|
13297
|
+
*/
|
|
13298
|
+
mode: _enum(["navigate", "background"]).optional()
|
|
13269
13299
|
});
|
|
13270
13300
|
/**
|
|
13271
13301
|
* The canonical notification. `body` is the only hard field (Apprise model).
|
|
@@ -14117,7 +14147,17 @@ var alarmPanelCapability = {
|
|
|
14117
14147
|
* full slice; renders an arm button per `availableModes` entry and
|
|
14118
14148
|
* a PIN field iff `requiresCode === true`.
|
|
14119
14149
|
*/
|
|
14120
|
-
runtimeState: AlarmPanelStatusSchema
|
|
14150
|
+
runtimeState: AlarmPanelStatusSchema,
|
|
14151
|
+
/**
|
|
14152
|
+
* Runtime-state durability: **restored** — armed state is the one thing a panel must not lose across a restart.
|
|
14153
|
+
*
|
|
14154
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
14155
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
14156
|
+
*/
|
|
14157
|
+
durability: "restored",
|
|
14158
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
14159
|
+
* whether persisting is worth a SQLite commit. */
|
|
14160
|
+
volatileStateFields: ["lastChangedAt"]
|
|
14121
14161
|
};
|
|
14122
14162
|
/**
|
|
14123
14163
|
* Shared geometry vocabulary for on-frame shape caps — privacy-mask,
|
|
@@ -14294,6 +14334,9 @@ var NcSystemEventConditionSchema = object({
|
|
|
14294
14334
|
nodeIds: array(string().min(1)).min(1).optional(),
|
|
14295
14335
|
packageNames: array(string().min(1)).min(1).optional()
|
|
14296
14336
|
});
|
|
14337
|
+
/** Hard ceiling on a window (24h). A snooze that could not expire would be an
|
|
14338
|
+
* outage the operator asked for once and forgot. */
|
|
14339
|
+
var NC_SNOOZE_MAX_MINUTES = 1440;
|
|
14297
14340
|
/** Weekly schedule — OR of windows; absence on the rule = always active. */
|
|
14298
14341
|
var NcScheduleSchema = object({
|
|
14299
14342
|
windows: array(object({
|
|
@@ -14670,15 +14713,15 @@ var NcConditionsSchema = object({
|
|
|
14670
14713
|
* (an `immediate` rule naming an `audio-*` class, one notification per
|
|
14671
14714
|
* classified sample) stays exactly as it was for rules that already use it.
|
|
14672
14715
|
*
|
|
14673
|
-
*
|
|
14674
|
-
* rather than an
|
|
14675
|
-
* (`camstack/src/data/notification-center.ts`, guarded by
|
|
14676
|
-
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor
|
|
14716
|
+
* In {@link NC_CONDITION_CATALOG} since P2, and the ORDER it got there is the
|
|
14717
|
+
* rule rather than an accident: the viewer mirrors the descriptor enums BY
|
|
14718
|
+
* HAND (`camstack/src/data/notification-center.ts`, guarded by
|
|
14719
|
+
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor strips the
|
|
14677
14720
|
* condition fields it does not know when a rule is saved from the phone.
|
|
14678
14721
|
* Publishing an editor for a condition the app cannot round-trip is how an
|
|
14679
|
-
* operator loses a rule's conditions by opening it — so the
|
|
14680
|
-
*
|
|
14681
|
-
*
|
|
14722
|
+
* operator loses a rule's conditions by opening it — so the viewer mirror
|
|
14723
|
+
* (P3, shipped) went FIRST, and the descriptor an editor renders from
|
|
14724
|
+
* follows here.
|
|
14682
14725
|
*/
|
|
14683
14726
|
audio: NcAudioConditionSchema.optional()
|
|
14684
14727
|
});
|
|
@@ -14914,6 +14957,30 @@ var NcRuleInputSchema = object({
|
|
|
14914
14957
|
*/
|
|
14915
14958
|
snoozeAllowGlobal: boolean().optional(),
|
|
14916
14959
|
/**
|
|
14960
|
+
* The snooze durations THIS rule's notification offers as buttons, in
|
|
14961
|
+
* minutes.
|
|
14962
|
+
*
|
|
14963
|
+
* Three states, and all three are distinct — which is exactly why this is
|
|
14964
|
+
* `.optional()` and never `.default()`. A Zod default does not run on the
|
|
14965
|
+
* addon cap path (three production failures in one day), so a schema default
|
|
14966
|
+
* would collapse the first two:
|
|
14967
|
+
*
|
|
14968
|
+
* | value | meaning |
|
|
14969
|
+
* | --- | --- |
|
|
14970
|
+
* | absent | the operator never said ⇒ {@link NC_DEFAULT_SNOOZE_MINUTES} |
|
|
14971
|
+
* | `[]` | **no snooze buttons on this rule** — the explicit override |
|
|
14972
|
+
* | a list | these choices, de-duplicated and sorted, at most four |
|
|
14973
|
+
*
|
|
14974
|
+
* `.max(4)` because the notifier's own action budget is small (ntfy allows
|
|
14975
|
+
* three buttons in total) and a rule that spent it all on snooze choices
|
|
14976
|
+
* would push its own tap-through actions off the notification.
|
|
14977
|
+
*
|
|
14978
|
+
* An empty list is NOT an alarm exemption: a rule the alarm is about, or
|
|
14979
|
+
* that arms the panel, is exempt automatically and cannot be silenced by a
|
|
14980
|
+
* window from anywhere (D133).
|
|
14981
|
+
*/
|
|
14982
|
+
snoozeOptions: array(number().int().min(1).max(NC_SNOOZE_MAX_MINUTES)).max(4).optional(),
|
|
14983
|
+
/**
|
|
14917
14984
|
* Devices this rule ACTUATES — arm the alarm, open a gate, turn on a light.
|
|
14918
14985
|
*
|
|
14919
14986
|
* This is what makes the rule set the alarm's trigger set without the alarm
|
|
@@ -15013,6 +15080,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
15013
15080
|
"device",
|
|
15014
15081
|
"package",
|
|
15015
15082
|
"occupancy",
|
|
15083
|
+
"audio",
|
|
15016
15084
|
"system"
|
|
15017
15085
|
]),
|
|
15018
15086
|
label: string(),
|
|
@@ -15031,6 +15099,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
15031
15099
|
"crossingSelect",
|
|
15032
15100
|
"polygonDraw",
|
|
15033
15101
|
"occupancy",
|
|
15102
|
+
"audio",
|
|
15034
15103
|
"deviceState",
|
|
15035
15104
|
"systemEvent"
|
|
15036
15105
|
]),
|
|
@@ -15182,7 +15251,20 @@ var NcSnoozeInputSchema = object({
|
|
|
15182
15251
|
ruleId: string().optional(),
|
|
15183
15252
|
/** Required when `scope: 'device'`. */
|
|
15184
15253
|
deviceId: number().int().optional(),
|
|
15185
|
-
|
|
15254
|
+
/**
|
|
15255
|
+
* Narrow the window to these subject classes — "the cat, not the person".
|
|
15256
|
+
*
|
|
15257
|
+
* ORTHOGONAL to `scope`, deliberately, and absent means EVERY class: that is
|
|
15258
|
+
* what every window authored before this field meant, so no persisted row
|
|
15259
|
+
* changes meaning and no client has to learn anything to keep working.
|
|
15260
|
+
*
|
|
15261
|
+
* It is what makes the window's real key `(deviceId, classes[])` and lets it
|
|
15262
|
+
* cross rules (D133): the operator points at a camera and a kind of thing,
|
|
15263
|
+
* not at whichever of their four rules happened to produce the notification
|
|
15264
|
+
* they are dismissing.
|
|
15265
|
+
*/
|
|
15266
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
15267
|
+
durationMinutes: number().int().min(1).max(NC_SNOOZE_MAX_MINUTES),
|
|
15186
15268
|
/**
|
|
15187
15269
|
* Silence this for EVERY recipient, not just the caller. Permission is
|
|
15188
15270
|
* checked server-side (the rule's `snoozeAllowGlobal`, or admin for the
|
|
@@ -15207,6 +15289,10 @@ var NcSnoozeSchema = object({
|
|
|
15207
15289
|
scope: NcSnoozeScopeSchema,
|
|
15208
15290
|
ruleId: string().optional(),
|
|
15209
15291
|
deviceId: number().int().optional(),
|
|
15292
|
+
/** Subject classes this window covers. ABSENT = every class — see
|
|
15293
|
+
* {@link NcSnoozeInputSchema.shape.classes}. Lives in the JSON blob and has
|
|
15294
|
+
* no SQLite column: nothing queries a window by class. */
|
|
15295
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
15210
15296
|
startedAt: number(),
|
|
15211
15297
|
/** Exclusive: at exactly this instant the snooze is over. Expiry is a
|
|
15212
15298
|
* COMPARISON, not a job — no sweeper can leave the operator silenced. */
|
|
@@ -17307,7 +17393,14 @@ var zonesCapability = {
|
|
|
17307
17393
|
* handle. Slice shape is `{ zones: Zone[] }` so future extensions
|
|
17308
17394
|
* (e.g. zone groupings) can sit alongside the polygon list.
|
|
17309
17395
|
*/
|
|
17310
|
-
runtimeState: object({ zones: array(ZoneSchema).readonly() })
|
|
17396
|
+
runtimeState: object({ zones: array(ZoneSchema).readonly() }),
|
|
17397
|
+
/**
|
|
17398
|
+
* 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.
|
|
17399
|
+
*
|
|
17400
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
17401
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
17402
|
+
*/
|
|
17403
|
+
durability: "restored"
|
|
17311
17404
|
};
|
|
17312
17405
|
/**
|
|
17313
17406
|
* A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
|
|
@@ -20201,7 +20294,17 @@ var airQualitySensorCapability = {
|
|
|
20201
20294
|
schema: AirQualitySensorStatusSchema,
|
|
20202
20295
|
kind: "push"
|
|
20203
20296
|
},
|
|
20204
|
-
runtimeState: AirQualitySensorStatusSchema
|
|
20297
|
+
runtimeState: AirQualitySensorStatusSchema,
|
|
20298
|
+
/**
|
|
20299
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
20300
|
+
*
|
|
20301
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20302
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20303
|
+
*/
|
|
20304
|
+
durability: "restored",
|
|
20305
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20306
|
+
* whether persisting is worth a SQLite commit. */
|
|
20307
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
20205
20308
|
};
|
|
20206
20309
|
/**
|
|
20207
20310
|
* Ambient illuminance reading in lux. Drives Home Assistant `sensor`
|
|
@@ -20233,7 +20336,17 @@ var ambientLightSensorCapability = {
|
|
|
20233
20336
|
schema: AmbientLightSensorStatusSchema,
|
|
20234
20337
|
kind: "push"
|
|
20235
20338
|
},
|
|
20236
|
-
runtimeState: AmbientLightSensorStatusSchema
|
|
20339
|
+
runtimeState: AmbientLightSensorStatusSchema,
|
|
20340
|
+
/**
|
|
20341
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
20342
|
+
*
|
|
20343
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20344
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20345
|
+
*/
|
|
20346
|
+
durability: "restored",
|
|
20347
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20348
|
+
* whether persisting is worth a SQLite commit. */
|
|
20349
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
20237
20350
|
};
|
|
20238
20351
|
/**
|
|
20239
20352
|
* Per-class audio metrics aggregated over a sliding window.
|
|
@@ -20351,7 +20464,14 @@ var audioMetricsCapability = {
|
|
|
20351
20464
|
}), AudioMetricsHistorySchema)
|
|
20352
20465
|
},
|
|
20353
20466
|
/** Reactive runtime-state mirror — live `device.state.audioMetrics.value`. */
|
|
20354
|
-
runtimeState: AudioMetricsSnapshotSchema
|
|
20467
|
+
runtimeState: AudioMetricsSnapshotSchema,
|
|
20468
|
+
/**
|
|
20469
|
+
* 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.
|
|
20470
|
+
*
|
|
20471
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20472
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20473
|
+
*/
|
|
20474
|
+
durability: "session"
|
|
20355
20475
|
};
|
|
20356
20476
|
/**
|
|
20357
20477
|
* Automation-control cap. Models HA `automation.*` entities on
|
|
@@ -20413,7 +20533,14 @@ var automationControlCapability = {
|
|
|
20413
20533
|
* reads `enabled` (toggle) + `isRunning` (spinner) + `lastError`
|
|
20414
20534
|
* (badge) directly.
|
|
20415
20535
|
*/
|
|
20416
|
-
runtimeState: AutomationControlStatusSchema
|
|
20536
|
+
runtimeState: AutomationControlStatusSchema,
|
|
20537
|
+
/**
|
|
20538
|
+
* 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.
|
|
20539
|
+
*
|
|
20540
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20541
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20542
|
+
*/
|
|
20543
|
+
durability: "session"
|
|
20417
20544
|
};
|
|
20418
20545
|
/**
|
|
20419
20546
|
* Battery status snapshot. Emitted by providers whose device is
|
|
@@ -20519,7 +20646,17 @@ onStatusChanged: { data: object({
|
|
|
20519
20646
|
* via `device.runtimeState.getCapState('battery')` regardless of
|
|
20520
20647
|
* the underlying driver.
|
|
20521
20648
|
*/
|
|
20522
|
-
runtimeState: BatteryStatusSchema
|
|
20649
|
+
runtimeState: BatteryStatusSchema,
|
|
20650
|
+
/**
|
|
20651
|
+
* 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.
|
|
20652
|
+
*
|
|
20653
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20654
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20655
|
+
*/
|
|
20656
|
+
durability: "restored",
|
|
20657
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20658
|
+
* whether persisting is worth a SQLite commit. */
|
|
20659
|
+
volatileStateFields: ["lastUpdated"]
|
|
20523
20660
|
};
|
|
20524
20661
|
/**
|
|
20525
20662
|
* Generic boolean sensor — last-resort fallback when no domain-
|
|
@@ -20548,7 +20685,17 @@ var binaryCapability = {
|
|
|
20548
20685
|
schema: BinaryStatusSchema,
|
|
20549
20686
|
kind: "push"
|
|
20550
20687
|
},
|
|
20551
|
-
runtimeState: BinaryStatusSchema
|
|
20688
|
+
runtimeState: BinaryStatusSchema,
|
|
20689
|
+
/**
|
|
20690
|
+
* Runtime-state durability: **restored** — transition-driven sensor state; the restored value gives the boot comparison.
|
|
20691
|
+
*
|
|
20692
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20693
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20694
|
+
*/
|
|
20695
|
+
durability: "restored",
|
|
20696
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20697
|
+
* whether persisting is worth a SQLite commit. */
|
|
20698
|
+
volatileStateFields: ["lastChangedAt"]
|
|
20552
20699
|
};
|
|
20553
20700
|
/**
|
|
20554
20701
|
* Dimmable-light brightness control. Co-exists with `switch` on the
|
|
@@ -20601,7 +20748,14 @@ onBrightnessChanged: { data: object({
|
|
|
20601
20748
|
* by the kernel. Read via `device.state.brightness.value` so UI
|
|
20602
20749
|
* sliders surface the current level without polling the provider.
|
|
20603
20750
|
*/
|
|
20604
|
-
runtimeState: BrightnessStatusSchema
|
|
20751
|
+
runtimeState: BrightnessStatusSchema,
|
|
20752
|
+
/**
|
|
20753
|
+
* Runtime-state durability: **session** — live lamp state, re-published by the provider on connect.
|
|
20754
|
+
*
|
|
20755
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20756
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20757
|
+
*/
|
|
20758
|
+
durability: "session"
|
|
20605
20759
|
};
|
|
20606
20760
|
DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _void(), {
|
|
20607
20761
|
kind: "mutation",
|
|
@@ -20689,7 +20843,17 @@ var carbonMonoxideCapability = {
|
|
|
20689
20843
|
schema: CarbonMonoxideStatusSchema,
|
|
20690
20844
|
kind: "push"
|
|
20691
20845
|
},
|
|
20692
|
-
runtimeState: CarbonMonoxideStatusSchema
|
|
20846
|
+
runtimeState: CarbonMonoxideStatusSchema,
|
|
20847
|
+
/**
|
|
20848
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
20849
|
+
*
|
|
20850
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20851
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20852
|
+
*/
|
|
20853
|
+
durability: "restored",
|
|
20854
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20855
|
+
* whether persisting is worth a SQLite commit. */
|
|
20856
|
+
volatileStateFields: ["lastChangedAt"]
|
|
20693
20857
|
};
|
|
20694
20858
|
/**
|
|
20695
20859
|
* HVAC / climate control cap. Models the full surface of a HA
|
|
@@ -20849,7 +21013,14 @@ var climateControlCapability = {
|
|
|
20849
21013
|
* the full slice via `device.state.climate-control.value` and refresh
|
|
20850
21014
|
* on every push without re-querying the provider.
|
|
20851
21015
|
*/
|
|
20852
|
-
runtimeState: ClimateControlStatusSchema
|
|
21016
|
+
runtimeState: ClimateControlStatusSchema,
|
|
21017
|
+
/**
|
|
21018
|
+
* Runtime-state durability: **session** — as `brightness`; `currentTemp` moves continuously and is re-published on connect.
|
|
21019
|
+
*
|
|
21020
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21021
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21022
|
+
*/
|
|
21023
|
+
durability: "session"
|
|
20853
21024
|
};
|
|
20854
21025
|
/**
|
|
20855
21026
|
* Color-light cap. Coexists with `switch` (on/off) and `brightness`
|
|
@@ -20959,7 +21130,14 @@ onColorChanged: { data: object({
|
|
|
20959
21130
|
* kernel. Read via `device.state.color.value` so UI pickers surface
|
|
20960
21131
|
* the current chromaticity without polling the provider.
|
|
20961
21132
|
*/
|
|
20962
|
-
runtimeState: ColorStatusSchema
|
|
21133
|
+
runtimeState: ColorStatusSchema,
|
|
21134
|
+
/**
|
|
21135
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
21136
|
+
*
|
|
21137
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21138
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21139
|
+
*/
|
|
21140
|
+
durability: "session"
|
|
20963
21141
|
};
|
|
20964
21142
|
var ConnectionTestOutcomeSchema = discriminatedUnion("outcome", [
|
|
20965
21143
|
object({
|
|
@@ -21017,7 +21195,17 @@ var connectivityCapability = {
|
|
|
21017
21195
|
schema: ConnectivityStatusSchema,
|
|
21018
21196
|
kind: "push"
|
|
21019
21197
|
},
|
|
21020
|
-
runtimeState: ConnectivityStatusSchema
|
|
21198
|
+
runtimeState: ConnectivityStatusSchema,
|
|
21199
|
+
/**
|
|
21200
|
+
* Runtime-state durability: **restored** — same shape and same argument as `device-status`, for links rather than devices.
|
|
21201
|
+
*
|
|
21202
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21203
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21204
|
+
*/
|
|
21205
|
+
durability: "restored",
|
|
21206
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21207
|
+
* whether persisting is worth a SQLite commit. */
|
|
21208
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21021
21209
|
};
|
|
21022
21210
|
/**
|
|
21023
21211
|
* Generic device-consumables capability — surfaces a device's
|
|
@@ -21099,7 +21287,14 @@ reset: method(object({
|
|
|
21099
21287
|
}
|
|
21100
21288
|
}
|
|
21101
21289
|
},
|
|
21102
|
-
runtimeState: ConsumablesStatusSchema.extend({ lastFetchedAt: number() })
|
|
21290
|
+
runtimeState: ConsumablesStatusSchema.extend({ lastFetchedAt: number() }),
|
|
21291
|
+
/**
|
|
21292
|
+
* Runtime-state durability: **session** — the authority is the appliance; the provider re-reads the whole item array on connect.
|
|
21293
|
+
*
|
|
21294
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21295
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21296
|
+
*/
|
|
21297
|
+
durability: "session"
|
|
21103
21298
|
};
|
|
21104
21299
|
/**
|
|
21105
21300
|
* Door / window / opening / garage / valve contact sensor. Boolean
|
|
@@ -21130,7 +21325,17 @@ var contactCapability = {
|
|
|
21130
21325
|
schema: ContactStatusSchema,
|
|
21131
21326
|
kind: "push"
|
|
21132
21327
|
},
|
|
21133
|
-
runtimeState: ContactStatusSchema
|
|
21328
|
+
runtimeState: ContactStatusSchema,
|
|
21329
|
+
/**
|
|
21330
|
+
* Runtime-state durability: **restored** — a door left open across a restart must still read open.
|
|
21331
|
+
*
|
|
21332
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21333
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21334
|
+
*/
|
|
21335
|
+
durability: "restored",
|
|
21336
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21337
|
+
* whether persisting is worth a SQLite commit. */
|
|
21338
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21134
21339
|
};
|
|
21135
21340
|
/**
|
|
21136
21341
|
* Status slice — flat object (the framework's `runtimeState` contract
|
|
@@ -21236,7 +21441,14 @@ var controlCapability = {
|
|
|
21236
21441
|
* dropdown / text field / date picker) read the slice's discriminant
|
|
21237
21442
|
* and value directly without polling the provider.
|
|
21238
21443
|
*/
|
|
21239
|
-
runtimeState: ControlStatusSchema
|
|
21444
|
+
runtimeState: ControlStatusSchema,
|
|
21445
|
+
/**
|
|
21446
|
+
* Runtime-state durability: **session** — a generic control mirrors an external entity that re-publishes on connect; the options array is re-derived with it.
|
|
21447
|
+
*
|
|
21448
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21449
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21450
|
+
*/
|
|
21451
|
+
durability: "session"
|
|
21240
21452
|
};
|
|
21241
21453
|
var CoverStatusSchema = object({
|
|
21242
21454
|
/** Lifecycle state of the cover. */
|
|
@@ -21297,7 +21509,17 @@ var coverCapability = {
|
|
|
21297
21509
|
* Runtime-state slice — mirrored by the kernel. UI controls watch
|
|
21298
21510
|
* the slice for live position changes during a move.
|
|
21299
21511
|
*/
|
|
21300
|
-
runtimeState: CoverStatusSchema
|
|
21512
|
+
runtimeState: CoverStatusSchema,
|
|
21513
|
+
/**
|
|
21514
|
+
* Runtime-state durability: **restored** — position survives a restart on the device; the mirror should agree at boot rather than read blank.
|
|
21515
|
+
*
|
|
21516
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21517
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21518
|
+
*/
|
|
21519
|
+
durability: "restored",
|
|
21520
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21521
|
+
* whether persisting is worth a SQLite commit. */
|
|
21522
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21301
21523
|
};
|
|
21302
21524
|
/**
|
|
21303
21525
|
* Vendor-neutral day/night (IR-cut) control — the per-camera config cap
|
|
@@ -21391,7 +21613,17 @@ var dayNightCapability = {
|
|
|
21391
21613
|
schema: DayNightStatusSchema,
|
|
21392
21614
|
kind: "poll"
|
|
21393
21615
|
},
|
|
21394
|
-
runtimeState: DayNightStatusSchema
|
|
21616
|
+
runtimeState: DayNightStatusSchema,
|
|
21617
|
+
/**
|
|
21618
|
+
* Runtime-state durability: **restored** — operator-set IR-cut behaviour; mutation-driven.
|
|
21619
|
+
*
|
|
21620
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21621
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21622
|
+
*/
|
|
21623
|
+
durability: "restored",
|
|
21624
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21625
|
+
* whether persisting is worth a SQLite commit. */
|
|
21626
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
21395
21627
|
};
|
|
21396
21628
|
/**
|
|
21397
21629
|
* Generic device-level status snapshot. Auto-registered by `BaseDevice`
|
|
@@ -21438,7 +21670,17 @@ onStatusChanged: { data: object({
|
|
|
21438
21670
|
schema: DeviceStatusSchema,
|
|
21439
21671
|
kind: "push"
|
|
21440
21672
|
},
|
|
21441
|
-
runtimeState: DeviceStatusSchema
|
|
21673
|
+
runtimeState: DeviceStatusSchema,
|
|
21674
|
+
/**
|
|
21675
|
+
* 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.
|
|
21676
|
+
*
|
|
21677
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21678
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21679
|
+
*/
|
|
21680
|
+
durability: "restored",
|
|
21681
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21682
|
+
* whether persisting is worth a SQLite commit. */
|
|
21683
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21442
21684
|
};
|
|
21443
21685
|
/**
|
|
21444
21686
|
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
@@ -21500,7 +21742,14 @@ onPressed: { data: DoorbellPressEventSchema } },
|
|
|
21500
21742
|
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
21501
21743
|
* without subscribing.
|
|
21502
21744
|
*/
|
|
21503
|
-
runtimeState: DoorbellStatusSchema
|
|
21745
|
+
runtimeState: DoorbellStatusSchema,
|
|
21746
|
+
/**
|
|
21747
|
+
* 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.
|
|
21748
|
+
*
|
|
21749
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21750
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21751
|
+
*/
|
|
21752
|
+
durability: "restored"
|
|
21504
21753
|
};
|
|
21505
21754
|
/**
|
|
21506
21755
|
* Enum-state sensor — a string value picked from a finite option set.
|
|
@@ -21540,7 +21789,17 @@ var enumSensorCapability = {
|
|
|
21540
21789
|
schema: EnumSensorStatusSchema,
|
|
21541
21790
|
kind: "push"
|
|
21542
21791
|
},
|
|
21543
|
-
runtimeState: EnumSensorStatusSchema
|
|
21792
|
+
runtimeState: EnumSensorStatusSchema,
|
|
21793
|
+
/**
|
|
21794
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`; 80 devices.
|
|
21795
|
+
*
|
|
21796
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21797
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21798
|
+
*/
|
|
21799
|
+
durability: "restored",
|
|
21800
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21801
|
+
* whether persisting is worth a SQLite commit. */
|
|
21802
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
21544
21803
|
};
|
|
21545
21804
|
/**
|
|
21546
21805
|
* Generic stateless event emitter. Installed on a `DeviceType.EventEmitter`
|
|
@@ -21576,7 +21835,14 @@ var eventEmitterCapability = {
|
|
|
21576
21835
|
schema: EventEmitterStatusSchema,
|
|
21577
21836
|
kind: "push"
|
|
21578
21837
|
},
|
|
21579
|
-
runtimeState: EventEmitterStatusSchema
|
|
21838
|
+
runtimeState: EventEmitterStatusSchema,
|
|
21839
|
+
/**
|
|
21840
|
+
* Runtime-state durability: **session** — `eventCountSinceStart` names its own scope.
|
|
21841
|
+
*
|
|
21842
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21843
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21844
|
+
*/
|
|
21845
|
+
durability: "session"
|
|
21580
21846
|
};
|
|
21581
21847
|
var EventItemSchema = object({
|
|
21582
21848
|
id: string(),
|
|
@@ -21857,7 +22123,14 @@ var fanControlCapability = {
|
|
|
21857
22123
|
* Runtime-state slice — mirrored by the kernel. UI fan speed
|
|
21858
22124
|
* sliders read `percentage` for live updates.
|
|
21859
22125
|
*/
|
|
21860
|
-
runtimeState: FanControlStatusSchema
|
|
22126
|
+
runtimeState: FanControlStatusSchema,
|
|
22127
|
+
/**
|
|
22128
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
22129
|
+
*
|
|
22130
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22131
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22132
|
+
*/
|
|
22133
|
+
durability: "session"
|
|
21861
22134
|
};
|
|
21862
22135
|
/**
|
|
21863
22136
|
* Per-device feature/identity probe slice. Holds the runtime-resolved
|
|
@@ -21933,7 +22206,14 @@ onProbeChanged: { data: object({
|
|
|
21933
22206
|
schema: FeatureProbeStatusSchema,
|
|
21934
22207
|
kind: "push"
|
|
21935
22208
|
},
|
|
21936
|
-
runtimeState: FeatureProbeStatusSchema
|
|
22209
|
+
runtimeState: FeatureProbeStatusSchema,
|
|
22210
|
+
/**
|
|
22211
|
+
* 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.
|
|
22212
|
+
*
|
|
22213
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22214
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22215
|
+
*/
|
|
22216
|
+
durability: "session"
|
|
21937
22217
|
};
|
|
21938
22218
|
/**
|
|
21939
22219
|
* Water leak / moisture sensor. Boolean "is liquid currently
|
|
@@ -21960,7 +22240,17 @@ var floodCapability = {
|
|
|
21960
22240
|
schema: FloodStatusSchema,
|
|
21961
22241
|
kind: "push"
|
|
21962
22242
|
},
|
|
21963
|
-
runtimeState: FloodStatusSchema
|
|
22243
|
+
runtimeState: FloodStatusSchema,
|
|
22244
|
+
/**
|
|
22245
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
22246
|
+
*
|
|
22247
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22248
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22249
|
+
*/
|
|
22250
|
+
durability: "restored",
|
|
22251
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22252
|
+
* whether persisting is worth a SQLite commit. */
|
|
22253
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21964
22254
|
};
|
|
21965
22255
|
/**
|
|
21966
22256
|
* Combustible-gas (LPG / methane / hydrogen) alarm sensor. Drives
|
|
@@ -21983,7 +22273,17 @@ var gasCapability = {
|
|
|
21983
22273
|
schema: GasStatusSchema,
|
|
21984
22274
|
kind: "push"
|
|
21985
22275
|
},
|
|
21986
|
-
runtimeState: GasStatusSchema
|
|
22276
|
+
runtimeState: GasStatusSchema,
|
|
22277
|
+
/**
|
|
22278
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
22279
|
+
*
|
|
22280
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22281
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22282
|
+
*/
|
|
22283
|
+
durability: "restored",
|
|
22284
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22285
|
+
* whether persisting is worth a SQLite commit. */
|
|
22286
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21987
22287
|
};
|
|
21988
22288
|
/**
|
|
21989
22289
|
* Humidifier / dehumidifier cap. Models HA `humidifier.*` entities —
|
|
@@ -22059,7 +22359,14 @@ var humidifierCapability = {
|
|
|
22059
22359
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
22060
22360
|
* slice for live humidity / mode changes.
|
|
22061
22361
|
*/
|
|
22062
|
-
runtimeState: HumidifierStatusSchema
|
|
22362
|
+
runtimeState: HumidifierStatusSchema,
|
|
22363
|
+
/**
|
|
22364
|
+
* Runtime-state durability: **session** — as `climate-control`.
|
|
22365
|
+
*
|
|
22366
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22367
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22368
|
+
*/
|
|
22369
|
+
durability: "session"
|
|
22063
22370
|
};
|
|
22064
22371
|
/**
|
|
22065
22372
|
* Single-metric humidity reading. Drives Home Assistant `sensor`
|
|
@@ -22095,7 +22402,17 @@ var humiditySensorCapability = {
|
|
|
22095
22402
|
schema: HumiditySensorStatusSchema,
|
|
22096
22403
|
kind: "push"
|
|
22097
22404
|
},
|
|
22098
|
-
runtimeState: HumiditySensorStatusSchema
|
|
22405
|
+
runtimeState: HumiditySensorStatusSchema,
|
|
22406
|
+
/**
|
|
22407
|
+
* Runtime-state durability: **restored** — as `numeric-sensor` (67 of 75 writes were the clock alone).
|
|
22408
|
+
*
|
|
22409
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22410
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22411
|
+
*/
|
|
22412
|
+
durability: "restored",
|
|
22413
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22414
|
+
* whether persisting is worth a SQLite commit. */
|
|
22415
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
22099
22416
|
};
|
|
22100
22417
|
/**
|
|
22101
22418
|
* Image display cap. Models a single still image exposed by an integration —
|
|
@@ -22133,7 +22450,14 @@ var imageCapability = {
|
|
|
22133
22450
|
* Runtime-state slice — mirrored by the kernel. The UI reads `url`
|
|
22134
22451
|
* directly and renders the still image.
|
|
22135
22452
|
*/
|
|
22136
|
-
runtimeState: ImageStatusSchema
|
|
22453
|
+
runtimeState: ImageStatusSchema,
|
|
22454
|
+
/**
|
|
22455
|
+
* Runtime-state durability: **session** — a snapshot URL is a session-scoped handle; a restored one points at nothing.
|
|
22456
|
+
*
|
|
22457
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22458
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22459
|
+
*/
|
|
22460
|
+
durability: "session"
|
|
22137
22461
|
};
|
|
22138
22462
|
/**
|
|
22139
22463
|
* Vendor-neutral image / picture-adjustment cap — the per-camera config
|
|
@@ -22282,7 +22606,17 @@ var imageSettingsCapability = {
|
|
|
22282
22606
|
schema: ImageSettingsStatusSchema,
|
|
22283
22607
|
kind: "poll"
|
|
22284
22608
|
},
|
|
22285
|
-
runtimeState: ImageSettingsStatusSchema
|
|
22609
|
+
runtimeState: ImageSettingsStatusSchema,
|
|
22610
|
+
/**
|
|
22611
|
+
* Runtime-state durability: **restored** — operator-set camera imaging; mutation-driven.
|
|
22612
|
+
*
|
|
22613
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22614
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22615
|
+
*/
|
|
22616
|
+
durability: "restored",
|
|
22617
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22618
|
+
* whether persisting is worth a SQLite commit. */
|
|
22619
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
22286
22620
|
};
|
|
22287
22621
|
/**
|
|
22288
22622
|
* integrations — system-scoped singleton capability for integration
|
|
@@ -22673,7 +23007,14 @@ var lawnMowerControlCapability = {
|
|
|
22673
23007
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
22674
23008
|
* slice for live activity + battery changes.
|
|
22675
23009
|
*/
|
|
22676
|
-
runtimeState: LawnMowerControlStatusSchema
|
|
23010
|
+
runtimeState: LawnMowerControlStatusSchema,
|
|
23011
|
+
/**
|
|
23012
|
+
* Runtime-state durability: **session** — as `vacuum-control`.
|
|
23013
|
+
*
|
|
23014
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23015
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23016
|
+
*/
|
|
23017
|
+
durability: "session"
|
|
22677
23018
|
};
|
|
22678
23019
|
/**
|
|
22679
23020
|
* local-network — hub-only singleton.
|
|
@@ -22879,7 +23220,17 @@ var lockControlCapability = {
|
|
|
22879
23220
|
* read `state` and disable themselves during `locking`/`unlocking`
|
|
22880
23221
|
* transitions.
|
|
22881
23222
|
*/
|
|
22882
|
-
runtimeState: LockControlStatusSchema
|
|
23223
|
+
runtimeState: LockControlStatusSchema,
|
|
23224
|
+
/**
|
|
23225
|
+
* Runtime-state durability: **restored** — a lock left locked must still read locked.
|
|
23226
|
+
*
|
|
23227
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23228
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23229
|
+
*/
|
|
23230
|
+
durability: "restored",
|
|
23231
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23232
|
+
* whether persisting is worth a SQLite commit. */
|
|
23233
|
+
volatileStateFields: ["lastChangedAt"]
|
|
22883
23234
|
};
|
|
22884
23235
|
/**
|
|
22885
23236
|
* Media-player cap. Models HA `media_player.*` (Sonos, Chromecast,
|
|
@@ -23041,7 +23392,14 @@ var mediaPlayerCapability = {
|
|
|
23041
23392
|
* full slice for live now-playing, volume, and progress updates
|
|
23042
23393
|
* without polling.
|
|
23043
23394
|
*/
|
|
23044
|
-
runtimeState: MediaPlayerStatusSchema
|
|
23395
|
+
runtimeState: MediaPlayerStatusSchema,
|
|
23396
|
+
/**
|
|
23397
|
+
* Runtime-state durability: **session** — a restored transport position describes a playback that stopped when the hub did.
|
|
23398
|
+
*
|
|
23399
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23400
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23401
|
+
*/
|
|
23402
|
+
durability: "session"
|
|
23045
23403
|
};
|
|
23046
23404
|
/**
|
|
23047
23405
|
* mesh-network — collection cap for mesh-VPN providers.
|
|
@@ -23305,7 +23663,14 @@ onMotionChanged: { data: MotionOnMotionChangedDataSchema } },
|
|
|
23305
23663
|
* `device.state.motion.value`. Reads never invoke the provider, so
|
|
23306
23664
|
* UIs and other addons can poll the cached state safely.
|
|
23307
23665
|
*/
|
|
23308
|
-
runtimeState: MotionStatusSchema
|
|
23666
|
+
runtimeState: MotionStatusSchema,
|
|
23667
|
+
/**
|
|
23668
|
+
* 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.
|
|
23669
|
+
*
|
|
23670
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23671
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23672
|
+
*/
|
|
23673
|
+
durability: "session"
|
|
23309
23674
|
};
|
|
23310
23675
|
/**
|
|
23311
23676
|
* Motion-trigger toggle for accessory devices.
|
|
@@ -23370,7 +23735,14 @@ var motionTriggerCapability = {
|
|
|
23370
23735
|
schema: MotionTriggerStatusSchema,
|
|
23371
23736
|
kind: "command-driven"
|
|
23372
23737
|
},
|
|
23373
|
-
runtimeState: MotionTriggerRuntimeStateSchema
|
|
23738
|
+
runtimeState: MotionTriggerRuntimeStateSchema,
|
|
23739
|
+
/**
|
|
23740
|
+
* 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.
|
|
23741
|
+
*
|
|
23742
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23743
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23744
|
+
*/
|
|
23745
|
+
durability: "session"
|
|
23374
23746
|
};
|
|
23375
23747
|
/**
|
|
23376
23748
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
@@ -23437,7 +23809,17 @@ var motionZonesCapability = {
|
|
|
23437
23809
|
schema: MotionZoneStatusSchema,
|
|
23438
23810
|
kind: "poll"
|
|
23439
23811
|
},
|
|
23440
|
-
runtimeState: MotionZoneStatusSchema
|
|
23812
|
+
runtimeState: MotionZoneStatusSchema,
|
|
23813
|
+
/**
|
|
23814
|
+
* 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.
|
|
23815
|
+
*
|
|
23816
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23817
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23818
|
+
*/
|
|
23819
|
+
durability: "restored",
|
|
23820
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23821
|
+
* whether persisting is worth a SQLite commit. */
|
|
23822
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23441
23823
|
};
|
|
23442
23824
|
/**
|
|
23443
23825
|
* On-camera AI object detection cap. Surfaces per-device the classes
|
|
@@ -23511,7 +23893,17 @@ var nativeObjectDetectionCapability = {
|
|
|
23511
23893
|
schema: NativeObjectDetectionStatusSchema,
|
|
23512
23894
|
kind: "push"
|
|
23513
23895
|
},
|
|
23514
|
-
runtimeState: NativeObjectDetectionRuntimeStateSchema
|
|
23896
|
+
runtimeState: NativeObjectDetectionRuntimeStateSchema,
|
|
23897
|
+
/**
|
|
23898
|
+
* 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.
|
|
23899
|
+
*
|
|
23900
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23901
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23902
|
+
*/
|
|
23903
|
+
durability: "restored",
|
|
23904
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23905
|
+
* whether persisting is worth a SQLite commit. */
|
|
23906
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23515
23907
|
};
|
|
23516
23908
|
/**
|
|
23517
23909
|
* network-quality — system-scoped singleton capability tracking RTT,
|
|
@@ -23845,7 +24237,14 @@ onSent: { data: object({
|
|
|
23845
24237
|
* form reads `supports` to gate optional fields; history pane reads
|
|
23846
24238
|
* `lastSentAt` / `lastError` / `queueDepth`.
|
|
23847
24239
|
*/
|
|
23848
|
-
runtimeState: NotifierStatusSchema
|
|
24240
|
+
runtimeState: NotifierStatusSchema,
|
|
24241
|
+
/**
|
|
24242
|
+
* Runtime-state durability: **session** — live queue depth and last-send state; a restored queue depth describes a queue that no longer exists.
|
|
24243
|
+
*
|
|
24244
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24245
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24246
|
+
*/
|
|
24247
|
+
durability: "session"
|
|
23849
24248
|
};
|
|
23850
24249
|
/**
|
|
23851
24250
|
* Generic numeric sensor — last-resort fallback when no typed numeric
|
|
@@ -23888,7 +24287,17 @@ var numericSensorCapability = {
|
|
|
23888
24287
|
schema: NumericSensorStatusSchema,
|
|
23889
24288
|
kind: "push"
|
|
23890
24289
|
},
|
|
23891
|
-
runtimeState: NumericSensorStatusSchema
|
|
24290
|
+
runtimeState: NumericSensorStatusSchema,
|
|
24291
|
+
/**
|
|
24292
|
+
* 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.
|
|
24293
|
+
*
|
|
24294
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24295
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24296
|
+
*/
|
|
24297
|
+
durability: "restored",
|
|
24298
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24299
|
+
* whether persisting is worth a SQLite commit. */
|
|
24300
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23892
24301
|
};
|
|
23893
24302
|
/**
|
|
23894
24303
|
* Generic on-screen-display (video overlay) cap. Each camera exposes
|
|
@@ -24273,7 +24682,14 @@ var petFeederCapability = {
|
|
|
24273
24682
|
* the full slice via `device.state.petFeeder.value` and refresh on
|
|
24274
24683
|
* every poll without re-querying the provider.
|
|
24275
24684
|
*/
|
|
24276
|
-
runtimeState: PetFeederStatusSchema
|
|
24685
|
+
runtimeState: PetFeederStatusSchema,
|
|
24686
|
+
/**
|
|
24687
|
+
* Runtime-state durability: **session** — live appliance state re-published on connect.
|
|
24688
|
+
*
|
|
24689
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24690
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24691
|
+
*/
|
|
24692
|
+
durability: "session"
|
|
24277
24693
|
};
|
|
24278
24694
|
var VehicleSchema = object({
|
|
24279
24695
|
id: string(),
|
|
@@ -24585,7 +25001,17 @@ var powerMeterCapability = {
|
|
|
24585
25001
|
schema: PowerMeterStatusSchema,
|
|
24586
25002
|
kind: "push"
|
|
24587
25003
|
},
|
|
24588
|
-
runtimeState: PowerMeterStatusSchema
|
|
25004
|
+
runtimeState: PowerMeterStatusSchema,
|
|
25005
|
+
/**
|
|
25006
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`; `kwhTotal` is an accumulator whose restored value is the baseline.
|
|
25007
|
+
*
|
|
25008
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25009
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25010
|
+
*/
|
|
25011
|
+
durability: "restored",
|
|
25012
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25013
|
+
* whether persisting is worth a SQLite commit. */
|
|
25014
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24589
25015
|
};
|
|
24590
25016
|
/**
|
|
24591
25017
|
* Presence cap. Models HA `person.*` and `device_tracker.*` entities
|
|
@@ -24642,7 +25068,17 @@ var presenceCapability = {
|
|
|
24642
25068
|
* the map pin is rendered (use `DeviceFeature.PresenceGps` for the
|
|
24643
25069
|
* pre-fetch fast-path check).
|
|
24644
25070
|
*/
|
|
24645
|
-
runtimeState: PresenceStatusSchema
|
|
25071
|
+
runtimeState: PresenceStatusSchema,
|
|
25072
|
+
/**
|
|
25073
|
+
* Runtime-state durability: **restored** — occupancy-relevant: the restored state is what an occupancy rule compares the first post-restart observation against.
|
|
25074
|
+
*
|
|
25075
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25076
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25077
|
+
*/
|
|
25078
|
+
durability: "restored",
|
|
25079
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25080
|
+
* whether persisting is worth a SQLite commit. */
|
|
25081
|
+
volatileStateFields: ["lastChangedAt"]
|
|
24646
25082
|
};
|
|
24647
25083
|
/**
|
|
24648
25084
|
* Atmospheric pressure reading in hectopascals. Drives Home Assistant
|
|
@@ -24678,7 +25114,17 @@ var pressureSensorCapability = {
|
|
|
24678
25114
|
schema: PressureSensorStatusSchema,
|
|
24679
25115
|
kind: "push"
|
|
24680
25116
|
},
|
|
24681
|
-
runtimeState: PressureSensorStatusSchema
|
|
25117
|
+
runtimeState: PressureSensorStatusSchema,
|
|
25118
|
+
/**
|
|
25119
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
25120
|
+
*
|
|
25121
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25122
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25123
|
+
*/
|
|
25124
|
+
durability: "restored",
|
|
25125
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25126
|
+
* whether persisting is worth a SQLite commit. */
|
|
25127
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24682
25128
|
};
|
|
24683
25129
|
/**
|
|
24684
25130
|
* PRIVACY — what the camera deliberately does not capture. Two planes:
|
|
@@ -24808,7 +25254,17 @@ var privacyMaskCapability = {
|
|
|
24808
25254
|
schema: PrivacyMaskStatusSchema,
|
|
24809
25255
|
kind: "poll"
|
|
24810
25256
|
},
|
|
24811
|
-
runtimeState: PrivacyMaskStatusSchema
|
|
25257
|
+
runtimeState: PrivacyMaskStatusSchema,
|
|
25258
|
+
/**
|
|
25259
|
+
* Runtime-state durability: **restored** — operator-drawn regions, zero real churn — 22 writes in 25 minutes, every one of them the clock.
|
|
25260
|
+
*
|
|
25261
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25262
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25263
|
+
*/
|
|
25264
|
+
durability: "restored",
|
|
25265
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25266
|
+
* whether persisting is worth a SQLite commit. */
|
|
25267
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24812
25268
|
};
|
|
24813
25269
|
var PtzPresetSchema = object({
|
|
24814
25270
|
id: string(),
|
|
@@ -24974,7 +25430,14 @@ var ptzAutotrackCapability = {
|
|
|
24974
25430
|
* fetch / cache / fallback logic out of the four cap methods —
|
|
24975
25431
|
* they become trampolines over `runtimeState`.
|
|
24976
25432
|
*/
|
|
24977
|
-
runtimeState: PtzAutotrackRuntimeStateSchema
|
|
25433
|
+
runtimeState: PtzAutotrackRuntimeStateSchema,
|
|
25434
|
+
/**
|
|
25435
|
+
* Runtime-state durability: **session** — mirrors the camera's own autotrack config, re-read on connect.
|
|
25436
|
+
*
|
|
25437
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25438
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25439
|
+
*/
|
|
25440
|
+
durability: "session"
|
|
24978
25441
|
};
|
|
24979
25442
|
DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
|
|
24980
25443
|
kind: "mutation",
|
|
@@ -25624,7 +26087,14 @@ var sceneMonitorCapability = {
|
|
|
25624
26087
|
schema: SceneMonitorStatusSchema,
|
|
25625
26088
|
kind: "push"
|
|
25626
26089
|
},
|
|
25627
|
-
runtimeState: SceneMonitorStatusSchema
|
|
26090
|
+
runtimeState: SceneMonitorStatusSchema,
|
|
26091
|
+
/**
|
|
26092
|
+
* Runtime-state durability: **session** — re-derived from the current scene on the next evaluation.
|
|
26093
|
+
*
|
|
26094
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26095
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26096
|
+
*/
|
|
26097
|
+
durability: "session"
|
|
25628
26098
|
};
|
|
25629
26099
|
/**
|
|
25630
26100
|
* Per-stage gating mode applied to the zones a rule references.
|
|
@@ -25768,7 +26238,14 @@ var scriptRunnerCapability = {
|
|
|
25768
26238
|
* `isRunning` to render a spinner during execution and surfaces
|
|
25769
26239
|
* `lastError` / `lastRunSuccess` in the recent-runs panel.
|
|
25770
26240
|
*/
|
|
25771
|
-
runtimeState: ScriptRunnerStatusSchema
|
|
26241
|
+
runtimeState: ScriptRunnerStatusSchema,
|
|
26242
|
+
/**
|
|
26243
|
+
* Runtime-state durability: **session** — a restored `isRunning: true` describes a process that died with the previous hub.
|
|
26244
|
+
*
|
|
26245
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26246
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26247
|
+
*/
|
|
26248
|
+
durability: "session"
|
|
25772
26249
|
};
|
|
25773
26250
|
/**
|
|
25774
26251
|
* Smoke alarm sensor — boolean "is smoke currently detected" with
|
|
@@ -25795,7 +26272,17 @@ var smokeCapability = {
|
|
|
25795
26272
|
schema: SmokeStatusSchema,
|
|
25796
26273
|
kind: "push"
|
|
25797
26274
|
},
|
|
25798
|
-
runtimeState: SmokeStatusSchema
|
|
26275
|
+
runtimeState: SmokeStatusSchema,
|
|
26276
|
+
/**
|
|
26277
|
+
* Runtime-state durability: **restored** — a safety sensor must not read "clear" merely because the hub restarted.
|
|
26278
|
+
*
|
|
26279
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26280
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26281
|
+
*/
|
|
26282
|
+
durability: "restored",
|
|
26283
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26284
|
+
* whether persisting is worth a SQLite commit. */
|
|
26285
|
+
volatileStateFields: ["lastChangedAt"]
|
|
25799
26286
|
};
|
|
25800
26287
|
/**
|
|
25801
26288
|
* One publishable camera stream as its OWNING PROVIDER describes it — the same
|
|
@@ -25981,7 +26468,17 @@ var streamParamsCapability = {
|
|
|
25981
26468
|
schema: StreamParamsStatusSchema,
|
|
25982
26469
|
kind: "poll"
|
|
25983
26470
|
},
|
|
25984
|
-
runtimeState: StreamParamsStatusSchema
|
|
26471
|
+
runtimeState: StreamParamsStatusSchema,
|
|
26472
|
+
/**
|
|
26473
|
+
* Runtime-state durability: **restored** — operator-set encoder profile; mutation-driven.
|
|
26474
|
+
*
|
|
26475
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26476
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26477
|
+
*/
|
|
26478
|
+
durability: "restored",
|
|
26479
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26480
|
+
* whether persisting is worth a SQLite commit. */
|
|
26481
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
25985
26482
|
};
|
|
25986
26483
|
/**
|
|
25987
26484
|
* Generic on/off switch cap for accessory children (siren, floodlight,
|
|
@@ -26027,6 +26524,16 @@ var switchCapability = {
|
|
|
26027
26524
|
* not need to re-query the provider after a setState mutation.
|
|
26028
26525
|
*/
|
|
26029
26526
|
runtimeState: SwitchStatusSchema,
|
|
26527
|
+
/**
|
|
26528
|
+
* Runtime-state durability: **restored** — device state an operator reads as authoritative; 55 devices, transition-driven.
|
|
26529
|
+
*
|
|
26530
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26531
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26532
|
+
*/
|
|
26533
|
+
durability: "restored",
|
|
26534
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26535
|
+
* whether persisting is worth a SQLite commit. */
|
|
26536
|
+
volatileStateFields: ["lastChangedAt"],
|
|
26030
26537
|
settings: { bindings: [{
|
|
26031
26538
|
kind: "scalar",
|
|
26032
26539
|
statusPath: "on",
|
|
@@ -26106,7 +26613,17 @@ var tamperCapability = {
|
|
|
26106
26613
|
schema: TamperStatusSchema,
|
|
26107
26614
|
kind: "push"
|
|
26108
26615
|
},
|
|
26109
|
-
runtimeState: TamperStatusSchema
|
|
26616
|
+
runtimeState: TamperStatusSchema,
|
|
26617
|
+
/**
|
|
26618
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
26619
|
+
*
|
|
26620
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26621
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26622
|
+
*/
|
|
26623
|
+
durability: "restored",
|
|
26624
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26625
|
+
* whether persisting is worth a SQLite commit. */
|
|
26626
|
+
volatileStateFields: ["lastChangedAt"]
|
|
26110
26627
|
};
|
|
26111
26628
|
/**
|
|
26112
26629
|
* Single-metric temperature reading. Drives Home Assistant `sensor`
|
|
@@ -26151,7 +26668,17 @@ var temperatureSensorCapability = {
|
|
|
26151
26668
|
schema: TemperatureSensorStatusSchema,
|
|
26152
26669
|
kind: "push"
|
|
26153
26670
|
},
|
|
26154
|
-
runtimeState: TemperatureSensorStatusSchema
|
|
26671
|
+
runtimeState: TemperatureSensorStatusSchema,
|
|
26672
|
+
/**
|
|
26673
|
+
* Runtime-state durability: **restored** — as `numeric-sensor` (69 of 125 writes were the clock alone).
|
|
26674
|
+
*
|
|
26675
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26676
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26677
|
+
*/
|
|
26678
|
+
durability: "restored",
|
|
26679
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26680
|
+
* whether persisting is worth a SQLite commit. */
|
|
26681
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
26155
26682
|
};
|
|
26156
26683
|
/**
|
|
26157
26684
|
* toast — system-scoped singleton capability that streams toast
|
|
@@ -26220,7 +26747,14 @@ var updateCapability = {
|
|
|
26220
26747
|
schema: UpdateStatusSchema,
|
|
26221
26748
|
kind: "poll"
|
|
26222
26749
|
},
|
|
26223
|
-
runtimeState: UpdateStatusSchema
|
|
26750
|
+
runtimeState: UpdateStatusSchema,
|
|
26751
|
+
/**
|
|
26752
|
+
* Runtime-state durability: **session** — a restored `inProgress: true` describes an update that is no longer running; versions are re-probed at boot.
|
|
26753
|
+
*
|
|
26754
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26755
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26756
|
+
*/
|
|
26757
|
+
durability: "session"
|
|
26224
26758
|
};
|
|
26225
26759
|
var UserSummarySchema = object({
|
|
26226
26760
|
id: string(),
|
|
@@ -26554,7 +27088,14 @@ var vacuumControlCapability = {
|
|
|
26554
27088
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
26555
27089
|
* slice for live state + battery + fan-speed changes.
|
|
26556
27090
|
*/
|
|
26557
|
-
runtimeState: VacuumControlStatusSchema
|
|
27091
|
+
runtimeState: VacuumControlStatusSchema,
|
|
27092
|
+
/**
|
|
27093
|
+
* Runtime-state durability: **session** — as `media-player` — a restored `state: cleaning` is a robot that is not cleaning.
|
|
27094
|
+
*
|
|
27095
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27096
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27097
|
+
*/
|
|
27098
|
+
durability: "session"
|
|
26558
27099
|
};
|
|
26559
27100
|
var ValveStatusSchema = object({
|
|
26560
27101
|
/** Lifecycle state of the valve. */
|
|
@@ -26606,7 +27147,14 @@ var valveCapability = {
|
|
|
26606
27147
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
26607
27148
|
* slice for live position changes during a move.
|
|
26608
27149
|
*/
|
|
26609
|
-
runtimeState: ValveStatusSchema
|
|
27150
|
+
runtimeState: ValveStatusSchema,
|
|
27151
|
+
/**
|
|
27152
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
27153
|
+
*
|
|
27154
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27155
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27156
|
+
*/
|
|
27157
|
+
durability: "session"
|
|
26610
27158
|
};
|
|
26611
27159
|
/**
|
|
26612
27160
|
* Vibration / shake / impact sensor. Drives Home Assistant
|
|
@@ -26628,7 +27176,17 @@ var vibrationCapability = {
|
|
|
26628
27176
|
schema: VibrationStatusSchema,
|
|
26629
27177
|
kind: "push"
|
|
26630
27178
|
},
|
|
26631
|
-
runtimeState: VibrationStatusSchema
|
|
27179
|
+
runtimeState: VibrationStatusSchema,
|
|
27180
|
+
/**
|
|
27181
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
27182
|
+
*
|
|
27183
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27184
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27185
|
+
*/
|
|
27186
|
+
durability: "restored",
|
|
27187
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27188
|
+
* whether persisting is worth a SQLite commit. */
|
|
27189
|
+
volatileStateFields: ["lastChangedAt"]
|
|
26632
27190
|
};
|
|
26633
27191
|
/**
|
|
26634
27192
|
* Water heater / boiler cap. Models HA `water_heater.*` entities — a
|
|
@@ -26702,7 +27260,14 @@ var waterHeaterCapability = {
|
|
|
26702
27260
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
26703
27261
|
* slice for live temperature / mode / away changes.
|
|
26704
27262
|
*/
|
|
26705
|
-
runtimeState: WaterHeaterStatusSchema
|
|
27263
|
+
runtimeState: WaterHeaterStatusSchema,
|
|
27264
|
+
/**
|
|
27265
|
+
* Runtime-state durability: **session** — as `climate-control`.
|
|
27266
|
+
*
|
|
27267
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27268
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27269
|
+
*/
|
|
27270
|
+
durability: "session"
|
|
26706
27271
|
};
|
|
26707
27272
|
/**
|
|
26708
27273
|
* Weather provider cap. Models HA `weather.*` entities — a read-only
|
|
@@ -26761,7 +27326,14 @@ var weatherCapability = {
|
|
|
26761
27326
|
* Runtime-state slice — mirrored by the kernel. The UI reads the
|
|
26762
27327
|
* current conditions directly from the slice on each weather push.
|
|
26763
27328
|
*/
|
|
26764
|
-
runtimeState: WeatherStatusSchema
|
|
27329
|
+
runtimeState: WeatherStatusSchema,
|
|
27330
|
+
/**
|
|
27331
|
+
* Runtime-state durability: **session** — a forecast is stale the moment the hub is down; the provider re-fetches on connect.
|
|
27332
|
+
*
|
|
27333
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27334
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27335
|
+
*/
|
|
27336
|
+
durability: "session"
|
|
26765
27337
|
};
|
|
26766
27338
|
/**
|
|
26767
27339
|
* Per-zone occupancy aggregation produced by the analytics frame
|
|
@@ -26923,7 +27495,14 @@ var zoneAnalyticsCapability = {
|
|
|
26923
27495
|
* automatically; the explicit `getCurrentSnapshot` cap method is
|
|
26924
27496
|
* still useful for one-off polls without a subscription.
|
|
26925
27497
|
*/
|
|
26926
|
-
runtimeState: CameraOccupancySnapshotSchema
|
|
27498
|
+
runtimeState: CameraOccupancySnapshotSchema,
|
|
27499
|
+
/**
|
|
27500
|
+
* Runtime-state durability: **session** — per-frame analytics; with `audio-metrics` it is ~90 % of the offered write rate. Re-derived on the next frame.
|
|
27501
|
+
*
|
|
27502
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27503
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27504
|
+
*/
|
|
27505
|
+
durability: "session"
|
|
26927
27506
|
};
|
|
26928
27507
|
/**
|
|
26929
27508
|
* Stages a {@link ZoneRule} can apply to. Discriminator on the rules
|
|
@@ -27001,7 +27580,14 @@ var zoneRulesCapability = {
|
|
|
27001
27580
|
motion: array(ZoneRuleSchema).readonly(),
|
|
27002
27581
|
detection: array(ZoneRuleSchema).readonly(),
|
|
27003
27582
|
package: array(ZoneRuleSchema).readonly()
|
|
27004
|
-
})
|
|
27583
|
+
}),
|
|
27584
|
+
/**
|
|
27585
|
+
* Runtime-state durability: **restored** — operator intent, mutation-only, same argument as `zones`.
|
|
27586
|
+
*
|
|
27587
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27588
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27589
|
+
*/
|
|
27590
|
+
durability: "restored"
|
|
27005
27591
|
};
|
|
27006
27592
|
/**
|
|
27007
27593
|
* Accessory device helpers — shared across drivers.
|
|
@@ -33688,6 +34274,7 @@ Object.freeze({
|
|
|
33688
34274
|
"network-access": "ingress",
|
|
33689
34275
|
"smtp-provider": "email"
|
|
33690
34276
|
});
|
|
34277
|
+
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
33691
34278
|
new Set(["devices", "classes"]);
|
|
33692
34279
|
/**
|
|
33693
34280
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|