@camstack/addon-provider-reolink 1.2.24 → 1.2.25
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
|
@@ -10966,7 +10966,14 @@ var cameraStreamsCapability = {
|
|
|
10966
10966
|
low: string().optional()
|
|
10967
10967
|
}),
|
|
10968
10968
|
lastChangedAt: number()
|
|
10969
|
-
})
|
|
10969
|
+
}),
|
|
10970
|
+
/**
|
|
10971
|
+
* 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.
|
|
10972
|
+
*
|
|
10973
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
10974
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
10975
|
+
*/
|
|
10976
|
+
durability: "session"
|
|
10970
10977
|
};
|
|
10971
10978
|
/** Where a block runs. The operator chooses — a block driving a device on an
|
|
10972
10979
|
* agent is the reason placement is not fixed to the hub. */
|
|
@@ -11539,6 +11546,13 @@ var deviceDiscoveryCapability = {
|
|
|
11539
11546
|
kind: "poll"
|
|
11540
11547
|
},
|
|
11541
11548
|
runtimeState: DeviceDiscoveryStatusSchema.extend({ lastFetchedAt: number().int().nonnegative() }),
|
|
11549
|
+
/**
|
|
11550
|
+
* Runtime-state durability: **session** — 5.7 KB of scan output on the largest device, fully re-derivable by re-scanning.
|
|
11551
|
+
*
|
|
11552
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
11553
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
11554
|
+
*/
|
|
11555
|
+
durability: "session",
|
|
11542
11556
|
methods: {
|
|
11543
11557
|
/**
|
|
11544
11558
|
* Snapshot of the current `discovered` list. Returns the
|
|
@@ -13438,7 +13452,23 @@ var NotificationActionSchema = object({
|
|
|
13438
13452
|
* else — see `notification-center/action-token.ts` for what that does and
|
|
13439
13453
|
* does not buy.
|
|
13440
13454
|
*/
|
|
13441
|
-
destructive: boolean().optional()
|
|
13455
|
+
destructive: boolean().optional(),
|
|
13456
|
+
/**
|
|
13457
|
+
* How the tap should REACH the url.
|
|
13458
|
+
*
|
|
13459
|
+
* `navigate` (absent, and every button authored before this field) opens it:
|
|
13460
|
+
* the phone leaves the notification and shows whatever the callback returns.
|
|
13461
|
+
* That is right for a button whose answer the operator wants to read.
|
|
13462
|
+
*
|
|
13463
|
+
* `background` fires it as a POST and stays put. It exists for the buttons
|
|
13464
|
+
* whose whole point is not to interrupt — "silence this for 30 minutes" is
|
|
13465
|
+
* an answer to the notification, and being thrown into a browser tab to
|
|
13466
|
+
* confirm it costs more attention than the notification did. A backend that
|
|
13467
|
+
* cannot do a background call renders it as an ordinary link (the adapters
|
|
13468
|
+
* fall back rather than dropping the button), so this is a preference, never
|
|
13469
|
+
* a requirement.
|
|
13470
|
+
*/
|
|
13471
|
+
mode: _enum(["navigate", "background"]).optional()
|
|
13442
13472
|
});
|
|
13443
13473
|
/**
|
|
13444
13474
|
* The canonical notification. `body` is the only hard field (Apprise model).
|
|
@@ -14290,7 +14320,17 @@ var alarmPanelCapability = {
|
|
|
14290
14320
|
* full slice; renders an arm button per `availableModes` entry and
|
|
14291
14321
|
* a PIN field iff `requiresCode === true`.
|
|
14292
14322
|
*/
|
|
14293
|
-
runtimeState: AlarmPanelStatusSchema
|
|
14323
|
+
runtimeState: AlarmPanelStatusSchema,
|
|
14324
|
+
/**
|
|
14325
|
+
* Runtime-state durability: **restored** — armed state is the one thing a panel must not lose across a restart.
|
|
14326
|
+
*
|
|
14327
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
14328
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
14329
|
+
*/
|
|
14330
|
+
durability: "restored",
|
|
14331
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
14332
|
+
* whether persisting is worth a SQLite commit. */
|
|
14333
|
+
volatileStateFields: ["lastChangedAt"]
|
|
14294
14334
|
};
|
|
14295
14335
|
/**
|
|
14296
14336
|
* Shared geometry vocabulary for on-frame shape caps — privacy-mask,
|
|
@@ -14467,6 +14507,9 @@ var NcSystemEventConditionSchema = object({
|
|
|
14467
14507
|
nodeIds: array(string().min(1)).min(1).optional(),
|
|
14468
14508
|
packageNames: array(string().min(1)).min(1).optional()
|
|
14469
14509
|
});
|
|
14510
|
+
/** Hard ceiling on a window (24h). A snooze that could not expire would be an
|
|
14511
|
+
* outage the operator asked for once and forgot. */
|
|
14512
|
+
var NC_SNOOZE_MAX_MINUTES = 1440;
|
|
14470
14513
|
/** Weekly schedule — OR of windows; absence on the rule = always active. */
|
|
14471
14514
|
var NcScheduleSchema = object({
|
|
14472
14515
|
windows: array(object({
|
|
@@ -14843,15 +14886,15 @@ var NcConditionsSchema = object({
|
|
|
14843
14886
|
* (an `immediate` rule naming an `audio-*` class, one notification per
|
|
14844
14887
|
* classified sample) stays exactly as it was for rules that already use it.
|
|
14845
14888
|
*
|
|
14846
|
-
*
|
|
14847
|
-
* rather than an
|
|
14848
|
-
* (`camstack/src/data/notification-center.ts`, guarded by
|
|
14849
|
-
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor
|
|
14889
|
+
* In {@link NC_CONDITION_CATALOG} since P2, and the ORDER it got there is the
|
|
14890
|
+
* rule rather than an accident: the viewer mirrors the descriptor enums BY
|
|
14891
|
+
* HAND (`camstack/src/data/notification-center.ts`, guarded by
|
|
14892
|
+
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor strips the
|
|
14850
14893
|
* condition fields it does not know when a rule is saved from the phone.
|
|
14851
14894
|
* Publishing an editor for a condition the app cannot round-trip is how an
|
|
14852
|
-
* operator loses a rule's conditions by opening it — so the
|
|
14853
|
-
*
|
|
14854
|
-
*
|
|
14895
|
+
* operator loses a rule's conditions by opening it — so the viewer mirror
|
|
14896
|
+
* (P3, shipped) went FIRST, and the descriptor an editor renders from
|
|
14897
|
+
* follows here.
|
|
14855
14898
|
*/
|
|
14856
14899
|
audio: NcAudioConditionSchema.optional()
|
|
14857
14900
|
});
|
|
@@ -15087,6 +15130,30 @@ var NcRuleInputSchema = object({
|
|
|
15087
15130
|
*/
|
|
15088
15131
|
snoozeAllowGlobal: boolean().optional(),
|
|
15089
15132
|
/**
|
|
15133
|
+
* The snooze durations THIS rule's notification offers as buttons, in
|
|
15134
|
+
* minutes.
|
|
15135
|
+
*
|
|
15136
|
+
* Three states, and all three are distinct — which is exactly why this is
|
|
15137
|
+
* `.optional()` and never `.default()`. A Zod default does not run on the
|
|
15138
|
+
* addon cap path (three production failures in one day), so a schema default
|
|
15139
|
+
* would collapse the first two:
|
|
15140
|
+
*
|
|
15141
|
+
* | value | meaning |
|
|
15142
|
+
* | --- | --- |
|
|
15143
|
+
* | absent | the operator never said ⇒ {@link NC_DEFAULT_SNOOZE_MINUTES} |
|
|
15144
|
+
* | `[]` | **no snooze buttons on this rule** — the explicit override |
|
|
15145
|
+
* | a list | these choices, de-duplicated and sorted, at most four |
|
|
15146
|
+
*
|
|
15147
|
+
* `.max(4)` because the notifier's own action budget is small (ntfy allows
|
|
15148
|
+
* three buttons in total) and a rule that spent it all on snooze choices
|
|
15149
|
+
* would push its own tap-through actions off the notification.
|
|
15150
|
+
*
|
|
15151
|
+
* An empty list is NOT an alarm exemption: a rule the alarm is about, or
|
|
15152
|
+
* that arms the panel, is exempt automatically and cannot be silenced by a
|
|
15153
|
+
* window from anywhere (D133).
|
|
15154
|
+
*/
|
|
15155
|
+
snoozeOptions: array(number().int().min(1).max(NC_SNOOZE_MAX_MINUTES)).max(4).optional(),
|
|
15156
|
+
/**
|
|
15090
15157
|
* Devices this rule ACTUATES — arm the alarm, open a gate, turn on a light.
|
|
15091
15158
|
*
|
|
15092
15159
|
* This is what makes the rule set the alarm's trigger set without the alarm
|
|
@@ -15186,6 +15253,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
15186
15253
|
"device",
|
|
15187
15254
|
"package",
|
|
15188
15255
|
"occupancy",
|
|
15256
|
+
"audio",
|
|
15189
15257
|
"system"
|
|
15190
15258
|
]),
|
|
15191
15259
|
label: string(),
|
|
@@ -15204,6 +15272,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
15204
15272
|
"crossingSelect",
|
|
15205
15273
|
"polygonDraw",
|
|
15206
15274
|
"occupancy",
|
|
15275
|
+
"audio",
|
|
15207
15276
|
"deviceState",
|
|
15208
15277
|
"systemEvent"
|
|
15209
15278
|
]),
|
|
@@ -15355,7 +15424,20 @@ var NcSnoozeInputSchema = object({
|
|
|
15355
15424
|
ruleId: string().optional(),
|
|
15356
15425
|
/** Required when `scope: 'device'`. */
|
|
15357
15426
|
deviceId: number().int().optional(),
|
|
15358
|
-
|
|
15427
|
+
/**
|
|
15428
|
+
* Narrow the window to these subject classes — "the cat, not the person".
|
|
15429
|
+
*
|
|
15430
|
+
* ORTHOGONAL to `scope`, deliberately, and absent means EVERY class: that is
|
|
15431
|
+
* what every window authored before this field meant, so no persisted row
|
|
15432
|
+
* changes meaning and no client has to learn anything to keep working.
|
|
15433
|
+
*
|
|
15434
|
+
* It is what makes the window's real key `(deviceId, classes[])` and lets it
|
|
15435
|
+
* cross rules (D133): the operator points at a camera and a kind of thing,
|
|
15436
|
+
* not at whichever of their four rules happened to produce the notification
|
|
15437
|
+
* they are dismissing.
|
|
15438
|
+
*/
|
|
15439
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
15440
|
+
durationMinutes: number().int().min(1).max(NC_SNOOZE_MAX_MINUTES),
|
|
15359
15441
|
/**
|
|
15360
15442
|
* Silence this for EVERY recipient, not just the caller. Permission is
|
|
15361
15443
|
* checked server-side (the rule's `snoozeAllowGlobal`, or admin for the
|
|
@@ -15380,6 +15462,10 @@ var NcSnoozeSchema = object({
|
|
|
15380
15462
|
scope: NcSnoozeScopeSchema,
|
|
15381
15463
|
ruleId: string().optional(),
|
|
15382
15464
|
deviceId: number().int().optional(),
|
|
15465
|
+
/** Subject classes this window covers. ABSENT = every class — see
|
|
15466
|
+
* {@link NcSnoozeInputSchema.shape.classes}. Lives in the JSON blob and has
|
|
15467
|
+
* no SQLite column: nothing queries a window by class. */
|
|
15468
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
15383
15469
|
startedAt: number(),
|
|
15384
15470
|
/** Exclusive: at exactly this instant the snooze is over. Expiry is a
|
|
15385
15471
|
* COMPARISON, not a job — no sweeper can leave the operator silenced. */
|
|
@@ -17480,7 +17566,14 @@ var zonesCapability = {
|
|
|
17480
17566
|
* handle. Slice shape is `{ zones: Zone[] }` so future extensions
|
|
17481
17567
|
* (e.g. zone groupings) can sit alongside the polygon list.
|
|
17482
17568
|
*/
|
|
17483
|
-
runtimeState: object({ zones: array(ZoneSchema).readonly() })
|
|
17569
|
+
runtimeState: object({ zones: array(ZoneSchema).readonly() }),
|
|
17570
|
+
/**
|
|
17571
|
+
* 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.
|
|
17572
|
+
*
|
|
17573
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
17574
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
17575
|
+
*/
|
|
17576
|
+
durability: "restored"
|
|
17484
17577
|
};
|
|
17485
17578
|
/**
|
|
17486
17579
|
* A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
|
|
@@ -20374,7 +20467,17 @@ var airQualitySensorCapability = {
|
|
|
20374
20467
|
schema: AirQualitySensorStatusSchema,
|
|
20375
20468
|
kind: "push"
|
|
20376
20469
|
},
|
|
20377
|
-
runtimeState: AirQualitySensorStatusSchema
|
|
20470
|
+
runtimeState: AirQualitySensorStatusSchema,
|
|
20471
|
+
/**
|
|
20472
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
20473
|
+
*
|
|
20474
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20475
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20476
|
+
*/
|
|
20477
|
+
durability: "restored",
|
|
20478
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20479
|
+
* whether persisting is worth a SQLite commit. */
|
|
20480
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
20378
20481
|
};
|
|
20379
20482
|
/**
|
|
20380
20483
|
* Ambient illuminance reading in lux. Drives Home Assistant `sensor`
|
|
@@ -20406,7 +20509,17 @@ var ambientLightSensorCapability = {
|
|
|
20406
20509
|
schema: AmbientLightSensorStatusSchema,
|
|
20407
20510
|
kind: "push"
|
|
20408
20511
|
},
|
|
20409
|
-
runtimeState: AmbientLightSensorStatusSchema
|
|
20512
|
+
runtimeState: AmbientLightSensorStatusSchema,
|
|
20513
|
+
/**
|
|
20514
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
20515
|
+
*
|
|
20516
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20517
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20518
|
+
*/
|
|
20519
|
+
durability: "restored",
|
|
20520
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20521
|
+
* whether persisting is worth a SQLite commit. */
|
|
20522
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
20410
20523
|
};
|
|
20411
20524
|
/**
|
|
20412
20525
|
* Per-class audio metrics aggregated over a sliding window.
|
|
@@ -20524,7 +20637,14 @@ var audioMetricsCapability = {
|
|
|
20524
20637
|
}), AudioMetricsHistorySchema)
|
|
20525
20638
|
},
|
|
20526
20639
|
/** Reactive runtime-state mirror — live `device.state.audioMetrics.value`. */
|
|
20527
|
-
runtimeState: AudioMetricsSnapshotSchema
|
|
20640
|
+
runtimeState: AudioMetricsSnapshotSchema,
|
|
20641
|
+
/**
|
|
20642
|
+
* 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.
|
|
20643
|
+
*
|
|
20644
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20645
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20646
|
+
*/
|
|
20647
|
+
durability: "session"
|
|
20528
20648
|
};
|
|
20529
20649
|
/**
|
|
20530
20650
|
* Automation-control cap. Models HA `automation.*` entities on
|
|
@@ -20586,7 +20706,14 @@ var automationControlCapability = {
|
|
|
20586
20706
|
* reads `enabled` (toggle) + `isRunning` (spinner) + `lastError`
|
|
20587
20707
|
* (badge) directly.
|
|
20588
20708
|
*/
|
|
20589
|
-
runtimeState: AutomationControlStatusSchema
|
|
20709
|
+
runtimeState: AutomationControlStatusSchema,
|
|
20710
|
+
/**
|
|
20711
|
+
* 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.
|
|
20712
|
+
*
|
|
20713
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20714
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20715
|
+
*/
|
|
20716
|
+
durability: "session"
|
|
20590
20717
|
};
|
|
20591
20718
|
/**
|
|
20592
20719
|
* Battery status snapshot. Emitted by providers whose device is
|
|
@@ -20692,7 +20819,17 @@ onStatusChanged: { data: object({
|
|
|
20692
20819
|
* via `device.runtimeState.getCapState('battery')` regardless of
|
|
20693
20820
|
* the underlying driver.
|
|
20694
20821
|
*/
|
|
20695
|
-
runtimeState: BatteryStatusSchema
|
|
20822
|
+
runtimeState: BatteryStatusSchema,
|
|
20823
|
+
/**
|
|
20824
|
+
* 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.
|
|
20825
|
+
*
|
|
20826
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20827
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20828
|
+
*/
|
|
20829
|
+
durability: "restored",
|
|
20830
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20831
|
+
* whether persisting is worth a SQLite commit. */
|
|
20832
|
+
volatileStateFields: ["lastUpdated"]
|
|
20696
20833
|
};
|
|
20697
20834
|
/**
|
|
20698
20835
|
* Generic boolean sensor — last-resort fallback when no domain-
|
|
@@ -20721,7 +20858,17 @@ var binaryCapability = {
|
|
|
20721
20858
|
schema: BinaryStatusSchema,
|
|
20722
20859
|
kind: "push"
|
|
20723
20860
|
},
|
|
20724
|
-
runtimeState: BinaryStatusSchema
|
|
20861
|
+
runtimeState: BinaryStatusSchema,
|
|
20862
|
+
/**
|
|
20863
|
+
* Runtime-state durability: **restored** — transition-driven sensor state; the restored value gives the boot comparison.
|
|
20864
|
+
*
|
|
20865
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20866
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20867
|
+
*/
|
|
20868
|
+
durability: "restored",
|
|
20869
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20870
|
+
* whether persisting is worth a SQLite commit. */
|
|
20871
|
+
volatileStateFields: ["lastChangedAt"]
|
|
20725
20872
|
};
|
|
20726
20873
|
/**
|
|
20727
20874
|
* Dimmable-light brightness control. Co-exists with `switch` on the
|
|
@@ -20774,7 +20921,14 @@ onBrightnessChanged: { data: object({
|
|
|
20774
20921
|
* by the kernel. Read via `device.state.brightness.value` so UI
|
|
20775
20922
|
* sliders surface the current level without polling the provider.
|
|
20776
20923
|
*/
|
|
20777
|
-
runtimeState: BrightnessStatusSchema
|
|
20924
|
+
runtimeState: BrightnessStatusSchema,
|
|
20925
|
+
/**
|
|
20926
|
+
* Runtime-state durability: **session** — live lamp state, re-published by the provider on connect.
|
|
20927
|
+
*
|
|
20928
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20929
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20930
|
+
*/
|
|
20931
|
+
durability: "session"
|
|
20778
20932
|
};
|
|
20779
20933
|
DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _void(), {
|
|
20780
20934
|
kind: "mutation",
|
|
@@ -20862,7 +21016,17 @@ var carbonMonoxideCapability = {
|
|
|
20862
21016
|
schema: CarbonMonoxideStatusSchema,
|
|
20863
21017
|
kind: "push"
|
|
20864
21018
|
},
|
|
20865
|
-
runtimeState: CarbonMonoxideStatusSchema
|
|
21019
|
+
runtimeState: CarbonMonoxideStatusSchema,
|
|
21020
|
+
/**
|
|
21021
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
21022
|
+
*
|
|
21023
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21024
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21025
|
+
*/
|
|
21026
|
+
durability: "restored",
|
|
21027
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21028
|
+
* whether persisting is worth a SQLite commit. */
|
|
21029
|
+
volatileStateFields: ["lastChangedAt"]
|
|
20866
21030
|
};
|
|
20867
21031
|
/**
|
|
20868
21032
|
* HVAC / climate control cap. Models the full surface of a HA
|
|
@@ -21022,7 +21186,14 @@ var climateControlCapability = {
|
|
|
21022
21186
|
* the full slice via `device.state.climate-control.value` and refresh
|
|
21023
21187
|
* on every push without re-querying the provider.
|
|
21024
21188
|
*/
|
|
21025
|
-
runtimeState: ClimateControlStatusSchema
|
|
21189
|
+
runtimeState: ClimateControlStatusSchema,
|
|
21190
|
+
/**
|
|
21191
|
+
* Runtime-state durability: **session** — as `brightness`; `currentTemp` moves continuously and is re-published on connect.
|
|
21192
|
+
*
|
|
21193
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21194
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21195
|
+
*/
|
|
21196
|
+
durability: "session"
|
|
21026
21197
|
};
|
|
21027
21198
|
/**
|
|
21028
21199
|
* Color-light cap. Coexists with `switch` (on/off) and `brightness`
|
|
@@ -21132,7 +21303,14 @@ onColorChanged: { data: object({
|
|
|
21132
21303
|
* kernel. Read via `device.state.color.value` so UI pickers surface
|
|
21133
21304
|
* the current chromaticity without polling the provider.
|
|
21134
21305
|
*/
|
|
21135
|
-
runtimeState: ColorStatusSchema
|
|
21306
|
+
runtimeState: ColorStatusSchema,
|
|
21307
|
+
/**
|
|
21308
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
21309
|
+
*
|
|
21310
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21311
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21312
|
+
*/
|
|
21313
|
+
durability: "session"
|
|
21136
21314
|
};
|
|
21137
21315
|
var ConnectionTestOutcomeSchema = discriminatedUnion("outcome", [
|
|
21138
21316
|
object({
|
|
@@ -21190,7 +21368,17 @@ var connectivityCapability = {
|
|
|
21190
21368
|
schema: ConnectivityStatusSchema,
|
|
21191
21369
|
kind: "push"
|
|
21192
21370
|
},
|
|
21193
|
-
runtimeState: ConnectivityStatusSchema
|
|
21371
|
+
runtimeState: ConnectivityStatusSchema,
|
|
21372
|
+
/**
|
|
21373
|
+
* Runtime-state durability: **restored** — same shape and same argument as `device-status`, for links rather than devices.
|
|
21374
|
+
*
|
|
21375
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21376
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21377
|
+
*/
|
|
21378
|
+
durability: "restored",
|
|
21379
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21380
|
+
* whether persisting is worth a SQLite commit. */
|
|
21381
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21194
21382
|
};
|
|
21195
21383
|
/**
|
|
21196
21384
|
* Generic device-consumables capability — surfaces a device's
|
|
@@ -21272,7 +21460,14 @@ reset: method(object({
|
|
|
21272
21460
|
}
|
|
21273
21461
|
}
|
|
21274
21462
|
},
|
|
21275
|
-
runtimeState: ConsumablesStatusSchema.extend({ lastFetchedAt: number() })
|
|
21463
|
+
runtimeState: ConsumablesStatusSchema.extend({ lastFetchedAt: number() }),
|
|
21464
|
+
/**
|
|
21465
|
+
* Runtime-state durability: **session** — the authority is the appliance; the provider re-reads the whole item array on connect.
|
|
21466
|
+
*
|
|
21467
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21468
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21469
|
+
*/
|
|
21470
|
+
durability: "session"
|
|
21276
21471
|
};
|
|
21277
21472
|
/**
|
|
21278
21473
|
* Door / window / opening / garage / valve contact sensor. Boolean
|
|
@@ -21303,7 +21498,17 @@ var contactCapability = {
|
|
|
21303
21498
|
schema: ContactStatusSchema,
|
|
21304
21499
|
kind: "push"
|
|
21305
21500
|
},
|
|
21306
|
-
runtimeState: ContactStatusSchema
|
|
21501
|
+
runtimeState: ContactStatusSchema,
|
|
21502
|
+
/**
|
|
21503
|
+
* Runtime-state durability: **restored** — a door left open across a restart must still read open.
|
|
21504
|
+
*
|
|
21505
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21506
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21507
|
+
*/
|
|
21508
|
+
durability: "restored",
|
|
21509
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21510
|
+
* whether persisting is worth a SQLite commit. */
|
|
21511
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21307
21512
|
};
|
|
21308
21513
|
/**
|
|
21309
21514
|
* Status slice — flat object (the framework's `runtimeState` contract
|
|
@@ -21409,7 +21614,14 @@ var controlCapability = {
|
|
|
21409
21614
|
* dropdown / text field / date picker) read the slice's discriminant
|
|
21410
21615
|
* and value directly without polling the provider.
|
|
21411
21616
|
*/
|
|
21412
|
-
runtimeState: ControlStatusSchema
|
|
21617
|
+
runtimeState: ControlStatusSchema,
|
|
21618
|
+
/**
|
|
21619
|
+
* Runtime-state durability: **session** — a generic control mirrors an external entity that re-publishes on connect; the options array is re-derived with it.
|
|
21620
|
+
*
|
|
21621
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21622
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21623
|
+
*/
|
|
21624
|
+
durability: "session"
|
|
21413
21625
|
};
|
|
21414
21626
|
var CoverStatusSchema = object({
|
|
21415
21627
|
/** Lifecycle state of the cover. */
|
|
@@ -21470,7 +21682,17 @@ var coverCapability = {
|
|
|
21470
21682
|
* Runtime-state slice — mirrored by the kernel. UI controls watch
|
|
21471
21683
|
* the slice for live position changes during a move.
|
|
21472
21684
|
*/
|
|
21473
|
-
runtimeState: CoverStatusSchema
|
|
21685
|
+
runtimeState: CoverStatusSchema,
|
|
21686
|
+
/**
|
|
21687
|
+
* Runtime-state durability: **restored** — position survives a restart on the device; the mirror should agree at boot rather than read blank.
|
|
21688
|
+
*
|
|
21689
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21690
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21691
|
+
*/
|
|
21692
|
+
durability: "restored",
|
|
21693
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21694
|
+
* whether persisting is worth a SQLite commit. */
|
|
21695
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21474
21696
|
};
|
|
21475
21697
|
/**
|
|
21476
21698
|
* Vendor-neutral day/night (IR-cut) control — the per-camera config cap
|
|
@@ -21564,7 +21786,17 @@ var dayNightCapability = {
|
|
|
21564
21786
|
schema: DayNightStatusSchema,
|
|
21565
21787
|
kind: "poll"
|
|
21566
21788
|
},
|
|
21567
|
-
runtimeState: DayNightStatusSchema
|
|
21789
|
+
runtimeState: DayNightStatusSchema,
|
|
21790
|
+
/**
|
|
21791
|
+
* Runtime-state durability: **restored** — operator-set IR-cut behaviour; mutation-driven.
|
|
21792
|
+
*
|
|
21793
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21794
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21795
|
+
*/
|
|
21796
|
+
durability: "restored",
|
|
21797
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21798
|
+
* whether persisting is worth a SQLite commit. */
|
|
21799
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
21568
21800
|
};
|
|
21569
21801
|
/**
|
|
21570
21802
|
* Generic device-level status snapshot. Auto-registered by `BaseDevice`
|
|
@@ -21611,7 +21843,17 @@ onStatusChanged: { data: object({
|
|
|
21611
21843
|
schema: DeviceStatusSchema,
|
|
21612
21844
|
kind: "push"
|
|
21613
21845
|
},
|
|
21614
|
-
runtimeState: DeviceStatusSchema
|
|
21846
|
+
runtimeState: DeviceStatusSchema,
|
|
21847
|
+
/**
|
|
21848
|
+
* 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.
|
|
21849
|
+
*
|
|
21850
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21851
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21852
|
+
*/
|
|
21853
|
+
durability: "restored",
|
|
21854
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21855
|
+
* whether persisting is worth a SQLite commit. */
|
|
21856
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21615
21857
|
};
|
|
21616
21858
|
/**
|
|
21617
21859
|
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
@@ -21673,7 +21915,14 @@ onPressed: { data: DoorbellPressEventSchema } },
|
|
|
21673
21915
|
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
21674
21916
|
* without subscribing.
|
|
21675
21917
|
*/
|
|
21676
|
-
runtimeState: DoorbellStatusSchema
|
|
21918
|
+
runtimeState: DoorbellStatusSchema,
|
|
21919
|
+
/**
|
|
21920
|
+
* 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.
|
|
21921
|
+
*
|
|
21922
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21923
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21924
|
+
*/
|
|
21925
|
+
durability: "restored"
|
|
21677
21926
|
};
|
|
21678
21927
|
/**
|
|
21679
21928
|
* Enum-state sensor — a string value picked from a finite option set.
|
|
@@ -21713,7 +21962,17 @@ var enumSensorCapability = {
|
|
|
21713
21962
|
schema: EnumSensorStatusSchema,
|
|
21714
21963
|
kind: "push"
|
|
21715
21964
|
},
|
|
21716
|
-
runtimeState: EnumSensorStatusSchema
|
|
21965
|
+
runtimeState: EnumSensorStatusSchema,
|
|
21966
|
+
/**
|
|
21967
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`; 80 devices.
|
|
21968
|
+
*
|
|
21969
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21970
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21971
|
+
*/
|
|
21972
|
+
durability: "restored",
|
|
21973
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21974
|
+
* whether persisting is worth a SQLite commit. */
|
|
21975
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
21717
21976
|
};
|
|
21718
21977
|
/**
|
|
21719
21978
|
* Generic stateless event emitter. Installed on a `DeviceType.EventEmitter`
|
|
@@ -21749,7 +22008,14 @@ var eventEmitterCapability = {
|
|
|
21749
22008
|
schema: EventEmitterStatusSchema,
|
|
21750
22009
|
kind: "push"
|
|
21751
22010
|
},
|
|
21752
|
-
runtimeState: EventEmitterStatusSchema
|
|
22011
|
+
runtimeState: EventEmitterStatusSchema,
|
|
22012
|
+
/**
|
|
22013
|
+
* Runtime-state durability: **session** — `eventCountSinceStart` names its own scope.
|
|
22014
|
+
*
|
|
22015
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22016
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22017
|
+
*/
|
|
22018
|
+
durability: "session"
|
|
21753
22019
|
};
|
|
21754
22020
|
var EventItemSchema = object({
|
|
21755
22021
|
id: string(),
|
|
@@ -22030,7 +22296,14 @@ var fanControlCapability = {
|
|
|
22030
22296
|
* Runtime-state slice — mirrored by the kernel. UI fan speed
|
|
22031
22297
|
* sliders read `percentage` for live updates.
|
|
22032
22298
|
*/
|
|
22033
|
-
runtimeState: FanControlStatusSchema
|
|
22299
|
+
runtimeState: FanControlStatusSchema,
|
|
22300
|
+
/**
|
|
22301
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
22302
|
+
*
|
|
22303
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22304
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22305
|
+
*/
|
|
22306
|
+
durability: "session"
|
|
22034
22307
|
};
|
|
22035
22308
|
/**
|
|
22036
22309
|
* Per-device feature/identity probe slice. Holds the runtime-resolved
|
|
@@ -22106,7 +22379,14 @@ onProbeChanged: { data: object({
|
|
|
22106
22379
|
schema: FeatureProbeStatusSchema,
|
|
22107
22380
|
kind: "push"
|
|
22108
22381
|
},
|
|
22109
|
-
runtimeState: FeatureProbeStatusSchema
|
|
22382
|
+
runtimeState: FeatureProbeStatusSchema,
|
|
22383
|
+
/**
|
|
22384
|
+
* 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.
|
|
22385
|
+
*
|
|
22386
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22387
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22388
|
+
*/
|
|
22389
|
+
durability: "session"
|
|
22110
22390
|
};
|
|
22111
22391
|
/**
|
|
22112
22392
|
* Water leak / moisture sensor. Boolean "is liquid currently
|
|
@@ -22133,7 +22413,17 @@ var floodCapability = {
|
|
|
22133
22413
|
schema: FloodStatusSchema,
|
|
22134
22414
|
kind: "push"
|
|
22135
22415
|
},
|
|
22136
|
-
runtimeState: FloodStatusSchema
|
|
22416
|
+
runtimeState: FloodStatusSchema,
|
|
22417
|
+
/**
|
|
22418
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
22419
|
+
*
|
|
22420
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22421
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22422
|
+
*/
|
|
22423
|
+
durability: "restored",
|
|
22424
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22425
|
+
* whether persisting is worth a SQLite commit. */
|
|
22426
|
+
volatileStateFields: ["lastChangedAt"]
|
|
22137
22427
|
};
|
|
22138
22428
|
/**
|
|
22139
22429
|
* Combustible-gas (LPG / methane / hydrogen) alarm sensor. Drives
|
|
@@ -22156,7 +22446,17 @@ var gasCapability = {
|
|
|
22156
22446
|
schema: GasStatusSchema,
|
|
22157
22447
|
kind: "push"
|
|
22158
22448
|
},
|
|
22159
|
-
runtimeState: GasStatusSchema
|
|
22449
|
+
runtimeState: GasStatusSchema,
|
|
22450
|
+
/**
|
|
22451
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
22452
|
+
*
|
|
22453
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22454
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22455
|
+
*/
|
|
22456
|
+
durability: "restored",
|
|
22457
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22458
|
+
* whether persisting is worth a SQLite commit. */
|
|
22459
|
+
volatileStateFields: ["lastChangedAt"]
|
|
22160
22460
|
};
|
|
22161
22461
|
/**
|
|
22162
22462
|
* Humidifier / dehumidifier cap. Models HA `humidifier.*` entities —
|
|
@@ -22232,7 +22532,14 @@ var humidifierCapability = {
|
|
|
22232
22532
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
22233
22533
|
* slice for live humidity / mode changes.
|
|
22234
22534
|
*/
|
|
22235
|
-
runtimeState: HumidifierStatusSchema
|
|
22535
|
+
runtimeState: HumidifierStatusSchema,
|
|
22536
|
+
/**
|
|
22537
|
+
* Runtime-state durability: **session** — as `climate-control`.
|
|
22538
|
+
*
|
|
22539
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22540
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22541
|
+
*/
|
|
22542
|
+
durability: "session"
|
|
22236
22543
|
};
|
|
22237
22544
|
/**
|
|
22238
22545
|
* Single-metric humidity reading. Drives Home Assistant `sensor`
|
|
@@ -22268,7 +22575,17 @@ var humiditySensorCapability = {
|
|
|
22268
22575
|
schema: HumiditySensorStatusSchema,
|
|
22269
22576
|
kind: "push"
|
|
22270
22577
|
},
|
|
22271
|
-
runtimeState: HumiditySensorStatusSchema
|
|
22578
|
+
runtimeState: HumiditySensorStatusSchema,
|
|
22579
|
+
/**
|
|
22580
|
+
* Runtime-state durability: **restored** — as `numeric-sensor` (67 of 75 writes were the clock alone).
|
|
22581
|
+
*
|
|
22582
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22583
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22584
|
+
*/
|
|
22585
|
+
durability: "restored",
|
|
22586
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22587
|
+
* whether persisting is worth a SQLite commit. */
|
|
22588
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
22272
22589
|
};
|
|
22273
22590
|
/**
|
|
22274
22591
|
* Image display cap. Models a single still image exposed by an integration —
|
|
@@ -22306,7 +22623,14 @@ var imageCapability = {
|
|
|
22306
22623
|
* Runtime-state slice — mirrored by the kernel. The UI reads `url`
|
|
22307
22624
|
* directly and renders the still image.
|
|
22308
22625
|
*/
|
|
22309
|
-
runtimeState: ImageStatusSchema
|
|
22626
|
+
runtimeState: ImageStatusSchema,
|
|
22627
|
+
/**
|
|
22628
|
+
* Runtime-state durability: **session** — a snapshot URL is a session-scoped handle; a restored one points at nothing.
|
|
22629
|
+
*
|
|
22630
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22631
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22632
|
+
*/
|
|
22633
|
+
durability: "session"
|
|
22310
22634
|
};
|
|
22311
22635
|
/**
|
|
22312
22636
|
* Vendor-neutral image / picture-adjustment cap — the per-camera config
|
|
@@ -22455,7 +22779,17 @@ var imageSettingsCapability = {
|
|
|
22455
22779
|
schema: ImageSettingsStatusSchema,
|
|
22456
22780
|
kind: "poll"
|
|
22457
22781
|
},
|
|
22458
|
-
runtimeState: ImageSettingsStatusSchema
|
|
22782
|
+
runtimeState: ImageSettingsStatusSchema,
|
|
22783
|
+
/**
|
|
22784
|
+
* Runtime-state durability: **restored** — operator-set camera imaging; mutation-driven.
|
|
22785
|
+
*
|
|
22786
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22787
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22788
|
+
*/
|
|
22789
|
+
durability: "restored",
|
|
22790
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22791
|
+
* whether persisting is worth a SQLite commit. */
|
|
22792
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
22459
22793
|
};
|
|
22460
22794
|
/**
|
|
22461
22795
|
* integrations — system-scoped singleton capability for integration
|
|
@@ -22846,7 +23180,14 @@ var lawnMowerControlCapability = {
|
|
|
22846
23180
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
22847
23181
|
* slice for live activity + battery changes.
|
|
22848
23182
|
*/
|
|
22849
|
-
runtimeState: LawnMowerControlStatusSchema
|
|
23183
|
+
runtimeState: LawnMowerControlStatusSchema,
|
|
23184
|
+
/**
|
|
23185
|
+
* Runtime-state durability: **session** — as `vacuum-control`.
|
|
23186
|
+
*
|
|
23187
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23188
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23189
|
+
*/
|
|
23190
|
+
durability: "session"
|
|
22850
23191
|
};
|
|
22851
23192
|
/**
|
|
22852
23193
|
* local-network — hub-only singleton.
|
|
@@ -23052,7 +23393,17 @@ var lockControlCapability = {
|
|
|
23052
23393
|
* read `state` and disable themselves during `locking`/`unlocking`
|
|
23053
23394
|
* transitions.
|
|
23054
23395
|
*/
|
|
23055
|
-
runtimeState: LockControlStatusSchema
|
|
23396
|
+
runtimeState: LockControlStatusSchema,
|
|
23397
|
+
/**
|
|
23398
|
+
* Runtime-state durability: **restored** — a lock left locked must still read locked.
|
|
23399
|
+
*
|
|
23400
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23401
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23402
|
+
*/
|
|
23403
|
+
durability: "restored",
|
|
23404
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23405
|
+
* whether persisting is worth a SQLite commit. */
|
|
23406
|
+
volatileStateFields: ["lastChangedAt"]
|
|
23056
23407
|
};
|
|
23057
23408
|
/**
|
|
23058
23409
|
* Media-player cap. Models HA `media_player.*` (Sonos, Chromecast,
|
|
@@ -23214,7 +23565,14 @@ var mediaPlayerCapability = {
|
|
|
23214
23565
|
* full slice for live now-playing, volume, and progress updates
|
|
23215
23566
|
* without polling.
|
|
23216
23567
|
*/
|
|
23217
|
-
runtimeState: MediaPlayerStatusSchema
|
|
23568
|
+
runtimeState: MediaPlayerStatusSchema,
|
|
23569
|
+
/**
|
|
23570
|
+
* Runtime-state durability: **session** — a restored transport position describes a playback that stopped when the hub did.
|
|
23571
|
+
*
|
|
23572
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23573
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23574
|
+
*/
|
|
23575
|
+
durability: "session"
|
|
23218
23576
|
};
|
|
23219
23577
|
/**
|
|
23220
23578
|
* mesh-network — collection cap for mesh-VPN providers.
|
|
@@ -23478,7 +23836,14 @@ onMotionChanged: { data: MotionOnMotionChangedDataSchema } },
|
|
|
23478
23836
|
* `device.state.motion.value`. Reads never invoke the provider, so
|
|
23479
23837
|
* UIs and other addons can poll the cached state safely.
|
|
23480
23838
|
*/
|
|
23481
|
-
runtimeState: MotionStatusSchema
|
|
23839
|
+
runtimeState: MotionStatusSchema,
|
|
23840
|
+
/**
|
|
23841
|
+
* 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.
|
|
23842
|
+
*
|
|
23843
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23844
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23845
|
+
*/
|
|
23846
|
+
durability: "session"
|
|
23482
23847
|
};
|
|
23483
23848
|
/**
|
|
23484
23849
|
* Motion-trigger toggle for accessory devices.
|
|
@@ -23543,7 +23908,14 @@ var motionTriggerCapability = {
|
|
|
23543
23908
|
schema: MotionTriggerStatusSchema,
|
|
23544
23909
|
kind: "command-driven"
|
|
23545
23910
|
},
|
|
23546
|
-
runtimeState: MotionTriggerRuntimeStateSchema
|
|
23911
|
+
runtimeState: MotionTriggerRuntimeStateSchema,
|
|
23912
|
+
/**
|
|
23913
|
+
* 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.
|
|
23914
|
+
*
|
|
23915
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23916
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23917
|
+
*/
|
|
23918
|
+
durability: "session"
|
|
23547
23919
|
};
|
|
23548
23920
|
/**
|
|
23549
23921
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
@@ -23610,7 +23982,17 @@ var motionZonesCapability = {
|
|
|
23610
23982
|
schema: MotionZoneStatusSchema,
|
|
23611
23983
|
kind: "poll"
|
|
23612
23984
|
},
|
|
23613
|
-
runtimeState: MotionZoneStatusSchema
|
|
23985
|
+
runtimeState: MotionZoneStatusSchema,
|
|
23986
|
+
/**
|
|
23987
|
+
* 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.
|
|
23988
|
+
*
|
|
23989
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23990
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23991
|
+
*/
|
|
23992
|
+
durability: "restored",
|
|
23993
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23994
|
+
* whether persisting is worth a SQLite commit. */
|
|
23995
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23614
23996
|
};
|
|
23615
23997
|
/**
|
|
23616
23998
|
* On-camera AI object detection cap. Surfaces per-device the classes
|
|
@@ -23684,7 +24066,17 @@ var nativeObjectDetectionCapability = {
|
|
|
23684
24066
|
schema: NativeObjectDetectionStatusSchema,
|
|
23685
24067
|
kind: "push"
|
|
23686
24068
|
},
|
|
23687
|
-
runtimeState: NativeObjectDetectionRuntimeStateSchema
|
|
24069
|
+
runtimeState: NativeObjectDetectionRuntimeStateSchema,
|
|
24070
|
+
/**
|
|
24071
|
+
* 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.
|
|
24072
|
+
*
|
|
24073
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24074
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24075
|
+
*/
|
|
24076
|
+
durability: "restored",
|
|
24077
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24078
|
+
* whether persisting is worth a SQLite commit. */
|
|
24079
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23688
24080
|
};
|
|
23689
24081
|
/**
|
|
23690
24082
|
* network-quality — system-scoped singleton capability tracking RTT,
|
|
@@ -24018,7 +24410,14 @@ onSent: { data: object({
|
|
|
24018
24410
|
* form reads `supports` to gate optional fields; history pane reads
|
|
24019
24411
|
* `lastSentAt` / `lastError` / `queueDepth`.
|
|
24020
24412
|
*/
|
|
24021
|
-
runtimeState: NotifierStatusSchema
|
|
24413
|
+
runtimeState: NotifierStatusSchema,
|
|
24414
|
+
/**
|
|
24415
|
+
* Runtime-state durability: **session** — live queue depth and last-send state; a restored queue depth describes a queue that no longer exists.
|
|
24416
|
+
*
|
|
24417
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24418
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24419
|
+
*/
|
|
24420
|
+
durability: "session"
|
|
24022
24421
|
};
|
|
24023
24422
|
/**
|
|
24024
24423
|
* Generic numeric sensor — last-resort fallback when no typed numeric
|
|
@@ -24061,7 +24460,17 @@ var numericSensorCapability = {
|
|
|
24061
24460
|
schema: NumericSensorStatusSchema,
|
|
24062
24461
|
kind: "push"
|
|
24063
24462
|
},
|
|
24064
|
-
runtimeState: NumericSensorStatusSchema
|
|
24463
|
+
runtimeState: NumericSensorStatusSchema,
|
|
24464
|
+
/**
|
|
24465
|
+
* 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.
|
|
24466
|
+
*
|
|
24467
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24468
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24469
|
+
*/
|
|
24470
|
+
durability: "restored",
|
|
24471
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24472
|
+
* whether persisting is worth a SQLite commit. */
|
|
24473
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24065
24474
|
};
|
|
24066
24475
|
/**
|
|
24067
24476
|
* Generic on-screen-display (video overlay) cap. Each camera exposes
|
|
@@ -24446,7 +24855,14 @@ var petFeederCapability = {
|
|
|
24446
24855
|
* the full slice via `device.state.petFeeder.value` and refresh on
|
|
24447
24856
|
* every poll without re-querying the provider.
|
|
24448
24857
|
*/
|
|
24449
|
-
runtimeState: PetFeederStatusSchema
|
|
24858
|
+
runtimeState: PetFeederStatusSchema,
|
|
24859
|
+
/**
|
|
24860
|
+
* Runtime-state durability: **session** — live appliance state re-published on connect.
|
|
24861
|
+
*
|
|
24862
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24863
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24864
|
+
*/
|
|
24865
|
+
durability: "session"
|
|
24450
24866
|
};
|
|
24451
24867
|
var VehicleSchema = object({
|
|
24452
24868
|
id: string(),
|
|
@@ -24758,7 +25174,17 @@ var powerMeterCapability = {
|
|
|
24758
25174
|
schema: PowerMeterStatusSchema,
|
|
24759
25175
|
kind: "push"
|
|
24760
25176
|
},
|
|
24761
|
-
runtimeState: PowerMeterStatusSchema
|
|
25177
|
+
runtimeState: PowerMeterStatusSchema,
|
|
25178
|
+
/**
|
|
25179
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`; `kwhTotal` is an accumulator whose restored value is the baseline.
|
|
25180
|
+
*
|
|
25181
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25182
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25183
|
+
*/
|
|
25184
|
+
durability: "restored",
|
|
25185
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25186
|
+
* whether persisting is worth a SQLite commit. */
|
|
25187
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24762
25188
|
};
|
|
24763
25189
|
/**
|
|
24764
25190
|
* Presence cap. Models HA `person.*` and `device_tracker.*` entities
|
|
@@ -24815,7 +25241,17 @@ var presenceCapability = {
|
|
|
24815
25241
|
* the map pin is rendered (use `DeviceFeature.PresenceGps` for the
|
|
24816
25242
|
* pre-fetch fast-path check).
|
|
24817
25243
|
*/
|
|
24818
|
-
runtimeState: PresenceStatusSchema
|
|
25244
|
+
runtimeState: PresenceStatusSchema,
|
|
25245
|
+
/**
|
|
25246
|
+
* Runtime-state durability: **restored** — occupancy-relevant: the restored state is what an occupancy rule compares the first post-restart observation against.
|
|
25247
|
+
*
|
|
25248
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25249
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25250
|
+
*/
|
|
25251
|
+
durability: "restored",
|
|
25252
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25253
|
+
* whether persisting is worth a SQLite commit. */
|
|
25254
|
+
volatileStateFields: ["lastChangedAt"]
|
|
24819
25255
|
};
|
|
24820
25256
|
/**
|
|
24821
25257
|
* Atmospheric pressure reading in hectopascals. Drives Home Assistant
|
|
@@ -24851,7 +25287,17 @@ var pressureSensorCapability = {
|
|
|
24851
25287
|
schema: PressureSensorStatusSchema,
|
|
24852
25288
|
kind: "push"
|
|
24853
25289
|
},
|
|
24854
|
-
runtimeState: PressureSensorStatusSchema
|
|
25290
|
+
runtimeState: PressureSensorStatusSchema,
|
|
25291
|
+
/**
|
|
25292
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
25293
|
+
*
|
|
25294
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25295
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25296
|
+
*/
|
|
25297
|
+
durability: "restored",
|
|
25298
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25299
|
+
* whether persisting is worth a SQLite commit. */
|
|
25300
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24855
25301
|
};
|
|
24856
25302
|
/**
|
|
24857
25303
|
* PRIVACY — what the camera deliberately does not capture. Two planes:
|
|
@@ -24981,7 +25427,17 @@ var privacyMaskCapability = {
|
|
|
24981
25427
|
schema: PrivacyMaskStatusSchema,
|
|
24982
25428
|
kind: "poll"
|
|
24983
25429
|
},
|
|
24984
|
-
runtimeState: PrivacyMaskStatusSchema
|
|
25430
|
+
runtimeState: PrivacyMaskStatusSchema,
|
|
25431
|
+
/**
|
|
25432
|
+
* Runtime-state durability: **restored** — operator-drawn regions, zero real churn — 22 writes in 25 minutes, every one of them the clock.
|
|
25433
|
+
*
|
|
25434
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25435
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25436
|
+
*/
|
|
25437
|
+
durability: "restored",
|
|
25438
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25439
|
+
* whether persisting is worth a SQLite commit. */
|
|
25440
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24985
25441
|
};
|
|
24986
25442
|
/**
|
|
24987
25443
|
* Collapse a camera's PER-PROFILE audio flags into the one answer
|
|
@@ -25209,7 +25665,14 @@ var ptzAutotrackCapability = {
|
|
|
25209
25665
|
* fetch / cache / fallback logic out of the four cap methods —
|
|
25210
25666
|
* they become trampolines over `runtimeState`.
|
|
25211
25667
|
*/
|
|
25212
|
-
runtimeState: PtzAutotrackRuntimeStateSchema
|
|
25668
|
+
runtimeState: PtzAutotrackRuntimeStateSchema,
|
|
25669
|
+
/**
|
|
25670
|
+
* Runtime-state durability: **session** — mirrors the camera's own autotrack config, re-read on connect.
|
|
25671
|
+
*
|
|
25672
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25673
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25674
|
+
*/
|
|
25675
|
+
durability: "session"
|
|
25213
25676
|
};
|
|
25214
25677
|
/**
|
|
25215
25678
|
* reboot — device-scoped capability for "soft" device reboots (firmware
|
|
@@ -25884,7 +26347,14 @@ var sceneMonitorCapability = {
|
|
|
25884
26347
|
schema: SceneMonitorStatusSchema,
|
|
25885
26348
|
kind: "push"
|
|
25886
26349
|
},
|
|
25887
|
-
runtimeState: SceneMonitorStatusSchema
|
|
26350
|
+
runtimeState: SceneMonitorStatusSchema,
|
|
26351
|
+
/**
|
|
26352
|
+
* Runtime-state durability: **session** — re-derived from the current scene on the next evaluation.
|
|
26353
|
+
*
|
|
26354
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26355
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26356
|
+
*/
|
|
26357
|
+
durability: "session"
|
|
25888
26358
|
};
|
|
25889
26359
|
/**
|
|
25890
26360
|
* Per-stage gating mode applied to the zones a rule references.
|
|
@@ -26028,7 +26498,14 @@ var scriptRunnerCapability = {
|
|
|
26028
26498
|
* `isRunning` to render a spinner during execution and surfaces
|
|
26029
26499
|
* `lastError` / `lastRunSuccess` in the recent-runs panel.
|
|
26030
26500
|
*/
|
|
26031
|
-
runtimeState: ScriptRunnerStatusSchema
|
|
26501
|
+
runtimeState: ScriptRunnerStatusSchema,
|
|
26502
|
+
/**
|
|
26503
|
+
* Runtime-state durability: **session** — a restored `isRunning: true` describes a process that died with the previous hub.
|
|
26504
|
+
*
|
|
26505
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26506
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26507
|
+
*/
|
|
26508
|
+
durability: "session"
|
|
26032
26509
|
};
|
|
26033
26510
|
/**
|
|
26034
26511
|
* Smoke alarm sensor — boolean "is smoke currently detected" with
|
|
@@ -26055,7 +26532,17 @@ var smokeCapability = {
|
|
|
26055
26532
|
schema: SmokeStatusSchema,
|
|
26056
26533
|
kind: "push"
|
|
26057
26534
|
},
|
|
26058
|
-
runtimeState: SmokeStatusSchema
|
|
26535
|
+
runtimeState: SmokeStatusSchema,
|
|
26536
|
+
/**
|
|
26537
|
+
* Runtime-state durability: **restored** — a safety sensor must not read "clear" merely because the hub restarted.
|
|
26538
|
+
*
|
|
26539
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26540
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26541
|
+
*/
|
|
26542
|
+
durability: "restored",
|
|
26543
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26544
|
+
* whether persisting is worth a SQLite commit. */
|
|
26545
|
+
volatileStateFields: ["lastChangedAt"]
|
|
26059
26546
|
};
|
|
26060
26547
|
/**
|
|
26061
26548
|
* One publishable camera stream as its OWNING PROVIDER describes it — the same
|
|
@@ -26241,7 +26728,17 @@ var streamParamsCapability = {
|
|
|
26241
26728
|
schema: StreamParamsStatusSchema,
|
|
26242
26729
|
kind: "poll"
|
|
26243
26730
|
},
|
|
26244
|
-
runtimeState: StreamParamsStatusSchema
|
|
26731
|
+
runtimeState: StreamParamsStatusSchema,
|
|
26732
|
+
/**
|
|
26733
|
+
* Runtime-state durability: **restored** — operator-set encoder profile; mutation-driven.
|
|
26734
|
+
*
|
|
26735
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26736
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26737
|
+
*/
|
|
26738
|
+
durability: "restored",
|
|
26739
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26740
|
+
* whether persisting is worth a SQLite commit. */
|
|
26741
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
26245
26742
|
};
|
|
26246
26743
|
/**
|
|
26247
26744
|
* The three well-known stream profiles in render order. Exported so the
|
|
@@ -26485,6 +26982,16 @@ var switchCapability = {
|
|
|
26485
26982
|
* not need to re-query the provider after a setState mutation.
|
|
26486
26983
|
*/
|
|
26487
26984
|
runtimeState: SwitchStatusSchema,
|
|
26985
|
+
/**
|
|
26986
|
+
* Runtime-state durability: **restored** — device state an operator reads as authoritative; 55 devices, transition-driven.
|
|
26987
|
+
*
|
|
26988
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26989
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26990
|
+
*/
|
|
26991
|
+
durability: "restored",
|
|
26992
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26993
|
+
* whether persisting is worth a SQLite commit. */
|
|
26994
|
+
volatileStateFields: ["lastChangedAt"],
|
|
26488
26995
|
settings: { bindings: [{
|
|
26489
26996
|
kind: "scalar",
|
|
26490
26997
|
statusPath: "on",
|
|
@@ -26564,7 +27071,17 @@ var tamperCapability = {
|
|
|
26564
27071
|
schema: TamperStatusSchema,
|
|
26565
27072
|
kind: "push"
|
|
26566
27073
|
},
|
|
26567
|
-
runtimeState: TamperStatusSchema
|
|
27074
|
+
runtimeState: TamperStatusSchema,
|
|
27075
|
+
/**
|
|
27076
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
27077
|
+
*
|
|
27078
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27079
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27080
|
+
*/
|
|
27081
|
+
durability: "restored",
|
|
27082
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27083
|
+
* whether persisting is worth a SQLite commit. */
|
|
27084
|
+
volatileStateFields: ["lastChangedAt"]
|
|
26568
27085
|
};
|
|
26569
27086
|
/**
|
|
26570
27087
|
* Single-metric temperature reading. Drives Home Assistant `sensor`
|
|
@@ -26609,7 +27126,17 @@ var temperatureSensorCapability = {
|
|
|
26609
27126
|
schema: TemperatureSensorStatusSchema,
|
|
26610
27127
|
kind: "push"
|
|
26611
27128
|
},
|
|
26612
|
-
runtimeState: TemperatureSensorStatusSchema
|
|
27129
|
+
runtimeState: TemperatureSensorStatusSchema,
|
|
27130
|
+
/**
|
|
27131
|
+
* Runtime-state durability: **restored** — as `numeric-sensor` (69 of 125 writes were the clock alone).
|
|
27132
|
+
*
|
|
27133
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27134
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27135
|
+
*/
|
|
27136
|
+
durability: "restored",
|
|
27137
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27138
|
+
* whether persisting is worth a SQLite commit. */
|
|
27139
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
26613
27140
|
};
|
|
26614
27141
|
/**
|
|
26615
27142
|
* toast — system-scoped singleton capability that streams toast
|
|
@@ -26678,7 +27205,14 @@ var updateCapability = {
|
|
|
26678
27205
|
schema: UpdateStatusSchema,
|
|
26679
27206
|
kind: "poll"
|
|
26680
27207
|
},
|
|
26681
|
-
runtimeState: UpdateStatusSchema
|
|
27208
|
+
runtimeState: UpdateStatusSchema,
|
|
27209
|
+
/**
|
|
27210
|
+
* Runtime-state durability: **session** — a restored `inProgress: true` describes an update that is no longer running; versions are re-probed at boot.
|
|
27211
|
+
*
|
|
27212
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27213
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27214
|
+
*/
|
|
27215
|
+
durability: "session"
|
|
26682
27216
|
};
|
|
26683
27217
|
var UserSummarySchema = object({
|
|
26684
27218
|
id: string(),
|
|
@@ -27012,7 +27546,14 @@ var vacuumControlCapability = {
|
|
|
27012
27546
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
27013
27547
|
* slice for live state + battery + fan-speed changes.
|
|
27014
27548
|
*/
|
|
27015
|
-
runtimeState: VacuumControlStatusSchema
|
|
27549
|
+
runtimeState: VacuumControlStatusSchema,
|
|
27550
|
+
/**
|
|
27551
|
+
* Runtime-state durability: **session** — as `media-player` — a restored `state: cleaning` is a robot that is not cleaning.
|
|
27552
|
+
*
|
|
27553
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27554
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27555
|
+
*/
|
|
27556
|
+
durability: "session"
|
|
27016
27557
|
};
|
|
27017
27558
|
var ValveStatusSchema = object({
|
|
27018
27559
|
/** Lifecycle state of the valve. */
|
|
@@ -27064,7 +27605,14 @@ var valveCapability = {
|
|
|
27064
27605
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
27065
27606
|
* slice for live position changes during a move.
|
|
27066
27607
|
*/
|
|
27067
|
-
runtimeState: ValveStatusSchema
|
|
27608
|
+
runtimeState: ValveStatusSchema,
|
|
27609
|
+
/**
|
|
27610
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
27611
|
+
*
|
|
27612
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27613
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27614
|
+
*/
|
|
27615
|
+
durability: "session"
|
|
27068
27616
|
};
|
|
27069
27617
|
/**
|
|
27070
27618
|
* Vibration / shake / impact sensor. Drives Home Assistant
|
|
@@ -27086,7 +27634,17 @@ var vibrationCapability = {
|
|
|
27086
27634
|
schema: VibrationStatusSchema,
|
|
27087
27635
|
kind: "push"
|
|
27088
27636
|
},
|
|
27089
|
-
runtimeState: VibrationStatusSchema
|
|
27637
|
+
runtimeState: VibrationStatusSchema,
|
|
27638
|
+
/**
|
|
27639
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
27640
|
+
*
|
|
27641
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27642
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27643
|
+
*/
|
|
27644
|
+
durability: "restored",
|
|
27645
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27646
|
+
* whether persisting is worth a SQLite commit. */
|
|
27647
|
+
volatileStateFields: ["lastChangedAt"]
|
|
27090
27648
|
};
|
|
27091
27649
|
/**
|
|
27092
27650
|
* Water heater / boiler cap. Models HA `water_heater.*` entities — a
|
|
@@ -27160,7 +27718,14 @@ var waterHeaterCapability = {
|
|
|
27160
27718
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
27161
27719
|
* slice for live temperature / mode / away changes.
|
|
27162
27720
|
*/
|
|
27163
|
-
runtimeState: WaterHeaterStatusSchema
|
|
27721
|
+
runtimeState: WaterHeaterStatusSchema,
|
|
27722
|
+
/**
|
|
27723
|
+
* Runtime-state durability: **session** — as `climate-control`.
|
|
27724
|
+
*
|
|
27725
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27726
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27727
|
+
*/
|
|
27728
|
+
durability: "session"
|
|
27164
27729
|
};
|
|
27165
27730
|
/**
|
|
27166
27731
|
* Weather provider cap. Models HA `weather.*` entities — a read-only
|
|
@@ -27219,7 +27784,14 @@ var weatherCapability = {
|
|
|
27219
27784
|
* Runtime-state slice — mirrored by the kernel. The UI reads the
|
|
27220
27785
|
* current conditions directly from the slice on each weather push.
|
|
27221
27786
|
*/
|
|
27222
|
-
runtimeState: WeatherStatusSchema
|
|
27787
|
+
runtimeState: WeatherStatusSchema,
|
|
27788
|
+
/**
|
|
27789
|
+
* Runtime-state durability: **session** — a forecast is stale the moment the hub is down; the provider re-fetches on connect.
|
|
27790
|
+
*
|
|
27791
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27792
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27793
|
+
*/
|
|
27794
|
+
durability: "session"
|
|
27223
27795
|
};
|
|
27224
27796
|
/**
|
|
27225
27797
|
* Per-zone occupancy aggregation produced by the analytics frame
|
|
@@ -27381,7 +27953,14 @@ var zoneAnalyticsCapability = {
|
|
|
27381
27953
|
* automatically; the explicit `getCurrentSnapshot` cap method is
|
|
27382
27954
|
* still useful for one-off polls without a subscription.
|
|
27383
27955
|
*/
|
|
27384
|
-
runtimeState: CameraOccupancySnapshotSchema
|
|
27956
|
+
runtimeState: CameraOccupancySnapshotSchema,
|
|
27957
|
+
/**
|
|
27958
|
+
* Runtime-state durability: **session** — per-frame analytics; with `audio-metrics` it is ~90 % of the offered write rate. Re-derived on the next frame.
|
|
27959
|
+
*
|
|
27960
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27961
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27962
|
+
*/
|
|
27963
|
+
durability: "session"
|
|
27385
27964
|
};
|
|
27386
27965
|
/**
|
|
27387
27966
|
* Stages a {@link ZoneRule} can apply to. Discriminator on the rules
|
|
@@ -27459,7 +28038,14 @@ var zoneRulesCapability = {
|
|
|
27459
28038
|
motion: array(ZoneRuleSchema).readonly(),
|
|
27460
28039
|
detection: array(ZoneRuleSchema).readonly(),
|
|
27461
28040
|
package: array(ZoneRuleSchema).readonly()
|
|
27462
|
-
})
|
|
28041
|
+
}),
|
|
28042
|
+
/**
|
|
28043
|
+
* Runtime-state durability: **restored** — operator intent, mutation-only, same argument as `zones`.
|
|
28044
|
+
*
|
|
28045
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
28046
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
28047
|
+
*/
|
|
28048
|
+
durability: "restored"
|
|
27463
28049
|
};
|
|
27464
28050
|
/**
|
|
27465
28051
|
* Accessory device helpers — shared across drivers.
|
|
@@ -34226,6 +34812,7 @@ Object.freeze({
|
|
|
34226
34812
|
"network-access": "ingress",
|
|
34227
34813
|
"smtp-provider": "email"
|
|
34228
34814
|
});
|
|
34815
|
+
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
34229
34816
|
new Set(["devices", "classes"]);
|
|
34230
34817
|
/**
|
|
34231
34818
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|