@camstack/addon-provider-homeassistant 1.2.26 → 1.2.28
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 +7 -2
- package/dist/addon.mjs +7 -2
- package/dist/{dist-DC4EnKFm.mjs → dist-BvkeiSOJ.mjs} +732 -77
- package/dist/{dist-CmlVRSvD.js → dist-D_Zn5oFS.js} +732 -77
- package/dist/ha-export/ha-export.addon.js +1 -1
- package/dist/ha-export/ha-export.addon.mjs +1 -1
- package/package.json +1 -1
|
@@ -10943,7 +10943,14 @@ var cameraStreamsCapability = {
|
|
|
10943
10943
|
low: string().optional()
|
|
10944
10944
|
}),
|
|
10945
10945
|
lastChangedAt: number()
|
|
10946
|
-
})
|
|
10946
|
+
}),
|
|
10947
|
+
/**
|
|
10948
|
+
* 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.
|
|
10949
|
+
*
|
|
10950
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
10951
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
10952
|
+
*/
|
|
10953
|
+
durability: "session"
|
|
10947
10954
|
};
|
|
10948
10955
|
/** Where a block runs. The operator chooses — a block driving a device on an
|
|
10949
10956
|
* agent is the reason placement is not fixed to the hub. */
|
|
@@ -11549,6 +11556,13 @@ var deviceDiscoveryCapability = {
|
|
|
11549
11556
|
kind: "poll"
|
|
11550
11557
|
},
|
|
11551
11558
|
runtimeState: DeviceDiscoveryStatusSchema.extend({ lastFetchedAt: number().int().nonnegative() }),
|
|
11559
|
+
/**
|
|
11560
|
+
* Runtime-state durability: **session** — 5.7 KB of scan output on the largest device, fully re-derivable by re-scanning.
|
|
11561
|
+
*
|
|
11562
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
11563
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
11564
|
+
*/
|
|
11565
|
+
durability: "session",
|
|
11552
11566
|
methods: {
|
|
11553
11567
|
/**
|
|
11554
11568
|
* Snapshot of the current `discovered` list. Returns the
|
|
@@ -13460,11 +13474,33 @@ var NotificationFormatSchema = _enum([
|
|
|
13460
13474
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
13461
13475
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
13462
13476
|
* differently.
|
|
13477
|
+
*
|
|
13478
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
13479
|
+
*
|
|
13480
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
13481
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
13482
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
13483
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
13484
|
+
* decides its glyph, which is the only place that decision can be made
|
|
13485
|
+
* honestly.
|
|
13486
|
+
*
|
|
13487
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
13488
|
+
* `disarm` straight through; iOS feeds that string to
|
|
13489
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
13490
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
13491
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
13492
|
+
*
|
|
13493
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
13494
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
13495
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
13496
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
13497
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
13463
13498
|
*/
|
|
13464
13499
|
var NotificationActionIconSchema = _enum([
|
|
13465
13500
|
"acknowledge",
|
|
13466
13501
|
"dismiss",
|
|
13467
13502
|
"silence",
|
|
13503
|
+
"snooze",
|
|
13468
13504
|
"view",
|
|
13469
13505
|
"play",
|
|
13470
13506
|
"open",
|
|
@@ -13472,9 +13508,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
13472
13508
|
"lock",
|
|
13473
13509
|
"unlock",
|
|
13474
13510
|
"arm",
|
|
13511
|
+
"arm-home",
|
|
13512
|
+
"arm-away",
|
|
13513
|
+
"arm-night",
|
|
13475
13514
|
"disarm",
|
|
13476
13515
|
"light",
|
|
13477
|
-
"alert"
|
|
13516
|
+
"alert",
|
|
13517
|
+
"camera"
|
|
13478
13518
|
]);
|
|
13479
13519
|
/** A single tap-through action button. */
|
|
13480
13520
|
var NotificationActionSchema = object({
|
|
@@ -13490,7 +13530,23 @@ var NotificationActionSchema = object({
|
|
|
13490
13530
|
* else — see `notification-center/action-token.ts` for what that does and
|
|
13491
13531
|
* does not buy.
|
|
13492
13532
|
*/
|
|
13493
|
-
destructive: boolean().optional()
|
|
13533
|
+
destructive: boolean().optional(),
|
|
13534
|
+
/**
|
|
13535
|
+
* How the tap should REACH the url.
|
|
13536
|
+
*
|
|
13537
|
+
* `navigate` (absent, and every button authored before this field) opens it:
|
|
13538
|
+
* the phone leaves the notification and shows whatever the callback returns.
|
|
13539
|
+
* That is right for a button whose answer the operator wants to read.
|
|
13540
|
+
*
|
|
13541
|
+
* `background` fires it as a POST and stays put. It exists for the buttons
|
|
13542
|
+
* whose whole point is not to interrupt — "silence this for 30 minutes" is
|
|
13543
|
+
* an answer to the notification, and being thrown into a browser tab to
|
|
13544
|
+
* confirm it costs more attention than the notification did. A backend that
|
|
13545
|
+
* cannot do a background call renders it as an ordinary link (the adapters
|
|
13546
|
+
* fall back rather than dropping the button), so this is a preference, never
|
|
13547
|
+
* a requirement.
|
|
13548
|
+
*/
|
|
13549
|
+
mode: _enum(["navigate", "background"]).optional()
|
|
13494
13550
|
});
|
|
13495
13551
|
/**
|
|
13496
13552
|
* The canonical notification. `body` is the only hard field (Apprise model).
|
|
@@ -13672,6 +13728,24 @@ var notificationOutputCapability = {
|
|
|
13672
13728
|
}), _void(), { kind: "mutation" })
|
|
13673
13729
|
}
|
|
13674
13730
|
};
|
|
13731
|
+
new Set([
|
|
13732
|
+
{
|
|
13733
|
+
id: "person",
|
|
13734
|
+
name: "Person"
|
|
13735
|
+
},
|
|
13736
|
+
{
|
|
13737
|
+
id: "vehicle",
|
|
13738
|
+
name: "Vehicle"
|
|
13739
|
+
},
|
|
13740
|
+
{
|
|
13741
|
+
id: "animal",
|
|
13742
|
+
name: "Animal"
|
|
13743
|
+
},
|
|
13744
|
+
{
|
|
13745
|
+
id: "package",
|
|
13746
|
+
name: "Package"
|
|
13747
|
+
}
|
|
13748
|
+
].map((l) => l.id));
|
|
13675
13749
|
var COCO_TO_MACRO = {
|
|
13676
13750
|
mapping: {
|
|
13677
13751
|
person: "person",
|
|
@@ -14356,7 +14430,17 @@ var alarmPanelCapability = {
|
|
|
14356
14430
|
* full slice; renders an arm button per `availableModes` entry and
|
|
14357
14431
|
* a PIN field iff `requiresCode === true`.
|
|
14358
14432
|
*/
|
|
14359
|
-
runtimeState: AlarmPanelStatusSchema
|
|
14433
|
+
runtimeState: AlarmPanelStatusSchema,
|
|
14434
|
+
/**
|
|
14435
|
+
* Runtime-state durability: **restored** — armed state is the one thing a panel must not lose across a restart.
|
|
14436
|
+
*
|
|
14437
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
14438
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
14439
|
+
*/
|
|
14440
|
+
durability: "restored",
|
|
14441
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
14442
|
+
* whether persisting is worth a SQLite commit. */
|
|
14443
|
+
volatileStateFields: ["lastChangedAt"]
|
|
14360
14444
|
};
|
|
14361
14445
|
/**
|
|
14362
14446
|
* Shared geometry vocabulary for on-frame shape caps — privacy-mask,
|
|
@@ -14497,6 +14581,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14497
14581
|
"alarm-triggered",
|
|
14498
14582
|
"alarm-armed",
|
|
14499
14583
|
"alarm-disarmed",
|
|
14584
|
+
"alarm-arming",
|
|
14585
|
+
"alarm-arm-refused",
|
|
14500
14586
|
"camera-online",
|
|
14501
14587
|
"camera-offline",
|
|
14502
14588
|
"camera-disabled",
|
|
@@ -14533,6 +14619,9 @@ var NcSystemEventConditionSchema = object({
|
|
|
14533
14619
|
nodeIds: array(string().min(1)).min(1).optional(),
|
|
14534
14620
|
packageNames: array(string().min(1)).min(1).optional()
|
|
14535
14621
|
});
|
|
14622
|
+
/** Hard ceiling on a window (24h). A snooze that could not expire would be an
|
|
14623
|
+
* outage the operator asked for once and forgot. */
|
|
14624
|
+
var NC_SNOOZE_MAX_MINUTES = 1440;
|
|
14536
14625
|
/** Weekly schedule — OR of windows; absence on the rule = always active. */
|
|
14537
14626
|
var NcScheduleSchema = object({
|
|
14538
14627
|
windows: array(object({
|
|
@@ -14909,15 +14998,15 @@ var NcConditionsSchema = object({
|
|
|
14909
14998
|
* (an `immediate` rule naming an `audio-*` class, one notification per
|
|
14910
14999
|
* classified sample) stays exactly as it was for rules that already use it.
|
|
14911
15000
|
*
|
|
14912
|
-
*
|
|
14913
|
-
* rather than an
|
|
14914
|
-
* (`camstack/src/data/notification-center.ts`, guarded by
|
|
14915
|
-
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor
|
|
15001
|
+
* In {@link NC_CONDITION_CATALOG} since P2, and the ORDER it got there is the
|
|
15002
|
+
* rule rather than an accident: the viewer mirrors the descriptor enums BY
|
|
15003
|
+
* HAND (`camstack/src/data/notification-center.ts`, guarded by
|
|
15004
|
+
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor strips the
|
|
14916
15005
|
* condition fields it does not know when a rule is saved from the phone.
|
|
14917
15006
|
* Publishing an editor for a condition the app cannot round-trip is how an
|
|
14918
|
-
* operator loses a rule's conditions by opening it — so the
|
|
14919
|
-
*
|
|
14920
|
-
*
|
|
15007
|
+
* operator loses a rule's conditions by opening it — so the viewer mirror
|
|
15008
|
+
* (P3, shipped) went FIRST, and the descriptor an editor renders from
|
|
15009
|
+
* follows here.
|
|
14921
15010
|
*/
|
|
14922
15011
|
audio: NcAudioConditionSchema.optional()
|
|
14923
15012
|
});
|
|
@@ -15153,6 +15242,30 @@ var NcRuleInputSchema = object({
|
|
|
15153
15242
|
*/
|
|
15154
15243
|
snoozeAllowGlobal: boolean().optional(),
|
|
15155
15244
|
/**
|
|
15245
|
+
* The snooze durations THIS rule's notification offers as buttons, in
|
|
15246
|
+
* minutes.
|
|
15247
|
+
*
|
|
15248
|
+
* Three states, and all three are distinct — which is exactly why this is
|
|
15249
|
+
* `.optional()` and never `.default()`. A Zod default does not run on the
|
|
15250
|
+
* addon cap path (three production failures in one day), so a schema default
|
|
15251
|
+
* would collapse the first two:
|
|
15252
|
+
*
|
|
15253
|
+
* | value | meaning |
|
|
15254
|
+
* | --- | --- |
|
|
15255
|
+
* | absent | the operator never said ⇒ {@link NC_DEFAULT_SNOOZE_MINUTES} |
|
|
15256
|
+
* | `[]` | **no snooze buttons on this rule** — the explicit override |
|
|
15257
|
+
* | a list | these choices, de-duplicated and sorted, at most four |
|
|
15258
|
+
*
|
|
15259
|
+
* `.max(4)` because the notifier's own action budget is small (ntfy allows
|
|
15260
|
+
* three buttons in total) and a rule that spent it all on snooze choices
|
|
15261
|
+
* would push its own tap-through actions off the notification.
|
|
15262
|
+
*
|
|
15263
|
+
* An empty list is NOT an alarm exemption: a rule the alarm is about, or
|
|
15264
|
+
* that arms the panel, is exempt automatically and cannot be silenced by a
|
|
15265
|
+
* window from anywhere (D133).
|
|
15266
|
+
*/
|
|
15267
|
+
snoozeOptions: array(number().int().min(1).max(NC_SNOOZE_MAX_MINUTES)).max(4).optional(),
|
|
15268
|
+
/**
|
|
15156
15269
|
* Devices this rule ACTUATES — arm the alarm, open a gate, turn on a light.
|
|
15157
15270
|
*
|
|
15158
15271
|
* This is what makes the rule set the alarm's trigger set without the alarm
|
|
@@ -15252,6 +15365,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
15252
15365
|
"device",
|
|
15253
15366
|
"package",
|
|
15254
15367
|
"occupancy",
|
|
15368
|
+
"audio",
|
|
15255
15369
|
"system"
|
|
15256
15370
|
]),
|
|
15257
15371
|
label: string(),
|
|
@@ -15270,6 +15384,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
15270
15384
|
"crossingSelect",
|
|
15271
15385
|
"polygonDraw",
|
|
15272
15386
|
"occupancy",
|
|
15387
|
+
"audio",
|
|
15273
15388
|
"deviceState",
|
|
15274
15389
|
"systemEvent"
|
|
15275
15390
|
]),
|
|
@@ -15421,7 +15536,20 @@ var NcSnoozeInputSchema = object({
|
|
|
15421
15536
|
ruleId: string().optional(),
|
|
15422
15537
|
/** Required when `scope: 'device'`. */
|
|
15423
15538
|
deviceId: number().int().optional(),
|
|
15424
|
-
|
|
15539
|
+
/**
|
|
15540
|
+
* Narrow the window to these subject classes — "the cat, not the person".
|
|
15541
|
+
*
|
|
15542
|
+
* ORTHOGONAL to `scope`, deliberately, and absent means EVERY class: that is
|
|
15543
|
+
* what every window authored before this field meant, so no persisted row
|
|
15544
|
+
* changes meaning and no client has to learn anything to keep working.
|
|
15545
|
+
*
|
|
15546
|
+
* It is what makes the window's real key `(deviceId, classes[])` and lets it
|
|
15547
|
+
* cross rules (D133): the operator points at a camera and a kind of thing,
|
|
15548
|
+
* not at whichever of their four rules happened to produce the notification
|
|
15549
|
+
* they are dismissing.
|
|
15550
|
+
*/
|
|
15551
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
15552
|
+
durationMinutes: number().int().min(1).max(NC_SNOOZE_MAX_MINUTES),
|
|
15425
15553
|
/**
|
|
15426
15554
|
* Silence this for EVERY recipient, not just the caller. Permission is
|
|
15427
15555
|
* checked server-side (the rule's `snoozeAllowGlobal`, or admin for the
|
|
@@ -15446,6 +15574,10 @@ var NcSnoozeSchema = object({
|
|
|
15446
15574
|
scope: NcSnoozeScopeSchema,
|
|
15447
15575
|
ruleId: string().optional(),
|
|
15448
15576
|
deviceId: number().int().optional(),
|
|
15577
|
+
/** Subject classes this window covers. ABSENT = every class — see
|
|
15578
|
+
* {@link NcSnoozeInputSchema.shape.classes}. Lives in the JSON blob and has
|
|
15579
|
+
* no SQLite column: nothing queries a window by class. */
|
|
15580
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
15449
15581
|
startedAt: number(),
|
|
15450
15582
|
/** Exclusive: at exactly this instant the snooze is over. Expiry is a
|
|
15451
15583
|
* COMPARISON, not a job — no sweeper can leave the operator silenced. */
|
|
@@ -17552,7 +17684,14 @@ var zonesCapability = {
|
|
|
17552
17684
|
* handle. Slice shape is `{ zones: Zone[] }` so future extensions
|
|
17553
17685
|
* (e.g. zone groupings) can sit alongside the polygon list.
|
|
17554
17686
|
*/
|
|
17555
|
-
runtimeState: object({ zones: array(ZoneSchema).readonly() })
|
|
17687
|
+
runtimeState: object({ zones: array(ZoneSchema).readonly() }),
|
|
17688
|
+
/**
|
|
17689
|
+
* 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.
|
|
17690
|
+
*
|
|
17691
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
17692
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
17693
|
+
*/
|
|
17694
|
+
durability: "restored"
|
|
17556
17695
|
};
|
|
17557
17696
|
/**
|
|
17558
17697
|
* A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
|
|
@@ -17722,6 +17861,22 @@ var detectionFpsField = {
|
|
|
17722
17861
|
default: 10,
|
|
17723
17862
|
step: 1
|
|
17724
17863
|
};
|
|
17864
|
+
/**
|
|
17865
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
17866
|
+
*
|
|
17867
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
17868
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
17869
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
17870
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
17871
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
17872
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
17873
|
+
*
|
|
17874
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
17875
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
17876
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
17877
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
17878
|
+
* that ships with an addon deploy.
|
|
17879
|
+
*/
|
|
17725
17880
|
var occupancyRecheckSecField = {
|
|
17726
17881
|
min: 0,
|
|
17727
17882
|
max: 300,
|
|
@@ -17923,15 +18078,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
17923
18078
|
*/
|
|
17924
18079
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
17925
18080
|
/**
|
|
17926
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
17927
|
-
*
|
|
17928
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
17929
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
17930
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
18081
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
18082
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
17931
18083
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
17932
18084
|
* (and only render) when this is enabled.
|
|
17933
|
-
|
|
17934
|
-
|
|
18085
|
+
*
|
|
18086
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
18087
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
18088
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
18089
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
18090
|
+
* object is counted only while the stationary registry holds it, and the
|
|
18091
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
18092
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
18093
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
18094
|
+
*/
|
|
18095
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
17935
18096
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
17936
18097
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
17937
18098
|
/**
|
|
@@ -20423,7 +20584,17 @@ var airQualitySensorCapability = {
|
|
|
20423
20584
|
schema: AirQualitySensorStatusSchema,
|
|
20424
20585
|
kind: "push"
|
|
20425
20586
|
},
|
|
20426
|
-
runtimeState: AirQualitySensorStatusSchema
|
|
20587
|
+
runtimeState: AirQualitySensorStatusSchema,
|
|
20588
|
+
/**
|
|
20589
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
20590
|
+
*
|
|
20591
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20592
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20593
|
+
*/
|
|
20594
|
+
durability: "restored",
|
|
20595
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20596
|
+
* whether persisting is worth a SQLite commit. */
|
|
20597
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
20427
20598
|
};
|
|
20428
20599
|
/**
|
|
20429
20600
|
* Ambient illuminance reading in lux. Drives Home Assistant `sensor`
|
|
@@ -20455,7 +20626,17 @@ var ambientLightSensorCapability = {
|
|
|
20455
20626
|
schema: AmbientLightSensorStatusSchema,
|
|
20456
20627
|
kind: "push"
|
|
20457
20628
|
},
|
|
20458
|
-
runtimeState: AmbientLightSensorStatusSchema
|
|
20629
|
+
runtimeState: AmbientLightSensorStatusSchema,
|
|
20630
|
+
/**
|
|
20631
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
20632
|
+
*
|
|
20633
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20634
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20635
|
+
*/
|
|
20636
|
+
durability: "restored",
|
|
20637
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20638
|
+
* whether persisting is worth a SQLite commit. */
|
|
20639
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
20459
20640
|
};
|
|
20460
20641
|
/**
|
|
20461
20642
|
* Per-class audio metrics aggregated over a sliding window.
|
|
@@ -20573,7 +20754,14 @@ var audioMetricsCapability = {
|
|
|
20573
20754
|
}), AudioMetricsHistorySchema)
|
|
20574
20755
|
},
|
|
20575
20756
|
/** Reactive runtime-state mirror — live `device.state.audioMetrics.value`. */
|
|
20576
|
-
runtimeState: AudioMetricsSnapshotSchema
|
|
20757
|
+
runtimeState: AudioMetricsSnapshotSchema,
|
|
20758
|
+
/**
|
|
20759
|
+
* 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.
|
|
20760
|
+
*
|
|
20761
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20762
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20763
|
+
*/
|
|
20764
|
+
durability: "session"
|
|
20577
20765
|
};
|
|
20578
20766
|
/**
|
|
20579
20767
|
* Automation-control cap. Models HA `automation.*` entities on
|
|
@@ -20635,7 +20823,14 @@ var automationControlCapability = {
|
|
|
20635
20823
|
* reads `enabled` (toggle) + `isRunning` (spinner) + `lastError`
|
|
20636
20824
|
* (badge) directly.
|
|
20637
20825
|
*/
|
|
20638
|
-
runtimeState: AutomationControlStatusSchema
|
|
20826
|
+
runtimeState: AutomationControlStatusSchema,
|
|
20827
|
+
/**
|
|
20828
|
+
* 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.
|
|
20829
|
+
*
|
|
20830
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20831
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20832
|
+
*/
|
|
20833
|
+
durability: "session"
|
|
20639
20834
|
};
|
|
20640
20835
|
/**
|
|
20641
20836
|
* Battery status snapshot. Emitted by providers whose device is
|
|
@@ -20741,7 +20936,17 @@ onStatusChanged: { data: object({
|
|
|
20741
20936
|
* via `device.runtimeState.getCapState('battery')` regardless of
|
|
20742
20937
|
* the underlying driver.
|
|
20743
20938
|
*/
|
|
20744
|
-
runtimeState: BatteryStatusSchema
|
|
20939
|
+
runtimeState: BatteryStatusSchema,
|
|
20940
|
+
/**
|
|
20941
|
+
* 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.
|
|
20942
|
+
*
|
|
20943
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20944
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20945
|
+
*/
|
|
20946
|
+
durability: "restored",
|
|
20947
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20948
|
+
* whether persisting is worth a SQLite commit. */
|
|
20949
|
+
volatileStateFields: ["lastUpdated"]
|
|
20745
20950
|
};
|
|
20746
20951
|
/**
|
|
20747
20952
|
* Generic boolean sensor — last-resort fallback when no domain-
|
|
@@ -20770,7 +20975,17 @@ var binaryCapability = {
|
|
|
20770
20975
|
schema: BinaryStatusSchema,
|
|
20771
20976
|
kind: "push"
|
|
20772
20977
|
},
|
|
20773
|
-
runtimeState: BinaryStatusSchema
|
|
20978
|
+
runtimeState: BinaryStatusSchema,
|
|
20979
|
+
/**
|
|
20980
|
+
* Runtime-state durability: **restored** — transition-driven sensor state; the restored value gives the boot comparison.
|
|
20981
|
+
*
|
|
20982
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
20983
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
20984
|
+
*/
|
|
20985
|
+
durability: "restored",
|
|
20986
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
20987
|
+
* whether persisting is worth a SQLite commit. */
|
|
20988
|
+
volatileStateFields: ["lastChangedAt"]
|
|
20774
20989
|
};
|
|
20775
20990
|
/**
|
|
20776
20991
|
* Dimmable-light brightness control. Co-exists with `switch` on the
|
|
@@ -20823,7 +21038,14 @@ onBrightnessChanged: { data: object({
|
|
|
20823
21038
|
* by the kernel. Read via `device.state.brightness.value` so UI
|
|
20824
21039
|
* sliders surface the current level without polling the provider.
|
|
20825
21040
|
*/
|
|
20826
|
-
runtimeState: BrightnessStatusSchema
|
|
21041
|
+
runtimeState: BrightnessStatusSchema,
|
|
21042
|
+
/**
|
|
21043
|
+
* Runtime-state durability: **session** — live lamp state, re-published by the provider on connect.
|
|
21044
|
+
*
|
|
21045
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21046
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21047
|
+
*/
|
|
21048
|
+
durability: "session"
|
|
20827
21049
|
};
|
|
20828
21050
|
/**
|
|
20829
21051
|
* button — device-scoped capability for HA `button.*` / `input_button.*`
|
|
@@ -20928,7 +21150,17 @@ var carbonMonoxideCapability = {
|
|
|
20928
21150
|
schema: CarbonMonoxideStatusSchema,
|
|
20929
21151
|
kind: "push"
|
|
20930
21152
|
},
|
|
20931
|
-
runtimeState: CarbonMonoxideStatusSchema
|
|
21153
|
+
runtimeState: CarbonMonoxideStatusSchema,
|
|
21154
|
+
/**
|
|
21155
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
21156
|
+
*
|
|
21157
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21158
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21159
|
+
*/
|
|
21160
|
+
durability: "restored",
|
|
21161
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21162
|
+
* whether persisting is worth a SQLite commit. */
|
|
21163
|
+
volatileStateFields: ["lastChangedAt"]
|
|
20932
21164
|
};
|
|
20933
21165
|
/**
|
|
20934
21166
|
* HVAC / climate control cap. Models the full surface of a HA
|
|
@@ -21088,7 +21320,14 @@ var climateControlCapability = {
|
|
|
21088
21320
|
* the full slice via `device.state.climate-control.value` and refresh
|
|
21089
21321
|
* on every push without re-querying the provider.
|
|
21090
21322
|
*/
|
|
21091
|
-
runtimeState: ClimateControlStatusSchema
|
|
21323
|
+
runtimeState: ClimateControlStatusSchema,
|
|
21324
|
+
/**
|
|
21325
|
+
* Runtime-state durability: **session** — as `brightness`; `currentTemp` moves continuously and is re-published on connect.
|
|
21326
|
+
*
|
|
21327
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21328
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21329
|
+
*/
|
|
21330
|
+
durability: "session"
|
|
21092
21331
|
};
|
|
21093
21332
|
/**
|
|
21094
21333
|
* Color-light cap. Coexists with `switch` (on/off) and `brightness`
|
|
@@ -21198,7 +21437,14 @@ onColorChanged: { data: object({
|
|
|
21198
21437
|
* kernel. Read via `device.state.color.value` so UI pickers surface
|
|
21199
21438
|
* the current chromaticity without polling the provider.
|
|
21200
21439
|
*/
|
|
21201
|
-
runtimeState: ColorStatusSchema
|
|
21440
|
+
runtimeState: ColorStatusSchema,
|
|
21441
|
+
/**
|
|
21442
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
21443
|
+
*
|
|
21444
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21445
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21446
|
+
*/
|
|
21447
|
+
durability: "session"
|
|
21202
21448
|
};
|
|
21203
21449
|
var ConnectionTestOutcomeSchema = discriminatedUnion("outcome", [
|
|
21204
21450
|
object({
|
|
@@ -21256,7 +21502,17 @@ var connectivityCapability = {
|
|
|
21256
21502
|
schema: ConnectivityStatusSchema,
|
|
21257
21503
|
kind: "push"
|
|
21258
21504
|
},
|
|
21259
|
-
runtimeState: ConnectivityStatusSchema
|
|
21505
|
+
runtimeState: ConnectivityStatusSchema,
|
|
21506
|
+
/**
|
|
21507
|
+
* Runtime-state durability: **restored** — same shape and same argument as `device-status`, for links rather than devices.
|
|
21508
|
+
*
|
|
21509
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21510
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21511
|
+
*/
|
|
21512
|
+
durability: "restored",
|
|
21513
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21514
|
+
* whether persisting is worth a SQLite commit. */
|
|
21515
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21260
21516
|
};
|
|
21261
21517
|
/**
|
|
21262
21518
|
* Generic device-consumables capability — surfaces a device's
|
|
@@ -21338,7 +21594,14 @@ reset: method(object({
|
|
|
21338
21594
|
}
|
|
21339
21595
|
}
|
|
21340
21596
|
},
|
|
21341
|
-
runtimeState: ConsumablesStatusSchema.extend({ lastFetchedAt: number() })
|
|
21597
|
+
runtimeState: ConsumablesStatusSchema.extend({ lastFetchedAt: number() }),
|
|
21598
|
+
/**
|
|
21599
|
+
* Runtime-state durability: **session** — the authority is the appliance; the provider re-reads the whole item array on connect.
|
|
21600
|
+
*
|
|
21601
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21602
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21603
|
+
*/
|
|
21604
|
+
durability: "session"
|
|
21342
21605
|
};
|
|
21343
21606
|
/**
|
|
21344
21607
|
* Door / window / opening / garage / valve contact sensor. Boolean
|
|
@@ -21369,7 +21632,17 @@ var contactCapability = {
|
|
|
21369
21632
|
schema: ContactStatusSchema,
|
|
21370
21633
|
kind: "push"
|
|
21371
21634
|
},
|
|
21372
|
-
runtimeState: ContactStatusSchema
|
|
21635
|
+
runtimeState: ContactStatusSchema,
|
|
21636
|
+
/**
|
|
21637
|
+
* Runtime-state durability: **restored** — a door left open across a restart must still read open.
|
|
21638
|
+
*
|
|
21639
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21640
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21641
|
+
*/
|
|
21642
|
+
durability: "restored",
|
|
21643
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21644
|
+
* whether persisting is worth a SQLite commit. */
|
|
21645
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21373
21646
|
};
|
|
21374
21647
|
/**
|
|
21375
21648
|
* Status slice — flat object (the framework's `runtimeState` contract
|
|
@@ -21475,7 +21748,14 @@ var controlCapability = {
|
|
|
21475
21748
|
* dropdown / text field / date picker) read the slice's discriminant
|
|
21476
21749
|
* and value directly without polling the provider.
|
|
21477
21750
|
*/
|
|
21478
|
-
runtimeState: ControlStatusSchema
|
|
21751
|
+
runtimeState: ControlStatusSchema,
|
|
21752
|
+
/**
|
|
21753
|
+
* Runtime-state durability: **session** — a generic control mirrors an external entity that re-publishes on connect; the options array is re-derived with it.
|
|
21754
|
+
*
|
|
21755
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21756
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21757
|
+
*/
|
|
21758
|
+
durability: "session"
|
|
21479
21759
|
};
|
|
21480
21760
|
var CoverStatusSchema = object({
|
|
21481
21761
|
/** Lifecycle state of the cover. */
|
|
@@ -21536,7 +21816,17 @@ var coverCapability = {
|
|
|
21536
21816
|
* Runtime-state slice — mirrored by the kernel. UI controls watch
|
|
21537
21817
|
* the slice for live position changes during a move.
|
|
21538
21818
|
*/
|
|
21539
|
-
runtimeState: CoverStatusSchema
|
|
21819
|
+
runtimeState: CoverStatusSchema,
|
|
21820
|
+
/**
|
|
21821
|
+
* Runtime-state durability: **restored** — position survives a restart on the device; the mirror should agree at boot rather than read blank.
|
|
21822
|
+
*
|
|
21823
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21824
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21825
|
+
*/
|
|
21826
|
+
durability: "restored",
|
|
21827
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21828
|
+
* whether persisting is worth a SQLite commit. */
|
|
21829
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21540
21830
|
};
|
|
21541
21831
|
/**
|
|
21542
21832
|
* Vendor-neutral day/night (IR-cut) control — the per-camera config cap
|
|
@@ -21630,7 +21920,17 @@ var dayNightCapability = {
|
|
|
21630
21920
|
schema: DayNightStatusSchema,
|
|
21631
21921
|
kind: "poll"
|
|
21632
21922
|
},
|
|
21633
|
-
runtimeState: DayNightStatusSchema
|
|
21923
|
+
runtimeState: DayNightStatusSchema,
|
|
21924
|
+
/**
|
|
21925
|
+
* Runtime-state durability: **restored** — operator-set IR-cut behaviour; mutation-driven.
|
|
21926
|
+
*
|
|
21927
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21928
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21929
|
+
*/
|
|
21930
|
+
durability: "restored",
|
|
21931
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21932
|
+
* whether persisting is worth a SQLite commit. */
|
|
21933
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
21634
21934
|
};
|
|
21635
21935
|
/**
|
|
21636
21936
|
* Generic device-level status snapshot. Auto-registered by `BaseDevice`
|
|
@@ -21677,7 +21977,17 @@ onStatusChanged: { data: object({
|
|
|
21677
21977
|
schema: DeviceStatusSchema,
|
|
21678
21978
|
kind: "push"
|
|
21679
21979
|
},
|
|
21680
|
-
runtimeState: DeviceStatusSchema
|
|
21980
|
+
runtimeState: DeviceStatusSchema,
|
|
21981
|
+
/**
|
|
21982
|
+
* 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.
|
|
21983
|
+
*
|
|
21984
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
21985
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
21986
|
+
*/
|
|
21987
|
+
durability: "restored",
|
|
21988
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
21989
|
+
* whether persisting is worth a SQLite commit. */
|
|
21990
|
+
volatileStateFields: ["lastChangedAt"]
|
|
21681
21991
|
};
|
|
21682
21992
|
/**
|
|
21683
21993
|
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
@@ -21739,7 +22049,14 @@ onPressed: { data: DoorbellPressEventSchema } },
|
|
|
21739
22049
|
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
21740
22050
|
* without subscribing.
|
|
21741
22051
|
*/
|
|
21742
|
-
runtimeState: DoorbellStatusSchema
|
|
22052
|
+
runtimeState: DoorbellStatusSchema,
|
|
22053
|
+
/**
|
|
22054
|
+
* 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.
|
|
22055
|
+
*
|
|
22056
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22057
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22058
|
+
*/
|
|
22059
|
+
durability: "restored"
|
|
21743
22060
|
};
|
|
21744
22061
|
/**
|
|
21745
22062
|
* Enum-state sensor — a string value picked from a finite option set.
|
|
@@ -21779,7 +22096,17 @@ var enumSensorCapability = {
|
|
|
21779
22096
|
schema: EnumSensorStatusSchema,
|
|
21780
22097
|
kind: "push"
|
|
21781
22098
|
},
|
|
21782
|
-
runtimeState: EnumSensorStatusSchema
|
|
22099
|
+
runtimeState: EnumSensorStatusSchema,
|
|
22100
|
+
/**
|
|
22101
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`; 80 devices.
|
|
22102
|
+
*
|
|
22103
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22104
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22105
|
+
*/
|
|
22106
|
+
durability: "restored",
|
|
22107
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22108
|
+
* whether persisting is worth a SQLite commit. */
|
|
22109
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
21783
22110
|
};
|
|
21784
22111
|
/**
|
|
21785
22112
|
* Generic stateless event emitter. Installed on a `DeviceType.EventEmitter`
|
|
@@ -21815,7 +22142,14 @@ var eventEmitterCapability = {
|
|
|
21815
22142
|
schema: EventEmitterStatusSchema,
|
|
21816
22143
|
kind: "push"
|
|
21817
22144
|
},
|
|
21818
|
-
runtimeState: EventEmitterStatusSchema
|
|
22145
|
+
runtimeState: EventEmitterStatusSchema,
|
|
22146
|
+
/**
|
|
22147
|
+
* Runtime-state durability: **session** — `eventCountSinceStart` names its own scope.
|
|
22148
|
+
*
|
|
22149
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22150
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22151
|
+
*/
|
|
22152
|
+
durability: "session"
|
|
21819
22153
|
};
|
|
21820
22154
|
var EventItemSchema = object({
|
|
21821
22155
|
id: string(),
|
|
@@ -22096,7 +22430,14 @@ var fanControlCapability = {
|
|
|
22096
22430
|
* Runtime-state slice — mirrored by the kernel. UI fan speed
|
|
22097
22431
|
* sliders read `percentage` for live updates.
|
|
22098
22432
|
*/
|
|
22099
|
-
runtimeState: FanControlStatusSchema
|
|
22433
|
+
runtimeState: FanControlStatusSchema,
|
|
22434
|
+
/**
|
|
22435
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
22436
|
+
*
|
|
22437
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22438
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22439
|
+
*/
|
|
22440
|
+
durability: "session"
|
|
22100
22441
|
};
|
|
22101
22442
|
/**
|
|
22102
22443
|
* Per-device feature/identity probe slice. Holds the runtime-resolved
|
|
@@ -22172,7 +22513,14 @@ onProbeChanged: { data: object({
|
|
|
22172
22513
|
schema: FeatureProbeStatusSchema,
|
|
22173
22514
|
kind: "push"
|
|
22174
22515
|
},
|
|
22175
|
-
runtimeState: FeatureProbeStatusSchema
|
|
22516
|
+
runtimeState: FeatureProbeStatusSchema,
|
|
22517
|
+
/**
|
|
22518
|
+
* 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.
|
|
22519
|
+
*
|
|
22520
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22521
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22522
|
+
*/
|
|
22523
|
+
durability: "session"
|
|
22176
22524
|
};
|
|
22177
22525
|
/**
|
|
22178
22526
|
* Water leak / moisture sensor. Boolean "is liquid currently
|
|
@@ -22199,7 +22547,17 @@ var floodCapability = {
|
|
|
22199
22547
|
schema: FloodStatusSchema,
|
|
22200
22548
|
kind: "push"
|
|
22201
22549
|
},
|
|
22202
|
-
runtimeState: FloodStatusSchema
|
|
22550
|
+
runtimeState: FloodStatusSchema,
|
|
22551
|
+
/**
|
|
22552
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
22553
|
+
*
|
|
22554
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22555
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22556
|
+
*/
|
|
22557
|
+
durability: "restored",
|
|
22558
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22559
|
+
* whether persisting is worth a SQLite commit. */
|
|
22560
|
+
volatileStateFields: ["lastChangedAt"]
|
|
22203
22561
|
};
|
|
22204
22562
|
/**
|
|
22205
22563
|
* Combustible-gas (LPG / methane / hydrogen) alarm sensor. Drives
|
|
@@ -22222,7 +22580,17 @@ var gasCapability = {
|
|
|
22222
22580
|
schema: GasStatusSchema,
|
|
22223
22581
|
kind: "push"
|
|
22224
22582
|
},
|
|
22225
|
-
runtimeState: GasStatusSchema
|
|
22583
|
+
runtimeState: GasStatusSchema,
|
|
22584
|
+
/**
|
|
22585
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
22586
|
+
*
|
|
22587
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22588
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22589
|
+
*/
|
|
22590
|
+
durability: "restored",
|
|
22591
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22592
|
+
* whether persisting is worth a SQLite commit. */
|
|
22593
|
+
volatileStateFields: ["lastChangedAt"]
|
|
22226
22594
|
};
|
|
22227
22595
|
/**
|
|
22228
22596
|
* Humidifier / dehumidifier cap. Models HA `humidifier.*` entities —
|
|
@@ -22298,7 +22666,14 @@ var humidifierCapability = {
|
|
|
22298
22666
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
22299
22667
|
* slice for live humidity / mode changes.
|
|
22300
22668
|
*/
|
|
22301
|
-
runtimeState: HumidifierStatusSchema
|
|
22669
|
+
runtimeState: HumidifierStatusSchema,
|
|
22670
|
+
/**
|
|
22671
|
+
* Runtime-state durability: **session** — as `climate-control`.
|
|
22672
|
+
*
|
|
22673
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22674
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22675
|
+
*/
|
|
22676
|
+
durability: "session"
|
|
22302
22677
|
};
|
|
22303
22678
|
/**
|
|
22304
22679
|
* Single-metric humidity reading. Drives Home Assistant `sensor`
|
|
@@ -22334,7 +22709,17 @@ var humiditySensorCapability = {
|
|
|
22334
22709
|
schema: HumiditySensorStatusSchema,
|
|
22335
22710
|
kind: "push"
|
|
22336
22711
|
},
|
|
22337
|
-
runtimeState: HumiditySensorStatusSchema
|
|
22712
|
+
runtimeState: HumiditySensorStatusSchema,
|
|
22713
|
+
/**
|
|
22714
|
+
* Runtime-state durability: **restored** — as `numeric-sensor` (67 of 75 writes were the clock alone).
|
|
22715
|
+
*
|
|
22716
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22717
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22718
|
+
*/
|
|
22719
|
+
durability: "restored",
|
|
22720
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22721
|
+
* whether persisting is worth a SQLite commit. */
|
|
22722
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
22338
22723
|
};
|
|
22339
22724
|
/**
|
|
22340
22725
|
* Image display cap. Models a single still image exposed by an integration —
|
|
@@ -22372,7 +22757,14 @@ var imageCapability = {
|
|
|
22372
22757
|
* Runtime-state slice — mirrored by the kernel. The UI reads `url`
|
|
22373
22758
|
* directly and renders the still image.
|
|
22374
22759
|
*/
|
|
22375
|
-
runtimeState: ImageStatusSchema
|
|
22760
|
+
runtimeState: ImageStatusSchema,
|
|
22761
|
+
/**
|
|
22762
|
+
* Runtime-state durability: **session** — a snapshot URL is a session-scoped handle; a restored one points at nothing.
|
|
22763
|
+
*
|
|
22764
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22765
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22766
|
+
*/
|
|
22767
|
+
durability: "session"
|
|
22376
22768
|
};
|
|
22377
22769
|
/**
|
|
22378
22770
|
* Vendor-neutral image / picture-adjustment cap — the per-camera config
|
|
@@ -22521,7 +22913,17 @@ var imageSettingsCapability = {
|
|
|
22521
22913
|
schema: ImageSettingsStatusSchema,
|
|
22522
22914
|
kind: "poll"
|
|
22523
22915
|
},
|
|
22524
|
-
runtimeState: ImageSettingsStatusSchema
|
|
22916
|
+
runtimeState: ImageSettingsStatusSchema,
|
|
22917
|
+
/**
|
|
22918
|
+
* Runtime-state durability: **restored** — operator-set camera imaging; mutation-driven.
|
|
22919
|
+
*
|
|
22920
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
22921
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
22922
|
+
*/
|
|
22923
|
+
durability: "restored",
|
|
22924
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
22925
|
+
* whether persisting is worth a SQLite commit. */
|
|
22926
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
22525
22927
|
};
|
|
22526
22928
|
/**
|
|
22527
22929
|
* integrations — system-scoped singleton capability for integration
|
|
@@ -22861,7 +23263,14 @@ var lawnMowerControlCapability = {
|
|
|
22861
23263
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
22862
23264
|
* slice for live activity + battery changes.
|
|
22863
23265
|
*/
|
|
22864
|
-
runtimeState: LawnMowerControlStatusSchema
|
|
23266
|
+
runtimeState: LawnMowerControlStatusSchema,
|
|
23267
|
+
/**
|
|
23268
|
+
* Runtime-state durability: **session** — as `vacuum-control`.
|
|
23269
|
+
*
|
|
23270
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23271
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23272
|
+
*/
|
|
23273
|
+
durability: "session"
|
|
22865
23274
|
};
|
|
22866
23275
|
/**
|
|
22867
23276
|
* local-network — hub-only singleton.
|
|
@@ -23067,7 +23476,17 @@ var lockControlCapability = {
|
|
|
23067
23476
|
* read `state` and disable themselves during `locking`/`unlocking`
|
|
23068
23477
|
* transitions.
|
|
23069
23478
|
*/
|
|
23070
|
-
runtimeState: LockControlStatusSchema
|
|
23479
|
+
runtimeState: LockControlStatusSchema,
|
|
23480
|
+
/**
|
|
23481
|
+
* Runtime-state durability: **restored** — a lock left locked must still read locked.
|
|
23482
|
+
*
|
|
23483
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23484
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23485
|
+
*/
|
|
23486
|
+
durability: "restored",
|
|
23487
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23488
|
+
* whether persisting is worth a SQLite commit. */
|
|
23489
|
+
volatileStateFields: ["lastChangedAt"]
|
|
23071
23490
|
};
|
|
23072
23491
|
/**
|
|
23073
23492
|
* Media-player cap. Models HA `media_player.*` (Sonos, Chromecast,
|
|
@@ -23229,7 +23648,14 @@ var mediaPlayerCapability = {
|
|
|
23229
23648
|
* full slice for live now-playing, volume, and progress updates
|
|
23230
23649
|
* without polling.
|
|
23231
23650
|
*/
|
|
23232
|
-
runtimeState: MediaPlayerStatusSchema
|
|
23651
|
+
runtimeState: MediaPlayerStatusSchema,
|
|
23652
|
+
/**
|
|
23653
|
+
* Runtime-state durability: **session** — a restored transport position describes a playback that stopped when the hub did.
|
|
23654
|
+
*
|
|
23655
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23656
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23657
|
+
*/
|
|
23658
|
+
durability: "session"
|
|
23233
23659
|
};
|
|
23234
23660
|
/**
|
|
23235
23661
|
* mesh-network — collection cap for mesh-VPN providers.
|
|
@@ -23493,7 +23919,14 @@ onMotionChanged: { data: MotionOnMotionChangedDataSchema } },
|
|
|
23493
23919
|
* `device.state.motion.value`. Reads never invoke the provider, so
|
|
23494
23920
|
* UIs and other addons can poll the cached state safely.
|
|
23495
23921
|
*/
|
|
23496
|
-
runtimeState: MotionStatusSchema
|
|
23922
|
+
runtimeState: MotionStatusSchema,
|
|
23923
|
+
/**
|
|
23924
|
+
* 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.
|
|
23925
|
+
*
|
|
23926
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23927
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23928
|
+
*/
|
|
23929
|
+
durability: "session"
|
|
23497
23930
|
};
|
|
23498
23931
|
/**
|
|
23499
23932
|
* Motion-trigger toggle for accessory devices.
|
|
@@ -23558,7 +23991,14 @@ var motionTriggerCapability = {
|
|
|
23558
23991
|
schema: MotionTriggerStatusSchema,
|
|
23559
23992
|
kind: "command-driven"
|
|
23560
23993
|
},
|
|
23561
|
-
runtimeState: MotionTriggerRuntimeStateSchema
|
|
23994
|
+
runtimeState: MotionTriggerRuntimeStateSchema,
|
|
23995
|
+
/**
|
|
23996
|
+
* 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.
|
|
23997
|
+
*
|
|
23998
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23999
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24000
|
+
*/
|
|
24001
|
+
durability: "session"
|
|
23562
24002
|
};
|
|
23563
24003
|
/**
|
|
23564
24004
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
@@ -23625,7 +24065,17 @@ var motionZonesCapability = {
|
|
|
23625
24065
|
schema: MotionZoneStatusSchema,
|
|
23626
24066
|
kind: "poll"
|
|
23627
24067
|
},
|
|
23628
|
-
runtimeState: MotionZoneStatusSchema
|
|
24068
|
+
runtimeState: MotionZoneStatusSchema,
|
|
24069
|
+
/**
|
|
24070
|
+
* 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.
|
|
24071
|
+
*
|
|
24072
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24073
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24074
|
+
*/
|
|
24075
|
+
durability: "restored",
|
|
24076
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24077
|
+
* whether persisting is worth a SQLite commit. */
|
|
24078
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23629
24079
|
};
|
|
23630
24080
|
/**
|
|
23631
24081
|
* On-camera AI object detection cap. Surfaces per-device the classes
|
|
@@ -23699,7 +24149,17 @@ var nativeObjectDetectionCapability = {
|
|
|
23699
24149
|
schema: NativeObjectDetectionStatusSchema,
|
|
23700
24150
|
kind: "push"
|
|
23701
24151
|
},
|
|
23702
|
-
runtimeState: NativeObjectDetectionRuntimeStateSchema
|
|
24152
|
+
runtimeState: NativeObjectDetectionRuntimeStateSchema,
|
|
24153
|
+
/**
|
|
24154
|
+
* 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.
|
|
24155
|
+
*
|
|
24156
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24157
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24158
|
+
*/
|
|
24159
|
+
durability: "restored",
|
|
24160
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24161
|
+
* whether persisting is worth a SQLite commit. */
|
|
24162
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23703
24163
|
};
|
|
23704
24164
|
/**
|
|
23705
24165
|
* network-quality — system-scoped singleton capability tracking RTT,
|
|
@@ -24033,7 +24493,14 @@ onSent: { data: object({
|
|
|
24033
24493
|
* form reads `supports` to gate optional fields; history pane reads
|
|
24034
24494
|
* `lastSentAt` / `lastError` / `queueDepth`.
|
|
24035
24495
|
*/
|
|
24036
|
-
runtimeState: NotifierStatusSchema
|
|
24496
|
+
runtimeState: NotifierStatusSchema,
|
|
24497
|
+
/**
|
|
24498
|
+
* Runtime-state durability: **session** — live queue depth and last-send state; a restored queue depth describes a queue that no longer exists.
|
|
24499
|
+
*
|
|
24500
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24501
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24502
|
+
*/
|
|
24503
|
+
durability: "session"
|
|
24037
24504
|
};
|
|
24038
24505
|
/**
|
|
24039
24506
|
* Generic numeric sensor — last-resort fallback when no typed numeric
|
|
@@ -24076,7 +24543,17 @@ var numericSensorCapability = {
|
|
|
24076
24543
|
schema: NumericSensorStatusSchema,
|
|
24077
24544
|
kind: "push"
|
|
24078
24545
|
},
|
|
24079
|
-
runtimeState: NumericSensorStatusSchema
|
|
24546
|
+
runtimeState: NumericSensorStatusSchema,
|
|
24547
|
+
/**
|
|
24548
|
+
* 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.
|
|
24549
|
+
*
|
|
24550
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24551
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24552
|
+
*/
|
|
24553
|
+
durability: "restored",
|
|
24554
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24555
|
+
* whether persisting is worth a SQLite commit. */
|
|
24556
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24080
24557
|
};
|
|
24081
24558
|
/**
|
|
24082
24559
|
* Generic on-screen-display (video overlay) cap. Each camera exposes
|
|
@@ -24461,7 +24938,14 @@ var petFeederCapability = {
|
|
|
24461
24938
|
* the full slice via `device.state.petFeeder.value` and refresh on
|
|
24462
24939
|
* every poll without re-querying the provider.
|
|
24463
24940
|
*/
|
|
24464
|
-
runtimeState: PetFeederStatusSchema
|
|
24941
|
+
runtimeState: PetFeederStatusSchema,
|
|
24942
|
+
/**
|
|
24943
|
+
* Runtime-state durability: **session** — live appliance state re-published on connect.
|
|
24944
|
+
*
|
|
24945
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24946
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24947
|
+
*/
|
|
24948
|
+
durability: "session"
|
|
24465
24949
|
};
|
|
24466
24950
|
var VehicleSchema = object({
|
|
24467
24951
|
id: string(),
|
|
@@ -24773,7 +25257,17 @@ var powerMeterCapability = {
|
|
|
24773
25257
|
schema: PowerMeterStatusSchema,
|
|
24774
25258
|
kind: "push"
|
|
24775
25259
|
},
|
|
24776
|
-
runtimeState: PowerMeterStatusSchema
|
|
25260
|
+
runtimeState: PowerMeterStatusSchema,
|
|
25261
|
+
/**
|
|
25262
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`; `kwhTotal` is an accumulator whose restored value is the baseline.
|
|
25263
|
+
*
|
|
25264
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25265
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25266
|
+
*/
|
|
25267
|
+
durability: "restored",
|
|
25268
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25269
|
+
* whether persisting is worth a SQLite commit. */
|
|
25270
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24777
25271
|
};
|
|
24778
25272
|
/**
|
|
24779
25273
|
* Presence cap. Models HA `person.*` and `device_tracker.*` entities
|
|
@@ -24830,7 +25324,17 @@ var presenceCapability = {
|
|
|
24830
25324
|
* the map pin is rendered (use `DeviceFeature.PresenceGps` for the
|
|
24831
25325
|
* pre-fetch fast-path check).
|
|
24832
25326
|
*/
|
|
24833
|
-
runtimeState: PresenceStatusSchema
|
|
25327
|
+
runtimeState: PresenceStatusSchema,
|
|
25328
|
+
/**
|
|
25329
|
+
* Runtime-state durability: **restored** — occupancy-relevant: the restored state is what an occupancy rule compares the first post-restart observation against.
|
|
25330
|
+
*
|
|
25331
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25332
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25333
|
+
*/
|
|
25334
|
+
durability: "restored",
|
|
25335
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25336
|
+
* whether persisting is worth a SQLite commit. */
|
|
25337
|
+
volatileStateFields: ["lastChangedAt"]
|
|
24834
25338
|
};
|
|
24835
25339
|
/**
|
|
24836
25340
|
* Atmospheric pressure reading in hectopascals. Drives Home Assistant
|
|
@@ -24866,7 +25370,17 @@ var pressureSensorCapability = {
|
|
|
24866
25370
|
schema: PressureSensorStatusSchema,
|
|
24867
25371
|
kind: "push"
|
|
24868
25372
|
},
|
|
24869
|
-
runtimeState: PressureSensorStatusSchema
|
|
25373
|
+
runtimeState: PressureSensorStatusSchema,
|
|
25374
|
+
/**
|
|
25375
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
25376
|
+
*
|
|
25377
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25378
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25379
|
+
*/
|
|
25380
|
+
durability: "restored",
|
|
25381
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25382
|
+
* whether persisting is worth a SQLite commit. */
|
|
25383
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
24870
25384
|
};
|
|
24871
25385
|
/**
|
|
24872
25386
|
* PRIVACY — what the camera deliberately does not capture. Two planes:
|
|
@@ -24996,7 +25510,17 @@ var privacyMaskCapability = {
|
|
|
24996
25510
|
schema: PrivacyMaskStatusSchema,
|
|
24997
25511
|
kind: "poll"
|
|
24998
25512
|
},
|
|
24999
|
-
runtimeState: PrivacyMaskStatusSchema
|
|
25513
|
+
runtimeState: PrivacyMaskStatusSchema,
|
|
25514
|
+
/**
|
|
25515
|
+
* Runtime-state durability: **restored** — operator-drawn regions, zero real churn — 22 writes in 25 minutes, every one of them the clock.
|
|
25516
|
+
*
|
|
25517
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25518
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25519
|
+
*/
|
|
25520
|
+
durability: "restored",
|
|
25521
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25522
|
+
* whether persisting is worth a SQLite commit. */
|
|
25523
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
25000
25524
|
};
|
|
25001
25525
|
var PtzPresetSchema = object({
|
|
25002
25526
|
id: string(),
|
|
@@ -25162,7 +25686,14 @@ var ptzAutotrackCapability = {
|
|
|
25162
25686
|
* fetch / cache / fallback logic out of the four cap methods —
|
|
25163
25687
|
* they become trampolines over `runtimeState`.
|
|
25164
25688
|
*/
|
|
25165
|
-
runtimeState: PtzAutotrackRuntimeStateSchema
|
|
25689
|
+
runtimeState: PtzAutotrackRuntimeStateSchema,
|
|
25690
|
+
/**
|
|
25691
|
+
* Runtime-state durability: **session** — mirrors the camera's own autotrack config, re-read on connect.
|
|
25692
|
+
*
|
|
25693
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25694
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25695
|
+
*/
|
|
25696
|
+
durability: "session"
|
|
25166
25697
|
};
|
|
25167
25698
|
DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
|
|
25168
25699
|
kind: "mutation",
|
|
@@ -25812,7 +26343,14 @@ var sceneMonitorCapability = {
|
|
|
25812
26343
|
schema: SceneMonitorStatusSchema,
|
|
25813
26344
|
kind: "push"
|
|
25814
26345
|
},
|
|
25815
|
-
runtimeState: SceneMonitorStatusSchema
|
|
26346
|
+
runtimeState: SceneMonitorStatusSchema,
|
|
26347
|
+
/**
|
|
26348
|
+
* Runtime-state durability: **session** — re-derived from the current scene on the next evaluation.
|
|
26349
|
+
*
|
|
26350
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26351
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26352
|
+
*/
|
|
26353
|
+
durability: "session"
|
|
25816
26354
|
};
|
|
25817
26355
|
/**
|
|
25818
26356
|
* Per-stage gating mode applied to the zones a rule references.
|
|
@@ -25956,7 +26494,14 @@ var scriptRunnerCapability = {
|
|
|
25956
26494
|
* `isRunning` to render a spinner during execution and surfaces
|
|
25957
26495
|
* `lastError` / `lastRunSuccess` in the recent-runs panel.
|
|
25958
26496
|
*/
|
|
25959
|
-
runtimeState: ScriptRunnerStatusSchema
|
|
26497
|
+
runtimeState: ScriptRunnerStatusSchema,
|
|
26498
|
+
/**
|
|
26499
|
+
* Runtime-state durability: **session** — a restored `isRunning: true` describes a process that died with the previous hub.
|
|
26500
|
+
*
|
|
26501
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26502
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26503
|
+
*/
|
|
26504
|
+
durability: "session"
|
|
25960
26505
|
};
|
|
25961
26506
|
/**
|
|
25962
26507
|
* Smoke alarm sensor — boolean "is smoke currently detected" with
|
|
@@ -25983,7 +26528,17 @@ var smokeCapability = {
|
|
|
25983
26528
|
schema: SmokeStatusSchema,
|
|
25984
26529
|
kind: "push"
|
|
25985
26530
|
},
|
|
25986
|
-
runtimeState: SmokeStatusSchema
|
|
26531
|
+
runtimeState: SmokeStatusSchema,
|
|
26532
|
+
/**
|
|
26533
|
+
* Runtime-state durability: **restored** — a safety sensor must not read "clear" merely because the hub restarted.
|
|
26534
|
+
*
|
|
26535
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26536
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26537
|
+
*/
|
|
26538
|
+
durability: "restored",
|
|
26539
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26540
|
+
* whether persisting is worth a SQLite commit. */
|
|
26541
|
+
volatileStateFields: ["lastChangedAt"]
|
|
25987
26542
|
};
|
|
25988
26543
|
/**
|
|
25989
26544
|
* One publishable camera stream as its OWNING PROVIDER describes it — the same
|
|
@@ -26156,7 +26711,17 @@ var streamParamsCapability = {
|
|
|
26156
26711
|
schema: StreamParamsStatusSchema,
|
|
26157
26712
|
kind: "poll"
|
|
26158
26713
|
},
|
|
26159
|
-
runtimeState: StreamParamsStatusSchema
|
|
26714
|
+
runtimeState: StreamParamsStatusSchema,
|
|
26715
|
+
/**
|
|
26716
|
+
* Runtime-state durability: **restored** — operator-set encoder profile; mutation-driven.
|
|
26717
|
+
*
|
|
26718
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26719
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26720
|
+
*/
|
|
26721
|
+
durability: "restored",
|
|
26722
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26723
|
+
* whether persisting is worth a SQLite commit. */
|
|
26724
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
26160
26725
|
};
|
|
26161
26726
|
/**
|
|
26162
26727
|
* Generic on/off switch cap for accessory children (siren, floodlight,
|
|
@@ -26202,6 +26767,16 @@ var switchCapability = {
|
|
|
26202
26767
|
* not need to re-query the provider after a setState mutation.
|
|
26203
26768
|
*/
|
|
26204
26769
|
runtimeState: SwitchStatusSchema,
|
|
26770
|
+
/**
|
|
26771
|
+
* Runtime-state durability: **restored** — device state an operator reads as authoritative; 55 devices, transition-driven.
|
|
26772
|
+
*
|
|
26773
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26774
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26775
|
+
*/
|
|
26776
|
+
durability: "restored",
|
|
26777
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26778
|
+
* whether persisting is worth a SQLite commit. */
|
|
26779
|
+
volatileStateFields: ["lastChangedAt"],
|
|
26205
26780
|
settings: { bindings: [{
|
|
26206
26781
|
kind: "scalar",
|
|
26207
26782
|
statusPath: "on",
|
|
@@ -26281,7 +26856,17 @@ var tamperCapability = {
|
|
|
26281
26856
|
schema: TamperStatusSchema,
|
|
26282
26857
|
kind: "push"
|
|
26283
26858
|
},
|
|
26284
|
-
runtimeState: TamperStatusSchema
|
|
26859
|
+
runtimeState: TamperStatusSchema,
|
|
26860
|
+
/**
|
|
26861
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
26862
|
+
*
|
|
26863
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26864
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26865
|
+
*/
|
|
26866
|
+
durability: "restored",
|
|
26867
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26868
|
+
* whether persisting is worth a SQLite commit. */
|
|
26869
|
+
volatileStateFields: ["lastChangedAt"]
|
|
26285
26870
|
};
|
|
26286
26871
|
/**
|
|
26287
26872
|
* Single-metric temperature reading. Drives Home Assistant `sensor`
|
|
@@ -26326,7 +26911,17 @@ var temperatureSensorCapability = {
|
|
|
26326
26911
|
schema: TemperatureSensorStatusSchema,
|
|
26327
26912
|
kind: "push"
|
|
26328
26913
|
},
|
|
26329
|
-
runtimeState: TemperatureSensorStatusSchema
|
|
26914
|
+
runtimeState: TemperatureSensorStatusSchema,
|
|
26915
|
+
/**
|
|
26916
|
+
* Runtime-state durability: **restored** — as `numeric-sensor` (69 of 125 writes were the clock alone).
|
|
26917
|
+
*
|
|
26918
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26919
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26920
|
+
*/
|
|
26921
|
+
durability: "restored",
|
|
26922
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26923
|
+
* whether persisting is worth a SQLite commit. */
|
|
26924
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
26330
26925
|
};
|
|
26331
26926
|
/**
|
|
26332
26927
|
* toast — system-scoped singleton capability that streams toast
|
|
@@ -26395,7 +26990,14 @@ var updateCapability = {
|
|
|
26395
26990
|
schema: UpdateStatusSchema,
|
|
26396
26991
|
kind: "poll"
|
|
26397
26992
|
},
|
|
26398
|
-
runtimeState: UpdateStatusSchema
|
|
26993
|
+
runtimeState: UpdateStatusSchema,
|
|
26994
|
+
/**
|
|
26995
|
+
* Runtime-state durability: **session** — a restored `inProgress: true` describes an update that is no longer running; versions are re-probed at boot.
|
|
26996
|
+
*
|
|
26997
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26998
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26999
|
+
*/
|
|
27000
|
+
durability: "session"
|
|
26399
27001
|
};
|
|
26400
27002
|
var UserSummarySchema = object({
|
|
26401
27003
|
id: string(),
|
|
@@ -26729,7 +27331,14 @@ var vacuumControlCapability = {
|
|
|
26729
27331
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
26730
27332
|
* slice for live state + battery + fan-speed changes.
|
|
26731
27333
|
*/
|
|
26732
|
-
runtimeState: VacuumControlStatusSchema
|
|
27334
|
+
runtimeState: VacuumControlStatusSchema,
|
|
27335
|
+
/**
|
|
27336
|
+
* Runtime-state durability: **session** — as `media-player` — a restored `state: cleaning` is a robot that is not cleaning.
|
|
27337
|
+
*
|
|
27338
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27339
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27340
|
+
*/
|
|
27341
|
+
durability: "session"
|
|
26733
27342
|
};
|
|
26734
27343
|
var ValveStatusSchema = object({
|
|
26735
27344
|
/** Lifecycle state of the valve. */
|
|
@@ -26781,7 +27390,14 @@ var valveCapability = {
|
|
|
26781
27390
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
26782
27391
|
* slice for live position changes during a move.
|
|
26783
27392
|
*/
|
|
26784
|
-
runtimeState: ValveStatusSchema
|
|
27393
|
+
runtimeState: ValveStatusSchema,
|
|
27394
|
+
/**
|
|
27395
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
27396
|
+
*
|
|
27397
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27398
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27399
|
+
*/
|
|
27400
|
+
durability: "session"
|
|
26785
27401
|
};
|
|
26786
27402
|
/**
|
|
26787
27403
|
* Vibration / shake / impact sensor. Drives Home Assistant
|
|
@@ -26803,7 +27419,17 @@ var vibrationCapability = {
|
|
|
26803
27419
|
schema: VibrationStatusSchema,
|
|
26804
27420
|
kind: "push"
|
|
26805
27421
|
},
|
|
26806
|
-
runtimeState: VibrationStatusSchema
|
|
27422
|
+
runtimeState: VibrationStatusSchema,
|
|
27423
|
+
/**
|
|
27424
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
27425
|
+
*
|
|
27426
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27427
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27428
|
+
*/
|
|
27429
|
+
durability: "restored",
|
|
27430
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27431
|
+
* whether persisting is worth a SQLite commit. */
|
|
27432
|
+
volatileStateFields: ["lastChangedAt"]
|
|
26807
27433
|
};
|
|
26808
27434
|
/**
|
|
26809
27435
|
* Water heater / boiler cap. Models HA `water_heater.*` entities — a
|
|
@@ -26877,7 +27503,14 @@ var waterHeaterCapability = {
|
|
|
26877
27503
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
26878
27504
|
* slice for live temperature / mode / away changes.
|
|
26879
27505
|
*/
|
|
26880
|
-
runtimeState: WaterHeaterStatusSchema
|
|
27506
|
+
runtimeState: WaterHeaterStatusSchema,
|
|
27507
|
+
/**
|
|
27508
|
+
* Runtime-state durability: **session** — as `climate-control`.
|
|
27509
|
+
*
|
|
27510
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27511
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27512
|
+
*/
|
|
27513
|
+
durability: "session"
|
|
26881
27514
|
};
|
|
26882
27515
|
/**
|
|
26883
27516
|
* Weather provider cap. Models HA `weather.*` entities — a read-only
|
|
@@ -26936,7 +27569,14 @@ var weatherCapability = {
|
|
|
26936
27569
|
* Runtime-state slice — mirrored by the kernel. The UI reads the
|
|
26937
27570
|
* current conditions directly from the slice on each weather push.
|
|
26938
27571
|
*/
|
|
26939
|
-
runtimeState: WeatherStatusSchema
|
|
27572
|
+
runtimeState: WeatherStatusSchema,
|
|
27573
|
+
/**
|
|
27574
|
+
* Runtime-state durability: **session** — a forecast is stale the moment the hub is down; the provider re-fetches on connect.
|
|
27575
|
+
*
|
|
27576
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27577
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27578
|
+
*/
|
|
27579
|
+
durability: "session"
|
|
26940
27580
|
};
|
|
26941
27581
|
/**
|
|
26942
27582
|
* Per-zone occupancy aggregation produced by the analytics frame
|
|
@@ -27098,7 +27738,14 @@ var zoneAnalyticsCapability = {
|
|
|
27098
27738
|
* automatically; the explicit `getCurrentSnapshot` cap method is
|
|
27099
27739
|
* still useful for one-off polls without a subscription.
|
|
27100
27740
|
*/
|
|
27101
|
-
runtimeState: CameraOccupancySnapshotSchema
|
|
27741
|
+
runtimeState: CameraOccupancySnapshotSchema,
|
|
27742
|
+
/**
|
|
27743
|
+
* Runtime-state durability: **session** — per-frame analytics; with `audio-metrics` it is ~90 % of the offered write rate. Re-derived on the next frame.
|
|
27744
|
+
*
|
|
27745
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27746
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27747
|
+
*/
|
|
27748
|
+
durability: "session"
|
|
27102
27749
|
};
|
|
27103
27750
|
/**
|
|
27104
27751
|
* Stages a {@link ZoneRule} can apply to. Discriminator on the rules
|
|
@@ -27176,7 +27823,14 @@ var zoneRulesCapability = {
|
|
|
27176
27823
|
motion: array(ZoneRuleSchema).readonly(),
|
|
27177
27824
|
detection: array(ZoneRuleSchema).readonly(),
|
|
27178
27825
|
package: array(ZoneRuleSchema).readonly()
|
|
27179
|
-
})
|
|
27826
|
+
}),
|
|
27827
|
+
/**
|
|
27828
|
+
* Runtime-state durability: **restored** — operator intent, mutation-only, same argument as `zones`.
|
|
27829
|
+
*
|
|
27830
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27831
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27832
|
+
*/
|
|
27833
|
+
durability: "restored"
|
|
27180
27834
|
};
|
|
27181
27835
|
/**
|
|
27182
27836
|
* Accessory device helpers — shared across drivers.
|
|
@@ -33863,6 +34517,7 @@ Object.freeze({
|
|
|
33863
34517
|
"network-access": "ingress",
|
|
33864
34518
|
"smtp-provider": "email"
|
|
33865
34519
|
});
|
|
34520
|
+
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
33866
34521
|
new Set(["devices", "classes"]);
|
|
33867
34522
|
/** Strip a small, safe subset of Markdown down to plain text. */
|
|
33868
34523
|
function markdownToText(md) {
|