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