@camstack/addon-matter-broker 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
|
@@ -10834,7 +10834,14 @@ var cameraStreamsCapability = {
|
|
|
10834
10834
|
low: string$2().optional()
|
|
10835
10835
|
}),
|
|
10836
10836
|
lastChangedAt: number()
|
|
10837
|
-
})
|
|
10837
|
+
}),
|
|
10838
|
+
/**
|
|
10839
|
+
* 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.
|
|
10840
|
+
*
|
|
10841
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
10842
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
10843
|
+
*/
|
|
10844
|
+
durability: "session"
|
|
10838
10845
|
};
|
|
10839
10846
|
/** Where a block runs. The operator chooses — a block driving a device on an
|
|
10840
10847
|
* agent is the reason placement is not fixed to the hub. */
|
|
@@ -11395,6 +11402,13 @@ var deviceDiscoveryCapability = {
|
|
|
11395
11402
|
kind: "poll"
|
|
11396
11403
|
},
|
|
11397
11404
|
runtimeState: DeviceDiscoveryStatusSchema.extend({ lastFetchedAt: number().int().nonnegative() }),
|
|
11405
|
+
/**
|
|
11406
|
+
* Runtime-state durability: **session** — 5.7 KB of scan output on the largest device, fully re-derivable by re-scanning.
|
|
11407
|
+
*
|
|
11408
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
11409
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
11410
|
+
*/
|
|
11411
|
+
durability: "session",
|
|
11398
11412
|
methods: {
|
|
11399
11413
|
/**
|
|
11400
11414
|
* Snapshot of the current `discovered` list. Returns the
|
|
@@ -13311,7 +13325,23 @@ var NotificationActionSchema = object({
|
|
|
13311
13325
|
* else — see `notification-center/action-token.ts` for what that does and
|
|
13312
13326
|
* does not buy.
|
|
13313
13327
|
*/
|
|
13314
|
-
destructive: boolean().optional()
|
|
13328
|
+
destructive: boolean().optional(),
|
|
13329
|
+
/**
|
|
13330
|
+
* How the tap should REACH the url.
|
|
13331
|
+
*
|
|
13332
|
+
* `navigate` (absent, and every button authored before this field) opens it:
|
|
13333
|
+
* the phone leaves the notification and shows whatever the callback returns.
|
|
13334
|
+
* That is right for a button whose answer the operator wants to read.
|
|
13335
|
+
*
|
|
13336
|
+
* `background` fires it as a POST and stays put. It exists for the buttons
|
|
13337
|
+
* whose whole point is not to interrupt — "silence this for 30 minutes" is
|
|
13338
|
+
* an answer to the notification, and being thrown into a browser tab to
|
|
13339
|
+
* confirm it costs more attention than the notification did. A backend that
|
|
13340
|
+
* cannot do a background call renders it as an ordinary link (the adapters
|
|
13341
|
+
* fall back rather than dropping the button), so this is a preference, never
|
|
13342
|
+
* a requirement.
|
|
13343
|
+
*/
|
|
13344
|
+
mode: _enum(["navigate", "background"]).optional()
|
|
13315
13345
|
});
|
|
13316
13346
|
/**
|
|
13317
13347
|
* The canonical notification. `body` is the only hard field (Apprise model).
|
|
@@ -14163,7 +14193,17 @@ var alarmPanelCapability = {
|
|
|
14163
14193
|
* full slice; renders an arm button per `availableModes` entry and
|
|
14164
14194
|
* a PIN field iff `requiresCode === true`.
|
|
14165
14195
|
*/
|
|
14166
|
-
runtimeState: AlarmPanelStatusSchema
|
|
14196
|
+
runtimeState: AlarmPanelStatusSchema,
|
|
14197
|
+
/**
|
|
14198
|
+
* Runtime-state durability: **restored** — armed state is the one thing a panel must not lose across a restart.
|
|
14199
|
+
*
|
|
14200
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
14201
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
14202
|
+
*/
|
|
14203
|
+
durability: "restored",
|
|
14204
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
14205
|
+
* whether persisting is worth a SQLite commit. */
|
|
14206
|
+
volatileStateFields: ["lastChangedAt"]
|
|
14167
14207
|
};
|
|
14168
14208
|
/**
|
|
14169
14209
|
* Shared geometry vocabulary for on-frame shape caps — privacy-mask,
|
|
@@ -14340,6 +14380,9 @@ var NcSystemEventConditionSchema = object({
|
|
|
14340
14380
|
nodeIds: array(string$2().min(1)).min(1).optional(),
|
|
14341
14381
|
packageNames: array(string$2().min(1)).min(1).optional()
|
|
14342
14382
|
});
|
|
14383
|
+
/** Hard ceiling on a window (24h). A snooze that could not expire would be an
|
|
14384
|
+
* outage the operator asked for once and forgot. */
|
|
14385
|
+
var NC_SNOOZE_MAX_MINUTES = 1440;
|
|
14343
14386
|
/** Weekly schedule — OR of windows; absence on the rule = always active. */
|
|
14344
14387
|
var NcScheduleSchema = object({
|
|
14345
14388
|
windows: array(object({
|
|
@@ -14716,15 +14759,15 @@ var NcConditionsSchema = object({
|
|
|
14716
14759
|
* (an `immediate` rule naming an `audio-*` class, one notification per
|
|
14717
14760
|
* classified sample) stays exactly as it was for rules that already use it.
|
|
14718
14761
|
*
|
|
14719
|
-
*
|
|
14720
|
-
* rather than an
|
|
14721
|
-
* (`camstack/src/data/notification-center.ts`, guarded by
|
|
14722
|
-
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor
|
|
14762
|
+
* In {@link NC_CONDITION_CATALOG} since P2, and the ORDER it got there is the
|
|
14763
|
+
* rule rather than an accident: the viewer mirrors the descriptor enums BY
|
|
14764
|
+
* HAND (`camstack/src/data/notification-center.ts`, guarded by
|
|
14765
|
+
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor strips the
|
|
14723
14766
|
* condition fields it does not know when a rule is saved from the phone.
|
|
14724
14767
|
* Publishing an editor for a condition the app cannot round-trip is how an
|
|
14725
|
-
* operator loses a rule's conditions by opening it — so the
|
|
14726
|
-
*
|
|
14727
|
-
*
|
|
14768
|
+
* operator loses a rule's conditions by opening it — so the viewer mirror
|
|
14769
|
+
* (P3, shipped) went FIRST, and the descriptor an editor renders from
|
|
14770
|
+
* follows here.
|
|
14728
14771
|
*/
|
|
14729
14772
|
audio: NcAudioConditionSchema.optional()
|
|
14730
14773
|
});
|
|
@@ -14960,6 +15003,30 @@ var NcRuleInputSchema = object({
|
|
|
14960
15003
|
*/
|
|
14961
15004
|
snoozeAllowGlobal: boolean().optional(),
|
|
14962
15005
|
/**
|
|
15006
|
+
* The snooze durations THIS rule's notification offers as buttons, in
|
|
15007
|
+
* minutes.
|
|
15008
|
+
*
|
|
15009
|
+
* Three states, and all three are distinct — which is exactly why this is
|
|
15010
|
+
* `.optional()` and never `.default()`. A Zod default does not run on the
|
|
15011
|
+
* addon cap path (three production failures in one day), so a schema default
|
|
15012
|
+
* would collapse the first two:
|
|
15013
|
+
*
|
|
15014
|
+
* | value | meaning |
|
|
15015
|
+
* | --- | --- |
|
|
15016
|
+
* | absent | the operator never said ⇒ {@link NC_DEFAULT_SNOOZE_MINUTES} |
|
|
15017
|
+
* | `[]` | **no snooze buttons on this rule** — the explicit override |
|
|
15018
|
+
* | a list | these choices, de-duplicated and sorted, at most four |
|
|
15019
|
+
*
|
|
15020
|
+
* `.max(4)` because the notifier's own action budget is small (ntfy allows
|
|
15021
|
+
* three buttons in total) and a rule that spent it all on snooze choices
|
|
15022
|
+
* would push its own tap-through actions off the notification.
|
|
15023
|
+
*
|
|
15024
|
+
* An empty list is NOT an alarm exemption: a rule the alarm is about, or
|
|
15025
|
+
* that arms the panel, is exempt automatically and cannot be silenced by a
|
|
15026
|
+
* window from anywhere (D133).
|
|
15027
|
+
*/
|
|
15028
|
+
snoozeOptions: array(number().int().min(1).max(NC_SNOOZE_MAX_MINUTES)).max(4).optional(),
|
|
15029
|
+
/**
|
|
14963
15030
|
* Devices this rule ACTUATES — arm the alarm, open a gate, turn on a light.
|
|
14964
15031
|
*
|
|
14965
15032
|
* This is what makes the rule set the alarm's trigger set without the alarm
|
|
@@ -15059,6 +15126,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
15059
15126
|
"device",
|
|
15060
15127
|
"package",
|
|
15061
15128
|
"occupancy",
|
|
15129
|
+
"audio",
|
|
15062
15130
|
"system"
|
|
15063
15131
|
]),
|
|
15064
15132
|
label: string$2(),
|
|
@@ -15077,6 +15145,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
15077
15145
|
"crossingSelect",
|
|
15078
15146
|
"polygonDraw",
|
|
15079
15147
|
"occupancy",
|
|
15148
|
+
"audio",
|
|
15080
15149
|
"deviceState",
|
|
15081
15150
|
"systemEvent"
|
|
15082
15151
|
]),
|
|
@@ -15228,7 +15297,20 @@ var NcSnoozeInputSchema = object({
|
|
|
15228
15297
|
ruleId: string$2().optional(),
|
|
15229
15298
|
/** Required when `scope: 'device'`. */
|
|
15230
15299
|
deviceId: number().int().optional(),
|
|
15231
|
-
|
|
15300
|
+
/**
|
|
15301
|
+
* Narrow the window to these subject classes — "the cat, not the person".
|
|
15302
|
+
*
|
|
15303
|
+
* ORTHOGONAL to `scope`, deliberately, and absent means EVERY class: that is
|
|
15304
|
+
* what every window authored before this field meant, so no persisted row
|
|
15305
|
+
* changes meaning and no client has to learn anything to keep working.
|
|
15306
|
+
*
|
|
15307
|
+
* It is what makes the window's real key `(deviceId, classes[])` and lets it
|
|
15308
|
+
* cross rules (D133): the operator points at a camera and a kind of thing,
|
|
15309
|
+
* not at whichever of their four rules happened to produce the notification
|
|
15310
|
+
* they are dismissing.
|
|
15311
|
+
*/
|
|
15312
|
+
classes: array(string$2().min(1)).min(1).optional(),
|
|
15313
|
+
durationMinutes: number().int().min(1).max(NC_SNOOZE_MAX_MINUTES),
|
|
15232
15314
|
/**
|
|
15233
15315
|
* Silence this for EVERY recipient, not just the caller. Permission is
|
|
15234
15316
|
* checked server-side (the rule's `snoozeAllowGlobal`, or admin for the
|
|
@@ -15253,6 +15335,10 @@ var NcSnoozeSchema = object({
|
|
|
15253
15335
|
scope: NcSnoozeScopeSchema,
|
|
15254
15336
|
ruleId: string$2().optional(),
|
|
15255
15337
|
deviceId: number().int().optional(),
|
|
15338
|
+
/** Subject classes this window covers. ABSENT = every class — see
|
|
15339
|
+
* {@link NcSnoozeInputSchema.shape.classes}. Lives in the JSON blob and has
|
|
15340
|
+
* no SQLite column: nothing queries a window by class. */
|
|
15341
|
+
classes: array(string$2().min(1)).min(1).optional(),
|
|
15256
15342
|
startedAt: number(),
|
|
15257
15343
|
/** Exclusive: at exactly this instant the snooze is over. Expiry is a
|
|
15258
15344
|
* COMPARISON, not a job — no sweeper can leave the operator silenced. */
|
|
@@ -17353,7 +17439,14 @@ var zonesCapability = {
|
|
|
17353
17439
|
* handle. Slice shape is `{ zones: Zone[] }` so future extensions
|
|
17354
17440
|
* (e.g. zone groupings) can sit alongside the polygon list.
|
|
17355
17441
|
*/
|
|
17356
|
-
runtimeState: object({ zones: array(ZoneSchema).readonly() })
|
|
17442
|
+
runtimeState: object({ zones: array(ZoneSchema).readonly() }),
|
|
17443
|
+
/**
|
|
17444
|
+
* 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.
|
|
17445
|
+
*
|
|
17446
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
17447
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
17448
|
+
*/
|
|
17449
|
+
durability: "restored"
|
|
17357
17450
|
};
|
|
17358
17451
|
/**
|
|
17359
17452
|
* A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
|
|
@@ -20152,7 +20245,17 @@ var airQualitySensorCapability = {
|
|
|
20152
20245
|
schema: AirQualitySensorStatusSchema,
|
|
20153
20246
|
kind: "push"
|
|
20154
20247
|
},
|
|
20155
|
-
runtimeState: AirQualitySensorStatusSchema
|
|
20248
|
+
runtimeState: AirQualitySensorStatusSchema,
|
|
20249
|
+
/**
|
|
20250
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
20251
|
+
*
|
|
20252
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20253
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20254
|
+
*/
|
|
20255
|
+
durability: "restored",
|
|
20256
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20257
|
+
* whether persisting is worth a SQLite commit. */
|
|
20258
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
20156
20259
|
};
|
|
20157
20260
|
/**
|
|
20158
20261
|
* Ambient illuminance reading in lux. Drives Home Assistant `sensor`
|
|
@@ -20184,7 +20287,17 @@ var ambientLightSensorCapability = {
|
|
|
20184
20287
|
schema: AmbientLightSensorStatusSchema,
|
|
20185
20288
|
kind: "push"
|
|
20186
20289
|
},
|
|
20187
|
-
runtimeState: AmbientLightSensorStatusSchema
|
|
20290
|
+
runtimeState: AmbientLightSensorStatusSchema,
|
|
20291
|
+
/**
|
|
20292
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
20293
|
+
*
|
|
20294
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20295
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20296
|
+
*/
|
|
20297
|
+
durability: "restored",
|
|
20298
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20299
|
+
* whether persisting is worth a SQLite commit. */
|
|
20300
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
20188
20301
|
};
|
|
20189
20302
|
/**
|
|
20190
20303
|
* Per-class audio metrics aggregated over a sliding window.
|
|
@@ -20302,7 +20415,14 @@ var audioMetricsCapability = {
|
|
|
20302
20415
|
}), AudioMetricsHistorySchema)
|
|
20303
20416
|
},
|
|
20304
20417
|
/** Reactive runtime-state mirror — live `device.state.audioMetrics.value`. */
|
|
20305
|
-
runtimeState: AudioMetricsSnapshotSchema
|
|
20418
|
+
runtimeState: AudioMetricsSnapshotSchema,
|
|
20419
|
+
/**
|
|
20420
|
+
* 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.
|
|
20421
|
+
*
|
|
20422
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20423
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20424
|
+
*/
|
|
20425
|
+
durability: "session"
|
|
20306
20426
|
};
|
|
20307
20427
|
/**
|
|
20308
20428
|
* Automation-control cap. Models HA `automation.*` entities on
|
|
@@ -20364,7 +20484,14 @@ var automationControlCapability = {
|
|
|
20364
20484
|
* reads `enabled` (toggle) + `isRunning` (spinner) + `lastError`
|
|
20365
20485
|
* (badge) directly.
|
|
20366
20486
|
*/
|
|
20367
|
-
runtimeState: AutomationControlStatusSchema
|
|
20487
|
+
runtimeState: AutomationControlStatusSchema,
|
|
20488
|
+
/**
|
|
20489
|
+
* 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.
|
|
20490
|
+
*
|
|
20491
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20492
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20493
|
+
*/
|
|
20494
|
+
durability: "session"
|
|
20368
20495
|
};
|
|
20369
20496
|
/**
|
|
20370
20497
|
* Battery status snapshot. Emitted by providers whose device is
|
|
@@ -20470,7 +20597,17 @@ onStatusChanged: { data: object({
|
|
|
20470
20597
|
* via `device.runtimeState.getCapState('battery')` regardless of
|
|
20471
20598
|
* the underlying driver.
|
|
20472
20599
|
*/
|
|
20473
|
-
runtimeState: BatteryStatusSchema
|
|
20600
|
+
runtimeState: BatteryStatusSchema,
|
|
20601
|
+
/**
|
|
20602
|
+
* 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.
|
|
20603
|
+
*
|
|
20604
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20605
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20606
|
+
*/
|
|
20607
|
+
durability: "restored",
|
|
20608
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20609
|
+
* whether persisting is worth a SQLite commit. */
|
|
20610
|
+
volatileStateFields: ["lastUpdated"]
|
|
20474
20611
|
};
|
|
20475
20612
|
/**
|
|
20476
20613
|
* Generic boolean sensor — last-resort fallback when no domain-
|
|
@@ -20499,7 +20636,17 @@ var binaryCapability = {
|
|
|
20499
20636
|
schema: BinaryStatusSchema,
|
|
20500
20637
|
kind: "push"
|
|
20501
20638
|
},
|
|
20502
|
-
runtimeState: BinaryStatusSchema
|
|
20639
|
+
runtimeState: BinaryStatusSchema,
|
|
20640
|
+
/**
|
|
20641
|
+
* Runtime-state durability: **restored** — transition-driven sensor state; the restored value gives the boot comparison.
|
|
20642
|
+
*
|
|
20643
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20644
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20645
|
+
*/
|
|
20646
|
+
durability: "restored",
|
|
20647
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20648
|
+
* whether persisting is worth a SQLite commit. */
|
|
20649
|
+
volatileStateFields: ["lastChangedAt"]
|
|
20503
20650
|
};
|
|
20504
20651
|
/**
|
|
20505
20652
|
* Dimmable-light brightness control. Co-exists with `switch` on the
|
|
@@ -20552,7 +20699,14 @@ onBrightnessChanged: { data: object({
|
|
|
20552
20699
|
* by the kernel. Read via `device.state.brightness.value` so UI
|
|
20553
20700
|
* sliders surface the current level without polling the provider.
|
|
20554
20701
|
*/
|
|
20555
|
-
runtimeState: BrightnessStatusSchema
|
|
20702
|
+
runtimeState: BrightnessStatusSchema,
|
|
20703
|
+
/**
|
|
20704
|
+
* Runtime-state durability: **session** — live lamp state, re-published by the provider on connect.
|
|
20705
|
+
*
|
|
20706
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20707
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20708
|
+
*/
|
|
20709
|
+
durability: "session"
|
|
20556
20710
|
};
|
|
20557
20711
|
/**
|
|
20558
20712
|
* button — device-scoped capability for HA `button.*` / `input_button.*`
|
|
@@ -20657,7 +20811,17 @@ var carbonMonoxideCapability = {
|
|
|
20657
20811
|
schema: CarbonMonoxideStatusSchema,
|
|
20658
20812
|
kind: "push"
|
|
20659
20813
|
},
|
|
20660
|
-
runtimeState: CarbonMonoxideStatusSchema
|
|
20814
|
+
runtimeState: CarbonMonoxideStatusSchema,
|
|
20815
|
+
/**
|
|
20816
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
20817
|
+
*
|
|
20818
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20819
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20820
|
+
*/
|
|
20821
|
+
durability: "restored",
|
|
20822
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20823
|
+
* whether persisting is worth a SQLite commit. */
|
|
20824
|
+
volatileStateFields: ["lastChangedAt"]
|
|
20661
20825
|
};
|
|
20662
20826
|
/**
|
|
20663
20827
|
* HVAC / climate control cap. Models the full surface of a HA
|
|
@@ -20817,7 +20981,14 @@ var climateControlCapability = {
|
|
|
20817
20981
|
* the full slice via `device.state.climate-control.value` and refresh
|
|
20818
20982
|
* on every push without re-querying the provider.
|
|
20819
20983
|
*/
|
|
20820
|
-
runtimeState: ClimateControlStatusSchema
|
|
20984
|
+
runtimeState: ClimateControlStatusSchema,
|
|
20985
|
+
/**
|
|
20986
|
+
* Runtime-state durability: **session** — as `brightness`; `currentTemp` moves continuously and is re-published on connect.
|
|
20987
|
+
*
|
|
20988
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20989
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20990
|
+
*/
|
|
20991
|
+
durability: "session"
|
|
20821
20992
|
};
|
|
20822
20993
|
/**
|
|
20823
20994
|
* Color-light cap. Coexists with `switch` (on/off) and `brightness`
|
|
@@ -20927,7 +21098,14 @@ onColorChanged: { data: object({
|
|
|
20927
21098
|
* kernel. Read via `device.state.color.value` so UI pickers surface
|
|
20928
21099
|
* the current chromaticity without polling the provider.
|
|
20929
21100
|
*/
|
|
20930
|
-
runtimeState: ColorStatusSchema
|
|
21101
|
+
runtimeState: ColorStatusSchema,
|
|
21102
|
+
/**
|
|
21103
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
21104
|
+
*
|
|
21105
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21106
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21107
|
+
*/
|
|
21108
|
+
durability: "session"
|
|
20931
21109
|
};
|
|
20932
21110
|
var ConnectionTestOutcomeSchema = discriminatedUnion("outcome", [
|
|
20933
21111
|
object({
|
|
@@ -20985,7 +21163,17 @@ var connectivityCapability = {
|
|
|
20985
21163
|
schema: ConnectivityStatusSchema,
|
|
20986
21164
|
kind: "push"
|
|
20987
21165
|
},
|
|
20988
|
-
runtimeState: ConnectivityStatusSchema
|
|
21166
|
+
runtimeState: ConnectivityStatusSchema,
|
|
21167
|
+
/**
|
|
21168
|
+
* Runtime-state durability: **restored** — same shape and same argument as `device-status`, for links rather than devices.
|
|
21169
|
+
*
|
|
21170
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21171
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21172
|
+
*/
|
|
21173
|
+
durability: "restored",
|
|
21174
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21175
|
+
* whether persisting is worth a SQLite commit. */
|
|
21176
|
+
volatileStateFields: ["lastChangedAt"]
|
|
20989
21177
|
};
|
|
20990
21178
|
/**
|
|
20991
21179
|
* Generic device-consumables capability — surfaces a device's
|
|
@@ -21067,7 +21255,14 @@ reset: method(object({
|
|
|
21067
21255
|
}
|
|
21068
21256
|
}
|
|
21069
21257
|
},
|
|
21070
|
-
runtimeState: ConsumablesStatusSchema.extend({ lastFetchedAt: number() })
|
|
21258
|
+
runtimeState: ConsumablesStatusSchema.extend({ lastFetchedAt: number() }),
|
|
21259
|
+
/**
|
|
21260
|
+
* Runtime-state durability: **session** — the authority is the appliance; the provider re-reads the whole item array on connect.
|
|
21261
|
+
*
|
|
21262
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21263
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21264
|
+
*/
|
|
21265
|
+
durability: "session"
|
|
21071
21266
|
};
|
|
21072
21267
|
/**
|
|
21073
21268
|
* Door / window / opening / garage / valve contact sensor. Boolean
|
|
@@ -21098,7 +21293,17 @@ var contactCapability = {
|
|
|
21098
21293
|
schema: ContactStatusSchema,
|
|
21099
21294
|
kind: "push"
|
|
21100
21295
|
},
|
|
21101
|
-
runtimeState: ContactStatusSchema
|
|
21296
|
+
runtimeState: ContactStatusSchema,
|
|
21297
|
+
/**
|
|
21298
|
+
* Runtime-state durability: **restored** — a door left open across a restart must still read open.
|
|
21299
|
+
*
|
|
21300
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21301
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21302
|
+
*/
|
|
21303
|
+
durability: "restored",
|
|
21304
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21305
|
+
* whether persisting is worth a SQLite commit. */
|
|
21306
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21102
21307
|
};
|
|
21103
21308
|
/**
|
|
21104
21309
|
* Status slice — flat object (the framework's `runtimeState` contract
|
|
@@ -21204,7 +21409,14 @@ var controlCapability = {
|
|
|
21204
21409
|
* dropdown / text field / date picker) read the slice's discriminant
|
|
21205
21410
|
* and value directly without polling the provider.
|
|
21206
21411
|
*/
|
|
21207
|
-
runtimeState: ControlStatusSchema
|
|
21412
|
+
runtimeState: ControlStatusSchema,
|
|
21413
|
+
/**
|
|
21414
|
+
* Runtime-state durability: **session** — a generic control mirrors an external entity that re-publishes on connect; the options array is re-derived with it.
|
|
21415
|
+
*
|
|
21416
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21417
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21418
|
+
*/
|
|
21419
|
+
durability: "session"
|
|
21208
21420
|
};
|
|
21209
21421
|
var CoverStatusSchema = object({
|
|
21210
21422
|
/** Lifecycle state of the cover. */
|
|
@@ -21265,7 +21477,17 @@ var coverCapability = {
|
|
|
21265
21477
|
* Runtime-state slice — mirrored by the kernel. UI controls watch
|
|
21266
21478
|
* the slice for live position changes during a move.
|
|
21267
21479
|
*/
|
|
21268
|
-
runtimeState: CoverStatusSchema
|
|
21480
|
+
runtimeState: CoverStatusSchema,
|
|
21481
|
+
/**
|
|
21482
|
+
* Runtime-state durability: **restored** — position survives a restart on the device; the mirror should agree at boot rather than read blank.
|
|
21483
|
+
*
|
|
21484
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21485
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21486
|
+
*/
|
|
21487
|
+
durability: "restored",
|
|
21488
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21489
|
+
* whether persisting is worth a SQLite commit. */
|
|
21490
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21269
21491
|
};
|
|
21270
21492
|
/**
|
|
21271
21493
|
* Vendor-neutral day/night (IR-cut) control — the per-camera config cap
|
|
@@ -21359,7 +21581,17 @@ var dayNightCapability = {
|
|
|
21359
21581
|
schema: DayNightStatusSchema,
|
|
21360
21582
|
kind: "poll"
|
|
21361
21583
|
},
|
|
21362
|
-
runtimeState: DayNightStatusSchema
|
|
21584
|
+
runtimeState: DayNightStatusSchema,
|
|
21585
|
+
/**
|
|
21586
|
+
* Runtime-state durability: **restored** — operator-set IR-cut behaviour; mutation-driven.
|
|
21587
|
+
*
|
|
21588
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21589
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21590
|
+
*/
|
|
21591
|
+
durability: "restored",
|
|
21592
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21593
|
+
* whether persisting is worth a SQLite commit. */
|
|
21594
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
21363
21595
|
};
|
|
21364
21596
|
/**
|
|
21365
21597
|
* Generic device-level status snapshot. Auto-registered by `BaseDevice`
|
|
@@ -21406,7 +21638,17 @@ onStatusChanged: { data: object({
|
|
|
21406
21638
|
schema: DeviceStatusSchema,
|
|
21407
21639
|
kind: "push"
|
|
21408
21640
|
},
|
|
21409
|
-
runtimeState: DeviceStatusSchema
|
|
21641
|
+
runtimeState: DeviceStatusSchema,
|
|
21642
|
+
/**
|
|
21643
|
+
* 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.
|
|
21644
|
+
*
|
|
21645
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21646
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21647
|
+
*/
|
|
21648
|
+
durability: "restored",
|
|
21649
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21650
|
+
* whether persisting is worth a SQLite commit. */
|
|
21651
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21410
21652
|
};
|
|
21411
21653
|
/**
|
|
21412
21654
|
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
@@ -21468,7 +21710,14 @@ onPressed: { data: DoorbellPressEventSchema } },
|
|
|
21468
21710
|
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
21469
21711
|
* without subscribing.
|
|
21470
21712
|
*/
|
|
21471
|
-
runtimeState: DoorbellStatusSchema
|
|
21713
|
+
runtimeState: DoorbellStatusSchema,
|
|
21714
|
+
/**
|
|
21715
|
+
* 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.
|
|
21716
|
+
*
|
|
21717
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21718
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21719
|
+
*/
|
|
21720
|
+
durability: "restored"
|
|
21472
21721
|
};
|
|
21473
21722
|
/**
|
|
21474
21723
|
* Enum-state sensor — a string value picked from a finite option set.
|
|
@@ -21508,7 +21757,17 @@ var enumSensorCapability = {
|
|
|
21508
21757
|
schema: EnumSensorStatusSchema,
|
|
21509
21758
|
kind: "push"
|
|
21510
21759
|
},
|
|
21511
|
-
runtimeState: EnumSensorStatusSchema
|
|
21760
|
+
runtimeState: EnumSensorStatusSchema,
|
|
21761
|
+
/**
|
|
21762
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`; 80 devices.
|
|
21763
|
+
*
|
|
21764
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21765
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21766
|
+
*/
|
|
21767
|
+
durability: "restored",
|
|
21768
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21769
|
+
* whether persisting is worth a SQLite commit. */
|
|
21770
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
21512
21771
|
};
|
|
21513
21772
|
/**
|
|
21514
21773
|
* Generic stateless event emitter. Installed on a `DeviceType.EventEmitter`
|
|
@@ -21544,7 +21803,14 @@ var eventEmitterCapability = {
|
|
|
21544
21803
|
schema: EventEmitterStatusSchema,
|
|
21545
21804
|
kind: "push"
|
|
21546
21805
|
},
|
|
21547
|
-
runtimeState: EventEmitterStatusSchema
|
|
21806
|
+
runtimeState: EventEmitterStatusSchema,
|
|
21807
|
+
/**
|
|
21808
|
+
* Runtime-state durability: **session** — `eventCountSinceStart` names its own scope.
|
|
21809
|
+
*
|
|
21810
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21811
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21812
|
+
*/
|
|
21813
|
+
durability: "session"
|
|
21548
21814
|
};
|
|
21549
21815
|
var EventItemSchema = object({
|
|
21550
21816
|
id: string$2(),
|
|
@@ -21825,7 +22091,14 @@ var fanControlCapability = {
|
|
|
21825
22091
|
* Runtime-state slice — mirrored by the kernel. UI fan speed
|
|
21826
22092
|
* sliders read `percentage` for live updates.
|
|
21827
22093
|
*/
|
|
21828
|
-
runtimeState: FanControlStatusSchema
|
|
22094
|
+
runtimeState: FanControlStatusSchema,
|
|
22095
|
+
/**
|
|
22096
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
22097
|
+
*
|
|
22098
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22099
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22100
|
+
*/
|
|
22101
|
+
durability: "session"
|
|
21829
22102
|
};
|
|
21830
22103
|
/**
|
|
21831
22104
|
* Per-device feature/identity probe slice. Holds the runtime-resolved
|
|
@@ -21901,7 +22174,14 @@ onProbeChanged: { data: object({
|
|
|
21901
22174
|
schema: FeatureProbeStatusSchema,
|
|
21902
22175
|
kind: "push"
|
|
21903
22176
|
},
|
|
21904
|
-
runtimeState: FeatureProbeStatusSchema
|
|
22177
|
+
runtimeState: FeatureProbeStatusSchema,
|
|
22178
|
+
/**
|
|
22179
|
+
* 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.
|
|
22180
|
+
*
|
|
22181
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22182
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22183
|
+
*/
|
|
22184
|
+
durability: "session"
|
|
21905
22185
|
};
|
|
21906
22186
|
/**
|
|
21907
22187
|
* Water leak / moisture sensor. Boolean "is liquid currently
|
|
@@ -21928,7 +22208,17 @@ var floodCapability = {
|
|
|
21928
22208
|
schema: FloodStatusSchema,
|
|
21929
22209
|
kind: "push"
|
|
21930
22210
|
},
|
|
21931
|
-
runtimeState: FloodStatusSchema
|
|
22211
|
+
runtimeState: FloodStatusSchema,
|
|
22212
|
+
/**
|
|
22213
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
22214
|
+
*
|
|
22215
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22216
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22217
|
+
*/
|
|
22218
|
+
durability: "restored",
|
|
22219
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22220
|
+
* whether persisting is worth a SQLite commit. */
|
|
22221
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21932
22222
|
};
|
|
21933
22223
|
/**
|
|
21934
22224
|
* Combustible-gas (LPG / methane / hydrogen) alarm sensor. Drives
|
|
@@ -21951,7 +22241,17 @@ var gasCapability = {
|
|
|
21951
22241
|
schema: GasStatusSchema,
|
|
21952
22242
|
kind: "push"
|
|
21953
22243
|
},
|
|
21954
|
-
runtimeState: GasStatusSchema
|
|
22244
|
+
runtimeState: GasStatusSchema,
|
|
22245
|
+
/**
|
|
22246
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
22247
|
+
*
|
|
22248
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22249
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22250
|
+
*/
|
|
22251
|
+
durability: "restored",
|
|
22252
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22253
|
+
* whether persisting is worth a SQLite commit. */
|
|
22254
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21955
22255
|
};
|
|
21956
22256
|
/**
|
|
21957
22257
|
* Humidifier / dehumidifier cap. Models HA `humidifier.*` entities —
|
|
@@ -22027,7 +22327,14 @@ var humidifierCapability = {
|
|
|
22027
22327
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
22028
22328
|
* slice for live humidity / mode changes.
|
|
22029
22329
|
*/
|
|
22030
|
-
runtimeState: HumidifierStatusSchema
|
|
22330
|
+
runtimeState: HumidifierStatusSchema,
|
|
22331
|
+
/**
|
|
22332
|
+
* Runtime-state durability: **session** — as `climate-control`.
|
|
22333
|
+
*
|
|
22334
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22335
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22336
|
+
*/
|
|
22337
|
+
durability: "session"
|
|
22031
22338
|
};
|
|
22032
22339
|
/**
|
|
22033
22340
|
* Single-metric humidity reading. Drives Home Assistant `sensor`
|
|
@@ -22063,7 +22370,17 @@ var humiditySensorCapability = {
|
|
|
22063
22370
|
schema: HumiditySensorStatusSchema,
|
|
22064
22371
|
kind: "push"
|
|
22065
22372
|
},
|
|
22066
|
-
runtimeState: HumiditySensorStatusSchema
|
|
22373
|
+
runtimeState: HumiditySensorStatusSchema,
|
|
22374
|
+
/**
|
|
22375
|
+
* Runtime-state durability: **restored** — as `numeric-sensor` (67 of 75 writes were the clock alone).
|
|
22376
|
+
*
|
|
22377
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22378
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22379
|
+
*/
|
|
22380
|
+
durability: "restored",
|
|
22381
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22382
|
+
* whether persisting is worth a SQLite commit. */
|
|
22383
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
22067
22384
|
};
|
|
22068
22385
|
/**
|
|
22069
22386
|
* Image display cap. Models a single still image exposed by an integration —
|
|
@@ -22101,7 +22418,14 @@ var imageCapability = {
|
|
|
22101
22418
|
* Runtime-state slice — mirrored by the kernel. The UI reads `url`
|
|
22102
22419
|
* directly and renders the still image.
|
|
22103
22420
|
*/
|
|
22104
|
-
runtimeState: ImageStatusSchema
|
|
22421
|
+
runtimeState: ImageStatusSchema,
|
|
22422
|
+
/**
|
|
22423
|
+
* Runtime-state durability: **session** — a snapshot URL is a session-scoped handle; a restored one points at nothing.
|
|
22424
|
+
*
|
|
22425
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22426
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22427
|
+
*/
|
|
22428
|
+
durability: "session"
|
|
22105
22429
|
};
|
|
22106
22430
|
/**
|
|
22107
22431
|
* Vendor-neutral image / picture-adjustment cap — the per-camera config
|
|
@@ -22250,7 +22574,17 @@ var imageSettingsCapability = {
|
|
|
22250
22574
|
schema: ImageSettingsStatusSchema,
|
|
22251
22575
|
kind: "poll"
|
|
22252
22576
|
},
|
|
22253
|
-
runtimeState: ImageSettingsStatusSchema
|
|
22577
|
+
runtimeState: ImageSettingsStatusSchema,
|
|
22578
|
+
/**
|
|
22579
|
+
* Runtime-state durability: **restored** — operator-set camera imaging; mutation-driven.
|
|
22580
|
+
*
|
|
22581
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22582
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22583
|
+
*/
|
|
22584
|
+
durability: "restored",
|
|
22585
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22586
|
+
* whether persisting is worth a SQLite commit. */
|
|
22587
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
22254
22588
|
};
|
|
22255
22589
|
/**
|
|
22256
22590
|
* integrations — system-scoped singleton capability for integration
|
|
@@ -22590,7 +22924,14 @@ var lawnMowerControlCapability = {
|
|
|
22590
22924
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
22591
22925
|
* slice for live activity + battery changes.
|
|
22592
22926
|
*/
|
|
22593
|
-
runtimeState: LawnMowerControlStatusSchema
|
|
22927
|
+
runtimeState: LawnMowerControlStatusSchema,
|
|
22928
|
+
/**
|
|
22929
|
+
* Runtime-state durability: **session** — as `vacuum-control`.
|
|
22930
|
+
*
|
|
22931
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22932
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22933
|
+
*/
|
|
22934
|
+
durability: "session"
|
|
22594
22935
|
};
|
|
22595
22936
|
/**
|
|
22596
22937
|
* local-network — hub-only singleton.
|
|
@@ -22796,7 +23137,17 @@ var lockControlCapability = {
|
|
|
22796
23137
|
* read `state` and disable themselves during `locking`/`unlocking`
|
|
22797
23138
|
* transitions.
|
|
22798
23139
|
*/
|
|
22799
|
-
runtimeState: LockControlStatusSchema
|
|
23140
|
+
runtimeState: LockControlStatusSchema,
|
|
23141
|
+
/**
|
|
23142
|
+
* Runtime-state durability: **restored** — a lock left locked must still read locked.
|
|
23143
|
+
*
|
|
23144
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23145
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23146
|
+
*/
|
|
23147
|
+
durability: "restored",
|
|
23148
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23149
|
+
* whether persisting is worth a SQLite commit. */
|
|
23150
|
+
volatileStateFields: ["lastChangedAt"]
|
|
22800
23151
|
};
|
|
22801
23152
|
/**
|
|
22802
23153
|
* Media-player cap. Models HA `media_player.*` (Sonos, Chromecast,
|
|
@@ -22958,7 +23309,14 @@ var mediaPlayerCapability = {
|
|
|
22958
23309
|
* full slice for live now-playing, volume, and progress updates
|
|
22959
23310
|
* without polling.
|
|
22960
23311
|
*/
|
|
22961
|
-
runtimeState: MediaPlayerStatusSchema
|
|
23312
|
+
runtimeState: MediaPlayerStatusSchema,
|
|
23313
|
+
/**
|
|
23314
|
+
* Runtime-state durability: **session** — a restored transport position describes a playback that stopped when the hub did.
|
|
23315
|
+
*
|
|
23316
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23317
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23318
|
+
*/
|
|
23319
|
+
durability: "session"
|
|
22962
23320
|
};
|
|
22963
23321
|
/**
|
|
22964
23322
|
* mesh-network — collection cap for mesh-VPN providers.
|
|
@@ -23222,7 +23580,14 @@ onMotionChanged: { data: MotionOnMotionChangedDataSchema } },
|
|
|
23222
23580
|
* `device.state.motion.value`. Reads never invoke the provider, so
|
|
23223
23581
|
* UIs and other addons can poll the cached state safely.
|
|
23224
23582
|
*/
|
|
23225
|
-
runtimeState: MotionStatusSchema
|
|
23583
|
+
runtimeState: MotionStatusSchema,
|
|
23584
|
+
/**
|
|
23585
|
+
* 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.
|
|
23586
|
+
*
|
|
23587
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23588
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23589
|
+
*/
|
|
23590
|
+
durability: "session"
|
|
23226
23591
|
};
|
|
23227
23592
|
/**
|
|
23228
23593
|
* Motion-trigger toggle for accessory devices.
|
|
@@ -23287,7 +23652,14 @@ var motionTriggerCapability = {
|
|
|
23287
23652
|
schema: MotionTriggerStatusSchema,
|
|
23288
23653
|
kind: "command-driven"
|
|
23289
23654
|
},
|
|
23290
|
-
runtimeState: MotionTriggerRuntimeStateSchema
|
|
23655
|
+
runtimeState: MotionTriggerRuntimeStateSchema,
|
|
23656
|
+
/**
|
|
23657
|
+
* 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.
|
|
23658
|
+
*
|
|
23659
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23660
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23661
|
+
*/
|
|
23662
|
+
durability: "session"
|
|
23291
23663
|
};
|
|
23292
23664
|
/**
|
|
23293
23665
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
@@ -23354,7 +23726,17 @@ var motionZonesCapability = {
|
|
|
23354
23726
|
schema: MotionZoneStatusSchema,
|
|
23355
23727
|
kind: "poll"
|
|
23356
23728
|
},
|
|
23357
|
-
runtimeState: MotionZoneStatusSchema
|
|
23729
|
+
runtimeState: MotionZoneStatusSchema,
|
|
23730
|
+
/**
|
|
23731
|
+
* 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.
|
|
23732
|
+
*
|
|
23733
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23734
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23735
|
+
*/
|
|
23736
|
+
durability: "restored",
|
|
23737
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23738
|
+
* whether persisting is worth a SQLite commit. */
|
|
23739
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23358
23740
|
};
|
|
23359
23741
|
/**
|
|
23360
23742
|
* On-camera AI object detection cap. Surfaces per-device the classes
|
|
@@ -23428,7 +23810,17 @@ var nativeObjectDetectionCapability = {
|
|
|
23428
23810
|
schema: NativeObjectDetectionStatusSchema,
|
|
23429
23811
|
kind: "push"
|
|
23430
23812
|
},
|
|
23431
|
-
runtimeState: NativeObjectDetectionRuntimeStateSchema
|
|
23813
|
+
runtimeState: NativeObjectDetectionRuntimeStateSchema,
|
|
23814
|
+
/**
|
|
23815
|
+
* 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.
|
|
23816
|
+
*
|
|
23817
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23818
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23819
|
+
*/
|
|
23820
|
+
durability: "restored",
|
|
23821
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23822
|
+
* whether persisting is worth a SQLite commit. */
|
|
23823
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23432
23824
|
};
|
|
23433
23825
|
/**
|
|
23434
23826
|
* network-quality — system-scoped singleton capability tracking RTT,
|
|
@@ -23762,7 +24154,14 @@ onSent: { data: object({
|
|
|
23762
24154
|
* form reads `supports` to gate optional fields; history pane reads
|
|
23763
24155
|
* `lastSentAt` / `lastError` / `queueDepth`.
|
|
23764
24156
|
*/
|
|
23765
|
-
runtimeState: NotifierStatusSchema
|
|
24157
|
+
runtimeState: NotifierStatusSchema,
|
|
24158
|
+
/**
|
|
24159
|
+
* Runtime-state durability: **session** — live queue depth and last-send state; a restored queue depth describes a queue that no longer exists.
|
|
24160
|
+
*
|
|
24161
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24162
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24163
|
+
*/
|
|
24164
|
+
durability: "session"
|
|
23766
24165
|
};
|
|
23767
24166
|
/**
|
|
23768
24167
|
* Generic numeric sensor — last-resort fallback when no typed numeric
|
|
@@ -23805,7 +24204,17 @@ var numericSensorCapability = {
|
|
|
23805
24204
|
schema: NumericSensorStatusSchema,
|
|
23806
24205
|
kind: "push"
|
|
23807
24206
|
},
|
|
23808
|
-
runtimeState: NumericSensorStatusSchema
|
|
24207
|
+
runtimeState: NumericSensorStatusSchema,
|
|
24208
|
+
/**
|
|
24209
|
+
* 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.
|
|
24210
|
+
*
|
|
24211
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24212
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24213
|
+
*/
|
|
24214
|
+
durability: "restored",
|
|
24215
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24216
|
+
* whether persisting is worth a SQLite commit. */
|
|
24217
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23809
24218
|
};
|
|
23810
24219
|
/**
|
|
23811
24220
|
* Generic on-screen-display (video overlay) cap. Each camera exposes
|
|
@@ -24190,7 +24599,14 @@ var petFeederCapability = {
|
|
|
24190
24599
|
* the full slice via `device.state.petFeeder.value` and refresh on
|
|
24191
24600
|
* every poll without re-querying the provider.
|
|
24192
24601
|
*/
|
|
24193
|
-
runtimeState: PetFeederStatusSchema
|
|
24602
|
+
runtimeState: PetFeederStatusSchema,
|
|
24603
|
+
/**
|
|
24604
|
+
* Runtime-state durability: **session** — live appliance state re-published on connect.
|
|
24605
|
+
*
|
|
24606
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24607
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24608
|
+
*/
|
|
24609
|
+
durability: "session"
|
|
24194
24610
|
};
|
|
24195
24611
|
var VehicleSchema = object({
|
|
24196
24612
|
id: string$2(),
|
|
@@ -24502,7 +24918,17 @@ var powerMeterCapability = {
|
|
|
24502
24918
|
schema: PowerMeterStatusSchema,
|
|
24503
24919
|
kind: "push"
|
|
24504
24920
|
},
|
|
24505
|
-
runtimeState: PowerMeterStatusSchema
|
|
24921
|
+
runtimeState: PowerMeterStatusSchema,
|
|
24922
|
+
/**
|
|
24923
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`; `kwhTotal` is an accumulator whose restored value is the baseline.
|
|
24924
|
+
*
|
|
24925
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24926
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24927
|
+
*/
|
|
24928
|
+
durability: "restored",
|
|
24929
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24930
|
+
* whether persisting is worth a SQLite commit. */
|
|
24931
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24506
24932
|
};
|
|
24507
24933
|
/**
|
|
24508
24934
|
* Presence cap. Models HA `person.*` and `device_tracker.*` entities
|
|
@@ -24559,7 +24985,17 @@ var presenceCapability = {
|
|
|
24559
24985
|
* the map pin is rendered (use `DeviceFeature.PresenceGps` for the
|
|
24560
24986
|
* pre-fetch fast-path check).
|
|
24561
24987
|
*/
|
|
24562
|
-
runtimeState: PresenceStatusSchema
|
|
24988
|
+
runtimeState: PresenceStatusSchema,
|
|
24989
|
+
/**
|
|
24990
|
+
* Runtime-state durability: **restored** — occupancy-relevant: the restored state is what an occupancy rule compares the first post-restart observation against.
|
|
24991
|
+
*
|
|
24992
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24993
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24994
|
+
*/
|
|
24995
|
+
durability: "restored",
|
|
24996
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24997
|
+
* whether persisting is worth a SQLite commit. */
|
|
24998
|
+
volatileStateFields: ["lastChangedAt"]
|
|
24563
24999
|
};
|
|
24564
25000
|
/**
|
|
24565
25001
|
* Atmospheric pressure reading in hectopascals. Drives Home Assistant
|
|
@@ -24595,7 +25031,17 @@ var pressureSensorCapability = {
|
|
|
24595
25031
|
schema: PressureSensorStatusSchema,
|
|
24596
25032
|
kind: "push"
|
|
24597
25033
|
},
|
|
24598
|
-
runtimeState: PressureSensorStatusSchema
|
|
25034
|
+
runtimeState: PressureSensorStatusSchema,
|
|
25035
|
+
/**
|
|
25036
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
25037
|
+
*
|
|
25038
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25039
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25040
|
+
*/
|
|
25041
|
+
durability: "restored",
|
|
25042
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25043
|
+
* whether persisting is worth a SQLite commit. */
|
|
25044
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24599
25045
|
};
|
|
24600
25046
|
/**
|
|
24601
25047
|
* PRIVACY — what the camera deliberately does not capture. Two planes:
|
|
@@ -24725,7 +25171,17 @@ var privacyMaskCapability = {
|
|
|
24725
25171
|
schema: PrivacyMaskStatusSchema,
|
|
24726
25172
|
kind: "poll"
|
|
24727
25173
|
},
|
|
24728
|
-
runtimeState: PrivacyMaskStatusSchema
|
|
25174
|
+
runtimeState: PrivacyMaskStatusSchema,
|
|
25175
|
+
/**
|
|
25176
|
+
* Runtime-state durability: **restored** — operator-drawn regions, zero real churn — 22 writes in 25 minutes, every one of them the clock.
|
|
25177
|
+
*
|
|
25178
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25179
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25180
|
+
*/
|
|
25181
|
+
durability: "restored",
|
|
25182
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25183
|
+
* whether persisting is worth a SQLite commit. */
|
|
25184
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24729
25185
|
};
|
|
24730
25186
|
var PtzPresetSchema = object({
|
|
24731
25187
|
id: string$2(),
|
|
@@ -24891,7 +25347,14 @@ var ptzAutotrackCapability = {
|
|
|
24891
25347
|
* fetch / cache / fallback logic out of the four cap methods —
|
|
24892
25348
|
* they become trampolines over `runtimeState`.
|
|
24893
25349
|
*/
|
|
24894
|
-
runtimeState: PtzAutotrackRuntimeStateSchema
|
|
25350
|
+
runtimeState: PtzAutotrackRuntimeStateSchema,
|
|
25351
|
+
/**
|
|
25352
|
+
* Runtime-state durability: **session** — mirrors the camera's own autotrack config, re-read on connect.
|
|
25353
|
+
*
|
|
25354
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25355
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25356
|
+
*/
|
|
25357
|
+
durability: "session"
|
|
24895
25358
|
};
|
|
24896
25359
|
DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
|
|
24897
25360
|
kind: "mutation",
|
|
@@ -25541,7 +26004,14 @@ var sceneMonitorCapability = {
|
|
|
25541
26004
|
schema: SceneMonitorStatusSchema,
|
|
25542
26005
|
kind: "push"
|
|
25543
26006
|
},
|
|
25544
|
-
runtimeState: SceneMonitorStatusSchema
|
|
26007
|
+
runtimeState: SceneMonitorStatusSchema,
|
|
26008
|
+
/**
|
|
26009
|
+
* Runtime-state durability: **session** — re-derived from the current scene on the next evaluation.
|
|
26010
|
+
*
|
|
26011
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26012
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26013
|
+
*/
|
|
26014
|
+
durability: "session"
|
|
25545
26015
|
};
|
|
25546
26016
|
/**
|
|
25547
26017
|
* Per-stage gating mode applied to the zones a rule references.
|
|
@@ -25685,7 +26155,14 @@ var scriptRunnerCapability = {
|
|
|
25685
26155
|
* `isRunning` to render a spinner during execution and surfaces
|
|
25686
26156
|
* `lastError` / `lastRunSuccess` in the recent-runs panel.
|
|
25687
26157
|
*/
|
|
25688
|
-
runtimeState: ScriptRunnerStatusSchema
|
|
26158
|
+
runtimeState: ScriptRunnerStatusSchema,
|
|
26159
|
+
/**
|
|
26160
|
+
* Runtime-state durability: **session** — a restored `isRunning: true` describes a process that died with the previous hub.
|
|
26161
|
+
*
|
|
26162
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26163
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26164
|
+
*/
|
|
26165
|
+
durability: "session"
|
|
25689
26166
|
};
|
|
25690
26167
|
/**
|
|
25691
26168
|
* Smoke alarm sensor — boolean "is smoke currently detected" with
|
|
@@ -25712,7 +26189,17 @@ var smokeCapability = {
|
|
|
25712
26189
|
schema: SmokeStatusSchema,
|
|
25713
26190
|
kind: "push"
|
|
25714
26191
|
},
|
|
25715
|
-
runtimeState: SmokeStatusSchema
|
|
26192
|
+
runtimeState: SmokeStatusSchema,
|
|
26193
|
+
/**
|
|
26194
|
+
* Runtime-state durability: **restored** — a safety sensor must not read "clear" merely because the hub restarted.
|
|
26195
|
+
*
|
|
26196
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26197
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26198
|
+
*/
|
|
26199
|
+
durability: "restored",
|
|
26200
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26201
|
+
* whether persisting is worth a SQLite commit. */
|
|
26202
|
+
volatileStateFields: ["lastChangedAt"]
|
|
25716
26203
|
};
|
|
25717
26204
|
/**
|
|
25718
26205
|
* One publishable camera stream as its OWNING PROVIDER describes it — the same
|
|
@@ -25885,7 +26372,17 @@ var streamParamsCapability = {
|
|
|
25885
26372
|
schema: StreamParamsStatusSchema,
|
|
25886
26373
|
kind: "poll"
|
|
25887
26374
|
},
|
|
25888
|
-
runtimeState: StreamParamsStatusSchema
|
|
26375
|
+
runtimeState: StreamParamsStatusSchema,
|
|
26376
|
+
/**
|
|
26377
|
+
* Runtime-state durability: **restored** — operator-set encoder profile; mutation-driven.
|
|
26378
|
+
*
|
|
26379
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26380
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26381
|
+
*/
|
|
26382
|
+
durability: "restored",
|
|
26383
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26384
|
+
* whether persisting is worth a SQLite commit. */
|
|
26385
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
25889
26386
|
};
|
|
25890
26387
|
/**
|
|
25891
26388
|
* Generic on/off switch cap for accessory children (siren, floodlight,
|
|
@@ -25931,6 +26428,16 @@ var switchCapability = {
|
|
|
25931
26428
|
* not need to re-query the provider after a setState mutation.
|
|
25932
26429
|
*/
|
|
25933
26430
|
runtimeState: SwitchStatusSchema,
|
|
26431
|
+
/**
|
|
26432
|
+
* Runtime-state durability: **restored** — device state an operator reads as authoritative; 55 devices, transition-driven.
|
|
26433
|
+
*
|
|
26434
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26435
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26436
|
+
*/
|
|
26437
|
+
durability: "restored",
|
|
26438
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26439
|
+
* whether persisting is worth a SQLite commit. */
|
|
26440
|
+
volatileStateFields: ["lastChangedAt"],
|
|
25934
26441
|
settings: { bindings: [{
|
|
25935
26442
|
kind: "scalar",
|
|
25936
26443
|
statusPath: "on",
|
|
@@ -26010,7 +26517,17 @@ var tamperCapability = {
|
|
|
26010
26517
|
schema: TamperStatusSchema,
|
|
26011
26518
|
kind: "push"
|
|
26012
26519
|
},
|
|
26013
|
-
runtimeState: TamperStatusSchema
|
|
26520
|
+
runtimeState: TamperStatusSchema,
|
|
26521
|
+
/**
|
|
26522
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
26523
|
+
*
|
|
26524
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26525
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26526
|
+
*/
|
|
26527
|
+
durability: "restored",
|
|
26528
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26529
|
+
* whether persisting is worth a SQLite commit. */
|
|
26530
|
+
volatileStateFields: ["lastChangedAt"]
|
|
26014
26531
|
};
|
|
26015
26532
|
/**
|
|
26016
26533
|
* Single-metric temperature reading. Drives Home Assistant `sensor`
|
|
@@ -26055,7 +26572,17 @@ var temperatureSensorCapability = {
|
|
|
26055
26572
|
schema: TemperatureSensorStatusSchema,
|
|
26056
26573
|
kind: "push"
|
|
26057
26574
|
},
|
|
26058
|
-
runtimeState: TemperatureSensorStatusSchema
|
|
26575
|
+
runtimeState: TemperatureSensorStatusSchema,
|
|
26576
|
+
/**
|
|
26577
|
+
* Runtime-state durability: **restored** — as `numeric-sensor` (69 of 125 writes were the clock alone).
|
|
26578
|
+
*
|
|
26579
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26580
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26581
|
+
*/
|
|
26582
|
+
durability: "restored",
|
|
26583
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26584
|
+
* whether persisting is worth a SQLite commit. */
|
|
26585
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
26059
26586
|
};
|
|
26060
26587
|
/**
|
|
26061
26588
|
* toast — system-scoped singleton capability that streams toast
|
|
@@ -26124,7 +26651,14 @@ var updateCapability = {
|
|
|
26124
26651
|
schema: UpdateStatusSchema,
|
|
26125
26652
|
kind: "poll"
|
|
26126
26653
|
},
|
|
26127
|
-
runtimeState: UpdateStatusSchema
|
|
26654
|
+
runtimeState: UpdateStatusSchema,
|
|
26655
|
+
/**
|
|
26656
|
+
* Runtime-state durability: **session** — a restored `inProgress: true` describes an update that is no longer running; versions are re-probed at boot.
|
|
26657
|
+
*
|
|
26658
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26659
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26660
|
+
*/
|
|
26661
|
+
durability: "session"
|
|
26128
26662
|
};
|
|
26129
26663
|
var UserSummarySchema = object({
|
|
26130
26664
|
id: string$2(),
|
|
@@ -26458,7 +26992,14 @@ var vacuumControlCapability = {
|
|
|
26458
26992
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
26459
26993
|
* slice for live state + battery + fan-speed changes.
|
|
26460
26994
|
*/
|
|
26461
|
-
runtimeState: VacuumControlStatusSchema
|
|
26995
|
+
runtimeState: VacuumControlStatusSchema,
|
|
26996
|
+
/**
|
|
26997
|
+
* Runtime-state durability: **session** — as `media-player` — a restored `state: cleaning` is a robot that is not cleaning.
|
|
26998
|
+
*
|
|
26999
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27000
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27001
|
+
*/
|
|
27002
|
+
durability: "session"
|
|
26462
27003
|
};
|
|
26463
27004
|
var ValveStatusSchema = object({
|
|
26464
27005
|
/** Lifecycle state of the valve. */
|
|
@@ -26510,7 +27051,14 @@ var valveCapability = {
|
|
|
26510
27051
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
26511
27052
|
* slice for live position changes during a move.
|
|
26512
27053
|
*/
|
|
26513
|
-
runtimeState: ValveStatusSchema
|
|
27054
|
+
runtimeState: ValveStatusSchema,
|
|
27055
|
+
/**
|
|
27056
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
27057
|
+
*
|
|
27058
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27059
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27060
|
+
*/
|
|
27061
|
+
durability: "session"
|
|
26514
27062
|
};
|
|
26515
27063
|
/**
|
|
26516
27064
|
* Vibration / shake / impact sensor. Drives Home Assistant
|
|
@@ -26532,7 +27080,17 @@ var vibrationCapability = {
|
|
|
26532
27080
|
schema: VibrationStatusSchema,
|
|
26533
27081
|
kind: "push"
|
|
26534
27082
|
},
|
|
26535
|
-
runtimeState: VibrationStatusSchema
|
|
27083
|
+
runtimeState: VibrationStatusSchema,
|
|
27084
|
+
/**
|
|
27085
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
27086
|
+
*
|
|
27087
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27088
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27089
|
+
*/
|
|
27090
|
+
durability: "restored",
|
|
27091
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27092
|
+
* whether persisting is worth a SQLite commit. */
|
|
27093
|
+
volatileStateFields: ["lastChangedAt"]
|
|
26536
27094
|
};
|
|
26537
27095
|
/**
|
|
26538
27096
|
* Water heater / boiler cap. Models HA `water_heater.*` entities — a
|
|
@@ -26606,7 +27164,14 @@ var waterHeaterCapability = {
|
|
|
26606
27164
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
26607
27165
|
* slice for live temperature / mode / away changes.
|
|
26608
27166
|
*/
|
|
26609
|
-
runtimeState: WaterHeaterStatusSchema
|
|
27167
|
+
runtimeState: WaterHeaterStatusSchema,
|
|
27168
|
+
/**
|
|
27169
|
+
* Runtime-state durability: **session** — as `climate-control`.
|
|
27170
|
+
*
|
|
27171
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27172
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27173
|
+
*/
|
|
27174
|
+
durability: "session"
|
|
26610
27175
|
};
|
|
26611
27176
|
/**
|
|
26612
27177
|
* Weather provider cap. Models HA `weather.*` entities — a read-only
|
|
@@ -26665,7 +27230,14 @@ var weatherCapability = {
|
|
|
26665
27230
|
* Runtime-state slice — mirrored by the kernel. The UI reads the
|
|
26666
27231
|
* current conditions directly from the slice on each weather push.
|
|
26667
27232
|
*/
|
|
26668
|
-
runtimeState: WeatherStatusSchema
|
|
27233
|
+
runtimeState: WeatherStatusSchema,
|
|
27234
|
+
/**
|
|
27235
|
+
* Runtime-state durability: **session** — a forecast is stale the moment the hub is down; the provider re-fetches on connect.
|
|
27236
|
+
*
|
|
27237
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27238
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27239
|
+
*/
|
|
27240
|
+
durability: "session"
|
|
26669
27241
|
};
|
|
26670
27242
|
/**
|
|
26671
27243
|
* Per-zone occupancy aggregation produced by the analytics frame
|
|
@@ -26827,7 +27399,14 @@ var zoneAnalyticsCapability = {
|
|
|
26827
27399
|
* automatically; the explicit `getCurrentSnapshot` cap method is
|
|
26828
27400
|
* still useful for one-off polls without a subscription.
|
|
26829
27401
|
*/
|
|
26830
|
-
runtimeState: CameraOccupancySnapshotSchema
|
|
27402
|
+
runtimeState: CameraOccupancySnapshotSchema,
|
|
27403
|
+
/**
|
|
27404
|
+
* Runtime-state durability: **session** — per-frame analytics; with `audio-metrics` it is ~90 % of the offered write rate. Re-derived on the next frame.
|
|
27405
|
+
*
|
|
27406
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27407
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27408
|
+
*/
|
|
27409
|
+
durability: "session"
|
|
26831
27410
|
};
|
|
26832
27411
|
/**
|
|
26833
27412
|
* Stages a {@link ZoneRule} can apply to. Discriminator on the rules
|
|
@@ -26905,7 +27484,14 @@ var zoneRulesCapability = {
|
|
|
26905
27484
|
motion: array(ZoneRuleSchema).readonly(),
|
|
26906
27485
|
detection: array(ZoneRuleSchema).readonly(),
|
|
26907
27486
|
package: array(ZoneRuleSchema).readonly()
|
|
26908
|
-
})
|
|
27487
|
+
}),
|
|
27488
|
+
/**
|
|
27489
|
+
* Runtime-state durability: **restored** — operator intent, mutation-only, same argument as `zones`.
|
|
27490
|
+
*
|
|
27491
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27492
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27493
|
+
*/
|
|
27494
|
+
durability: "restored"
|
|
26909
27495
|
};
|
|
26910
27496
|
/**
|
|
26911
27497
|
* Accessory device helpers — shared across drivers.
|
|
@@ -33592,6 +34178,7 @@ Object.freeze({
|
|
|
33592
34178
|
"network-access": "ingress",
|
|
33593
34179
|
"smtp-provider": "email"
|
|
33594
34180
|
});
|
|
34181
|
+
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
33595
34182
|
new Set(["devices", "classes"]);
|
|
33596
34183
|
/**
|
|
33597
34184
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|