@camstack/addon-provider-tuya 0.2.15 → 0.2.17
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 +732 -77
- package/dist/addon.mjs +732 -77
- package/package.json +1 -1
package/dist/addon.mjs
CHANGED
|
@@ -11590,7 +11590,14 @@ var cameraStreamsCapability = {
|
|
|
11590
11590
|
low: string().optional()
|
|
11591
11591
|
}),
|
|
11592
11592
|
lastChangedAt: number()
|
|
11593
|
-
})
|
|
11593
|
+
}),
|
|
11594
|
+
/**
|
|
11595
|
+
* 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.
|
|
11596
|
+
*
|
|
11597
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
11598
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
11599
|
+
*/
|
|
11600
|
+
durability: "session"
|
|
11594
11601
|
};
|
|
11595
11602
|
/** Where a block runs. The operator chooses — a block driving a device on an
|
|
11596
11603
|
* agent is the reason placement is not fixed to the hub. */
|
|
@@ -12151,6 +12158,13 @@ var deviceDiscoveryCapability = {
|
|
|
12151
12158
|
kind: "poll"
|
|
12152
12159
|
},
|
|
12153
12160
|
runtimeState: DeviceDiscoveryStatusSchema.extend({ lastFetchedAt: number().int().nonnegative() }),
|
|
12161
|
+
/**
|
|
12162
|
+
* Runtime-state durability: **session** — 5.7 KB of scan output on the largest device, fully re-derivable by re-scanning.
|
|
12163
|
+
*
|
|
12164
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
12165
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
12166
|
+
*/
|
|
12167
|
+
durability: "session",
|
|
12154
12168
|
methods: {
|
|
12155
12169
|
/**
|
|
12156
12170
|
* Snapshot of the current `discovered` list. Returns the
|
|
@@ -14037,11 +14051,33 @@ var NotificationFormatSchema = _enum([
|
|
|
14037
14051
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
14038
14052
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
14039
14053
|
* differently.
|
|
14054
|
+
*
|
|
14055
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
14056
|
+
*
|
|
14057
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
14058
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
14059
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
14060
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
14061
|
+
* decides its glyph, which is the only place that decision can be made
|
|
14062
|
+
* honestly.
|
|
14063
|
+
*
|
|
14064
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
14065
|
+
* `disarm` straight through; iOS feeds that string to
|
|
14066
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
14067
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
14068
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
14069
|
+
*
|
|
14070
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
14071
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
14072
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
14073
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
14074
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
14040
14075
|
*/
|
|
14041
14076
|
var NotificationActionIconSchema = _enum([
|
|
14042
14077
|
"acknowledge",
|
|
14043
14078
|
"dismiss",
|
|
14044
14079
|
"silence",
|
|
14080
|
+
"snooze",
|
|
14045
14081
|
"view",
|
|
14046
14082
|
"play",
|
|
14047
14083
|
"open",
|
|
@@ -14049,9 +14085,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
14049
14085
|
"lock",
|
|
14050
14086
|
"unlock",
|
|
14051
14087
|
"arm",
|
|
14088
|
+
"arm-home",
|
|
14089
|
+
"arm-away",
|
|
14090
|
+
"arm-night",
|
|
14052
14091
|
"disarm",
|
|
14053
14092
|
"light",
|
|
14054
|
-
"alert"
|
|
14093
|
+
"alert",
|
|
14094
|
+
"camera"
|
|
14055
14095
|
]);
|
|
14056
14096
|
/** A single tap-through action button. */
|
|
14057
14097
|
var NotificationActionSchema = object({
|
|
@@ -14067,7 +14107,23 @@ var NotificationActionSchema = object({
|
|
|
14067
14107
|
* else — see `notification-center/action-token.ts` for what that does and
|
|
14068
14108
|
* does not buy.
|
|
14069
14109
|
*/
|
|
14070
|
-
destructive: boolean().optional()
|
|
14110
|
+
destructive: boolean().optional(),
|
|
14111
|
+
/**
|
|
14112
|
+
* How the tap should REACH the url.
|
|
14113
|
+
*
|
|
14114
|
+
* `navigate` (absent, and every button authored before this field) opens it:
|
|
14115
|
+
* the phone leaves the notification and shows whatever the callback returns.
|
|
14116
|
+
* That is right for a button whose answer the operator wants to read.
|
|
14117
|
+
*
|
|
14118
|
+
* `background` fires it as a POST and stays put. It exists for the buttons
|
|
14119
|
+
* whose whole point is not to interrupt — "silence this for 30 minutes" is
|
|
14120
|
+
* an answer to the notification, and being thrown into a browser tab to
|
|
14121
|
+
* confirm it costs more attention than the notification did. A backend that
|
|
14122
|
+
* cannot do a background call renders it as an ordinary link (the adapters
|
|
14123
|
+
* fall back rather than dropping the button), so this is a preference, never
|
|
14124
|
+
* a requirement.
|
|
14125
|
+
*/
|
|
14126
|
+
mode: _enum(["navigate", "background"]).optional()
|
|
14071
14127
|
});
|
|
14072
14128
|
/**
|
|
14073
14129
|
* The canonical notification. `body` is the only hard field (Apprise model).
|
|
@@ -14235,6 +14291,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
14235
14291
|
targetId: string(),
|
|
14236
14292
|
enabled: boolean()
|
|
14237
14293
|
}), _void(), { kind: "mutation" });
|
|
14294
|
+
new Set([
|
|
14295
|
+
{
|
|
14296
|
+
id: "person",
|
|
14297
|
+
name: "Person"
|
|
14298
|
+
},
|
|
14299
|
+
{
|
|
14300
|
+
id: "vehicle",
|
|
14301
|
+
name: "Vehicle"
|
|
14302
|
+
},
|
|
14303
|
+
{
|
|
14304
|
+
id: "animal",
|
|
14305
|
+
name: "Animal"
|
|
14306
|
+
},
|
|
14307
|
+
{
|
|
14308
|
+
id: "package",
|
|
14309
|
+
name: "Package"
|
|
14310
|
+
}
|
|
14311
|
+
].map((l) => l.id));
|
|
14238
14312
|
var COCO_TO_MACRO = {
|
|
14239
14313
|
mapping: {
|
|
14240
14314
|
person: "person",
|
|
@@ -14919,7 +14993,17 @@ var alarmPanelCapability = {
|
|
|
14919
14993
|
* full slice; renders an arm button per `availableModes` entry and
|
|
14920
14994
|
* a PIN field iff `requiresCode === true`.
|
|
14921
14995
|
*/
|
|
14922
|
-
runtimeState: AlarmPanelStatusSchema
|
|
14996
|
+
runtimeState: AlarmPanelStatusSchema,
|
|
14997
|
+
/**
|
|
14998
|
+
* Runtime-state durability: **restored** — armed state is the one thing a panel must not lose across a restart.
|
|
14999
|
+
*
|
|
15000
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
15001
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
15002
|
+
*/
|
|
15003
|
+
durability: "restored",
|
|
15004
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
15005
|
+
* whether persisting is worth a SQLite commit. */
|
|
15006
|
+
volatileStateFields: ["lastChangedAt"]
|
|
14923
15007
|
};
|
|
14924
15008
|
/**
|
|
14925
15009
|
* Shared geometry vocabulary for on-frame shape caps — privacy-mask,
|
|
@@ -15060,6 +15144,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
15060
15144
|
"alarm-triggered",
|
|
15061
15145
|
"alarm-armed",
|
|
15062
15146
|
"alarm-disarmed",
|
|
15147
|
+
"alarm-arming",
|
|
15148
|
+
"alarm-arm-refused",
|
|
15063
15149
|
"camera-online",
|
|
15064
15150
|
"camera-offline",
|
|
15065
15151
|
"camera-disabled",
|
|
@@ -15096,6 +15182,9 @@ var NcSystemEventConditionSchema = object({
|
|
|
15096
15182
|
nodeIds: array(string().min(1)).min(1).optional(),
|
|
15097
15183
|
packageNames: array(string().min(1)).min(1).optional()
|
|
15098
15184
|
});
|
|
15185
|
+
/** Hard ceiling on a window (24h). A snooze that could not expire would be an
|
|
15186
|
+
* outage the operator asked for once and forgot. */
|
|
15187
|
+
var NC_SNOOZE_MAX_MINUTES = 1440;
|
|
15099
15188
|
/** Weekly schedule — OR of windows; absence on the rule = always active. */
|
|
15100
15189
|
var NcScheduleSchema = object({
|
|
15101
15190
|
windows: array(object({
|
|
@@ -15472,15 +15561,15 @@ var NcConditionsSchema = object({
|
|
|
15472
15561
|
* (an `immediate` rule naming an `audio-*` class, one notification per
|
|
15473
15562
|
* classified sample) stays exactly as it was for rules that already use it.
|
|
15474
15563
|
*
|
|
15475
|
-
*
|
|
15476
|
-
* rather than an
|
|
15477
|
-
* (`camstack/src/data/notification-center.ts`, guarded by
|
|
15478
|
-
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor
|
|
15564
|
+
* In {@link NC_CONDITION_CATALOG} since P2, and the ORDER it got there is the
|
|
15565
|
+
* rule rather than an accident: the viewer mirrors the descriptor enums BY
|
|
15566
|
+
* HAND (`camstack/src/data/notification-center.ts`, guarded by
|
|
15567
|
+
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor strips the
|
|
15479
15568
|
* condition fields it does not know when a rule is saved from the phone.
|
|
15480
15569
|
* Publishing an editor for a condition the app cannot round-trip is how an
|
|
15481
|
-
* operator loses a rule's conditions by opening it — so the
|
|
15482
|
-
*
|
|
15483
|
-
*
|
|
15570
|
+
* operator loses a rule's conditions by opening it — so the viewer mirror
|
|
15571
|
+
* (P3, shipped) went FIRST, and the descriptor an editor renders from
|
|
15572
|
+
* follows here.
|
|
15484
15573
|
*/
|
|
15485
15574
|
audio: NcAudioConditionSchema.optional()
|
|
15486
15575
|
});
|
|
@@ -15716,6 +15805,30 @@ var NcRuleInputSchema = object({
|
|
|
15716
15805
|
*/
|
|
15717
15806
|
snoozeAllowGlobal: boolean().optional(),
|
|
15718
15807
|
/**
|
|
15808
|
+
* The snooze durations THIS rule's notification offers as buttons, in
|
|
15809
|
+
* minutes.
|
|
15810
|
+
*
|
|
15811
|
+
* Three states, and all three are distinct — which is exactly why this is
|
|
15812
|
+
* `.optional()` and never `.default()`. A Zod default does not run on the
|
|
15813
|
+
* addon cap path (three production failures in one day), so a schema default
|
|
15814
|
+
* would collapse the first two:
|
|
15815
|
+
*
|
|
15816
|
+
* | value | meaning |
|
|
15817
|
+
* | --- | --- |
|
|
15818
|
+
* | absent | the operator never said ⇒ {@link NC_DEFAULT_SNOOZE_MINUTES} |
|
|
15819
|
+
* | `[]` | **no snooze buttons on this rule** — the explicit override |
|
|
15820
|
+
* | a list | these choices, de-duplicated and sorted, at most four |
|
|
15821
|
+
*
|
|
15822
|
+
* `.max(4)` because the notifier's own action budget is small (ntfy allows
|
|
15823
|
+
* three buttons in total) and a rule that spent it all on snooze choices
|
|
15824
|
+
* would push its own tap-through actions off the notification.
|
|
15825
|
+
*
|
|
15826
|
+
* An empty list is NOT an alarm exemption: a rule the alarm is about, or
|
|
15827
|
+
* that arms the panel, is exempt automatically and cannot be silenced by a
|
|
15828
|
+
* window from anywhere (D133).
|
|
15829
|
+
*/
|
|
15830
|
+
snoozeOptions: array(number().int().min(1).max(NC_SNOOZE_MAX_MINUTES)).max(4).optional(),
|
|
15831
|
+
/**
|
|
15719
15832
|
* Devices this rule ACTUATES — arm the alarm, open a gate, turn on a light.
|
|
15720
15833
|
*
|
|
15721
15834
|
* This is what makes the rule set the alarm's trigger set without the alarm
|
|
@@ -15815,6 +15928,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
15815
15928
|
"device",
|
|
15816
15929
|
"package",
|
|
15817
15930
|
"occupancy",
|
|
15931
|
+
"audio",
|
|
15818
15932
|
"system"
|
|
15819
15933
|
]),
|
|
15820
15934
|
label: string(),
|
|
@@ -15833,6 +15947,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
15833
15947
|
"crossingSelect",
|
|
15834
15948
|
"polygonDraw",
|
|
15835
15949
|
"occupancy",
|
|
15950
|
+
"audio",
|
|
15836
15951
|
"deviceState",
|
|
15837
15952
|
"systemEvent"
|
|
15838
15953
|
]),
|
|
@@ -15984,7 +16099,20 @@ var NcSnoozeInputSchema = object({
|
|
|
15984
16099
|
ruleId: string().optional(),
|
|
15985
16100
|
/** Required when `scope: 'device'`. */
|
|
15986
16101
|
deviceId: number().int().optional(),
|
|
15987
|
-
|
|
16102
|
+
/**
|
|
16103
|
+
* Narrow the window to these subject classes — "the cat, not the person".
|
|
16104
|
+
*
|
|
16105
|
+
* ORTHOGONAL to `scope`, deliberately, and absent means EVERY class: that is
|
|
16106
|
+
* what every window authored before this field meant, so no persisted row
|
|
16107
|
+
* changes meaning and no client has to learn anything to keep working.
|
|
16108
|
+
*
|
|
16109
|
+
* It is what makes the window's real key `(deviceId, classes[])` and lets it
|
|
16110
|
+
* cross rules (D133): the operator points at a camera and a kind of thing,
|
|
16111
|
+
* not at whichever of their four rules happened to produce the notification
|
|
16112
|
+
* they are dismissing.
|
|
16113
|
+
*/
|
|
16114
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
16115
|
+
durationMinutes: number().int().min(1).max(NC_SNOOZE_MAX_MINUTES),
|
|
15988
16116
|
/**
|
|
15989
16117
|
* Silence this for EVERY recipient, not just the caller. Permission is
|
|
15990
16118
|
* checked server-side (the rule's `snoozeAllowGlobal`, or admin for the
|
|
@@ -16009,6 +16137,10 @@ var NcSnoozeSchema = object({
|
|
|
16009
16137
|
scope: NcSnoozeScopeSchema,
|
|
16010
16138
|
ruleId: string().optional(),
|
|
16011
16139
|
deviceId: number().int().optional(),
|
|
16140
|
+
/** Subject classes this window covers. ABSENT = every class — see
|
|
16141
|
+
* {@link NcSnoozeInputSchema.shape.classes}. Lives in the JSON blob and has
|
|
16142
|
+
* no SQLite column: nothing queries a window by class. */
|
|
16143
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
16012
16144
|
startedAt: number(),
|
|
16013
16145
|
/** Exclusive: at exactly this instant the snooze is over. Expiry is a
|
|
16014
16146
|
* COMPARISON, not a job — no sweeper can leave the operator silenced. */
|
|
@@ -18109,7 +18241,14 @@ var zonesCapability = {
|
|
|
18109
18241
|
* handle. Slice shape is `{ zones: Zone[] }` so future extensions
|
|
18110
18242
|
* (e.g. zone groupings) can sit alongside the polygon list.
|
|
18111
18243
|
*/
|
|
18112
|
-
runtimeState: object({ zones: array(ZoneSchema).readonly() })
|
|
18244
|
+
runtimeState: object({ zones: array(ZoneSchema).readonly() }),
|
|
18245
|
+
/**
|
|
18246
|
+
* 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.
|
|
18247
|
+
*
|
|
18248
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
18249
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
18250
|
+
*/
|
|
18251
|
+
durability: "restored"
|
|
18113
18252
|
};
|
|
18114
18253
|
/**
|
|
18115
18254
|
* A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
|
|
@@ -18279,6 +18418,22 @@ var detectionFpsField = {
|
|
|
18279
18418
|
default: 10,
|
|
18280
18419
|
step: 1
|
|
18281
18420
|
};
|
|
18421
|
+
/**
|
|
18422
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
18423
|
+
*
|
|
18424
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
18425
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
18426
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
18427
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
18428
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
18429
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
18430
|
+
*
|
|
18431
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
18432
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
18433
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
18434
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
18435
|
+
* that ships with an addon deploy.
|
|
18436
|
+
*/
|
|
18282
18437
|
var occupancyRecheckSecField = {
|
|
18283
18438
|
min: 0,
|
|
18284
18439
|
max: 300,
|
|
@@ -18480,15 +18635,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
18480
18635
|
*/
|
|
18481
18636
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
18482
18637
|
/**
|
|
18483
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
18484
|
-
*
|
|
18485
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
18486
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
18487
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
18638
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
18639
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
18488
18640
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
18489
18641
|
* (and only render) when this is enabled.
|
|
18490
|
-
|
|
18491
|
-
|
|
18642
|
+
*
|
|
18643
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
18644
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
18645
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
18646
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
18647
|
+
* object is counted only while the stationary registry holds it, and the
|
|
18648
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
18649
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
18650
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
18651
|
+
*/
|
|
18652
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
18492
18653
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
18493
18654
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
18494
18655
|
/**
|
|
@@ -20908,7 +21069,17 @@ var airQualitySensorCapability = {
|
|
|
20908
21069
|
schema: AirQualitySensorStatusSchema,
|
|
20909
21070
|
kind: "push"
|
|
20910
21071
|
},
|
|
20911
|
-
runtimeState: AirQualitySensorStatusSchema
|
|
21072
|
+
runtimeState: AirQualitySensorStatusSchema,
|
|
21073
|
+
/**
|
|
21074
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
21075
|
+
*
|
|
21076
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21077
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21078
|
+
*/
|
|
21079
|
+
durability: "restored",
|
|
21080
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21081
|
+
* whether persisting is worth a SQLite commit. */
|
|
21082
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
20912
21083
|
};
|
|
20913
21084
|
/**
|
|
20914
21085
|
* Ambient illuminance reading in lux. Drives Home Assistant `sensor`
|
|
@@ -20940,7 +21111,17 @@ var ambientLightSensorCapability = {
|
|
|
20940
21111
|
schema: AmbientLightSensorStatusSchema,
|
|
20941
21112
|
kind: "push"
|
|
20942
21113
|
},
|
|
20943
|
-
runtimeState: AmbientLightSensorStatusSchema
|
|
21114
|
+
runtimeState: AmbientLightSensorStatusSchema,
|
|
21115
|
+
/**
|
|
21116
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
21117
|
+
*
|
|
21118
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21119
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21120
|
+
*/
|
|
21121
|
+
durability: "restored",
|
|
21122
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21123
|
+
* whether persisting is worth a SQLite commit. */
|
|
21124
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
20944
21125
|
};
|
|
20945
21126
|
/**
|
|
20946
21127
|
* Per-class audio metrics aggregated over a sliding window.
|
|
@@ -21058,7 +21239,14 @@ var audioMetricsCapability = {
|
|
|
21058
21239
|
}), AudioMetricsHistorySchema)
|
|
21059
21240
|
},
|
|
21060
21241
|
/** Reactive runtime-state mirror — live `device.state.audioMetrics.value`. */
|
|
21061
|
-
runtimeState: AudioMetricsSnapshotSchema
|
|
21242
|
+
runtimeState: AudioMetricsSnapshotSchema,
|
|
21243
|
+
/**
|
|
21244
|
+
* 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.
|
|
21245
|
+
*
|
|
21246
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21247
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21248
|
+
*/
|
|
21249
|
+
durability: "session"
|
|
21062
21250
|
};
|
|
21063
21251
|
/**
|
|
21064
21252
|
* Automation-control cap. Models HA `automation.*` entities on
|
|
@@ -21120,7 +21308,14 @@ var automationControlCapability = {
|
|
|
21120
21308
|
* reads `enabled` (toggle) + `isRunning` (spinner) + `lastError`
|
|
21121
21309
|
* (badge) directly.
|
|
21122
21310
|
*/
|
|
21123
|
-
runtimeState: AutomationControlStatusSchema
|
|
21311
|
+
runtimeState: AutomationControlStatusSchema,
|
|
21312
|
+
/**
|
|
21313
|
+
* 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.
|
|
21314
|
+
*
|
|
21315
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21316
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21317
|
+
*/
|
|
21318
|
+
durability: "session"
|
|
21124
21319
|
};
|
|
21125
21320
|
/**
|
|
21126
21321
|
* Battery status snapshot. Emitted by providers whose device is
|
|
@@ -21226,7 +21421,17 @@ onStatusChanged: { data: object({
|
|
|
21226
21421
|
* via `device.runtimeState.getCapState('battery')` regardless of
|
|
21227
21422
|
* the underlying driver.
|
|
21228
21423
|
*/
|
|
21229
|
-
runtimeState: BatteryStatusSchema
|
|
21424
|
+
runtimeState: BatteryStatusSchema,
|
|
21425
|
+
/**
|
|
21426
|
+
* 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.
|
|
21427
|
+
*
|
|
21428
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21429
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21430
|
+
*/
|
|
21431
|
+
durability: "restored",
|
|
21432
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21433
|
+
* whether persisting is worth a SQLite commit. */
|
|
21434
|
+
volatileStateFields: ["lastUpdated"]
|
|
21230
21435
|
};
|
|
21231
21436
|
/**
|
|
21232
21437
|
* Generic boolean sensor — last-resort fallback when no domain-
|
|
@@ -21255,7 +21460,17 @@ var binaryCapability = {
|
|
|
21255
21460
|
schema: BinaryStatusSchema,
|
|
21256
21461
|
kind: "push"
|
|
21257
21462
|
},
|
|
21258
|
-
runtimeState: BinaryStatusSchema
|
|
21463
|
+
runtimeState: BinaryStatusSchema,
|
|
21464
|
+
/**
|
|
21465
|
+
* Runtime-state durability: **restored** — transition-driven sensor state; the restored value gives the boot comparison.
|
|
21466
|
+
*
|
|
21467
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21468
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21469
|
+
*/
|
|
21470
|
+
durability: "restored",
|
|
21471
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21472
|
+
* whether persisting is worth a SQLite commit. */
|
|
21473
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21259
21474
|
};
|
|
21260
21475
|
/**
|
|
21261
21476
|
* Dimmable-light brightness control. Co-exists with `switch` on the
|
|
@@ -21308,7 +21523,14 @@ onBrightnessChanged: { data: object({
|
|
|
21308
21523
|
* by the kernel. Read via `device.state.brightness.value` so UI
|
|
21309
21524
|
* sliders surface the current level without polling the provider.
|
|
21310
21525
|
*/
|
|
21311
|
-
runtimeState: BrightnessStatusSchema
|
|
21526
|
+
runtimeState: BrightnessStatusSchema,
|
|
21527
|
+
/**
|
|
21528
|
+
* Runtime-state durability: **session** — live lamp state, re-published by the provider on connect.
|
|
21529
|
+
*
|
|
21530
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21531
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21532
|
+
*/
|
|
21533
|
+
durability: "session"
|
|
21312
21534
|
};
|
|
21313
21535
|
DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _void(), {
|
|
21314
21536
|
kind: "mutation",
|
|
@@ -21396,7 +21618,17 @@ var carbonMonoxideCapability = {
|
|
|
21396
21618
|
schema: CarbonMonoxideStatusSchema,
|
|
21397
21619
|
kind: "push"
|
|
21398
21620
|
},
|
|
21399
|
-
runtimeState: CarbonMonoxideStatusSchema
|
|
21621
|
+
runtimeState: CarbonMonoxideStatusSchema,
|
|
21622
|
+
/**
|
|
21623
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
21624
|
+
*
|
|
21625
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21626
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21627
|
+
*/
|
|
21628
|
+
durability: "restored",
|
|
21629
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21630
|
+
* whether persisting is worth a SQLite commit. */
|
|
21631
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21400
21632
|
};
|
|
21401
21633
|
/**
|
|
21402
21634
|
* HVAC / climate control cap. Models the full surface of a HA
|
|
@@ -21556,7 +21788,14 @@ var climateControlCapability = {
|
|
|
21556
21788
|
* the full slice via `device.state.climate-control.value` and refresh
|
|
21557
21789
|
* on every push without re-querying the provider.
|
|
21558
21790
|
*/
|
|
21559
|
-
runtimeState: ClimateControlStatusSchema
|
|
21791
|
+
runtimeState: ClimateControlStatusSchema,
|
|
21792
|
+
/**
|
|
21793
|
+
* Runtime-state durability: **session** — as `brightness`; `currentTemp` moves continuously and is re-published on connect.
|
|
21794
|
+
*
|
|
21795
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21796
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21797
|
+
*/
|
|
21798
|
+
durability: "session"
|
|
21560
21799
|
};
|
|
21561
21800
|
/**
|
|
21562
21801
|
* Color-light cap. Coexists with `switch` (on/off) and `brightness`
|
|
@@ -21666,7 +21905,14 @@ onColorChanged: { data: object({
|
|
|
21666
21905
|
* kernel. Read via `device.state.color.value` so UI pickers surface
|
|
21667
21906
|
* the current chromaticity without polling the provider.
|
|
21668
21907
|
*/
|
|
21669
|
-
runtimeState: ColorStatusSchema
|
|
21908
|
+
runtimeState: ColorStatusSchema,
|
|
21909
|
+
/**
|
|
21910
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
21911
|
+
*
|
|
21912
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21913
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21914
|
+
*/
|
|
21915
|
+
durability: "session"
|
|
21670
21916
|
};
|
|
21671
21917
|
var ConnectionTestOutcomeSchema = discriminatedUnion("outcome", [
|
|
21672
21918
|
object({
|
|
@@ -21732,7 +21978,17 @@ var connectivityCapability = {
|
|
|
21732
21978
|
schema: ConnectivityStatusSchema,
|
|
21733
21979
|
kind: "push"
|
|
21734
21980
|
},
|
|
21735
|
-
runtimeState: ConnectivityStatusSchema
|
|
21981
|
+
runtimeState: ConnectivityStatusSchema,
|
|
21982
|
+
/**
|
|
21983
|
+
* Runtime-state durability: **restored** — same shape and same argument as `device-status`, for links rather than devices.
|
|
21984
|
+
*
|
|
21985
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21986
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21987
|
+
*/
|
|
21988
|
+
durability: "restored",
|
|
21989
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21990
|
+
* whether persisting is worth a SQLite commit. */
|
|
21991
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21736
21992
|
};
|
|
21737
21993
|
/**
|
|
21738
21994
|
* Generic device-consumables capability — surfaces a device's
|
|
@@ -21814,7 +22070,14 @@ reset: method(object({
|
|
|
21814
22070
|
}
|
|
21815
22071
|
}
|
|
21816
22072
|
},
|
|
21817
|
-
runtimeState: ConsumablesStatusSchema.extend({ lastFetchedAt: number() })
|
|
22073
|
+
runtimeState: ConsumablesStatusSchema.extend({ lastFetchedAt: number() }),
|
|
22074
|
+
/**
|
|
22075
|
+
* Runtime-state durability: **session** — the authority is the appliance; the provider re-reads the whole item array on connect.
|
|
22076
|
+
*
|
|
22077
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22078
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22079
|
+
*/
|
|
22080
|
+
durability: "session"
|
|
21818
22081
|
};
|
|
21819
22082
|
/**
|
|
21820
22083
|
* Door / window / opening / garage / valve contact sensor. Boolean
|
|
@@ -21845,7 +22108,17 @@ var contactCapability = {
|
|
|
21845
22108
|
schema: ContactStatusSchema,
|
|
21846
22109
|
kind: "push"
|
|
21847
22110
|
},
|
|
21848
|
-
runtimeState: ContactStatusSchema
|
|
22111
|
+
runtimeState: ContactStatusSchema,
|
|
22112
|
+
/**
|
|
22113
|
+
* Runtime-state durability: **restored** — a door left open across a restart must still read open.
|
|
22114
|
+
*
|
|
22115
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22116
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22117
|
+
*/
|
|
22118
|
+
durability: "restored",
|
|
22119
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22120
|
+
* whether persisting is worth a SQLite commit. */
|
|
22121
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21849
22122
|
};
|
|
21850
22123
|
/**
|
|
21851
22124
|
* Status slice — flat object (the framework's `runtimeState` contract
|
|
@@ -21951,7 +22224,14 @@ var controlCapability = {
|
|
|
21951
22224
|
* dropdown / text field / date picker) read the slice's discriminant
|
|
21952
22225
|
* and value directly without polling the provider.
|
|
21953
22226
|
*/
|
|
21954
|
-
runtimeState: ControlStatusSchema
|
|
22227
|
+
runtimeState: ControlStatusSchema,
|
|
22228
|
+
/**
|
|
22229
|
+
* Runtime-state durability: **session** — a generic control mirrors an external entity that re-publishes on connect; the options array is re-derived with it.
|
|
22230
|
+
*
|
|
22231
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22232
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22233
|
+
*/
|
|
22234
|
+
durability: "session"
|
|
21955
22235
|
};
|
|
21956
22236
|
var CoverStatusSchema = object({
|
|
21957
22237
|
/** Lifecycle state of the cover. */
|
|
@@ -22012,7 +22292,17 @@ var coverCapability = {
|
|
|
22012
22292
|
* Runtime-state slice — mirrored by the kernel. UI controls watch
|
|
22013
22293
|
* the slice for live position changes during a move.
|
|
22014
22294
|
*/
|
|
22015
|
-
runtimeState: CoverStatusSchema
|
|
22295
|
+
runtimeState: CoverStatusSchema,
|
|
22296
|
+
/**
|
|
22297
|
+
* Runtime-state durability: **restored** — position survives a restart on the device; the mirror should agree at boot rather than read blank.
|
|
22298
|
+
*
|
|
22299
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22300
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22301
|
+
*/
|
|
22302
|
+
durability: "restored",
|
|
22303
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22304
|
+
* whether persisting is worth a SQLite commit. */
|
|
22305
|
+
volatileStateFields: ["lastChangedAt"]
|
|
22016
22306
|
};
|
|
22017
22307
|
/**
|
|
22018
22308
|
* Vendor-neutral day/night (IR-cut) control — the per-camera config cap
|
|
@@ -22106,7 +22396,17 @@ var dayNightCapability = {
|
|
|
22106
22396
|
schema: DayNightStatusSchema,
|
|
22107
22397
|
kind: "poll"
|
|
22108
22398
|
},
|
|
22109
|
-
runtimeState: DayNightStatusSchema
|
|
22399
|
+
runtimeState: DayNightStatusSchema,
|
|
22400
|
+
/**
|
|
22401
|
+
* Runtime-state durability: **restored** — operator-set IR-cut behaviour; mutation-driven.
|
|
22402
|
+
*
|
|
22403
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22404
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22405
|
+
*/
|
|
22406
|
+
durability: "restored",
|
|
22407
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22408
|
+
* whether persisting is worth a SQLite commit. */
|
|
22409
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
22110
22410
|
};
|
|
22111
22411
|
/**
|
|
22112
22412
|
* Generic device-level status snapshot. Auto-registered by `BaseDevice`
|
|
@@ -22153,7 +22453,17 @@ onStatusChanged: { data: object({
|
|
|
22153
22453
|
schema: DeviceStatusSchema,
|
|
22154
22454
|
kind: "push"
|
|
22155
22455
|
},
|
|
22156
|
-
runtimeState: DeviceStatusSchema
|
|
22456
|
+
runtimeState: DeviceStatusSchema,
|
|
22457
|
+
/**
|
|
22458
|
+
* 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.
|
|
22459
|
+
*
|
|
22460
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22461
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22462
|
+
*/
|
|
22463
|
+
durability: "restored",
|
|
22464
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22465
|
+
* whether persisting is worth a SQLite commit. */
|
|
22466
|
+
volatileStateFields: ["lastChangedAt"]
|
|
22157
22467
|
};
|
|
22158
22468
|
/**
|
|
22159
22469
|
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
@@ -22215,7 +22525,14 @@ onPressed: { data: DoorbellPressEventSchema } },
|
|
|
22215
22525
|
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
22216
22526
|
* without subscribing.
|
|
22217
22527
|
*/
|
|
22218
|
-
runtimeState: DoorbellStatusSchema
|
|
22528
|
+
runtimeState: DoorbellStatusSchema,
|
|
22529
|
+
/**
|
|
22530
|
+
* 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.
|
|
22531
|
+
*
|
|
22532
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22533
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22534
|
+
*/
|
|
22535
|
+
durability: "restored"
|
|
22219
22536
|
};
|
|
22220
22537
|
/**
|
|
22221
22538
|
* Enum-state sensor — a string value picked from a finite option set.
|
|
@@ -22255,7 +22572,17 @@ var enumSensorCapability = {
|
|
|
22255
22572
|
schema: EnumSensorStatusSchema,
|
|
22256
22573
|
kind: "push"
|
|
22257
22574
|
},
|
|
22258
|
-
runtimeState: EnumSensorStatusSchema
|
|
22575
|
+
runtimeState: EnumSensorStatusSchema,
|
|
22576
|
+
/**
|
|
22577
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`; 80 devices.
|
|
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"]
|
|
22259
22586
|
};
|
|
22260
22587
|
/**
|
|
22261
22588
|
* Generic stateless event emitter. Installed on a `DeviceType.EventEmitter`
|
|
@@ -22291,7 +22618,14 @@ var eventEmitterCapability = {
|
|
|
22291
22618
|
schema: EventEmitterStatusSchema,
|
|
22292
22619
|
kind: "push"
|
|
22293
22620
|
},
|
|
22294
|
-
runtimeState: EventEmitterStatusSchema
|
|
22621
|
+
runtimeState: EventEmitterStatusSchema,
|
|
22622
|
+
/**
|
|
22623
|
+
* Runtime-state durability: **session** — `eventCountSinceStart` names its own scope.
|
|
22624
|
+
*
|
|
22625
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22626
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22627
|
+
*/
|
|
22628
|
+
durability: "session"
|
|
22295
22629
|
};
|
|
22296
22630
|
var EventItemSchema = object({
|
|
22297
22631
|
id: string(),
|
|
@@ -22572,7 +22906,14 @@ var fanControlCapability = {
|
|
|
22572
22906
|
* Runtime-state slice — mirrored by the kernel. UI fan speed
|
|
22573
22907
|
* sliders read `percentage` for live updates.
|
|
22574
22908
|
*/
|
|
22575
|
-
runtimeState: FanControlStatusSchema
|
|
22909
|
+
runtimeState: FanControlStatusSchema,
|
|
22910
|
+
/**
|
|
22911
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
22912
|
+
*
|
|
22913
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22914
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22915
|
+
*/
|
|
22916
|
+
durability: "session"
|
|
22576
22917
|
};
|
|
22577
22918
|
/**
|
|
22578
22919
|
* Per-device feature/identity probe slice. Holds the runtime-resolved
|
|
@@ -22648,7 +22989,14 @@ onProbeChanged: { data: object({
|
|
|
22648
22989
|
schema: FeatureProbeStatusSchema,
|
|
22649
22990
|
kind: "push"
|
|
22650
22991
|
},
|
|
22651
|
-
runtimeState: FeatureProbeStatusSchema
|
|
22992
|
+
runtimeState: FeatureProbeStatusSchema,
|
|
22993
|
+
/**
|
|
22994
|
+
* 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.
|
|
22995
|
+
*
|
|
22996
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22997
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22998
|
+
*/
|
|
22999
|
+
durability: "session"
|
|
22652
23000
|
};
|
|
22653
23001
|
/**
|
|
22654
23002
|
* Water leak / moisture sensor. Boolean "is liquid currently
|
|
@@ -22675,7 +23023,17 @@ var floodCapability = {
|
|
|
22675
23023
|
schema: FloodStatusSchema,
|
|
22676
23024
|
kind: "push"
|
|
22677
23025
|
},
|
|
22678
|
-
runtimeState: FloodStatusSchema
|
|
23026
|
+
runtimeState: FloodStatusSchema,
|
|
23027
|
+
/**
|
|
23028
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
23029
|
+
*
|
|
23030
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23031
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23032
|
+
*/
|
|
23033
|
+
durability: "restored",
|
|
23034
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23035
|
+
* whether persisting is worth a SQLite commit. */
|
|
23036
|
+
volatileStateFields: ["lastChangedAt"]
|
|
22679
23037
|
};
|
|
22680
23038
|
/**
|
|
22681
23039
|
* Combustible-gas (LPG / methane / hydrogen) alarm sensor. Drives
|
|
@@ -22698,7 +23056,17 @@ var gasCapability = {
|
|
|
22698
23056
|
schema: GasStatusSchema,
|
|
22699
23057
|
kind: "push"
|
|
22700
23058
|
},
|
|
22701
|
-
runtimeState: GasStatusSchema
|
|
23059
|
+
runtimeState: GasStatusSchema,
|
|
23060
|
+
/**
|
|
23061
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
23062
|
+
*
|
|
23063
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23064
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23065
|
+
*/
|
|
23066
|
+
durability: "restored",
|
|
23067
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23068
|
+
* whether persisting is worth a SQLite commit. */
|
|
23069
|
+
volatileStateFields: ["lastChangedAt"]
|
|
22702
23070
|
};
|
|
22703
23071
|
/**
|
|
22704
23072
|
* Humidifier / dehumidifier cap. Models HA `humidifier.*` entities —
|
|
@@ -22774,7 +23142,14 @@ var humidifierCapability = {
|
|
|
22774
23142
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
22775
23143
|
* slice for live humidity / mode changes.
|
|
22776
23144
|
*/
|
|
22777
|
-
runtimeState: HumidifierStatusSchema
|
|
23145
|
+
runtimeState: HumidifierStatusSchema,
|
|
23146
|
+
/**
|
|
23147
|
+
* Runtime-state durability: **session** — as `climate-control`.
|
|
23148
|
+
*
|
|
23149
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23150
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23151
|
+
*/
|
|
23152
|
+
durability: "session"
|
|
22778
23153
|
};
|
|
22779
23154
|
/**
|
|
22780
23155
|
* Single-metric humidity reading. Drives Home Assistant `sensor`
|
|
@@ -22810,7 +23185,17 @@ var humiditySensorCapability = {
|
|
|
22810
23185
|
schema: HumiditySensorStatusSchema,
|
|
22811
23186
|
kind: "push"
|
|
22812
23187
|
},
|
|
22813
|
-
runtimeState: HumiditySensorStatusSchema
|
|
23188
|
+
runtimeState: HumiditySensorStatusSchema,
|
|
23189
|
+
/**
|
|
23190
|
+
* Runtime-state durability: **restored** — as `numeric-sensor` (67 of 75 writes were the clock alone).
|
|
23191
|
+
*
|
|
23192
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23193
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23194
|
+
*/
|
|
23195
|
+
durability: "restored",
|
|
23196
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23197
|
+
* whether persisting is worth a SQLite commit. */
|
|
23198
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
22814
23199
|
};
|
|
22815
23200
|
/**
|
|
22816
23201
|
* Image display cap. Models a single still image exposed by an integration —
|
|
@@ -22848,7 +23233,14 @@ var imageCapability = {
|
|
|
22848
23233
|
* Runtime-state slice — mirrored by the kernel. The UI reads `url`
|
|
22849
23234
|
* directly and renders the still image.
|
|
22850
23235
|
*/
|
|
22851
|
-
runtimeState: ImageStatusSchema
|
|
23236
|
+
runtimeState: ImageStatusSchema,
|
|
23237
|
+
/**
|
|
23238
|
+
* Runtime-state durability: **session** — a snapshot URL is a session-scoped handle; a restored one points at nothing.
|
|
23239
|
+
*
|
|
23240
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23241
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23242
|
+
*/
|
|
23243
|
+
durability: "session"
|
|
22852
23244
|
};
|
|
22853
23245
|
/**
|
|
22854
23246
|
* Vendor-neutral image / picture-adjustment cap — the per-camera config
|
|
@@ -22997,7 +23389,17 @@ var imageSettingsCapability = {
|
|
|
22997
23389
|
schema: ImageSettingsStatusSchema,
|
|
22998
23390
|
kind: "poll"
|
|
22999
23391
|
},
|
|
23000
|
-
runtimeState: ImageSettingsStatusSchema
|
|
23392
|
+
runtimeState: ImageSettingsStatusSchema,
|
|
23393
|
+
/**
|
|
23394
|
+
* Runtime-state durability: **restored** — operator-set camera imaging; mutation-driven.
|
|
23395
|
+
*
|
|
23396
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23397
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23398
|
+
*/
|
|
23399
|
+
durability: "restored",
|
|
23400
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23401
|
+
* whether persisting is worth a SQLite commit. */
|
|
23402
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23001
23403
|
};
|
|
23002
23404
|
/**
|
|
23003
23405
|
* integrations — system-scoped singleton capability for integration
|
|
@@ -23337,7 +23739,14 @@ var lawnMowerControlCapability = {
|
|
|
23337
23739
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
23338
23740
|
* slice for live activity + battery changes.
|
|
23339
23741
|
*/
|
|
23340
|
-
runtimeState: LawnMowerControlStatusSchema
|
|
23742
|
+
runtimeState: LawnMowerControlStatusSchema,
|
|
23743
|
+
/**
|
|
23744
|
+
* Runtime-state durability: **session** — as `vacuum-control`.
|
|
23745
|
+
*
|
|
23746
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23747
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23748
|
+
*/
|
|
23749
|
+
durability: "session"
|
|
23341
23750
|
};
|
|
23342
23751
|
/**
|
|
23343
23752
|
* local-network — hub-only singleton.
|
|
@@ -23543,7 +23952,17 @@ var lockControlCapability = {
|
|
|
23543
23952
|
* read `state` and disable themselves during `locking`/`unlocking`
|
|
23544
23953
|
* transitions.
|
|
23545
23954
|
*/
|
|
23546
|
-
runtimeState: LockControlStatusSchema
|
|
23955
|
+
runtimeState: LockControlStatusSchema,
|
|
23956
|
+
/**
|
|
23957
|
+
* Runtime-state durability: **restored** — a lock left locked must still read locked.
|
|
23958
|
+
*
|
|
23959
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23960
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23961
|
+
*/
|
|
23962
|
+
durability: "restored",
|
|
23963
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23964
|
+
* whether persisting is worth a SQLite commit. */
|
|
23965
|
+
volatileStateFields: ["lastChangedAt"]
|
|
23547
23966
|
};
|
|
23548
23967
|
/**
|
|
23549
23968
|
* Media-player cap. Models HA `media_player.*` (Sonos, Chromecast,
|
|
@@ -23705,7 +24124,14 @@ var mediaPlayerCapability = {
|
|
|
23705
24124
|
* full slice for live now-playing, volume, and progress updates
|
|
23706
24125
|
* without polling.
|
|
23707
24126
|
*/
|
|
23708
|
-
runtimeState: MediaPlayerStatusSchema
|
|
24127
|
+
runtimeState: MediaPlayerStatusSchema,
|
|
24128
|
+
/**
|
|
24129
|
+
* Runtime-state durability: **session** — a restored transport position describes a playback that stopped when the hub did.
|
|
24130
|
+
*
|
|
24131
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24132
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24133
|
+
*/
|
|
24134
|
+
durability: "session"
|
|
23709
24135
|
};
|
|
23710
24136
|
/**
|
|
23711
24137
|
* mesh-network — collection cap for mesh-VPN providers.
|
|
@@ -23969,7 +24395,14 @@ onMotionChanged: { data: MotionOnMotionChangedDataSchema } },
|
|
|
23969
24395
|
* `device.state.motion.value`. Reads never invoke the provider, so
|
|
23970
24396
|
* UIs and other addons can poll the cached state safely.
|
|
23971
24397
|
*/
|
|
23972
|
-
runtimeState: MotionStatusSchema
|
|
24398
|
+
runtimeState: MotionStatusSchema,
|
|
24399
|
+
/**
|
|
24400
|
+
* 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.
|
|
24401
|
+
*
|
|
24402
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24403
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24404
|
+
*/
|
|
24405
|
+
durability: "session"
|
|
23973
24406
|
};
|
|
23974
24407
|
/**
|
|
23975
24408
|
* Motion-trigger toggle for accessory devices.
|
|
@@ -24034,7 +24467,14 @@ var motionTriggerCapability = {
|
|
|
24034
24467
|
schema: MotionTriggerStatusSchema,
|
|
24035
24468
|
kind: "command-driven"
|
|
24036
24469
|
},
|
|
24037
|
-
runtimeState: MotionTriggerRuntimeStateSchema
|
|
24470
|
+
runtimeState: MotionTriggerRuntimeStateSchema,
|
|
24471
|
+
/**
|
|
24472
|
+
* 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.
|
|
24473
|
+
*
|
|
24474
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24475
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24476
|
+
*/
|
|
24477
|
+
durability: "session"
|
|
24038
24478
|
};
|
|
24039
24479
|
/**
|
|
24040
24480
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
@@ -24101,7 +24541,17 @@ var motionZonesCapability = {
|
|
|
24101
24541
|
schema: MotionZoneStatusSchema,
|
|
24102
24542
|
kind: "poll"
|
|
24103
24543
|
},
|
|
24104
|
-
runtimeState: MotionZoneStatusSchema
|
|
24544
|
+
runtimeState: MotionZoneStatusSchema,
|
|
24545
|
+
/**
|
|
24546
|
+
* 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.
|
|
24547
|
+
*
|
|
24548
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24549
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24550
|
+
*/
|
|
24551
|
+
durability: "restored",
|
|
24552
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24553
|
+
* whether persisting is worth a SQLite commit. */
|
|
24554
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24105
24555
|
};
|
|
24106
24556
|
/**
|
|
24107
24557
|
* On-camera AI object detection cap. Surfaces per-device the classes
|
|
@@ -24175,7 +24625,17 @@ var nativeObjectDetectionCapability = {
|
|
|
24175
24625
|
schema: NativeObjectDetectionStatusSchema,
|
|
24176
24626
|
kind: "push"
|
|
24177
24627
|
},
|
|
24178
|
-
runtimeState: NativeObjectDetectionRuntimeStateSchema
|
|
24628
|
+
runtimeState: NativeObjectDetectionRuntimeStateSchema,
|
|
24629
|
+
/**
|
|
24630
|
+
* 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.
|
|
24631
|
+
*
|
|
24632
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24633
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24634
|
+
*/
|
|
24635
|
+
durability: "restored",
|
|
24636
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24637
|
+
* whether persisting is worth a SQLite commit. */
|
|
24638
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24179
24639
|
};
|
|
24180
24640
|
/**
|
|
24181
24641
|
* network-quality — system-scoped singleton capability tracking RTT,
|
|
@@ -24509,7 +24969,14 @@ onSent: { data: object({
|
|
|
24509
24969
|
* form reads `supports` to gate optional fields; history pane reads
|
|
24510
24970
|
* `lastSentAt` / `lastError` / `queueDepth`.
|
|
24511
24971
|
*/
|
|
24512
|
-
runtimeState: NotifierStatusSchema
|
|
24972
|
+
runtimeState: NotifierStatusSchema,
|
|
24973
|
+
/**
|
|
24974
|
+
* Runtime-state durability: **session** — live queue depth and last-send state; a restored queue depth describes a queue that no longer exists.
|
|
24975
|
+
*
|
|
24976
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24977
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24978
|
+
*/
|
|
24979
|
+
durability: "session"
|
|
24513
24980
|
};
|
|
24514
24981
|
/**
|
|
24515
24982
|
* Generic numeric sensor — last-resort fallback when no typed numeric
|
|
@@ -24552,7 +25019,17 @@ var numericSensorCapability = {
|
|
|
24552
25019
|
schema: NumericSensorStatusSchema,
|
|
24553
25020
|
kind: "push"
|
|
24554
25021
|
},
|
|
24555
|
-
runtimeState: NumericSensorStatusSchema
|
|
25022
|
+
runtimeState: NumericSensorStatusSchema,
|
|
25023
|
+
/**
|
|
25024
|
+
* 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.
|
|
25025
|
+
*
|
|
25026
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25027
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25028
|
+
*/
|
|
25029
|
+
durability: "restored",
|
|
25030
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25031
|
+
* whether persisting is worth a SQLite commit. */
|
|
25032
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24556
25033
|
};
|
|
24557
25034
|
/**
|
|
24558
25035
|
* Generic on-screen-display (video overlay) cap. Each camera exposes
|
|
@@ -24937,7 +25414,14 @@ var petFeederCapability = {
|
|
|
24937
25414
|
* the full slice via `device.state.petFeeder.value` and refresh on
|
|
24938
25415
|
* every poll without re-querying the provider.
|
|
24939
25416
|
*/
|
|
24940
|
-
runtimeState: PetFeederStatusSchema
|
|
25417
|
+
runtimeState: PetFeederStatusSchema,
|
|
25418
|
+
/**
|
|
25419
|
+
* Runtime-state durability: **session** — live appliance state re-published on connect.
|
|
25420
|
+
*
|
|
25421
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25422
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25423
|
+
*/
|
|
25424
|
+
durability: "session"
|
|
24941
25425
|
};
|
|
24942
25426
|
var VehicleSchema = object({
|
|
24943
25427
|
id: string(),
|
|
@@ -25249,7 +25733,17 @@ var powerMeterCapability = {
|
|
|
25249
25733
|
schema: PowerMeterStatusSchema,
|
|
25250
25734
|
kind: "push"
|
|
25251
25735
|
},
|
|
25252
|
-
runtimeState: PowerMeterStatusSchema
|
|
25736
|
+
runtimeState: PowerMeterStatusSchema,
|
|
25737
|
+
/**
|
|
25738
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`; `kwhTotal` is an accumulator whose restored value is the baseline.
|
|
25739
|
+
*
|
|
25740
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25741
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25742
|
+
*/
|
|
25743
|
+
durability: "restored",
|
|
25744
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25745
|
+
* whether persisting is worth a SQLite commit. */
|
|
25746
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
25253
25747
|
};
|
|
25254
25748
|
/**
|
|
25255
25749
|
* Presence cap. Models HA `person.*` and `device_tracker.*` entities
|
|
@@ -25306,7 +25800,17 @@ var presenceCapability = {
|
|
|
25306
25800
|
* the map pin is rendered (use `DeviceFeature.PresenceGps` for the
|
|
25307
25801
|
* pre-fetch fast-path check).
|
|
25308
25802
|
*/
|
|
25309
|
-
runtimeState: PresenceStatusSchema
|
|
25803
|
+
runtimeState: PresenceStatusSchema,
|
|
25804
|
+
/**
|
|
25805
|
+
* Runtime-state durability: **restored** — occupancy-relevant: the restored state is what an occupancy rule compares the first post-restart observation against.
|
|
25806
|
+
*
|
|
25807
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25808
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25809
|
+
*/
|
|
25810
|
+
durability: "restored",
|
|
25811
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25812
|
+
* whether persisting is worth a SQLite commit. */
|
|
25813
|
+
volatileStateFields: ["lastChangedAt"]
|
|
25310
25814
|
};
|
|
25311
25815
|
/**
|
|
25312
25816
|
* Atmospheric pressure reading in hectopascals. Drives Home Assistant
|
|
@@ -25342,7 +25846,17 @@ var pressureSensorCapability = {
|
|
|
25342
25846
|
schema: PressureSensorStatusSchema,
|
|
25343
25847
|
kind: "push"
|
|
25344
25848
|
},
|
|
25345
|
-
runtimeState: PressureSensorStatusSchema
|
|
25849
|
+
runtimeState: PressureSensorStatusSchema,
|
|
25850
|
+
/**
|
|
25851
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
25852
|
+
*
|
|
25853
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25854
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25855
|
+
*/
|
|
25856
|
+
durability: "restored",
|
|
25857
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25858
|
+
* whether persisting is worth a SQLite commit. */
|
|
25859
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
25346
25860
|
};
|
|
25347
25861
|
/**
|
|
25348
25862
|
* PRIVACY — what the camera deliberately does not capture. Two planes:
|
|
@@ -25472,7 +25986,17 @@ var privacyMaskCapability = {
|
|
|
25472
25986
|
schema: PrivacyMaskStatusSchema,
|
|
25473
25987
|
kind: "poll"
|
|
25474
25988
|
},
|
|
25475
|
-
runtimeState: PrivacyMaskStatusSchema
|
|
25989
|
+
runtimeState: PrivacyMaskStatusSchema,
|
|
25990
|
+
/**
|
|
25991
|
+
* Runtime-state durability: **restored** — operator-drawn regions, zero real churn — 22 writes in 25 minutes, every one of them the clock.
|
|
25992
|
+
*
|
|
25993
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25994
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25995
|
+
*/
|
|
25996
|
+
durability: "restored",
|
|
25997
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25998
|
+
* whether persisting is worth a SQLite commit. */
|
|
25999
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
25476
26000
|
};
|
|
25477
26001
|
var PtzPresetSchema = object({
|
|
25478
26002
|
id: string(),
|
|
@@ -25638,7 +26162,14 @@ var ptzAutotrackCapability = {
|
|
|
25638
26162
|
* fetch / cache / fallback logic out of the four cap methods —
|
|
25639
26163
|
* they become trampolines over `runtimeState`.
|
|
25640
26164
|
*/
|
|
25641
|
-
runtimeState: PtzAutotrackRuntimeStateSchema
|
|
26165
|
+
runtimeState: PtzAutotrackRuntimeStateSchema,
|
|
26166
|
+
/**
|
|
26167
|
+
* Runtime-state durability: **session** — mirrors the camera's own autotrack config, re-read on connect.
|
|
26168
|
+
*
|
|
26169
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26170
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26171
|
+
*/
|
|
26172
|
+
durability: "session"
|
|
25642
26173
|
};
|
|
25643
26174
|
DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
|
|
25644
26175
|
kind: "mutation",
|
|
@@ -26288,7 +26819,14 @@ var sceneMonitorCapability = {
|
|
|
26288
26819
|
schema: SceneMonitorStatusSchema,
|
|
26289
26820
|
kind: "push"
|
|
26290
26821
|
},
|
|
26291
|
-
runtimeState: SceneMonitorStatusSchema
|
|
26822
|
+
runtimeState: SceneMonitorStatusSchema,
|
|
26823
|
+
/**
|
|
26824
|
+
* Runtime-state durability: **session** — re-derived from the current scene on the next evaluation.
|
|
26825
|
+
*
|
|
26826
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26827
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26828
|
+
*/
|
|
26829
|
+
durability: "session"
|
|
26292
26830
|
};
|
|
26293
26831
|
/**
|
|
26294
26832
|
* Per-stage gating mode applied to the zones a rule references.
|
|
@@ -26432,7 +26970,14 @@ var scriptRunnerCapability = {
|
|
|
26432
26970
|
* `isRunning` to render a spinner during execution and surfaces
|
|
26433
26971
|
* `lastError` / `lastRunSuccess` in the recent-runs panel.
|
|
26434
26972
|
*/
|
|
26435
|
-
runtimeState: ScriptRunnerStatusSchema
|
|
26973
|
+
runtimeState: ScriptRunnerStatusSchema,
|
|
26974
|
+
/**
|
|
26975
|
+
* Runtime-state durability: **session** — a restored `isRunning: true` describes a process that died with the previous hub.
|
|
26976
|
+
*
|
|
26977
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26978
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26979
|
+
*/
|
|
26980
|
+
durability: "session"
|
|
26436
26981
|
};
|
|
26437
26982
|
/**
|
|
26438
26983
|
* Smoke alarm sensor — boolean "is smoke currently detected" with
|
|
@@ -26459,7 +27004,17 @@ var smokeCapability = {
|
|
|
26459
27004
|
schema: SmokeStatusSchema,
|
|
26460
27005
|
kind: "push"
|
|
26461
27006
|
},
|
|
26462
|
-
runtimeState: SmokeStatusSchema
|
|
27007
|
+
runtimeState: SmokeStatusSchema,
|
|
27008
|
+
/**
|
|
27009
|
+
* Runtime-state durability: **restored** — a safety sensor must not read "clear" merely because the hub restarted.
|
|
27010
|
+
*
|
|
27011
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27012
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27013
|
+
*/
|
|
27014
|
+
durability: "restored",
|
|
27015
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27016
|
+
* whether persisting is worth a SQLite commit. */
|
|
27017
|
+
volatileStateFields: ["lastChangedAt"]
|
|
26463
27018
|
};
|
|
26464
27019
|
/**
|
|
26465
27020
|
* One publishable camera stream as its OWNING PROVIDER describes it — the same
|
|
@@ -26632,7 +27187,17 @@ var streamParamsCapability = {
|
|
|
26632
27187
|
schema: StreamParamsStatusSchema,
|
|
26633
27188
|
kind: "poll"
|
|
26634
27189
|
},
|
|
26635
|
-
runtimeState: StreamParamsStatusSchema
|
|
27190
|
+
runtimeState: StreamParamsStatusSchema,
|
|
27191
|
+
/**
|
|
27192
|
+
* Runtime-state durability: **restored** — operator-set encoder profile; mutation-driven.
|
|
27193
|
+
*
|
|
27194
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27195
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27196
|
+
*/
|
|
27197
|
+
durability: "restored",
|
|
27198
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27199
|
+
* whether persisting is worth a SQLite commit. */
|
|
27200
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
26636
27201
|
};
|
|
26637
27202
|
/**
|
|
26638
27203
|
* Generic on/off switch cap for accessory children (siren, floodlight,
|
|
@@ -26678,6 +27243,16 @@ var switchCapability = {
|
|
|
26678
27243
|
* not need to re-query the provider after a setState mutation.
|
|
26679
27244
|
*/
|
|
26680
27245
|
runtimeState: SwitchStatusSchema,
|
|
27246
|
+
/**
|
|
27247
|
+
* Runtime-state durability: **restored** — device state an operator reads as authoritative; 55 devices, transition-driven.
|
|
27248
|
+
*
|
|
27249
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27250
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27251
|
+
*/
|
|
27252
|
+
durability: "restored",
|
|
27253
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27254
|
+
* whether persisting is worth a SQLite commit. */
|
|
27255
|
+
volatileStateFields: ["lastChangedAt"],
|
|
26681
27256
|
settings: { bindings: [{
|
|
26682
27257
|
kind: "scalar",
|
|
26683
27258
|
statusPath: "on",
|
|
@@ -26757,7 +27332,17 @@ var tamperCapability = {
|
|
|
26757
27332
|
schema: TamperStatusSchema,
|
|
26758
27333
|
kind: "push"
|
|
26759
27334
|
},
|
|
26760
|
-
runtimeState: TamperStatusSchema
|
|
27335
|
+
runtimeState: TamperStatusSchema,
|
|
27336
|
+
/**
|
|
27337
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
27338
|
+
*
|
|
27339
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27340
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27341
|
+
*/
|
|
27342
|
+
durability: "restored",
|
|
27343
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27344
|
+
* whether persisting is worth a SQLite commit. */
|
|
27345
|
+
volatileStateFields: ["lastChangedAt"]
|
|
26761
27346
|
};
|
|
26762
27347
|
/**
|
|
26763
27348
|
* Single-metric temperature reading. Drives Home Assistant `sensor`
|
|
@@ -26802,7 +27387,17 @@ var temperatureSensorCapability = {
|
|
|
26802
27387
|
schema: TemperatureSensorStatusSchema,
|
|
26803
27388
|
kind: "push"
|
|
26804
27389
|
},
|
|
26805
|
-
runtimeState: TemperatureSensorStatusSchema
|
|
27390
|
+
runtimeState: TemperatureSensorStatusSchema,
|
|
27391
|
+
/**
|
|
27392
|
+
* Runtime-state durability: **restored** — as `numeric-sensor` (69 of 125 writes were the clock alone).
|
|
27393
|
+
*
|
|
27394
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27395
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27396
|
+
*/
|
|
27397
|
+
durability: "restored",
|
|
27398
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27399
|
+
* whether persisting is worth a SQLite commit. */
|
|
27400
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
26806
27401
|
};
|
|
26807
27402
|
/**
|
|
26808
27403
|
* toast — system-scoped singleton capability that streams toast
|
|
@@ -26871,7 +27466,14 @@ var updateCapability = {
|
|
|
26871
27466
|
schema: UpdateStatusSchema,
|
|
26872
27467
|
kind: "poll"
|
|
26873
27468
|
},
|
|
26874
|
-
runtimeState: UpdateStatusSchema
|
|
27469
|
+
runtimeState: UpdateStatusSchema,
|
|
27470
|
+
/**
|
|
27471
|
+
* Runtime-state durability: **session** — a restored `inProgress: true` describes an update that is no longer running; versions are re-probed at boot.
|
|
27472
|
+
*
|
|
27473
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27474
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27475
|
+
*/
|
|
27476
|
+
durability: "session"
|
|
26875
27477
|
};
|
|
26876
27478
|
var UserSummarySchema = object({
|
|
26877
27479
|
id: string(),
|
|
@@ -27205,7 +27807,14 @@ var vacuumControlCapability = {
|
|
|
27205
27807
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
27206
27808
|
* slice for live state + battery + fan-speed changes.
|
|
27207
27809
|
*/
|
|
27208
|
-
runtimeState: VacuumControlStatusSchema
|
|
27810
|
+
runtimeState: VacuumControlStatusSchema,
|
|
27811
|
+
/**
|
|
27812
|
+
* Runtime-state durability: **session** — as `media-player` — a restored `state: cleaning` is a robot that is not cleaning.
|
|
27813
|
+
*
|
|
27814
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27815
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27816
|
+
*/
|
|
27817
|
+
durability: "session"
|
|
27209
27818
|
};
|
|
27210
27819
|
var ValveStatusSchema = object({
|
|
27211
27820
|
/** Lifecycle state of the valve. */
|
|
@@ -27257,7 +27866,14 @@ var valveCapability = {
|
|
|
27257
27866
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
27258
27867
|
* slice for live position changes during a move.
|
|
27259
27868
|
*/
|
|
27260
|
-
runtimeState: ValveStatusSchema
|
|
27869
|
+
runtimeState: ValveStatusSchema,
|
|
27870
|
+
/**
|
|
27871
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
27872
|
+
*
|
|
27873
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27874
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27875
|
+
*/
|
|
27876
|
+
durability: "session"
|
|
27261
27877
|
};
|
|
27262
27878
|
/**
|
|
27263
27879
|
* Vibration / shake / impact sensor. Drives Home Assistant
|
|
@@ -27279,7 +27895,17 @@ var vibrationCapability = {
|
|
|
27279
27895
|
schema: VibrationStatusSchema,
|
|
27280
27896
|
kind: "push"
|
|
27281
27897
|
},
|
|
27282
|
-
runtimeState: VibrationStatusSchema
|
|
27898
|
+
runtimeState: VibrationStatusSchema,
|
|
27899
|
+
/**
|
|
27900
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
27901
|
+
*
|
|
27902
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27903
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27904
|
+
*/
|
|
27905
|
+
durability: "restored",
|
|
27906
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27907
|
+
* whether persisting is worth a SQLite commit. */
|
|
27908
|
+
volatileStateFields: ["lastChangedAt"]
|
|
27283
27909
|
};
|
|
27284
27910
|
/**
|
|
27285
27911
|
* Water heater / boiler cap. Models HA `water_heater.*` entities — a
|
|
@@ -27353,7 +27979,14 @@ var waterHeaterCapability = {
|
|
|
27353
27979
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
27354
27980
|
* slice for live temperature / mode / away changes.
|
|
27355
27981
|
*/
|
|
27356
|
-
runtimeState: WaterHeaterStatusSchema
|
|
27982
|
+
runtimeState: WaterHeaterStatusSchema,
|
|
27983
|
+
/**
|
|
27984
|
+
* Runtime-state durability: **session** — as `climate-control`.
|
|
27985
|
+
*
|
|
27986
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27987
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27988
|
+
*/
|
|
27989
|
+
durability: "session"
|
|
27357
27990
|
};
|
|
27358
27991
|
/**
|
|
27359
27992
|
* Weather provider cap. Models HA `weather.*` entities — a read-only
|
|
@@ -27412,7 +28045,14 @@ var weatherCapability = {
|
|
|
27412
28045
|
* Runtime-state slice — mirrored by the kernel. The UI reads the
|
|
27413
28046
|
* current conditions directly from the slice on each weather push.
|
|
27414
28047
|
*/
|
|
27415
|
-
runtimeState: WeatherStatusSchema
|
|
28048
|
+
runtimeState: WeatherStatusSchema,
|
|
28049
|
+
/**
|
|
28050
|
+
* Runtime-state durability: **session** — a forecast is stale the moment the hub is down; the provider re-fetches on connect.
|
|
28051
|
+
*
|
|
28052
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
28053
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
28054
|
+
*/
|
|
28055
|
+
durability: "session"
|
|
27416
28056
|
};
|
|
27417
28057
|
/**
|
|
27418
28058
|
* Per-zone occupancy aggregation produced by the analytics frame
|
|
@@ -27574,7 +28214,14 @@ var zoneAnalyticsCapability = {
|
|
|
27574
28214
|
* automatically; the explicit `getCurrentSnapshot` cap method is
|
|
27575
28215
|
* still useful for one-off polls without a subscription.
|
|
27576
28216
|
*/
|
|
27577
|
-
runtimeState: CameraOccupancySnapshotSchema
|
|
28217
|
+
runtimeState: CameraOccupancySnapshotSchema,
|
|
28218
|
+
/**
|
|
28219
|
+
* Runtime-state durability: **session** — per-frame analytics; with `audio-metrics` it is ~90 % of the offered write rate. Re-derived on the next frame.
|
|
28220
|
+
*
|
|
28221
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
28222
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
28223
|
+
*/
|
|
28224
|
+
durability: "session"
|
|
27578
28225
|
};
|
|
27579
28226
|
/**
|
|
27580
28227
|
* Stages a {@link ZoneRule} can apply to. Discriminator on the rules
|
|
@@ -27652,7 +28299,14 @@ var zoneRulesCapability = {
|
|
|
27652
28299
|
motion: array(ZoneRuleSchema).readonly(),
|
|
27653
28300
|
detection: array(ZoneRuleSchema).readonly(),
|
|
27654
28301
|
package: array(ZoneRuleSchema).readonly()
|
|
27655
|
-
})
|
|
28302
|
+
}),
|
|
28303
|
+
/**
|
|
28304
|
+
* Runtime-state durability: **restored** — operator intent, mutation-only, same argument as `zones`.
|
|
28305
|
+
*
|
|
28306
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
28307
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
28308
|
+
*/
|
|
28309
|
+
durability: "restored"
|
|
27656
28310
|
};
|
|
27657
28311
|
/**
|
|
27658
28312
|
* Accessory device helpers — shared across drivers.
|
|
@@ -34339,6 +34993,7 @@ Object.freeze({
|
|
|
34339
34993
|
"network-access": "ingress",
|
|
34340
34994
|
"smtp-provider": "email"
|
|
34341
34995
|
});
|
|
34996
|
+
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
34342
34997
|
new Set(["devices", "classes"]);
|
|
34343
34998
|
/**
|
|
34344
34999
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|