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