@camstack/addon-osd-manager 0.1.7 → 0.1.8
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/{MotionZonesSettings-C-pqC1HH.mjs → MotionZonesSettings-CyLbgRZJ.mjs} +1 -1
- package/dist/{PrivacyMaskSettings-0Rs3QBDA.mjs → PrivacyMaskSettings-B1bSrXkE.mjs} +2 -2
- package/dist/_stub.js +6 -6
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-D3Zb_bul.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-MUuX1dCr.mjs} +4 -4
- package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-mBvn5gbF.mjs +26 -0
- package/dist/{hostInit-DtqWVw47.mjs → hostInit-BwuSfydw.mjs} +3 -3
- package/dist/index.js +666 -69
- package/dist/index.mjs +666 -69
- package/dist/{player-overlays-Gaf1VP0P.mjs → player-overlays-pmuMEC2F.mjs} +1 -1
- package/dist/remoteEntry.js +1 -1
- package/dist/{trash-2-CeWJMtgs.mjs → trash-2-CFRiU5sa.mjs} +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-CtbZFj0W.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-CpP37G9Y.mjs} +1 -1
- package/package.json +1 -1
- package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DnJsIsjP.mjs +0 -26
package/dist/index.js
CHANGED
|
@@ -11393,7 +11393,14 @@ var cameraStreamsCapability = {
|
|
|
11393
11393
|
low: string().optional()
|
|
11394
11394
|
}),
|
|
11395
11395
|
lastChangedAt: number()
|
|
11396
|
-
})
|
|
11396
|
+
}),
|
|
11397
|
+
/**
|
|
11398
|
+
* 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.
|
|
11399
|
+
*
|
|
11400
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
11401
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
11402
|
+
*/
|
|
11403
|
+
durability: "session"
|
|
11397
11404
|
};
|
|
11398
11405
|
/** Where a block runs. The operator chooses — a block driving a device on an
|
|
11399
11406
|
* agent is the reason placement is not fixed to the hub. */
|
|
@@ -12160,6 +12167,13 @@ var deviceDiscoveryCapability = {
|
|
|
12160
12167
|
kind: "poll"
|
|
12161
12168
|
},
|
|
12162
12169
|
runtimeState: DeviceDiscoveryStatusSchema.extend({ lastFetchedAt: number().int().nonnegative() }),
|
|
12170
|
+
/**
|
|
12171
|
+
* Runtime-state durability: **session** — 5.7 KB of scan output on the largest device, fully re-derivable by re-scanning.
|
|
12172
|
+
*
|
|
12173
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
12174
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
12175
|
+
*/
|
|
12176
|
+
durability: "session",
|
|
12163
12177
|
methods: {
|
|
12164
12178
|
/**
|
|
12165
12179
|
* Snapshot of the current `discovered` list. Returns the
|
|
@@ -14738,7 +14752,23 @@ var NotificationActionSchema = object({
|
|
|
14738
14752
|
* else — see `notification-center/action-token.ts` for what that does and
|
|
14739
14753
|
* does not buy.
|
|
14740
14754
|
*/
|
|
14741
|
-
destructive: boolean().optional()
|
|
14755
|
+
destructive: boolean().optional(),
|
|
14756
|
+
/**
|
|
14757
|
+
* How the tap should REACH the url.
|
|
14758
|
+
*
|
|
14759
|
+
* `navigate` (absent, and every button authored before this field) opens it:
|
|
14760
|
+
* the phone leaves the notification and shows whatever the callback returns.
|
|
14761
|
+
* That is right for a button whose answer the operator wants to read.
|
|
14762
|
+
*
|
|
14763
|
+
* `background` fires it as a POST and stays put. It exists for the buttons
|
|
14764
|
+
* whose whole point is not to interrupt — "silence this for 30 minutes" is
|
|
14765
|
+
* an answer to the notification, and being thrown into a browser tab to
|
|
14766
|
+
* confirm it costs more attention than the notification did. A backend that
|
|
14767
|
+
* cannot do a background call renders it as an ordinary link (the adapters
|
|
14768
|
+
* fall back rather than dropping the button), so this is a preference, never
|
|
14769
|
+
* a requirement.
|
|
14770
|
+
*/
|
|
14771
|
+
mode: _enum(["navigate", "background"]).optional()
|
|
14742
14772
|
});
|
|
14743
14773
|
/**
|
|
14744
14774
|
* The canonical notification. `body` is the only hard field (Apprise model).
|
|
@@ -15604,7 +15634,17 @@ var alarmPanelCapability = {
|
|
|
15604
15634
|
* full slice; renders an arm button per `availableModes` entry and
|
|
15605
15635
|
* a PIN field iff `requiresCode === true`.
|
|
15606
15636
|
*/
|
|
15607
|
-
runtimeState: AlarmPanelStatusSchema
|
|
15637
|
+
runtimeState: AlarmPanelStatusSchema,
|
|
15638
|
+
/**
|
|
15639
|
+
* Runtime-state durability: **restored** — armed state is the one thing a panel must not lose across a restart.
|
|
15640
|
+
*
|
|
15641
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
15642
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
15643
|
+
*/
|
|
15644
|
+
durability: "restored",
|
|
15645
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
15646
|
+
* whether persisting is worth a SQLite commit. */
|
|
15647
|
+
volatileStateFields: ["lastChangedAt"]
|
|
15608
15648
|
};
|
|
15609
15649
|
/**
|
|
15610
15650
|
* Shared geometry vocabulary for on-frame shape caps — privacy-mask,
|
|
@@ -15781,6 +15821,9 @@ var NcSystemEventConditionSchema = object({
|
|
|
15781
15821
|
nodeIds: array(string().min(1)).min(1).optional(),
|
|
15782
15822
|
packageNames: array(string().min(1)).min(1).optional()
|
|
15783
15823
|
});
|
|
15824
|
+
/** Hard ceiling on a window (24h). A snooze that could not expire would be an
|
|
15825
|
+
* outage the operator asked for once and forgot. */
|
|
15826
|
+
var NC_SNOOZE_MAX_MINUTES = 1440;
|
|
15784
15827
|
/** Weekly schedule — OR of windows; absence on the rule = always active. */
|
|
15785
15828
|
var NcScheduleSchema = object({
|
|
15786
15829
|
windows: array(object({
|
|
@@ -16157,15 +16200,15 @@ var NcConditionsSchema = object({
|
|
|
16157
16200
|
* (an `immediate` rule naming an `audio-*` class, one notification per
|
|
16158
16201
|
* classified sample) stays exactly as it was for rules that already use it.
|
|
16159
16202
|
*
|
|
16160
|
-
*
|
|
16161
|
-
* rather than an
|
|
16162
|
-
* (`camstack/src/data/notification-center.ts`, guarded by
|
|
16163
|
-
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor
|
|
16203
|
+
* In {@link NC_CONDITION_CATALOG} since P2, and the ORDER it got there is the
|
|
16204
|
+
* rule rather than an accident: the viewer mirrors the descriptor enums BY
|
|
16205
|
+
* HAND (`camstack/src/data/notification-center.ts`, guarded by
|
|
16206
|
+
* `scripts/check-viewer-condition-mirror.ts`) and its rule editor strips the
|
|
16164
16207
|
* condition fields it does not know when a rule is saved from the phone.
|
|
16165
16208
|
* Publishing an editor for a condition the app cannot round-trip is how an
|
|
16166
|
-
* operator loses a rule's conditions by opening it — so the
|
|
16167
|
-
*
|
|
16168
|
-
*
|
|
16209
|
+
* operator loses a rule's conditions by opening it — so the viewer mirror
|
|
16210
|
+
* (P3, shipped) went FIRST, and the descriptor an editor renders from
|
|
16211
|
+
* follows here.
|
|
16169
16212
|
*/
|
|
16170
16213
|
audio: NcAudioConditionSchema.optional()
|
|
16171
16214
|
});
|
|
@@ -16401,6 +16444,30 @@ var NcRuleInputSchema = object({
|
|
|
16401
16444
|
*/
|
|
16402
16445
|
snoozeAllowGlobal: boolean().optional(),
|
|
16403
16446
|
/**
|
|
16447
|
+
* The snooze durations THIS rule's notification offers as buttons, in
|
|
16448
|
+
* minutes.
|
|
16449
|
+
*
|
|
16450
|
+
* Three states, and all three are distinct — which is exactly why this is
|
|
16451
|
+
* `.optional()` and never `.default()`. A Zod default does not run on the
|
|
16452
|
+
* addon cap path (three production failures in one day), so a schema default
|
|
16453
|
+
* would collapse the first two:
|
|
16454
|
+
*
|
|
16455
|
+
* | value | meaning |
|
|
16456
|
+
* | --- | --- |
|
|
16457
|
+
* | absent | the operator never said ⇒ {@link NC_DEFAULT_SNOOZE_MINUTES} |
|
|
16458
|
+
* | `[]` | **no snooze buttons on this rule** — the explicit override |
|
|
16459
|
+
* | a list | these choices, de-duplicated and sorted, at most four |
|
|
16460
|
+
*
|
|
16461
|
+
* `.max(4)` because the notifier's own action budget is small (ntfy allows
|
|
16462
|
+
* three buttons in total) and a rule that spent it all on snooze choices
|
|
16463
|
+
* would push its own tap-through actions off the notification.
|
|
16464
|
+
*
|
|
16465
|
+
* An empty list is NOT an alarm exemption: a rule the alarm is about, or
|
|
16466
|
+
* that arms the panel, is exempt automatically and cannot be silenced by a
|
|
16467
|
+
* window from anywhere (D133).
|
|
16468
|
+
*/
|
|
16469
|
+
snoozeOptions: array(number().int().min(1).max(NC_SNOOZE_MAX_MINUTES)).max(4).optional(),
|
|
16470
|
+
/**
|
|
16404
16471
|
* Devices this rule ACTUATES — arm the alarm, open a gate, turn on a light.
|
|
16405
16472
|
*
|
|
16406
16473
|
* This is what makes the rule set the alarm's trigger set without the alarm
|
|
@@ -16500,6 +16567,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
16500
16567
|
"device",
|
|
16501
16568
|
"package",
|
|
16502
16569
|
"occupancy",
|
|
16570
|
+
"audio",
|
|
16503
16571
|
"system"
|
|
16504
16572
|
]),
|
|
16505
16573
|
label: string(),
|
|
@@ -16518,6 +16586,7 @@ var NcConditionDescriptorSchema = object({
|
|
|
16518
16586
|
"crossingSelect",
|
|
16519
16587
|
"polygonDraw",
|
|
16520
16588
|
"occupancy",
|
|
16589
|
+
"audio",
|
|
16521
16590
|
"deviceState",
|
|
16522
16591
|
"systemEvent"
|
|
16523
16592
|
]),
|
|
@@ -16915,6 +16984,16 @@ var NC_CONDITION_CATALOG = [
|
|
|
16915
16984
|
phase: "P1",
|
|
16916
16985
|
description: "ZoneAnalytics occupancy edge (optionally zone/class-scoped): count crosses the threshold and holds for sustainSeconds. Fail-closed on a missing snapshot."
|
|
16917
16986
|
},
|
|
16987
|
+
{
|
|
16988
|
+
id: "audio",
|
|
16989
|
+
group: "audio",
|
|
16990
|
+
label: "Sound",
|
|
16991
|
+
valueType: "audio",
|
|
16992
|
+
operator: "anyOf",
|
|
16993
|
+
appliesTo: ["immediate"],
|
|
16994
|
+
phase: "P2",
|
|
16995
|
+
description: "Fires when at least hitPercent% of the samples in a samplingSeconds window are hits — a hit clears the dBFS floor AND carries one of the chosen sounds. Both filters are optional and independent, but naming NEITHER never matches: every sample would be a hit, so the engine refuses rather than notifying on silence. dBFS is negative-going (0 = full scale, -96 = silence)."
|
|
16996
|
+
},
|
|
16918
16997
|
{
|
|
16919
16998
|
id: "customZones",
|
|
16920
16999
|
group: "zones",
|
|
@@ -17059,7 +17138,20 @@ var NcSnoozeInputSchema = object({
|
|
|
17059
17138
|
ruleId: string().optional(),
|
|
17060
17139
|
/** Required when `scope: 'device'`. */
|
|
17061
17140
|
deviceId: number().int().optional(),
|
|
17062
|
-
|
|
17141
|
+
/**
|
|
17142
|
+
* Narrow the window to these subject classes — "the cat, not the person".
|
|
17143
|
+
*
|
|
17144
|
+
* ORTHOGONAL to `scope`, deliberately, and absent means EVERY class: that is
|
|
17145
|
+
* what every window authored before this field meant, so no persisted row
|
|
17146
|
+
* changes meaning and no client has to learn anything to keep working.
|
|
17147
|
+
*
|
|
17148
|
+
* It is what makes the window's real key `(deviceId, classes[])` and lets it
|
|
17149
|
+
* cross rules (D133): the operator points at a camera and a kind of thing,
|
|
17150
|
+
* not at whichever of their four rules happened to produce the notification
|
|
17151
|
+
* they are dismissing.
|
|
17152
|
+
*/
|
|
17153
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
17154
|
+
durationMinutes: number().int().min(1).max(NC_SNOOZE_MAX_MINUTES),
|
|
17063
17155
|
/**
|
|
17064
17156
|
* Silence this for EVERY recipient, not just the caller. Permission is
|
|
17065
17157
|
* checked server-side (the rule's `snoozeAllowGlobal`, or admin for the
|
|
@@ -17084,6 +17176,10 @@ var NcSnoozeSchema = object({
|
|
|
17084
17176
|
scope: NcSnoozeScopeSchema,
|
|
17085
17177
|
ruleId: string().optional(),
|
|
17086
17178
|
deviceId: number().int().optional(),
|
|
17179
|
+
/** Subject classes this window covers. ABSENT = every class — see
|
|
17180
|
+
* {@link NcSnoozeInputSchema.shape.classes}. Lives in the JSON blob and has
|
|
17181
|
+
* no SQLite column: nothing queries a window by class. */
|
|
17182
|
+
classes: array(string().min(1)).min(1).optional(),
|
|
17087
17183
|
startedAt: number(),
|
|
17088
17184
|
/** Exclusive: at exactly this instant the snooze is over. Expiry is a
|
|
17089
17185
|
* COMPARISON, not a job — no sweeper can leave the operator silenced. */
|
|
@@ -19837,7 +19933,14 @@ var zonesCapability = {
|
|
|
19837
19933
|
* handle. Slice shape is `{ zones: Zone[] }` so future extensions
|
|
19838
19934
|
* (e.g. zone groupings) can sit alongside the polygon list.
|
|
19839
19935
|
*/
|
|
19840
|
-
runtimeState: object({ zones: array(ZoneSchema).readonly() })
|
|
19936
|
+
runtimeState: object({ zones: array(ZoneSchema).readonly() }),
|
|
19937
|
+
/**
|
|
19938
|
+
* 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.
|
|
19939
|
+
*
|
|
19940
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
19941
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
19942
|
+
*/
|
|
19943
|
+
durability: "restored"
|
|
19841
19944
|
};
|
|
19842
19945
|
/**
|
|
19843
19946
|
* A bounding box in NORMALIZED [0,1] frame coordinates for `getNativeCrop`. The
|
|
@@ -23779,7 +23882,17 @@ var airQualitySensorCapability = {
|
|
|
23779
23882
|
schema: AirQualitySensorStatusSchema,
|
|
23780
23883
|
kind: "push"
|
|
23781
23884
|
},
|
|
23782
|
-
runtimeState: AirQualitySensorStatusSchema
|
|
23885
|
+
runtimeState: AirQualitySensorStatusSchema,
|
|
23886
|
+
/**
|
|
23887
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
23888
|
+
*
|
|
23889
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23890
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23891
|
+
*/
|
|
23892
|
+
durability: "restored",
|
|
23893
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23894
|
+
* whether persisting is worth a SQLite commit. */
|
|
23895
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23783
23896
|
};
|
|
23784
23897
|
/**
|
|
23785
23898
|
* Ambient illuminance reading in lux. Drives Home Assistant `sensor`
|
|
@@ -23811,7 +23924,17 @@ var ambientLightSensorCapability = {
|
|
|
23811
23924
|
schema: AmbientLightSensorStatusSchema,
|
|
23812
23925
|
kind: "push"
|
|
23813
23926
|
},
|
|
23814
|
-
runtimeState: AmbientLightSensorStatusSchema
|
|
23927
|
+
runtimeState: AmbientLightSensorStatusSchema,
|
|
23928
|
+
/**
|
|
23929
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
23930
|
+
*
|
|
23931
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
23932
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
23933
|
+
*/
|
|
23934
|
+
durability: "restored",
|
|
23935
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
23936
|
+
* whether persisting is worth a SQLite commit. */
|
|
23937
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
23815
23938
|
};
|
|
23816
23939
|
/**
|
|
23817
23940
|
* Per-class audio metrics aggregated over a sliding window.
|
|
@@ -23929,7 +24052,14 @@ var audioMetricsCapability = {
|
|
|
23929
24052
|
}), AudioMetricsHistorySchema)
|
|
23930
24053
|
},
|
|
23931
24054
|
/** Reactive runtime-state mirror — live `device.state.audioMetrics.value`. */
|
|
23932
|
-
runtimeState: AudioMetricsSnapshotSchema
|
|
24055
|
+
runtimeState: AudioMetricsSnapshotSchema,
|
|
24056
|
+
/**
|
|
24057
|
+
* 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.
|
|
24058
|
+
*
|
|
24059
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24060
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24061
|
+
*/
|
|
24062
|
+
durability: "session"
|
|
23933
24063
|
};
|
|
23934
24064
|
/**
|
|
23935
24065
|
* Automation-control cap. Models HA `automation.*` entities on
|
|
@@ -23991,7 +24121,14 @@ var automationControlCapability = {
|
|
|
23991
24121
|
* reads `enabled` (toggle) + `isRunning` (spinner) + `lastError`
|
|
23992
24122
|
* (badge) directly.
|
|
23993
24123
|
*/
|
|
23994
|
-
runtimeState: AutomationControlStatusSchema
|
|
24124
|
+
runtimeState: AutomationControlStatusSchema,
|
|
24125
|
+
/**
|
|
24126
|
+
* 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.
|
|
24127
|
+
*
|
|
24128
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24129
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24130
|
+
*/
|
|
24131
|
+
durability: "session"
|
|
23995
24132
|
};
|
|
23996
24133
|
/**
|
|
23997
24134
|
* Battery status snapshot. Emitted by providers whose device is
|
|
@@ -24097,7 +24234,17 @@ onStatusChanged: { data: object({
|
|
|
24097
24234
|
* via `device.runtimeState.getCapState('battery')` regardless of
|
|
24098
24235
|
* the underlying driver.
|
|
24099
24236
|
*/
|
|
24100
|
-
runtimeState: BatteryStatusSchema
|
|
24237
|
+
runtimeState: BatteryStatusSchema,
|
|
24238
|
+
/**
|
|
24239
|
+
* 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.
|
|
24240
|
+
*
|
|
24241
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24242
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24243
|
+
*/
|
|
24244
|
+
durability: "restored",
|
|
24245
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24246
|
+
* whether persisting is worth a SQLite commit. */
|
|
24247
|
+
volatileStateFields: ["lastUpdated"]
|
|
24101
24248
|
};
|
|
24102
24249
|
/**
|
|
24103
24250
|
* Generic boolean sensor — last-resort fallback when no domain-
|
|
@@ -24126,7 +24273,17 @@ var binaryCapability = {
|
|
|
24126
24273
|
schema: BinaryStatusSchema,
|
|
24127
24274
|
kind: "push"
|
|
24128
24275
|
},
|
|
24129
|
-
runtimeState: BinaryStatusSchema
|
|
24276
|
+
runtimeState: BinaryStatusSchema,
|
|
24277
|
+
/**
|
|
24278
|
+
* Runtime-state durability: **restored** — transition-driven sensor state; the restored value gives the boot comparison.
|
|
24279
|
+
*
|
|
24280
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24281
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24282
|
+
*/
|
|
24283
|
+
durability: "restored",
|
|
24284
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24285
|
+
* whether persisting is worth a SQLite commit. */
|
|
24286
|
+
volatileStateFields: ["lastChangedAt"]
|
|
24130
24287
|
};
|
|
24131
24288
|
/**
|
|
24132
24289
|
* Dimmable-light brightness control. Co-exists with `switch` on the
|
|
@@ -24179,7 +24336,14 @@ onBrightnessChanged: { data: object({
|
|
|
24179
24336
|
* by the kernel. Read via `device.state.brightness.value` so UI
|
|
24180
24337
|
* sliders surface the current level without polling the provider.
|
|
24181
24338
|
*/
|
|
24182
|
-
runtimeState: BrightnessStatusSchema
|
|
24339
|
+
runtimeState: BrightnessStatusSchema,
|
|
24340
|
+
/**
|
|
24341
|
+
* Runtime-state durability: **session** — live lamp state, re-published by the provider on connect.
|
|
24342
|
+
*
|
|
24343
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24344
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24345
|
+
*/
|
|
24346
|
+
durability: "session"
|
|
24183
24347
|
};
|
|
24184
24348
|
/**
|
|
24185
24349
|
* button — device-scoped capability for HA `button.*` / `input_button.*`
|
|
@@ -24308,7 +24472,17 @@ var carbonMonoxideCapability = {
|
|
|
24308
24472
|
schema: CarbonMonoxideStatusSchema,
|
|
24309
24473
|
kind: "push"
|
|
24310
24474
|
},
|
|
24311
|
-
runtimeState: CarbonMonoxideStatusSchema
|
|
24475
|
+
runtimeState: CarbonMonoxideStatusSchema,
|
|
24476
|
+
/**
|
|
24477
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
24478
|
+
*
|
|
24479
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24480
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24481
|
+
*/
|
|
24482
|
+
durability: "restored",
|
|
24483
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24484
|
+
* whether persisting is worth a SQLite commit. */
|
|
24485
|
+
volatileStateFields: ["lastChangedAt"]
|
|
24312
24486
|
};
|
|
24313
24487
|
/**
|
|
24314
24488
|
* HVAC / climate control cap. Models the full surface of a HA
|
|
@@ -24468,7 +24642,14 @@ var climateControlCapability = {
|
|
|
24468
24642
|
* the full slice via `device.state.climate-control.value` and refresh
|
|
24469
24643
|
* on every push without re-querying the provider.
|
|
24470
24644
|
*/
|
|
24471
|
-
runtimeState: ClimateControlStatusSchema
|
|
24645
|
+
runtimeState: ClimateControlStatusSchema,
|
|
24646
|
+
/**
|
|
24647
|
+
* Runtime-state durability: **session** — as `brightness`; `currentTemp` moves continuously and is re-published on connect.
|
|
24648
|
+
*
|
|
24649
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24650
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24651
|
+
*/
|
|
24652
|
+
durability: "session"
|
|
24472
24653
|
};
|
|
24473
24654
|
/**
|
|
24474
24655
|
* Color-light cap. Coexists with `switch` (on/off) and `brightness`
|
|
@@ -24578,7 +24759,14 @@ onColorChanged: { data: object({
|
|
|
24578
24759
|
* kernel. Read via `device.state.color.value` so UI pickers surface
|
|
24579
24760
|
* the current chromaticity without polling the provider.
|
|
24580
24761
|
*/
|
|
24581
|
-
runtimeState: ColorStatusSchema
|
|
24762
|
+
runtimeState: ColorStatusSchema,
|
|
24763
|
+
/**
|
|
24764
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
24765
|
+
*
|
|
24766
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24767
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24768
|
+
*/
|
|
24769
|
+
durability: "session"
|
|
24582
24770
|
};
|
|
24583
24771
|
var ConnectionTestOutcomeSchema = discriminatedUnion("outcome", [
|
|
24584
24772
|
object({
|
|
@@ -24644,7 +24832,17 @@ var connectivityCapability = {
|
|
|
24644
24832
|
schema: ConnectivityStatusSchema,
|
|
24645
24833
|
kind: "push"
|
|
24646
24834
|
},
|
|
24647
|
-
runtimeState: ConnectivityStatusSchema
|
|
24835
|
+
runtimeState: ConnectivityStatusSchema,
|
|
24836
|
+
/**
|
|
24837
|
+
* Runtime-state durability: **restored** — same shape and same argument as `device-status`, for links rather than devices.
|
|
24838
|
+
*
|
|
24839
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24840
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24841
|
+
*/
|
|
24842
|
+
durability: "restored",
|
|
24843
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24844
|
+
* whether persisting is worth a SQLite commit. */
|
|
24845
|
+
volatileStateFields: ["lastChangedAt"]
|
|
24648
24846
|
};
|
|
24649
24847
|
/**
|
|
24650
24848
|
* Generic device-consumables capability — surfaces a device's
|
|
@@ -24726,7 +24924,14 @@ reset: method(object({
|
|
|
24726
24924
|
}
|
|
24727
24925
|
}
|
|
24728
24926
|
},
|
|
24729
|
-
runtimeState: ConsumablesStatusSchema.extend({ lastFetchedAt: number() })
|
|
24927
|
+
runtimeState: ConsumablesStatusSchema.extend({ lastFetchedAt: number() }),
|
|
24928
|
+
/**
|
|
24929
|
+
* Runtime-state durability: **session** — the authority is the appliance; the provider re-reads the whole item array on connect.
|
|
24930
|
+
*
|
|
24931
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24932
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24933
|
+
*/
|
|
24934
|
+
durability: "session"
|
|
24730
24935
|
};
|
|
24731
24936
|
/**
|
|
24732
24937
|
* Door / window / opening / garage / valve contact sensor. Boolean
|
|
@@ -24757,7 +24962,17 @@ var contactCapability = {
|
|
|
24757
24962
|
schema: ContactStatusSchema,
|
|
24758
24963
|
kind: "push"
|
|
24759
24964
|
},
|
|
24760
|
-
runtimeState: ContactStatusSchema
|
|
24965
|
+
runtimeState: ContactStatusSchema,
|
|
24966
|
+
/**
|
|
24967
|
+
* Runtime-state durability: **restored** — a door left open across a restart must still read open.
|
|
24968
|
+
*
|
|
24969
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
24970
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
24971
|
+
*/
|
|
24972
|
+
durability: "restored",
|
|
24973
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
24974
|
+
* whether persisting is worth a SQLite commit. */
|
|
24975
|
+
volatileStateFields: ["lastChangedAt"]
|
|
24761
24976
|
};
|
|
24762
24977
|
/**
|
|
24763
24978
|
* Status slice — flat object (the framework's `runtimeState` contract
|
|
@@ -24863,7 +25078,14 @@ var controlCapability = {
|
|
|
24863
25078
|
* dropdown / text field / date picker) read the slice's discriminant
|
|
24864
25079
|
* and value directly without polling the provider.
|
|
24865
25080
|
*/
|
|
24866
|
-
runtimeState: ControlStatusSchema
|
|
25081
|
+
runtimeState: ControlStatusSchema,
|
|
25082
|
+
/**
|
|
25083
|
+
* Runtime-state durability: **session** — a generic control mirrors an external entity that re-publishes on connect; the options array is re-derived with it.
|
|
25084
|
+
*
|
|
25085
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25086
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25087
|
+
*/
|
|
25088
|
+
durability: "session"
|
|
24867
25089
|
};
|
|
24868
25090
|
var CoverStatusSchema = object({
|
|
24869
25091
|
/** Lifecycle state of the cover. */
|
|
@@ -24924,7 +25146,17 @@ var coverCapability = {
|
|
|
24924
25146
|
* Runtime-state slice — mirrored by the kernel. UI controls watch
|
|
24925
25147
|
* the slice for live position changes during a move.
|
|
24926
25148
|
*/
|
|
24927
|
-
runtimeState: CoverStatusSchema
|
|
25149
|
+
runtimeState: CoverStatusSchema,
|
|
25150
|
+
/**
|
|
25151
|
+
* Runtime-state durability: **restored** — position survives a restart on the device; the mirror should agree at boot rather than read blank.
|
|
25152
|
+
*
|
|
25153
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25154
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25155
|
+
*/
|
|
25156
|
+
durability: "restored",
|
|
25157
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25158
|
+
* whether persisting is worth a SQLite commit. */
|
|
25159
|
+
volatileStateFields: ["lastChangedAt"]
|
|
24928
25160
|
};
|
|
24929
25161
|
/**
|
|
24930
25162
|
* Vendor-neutral day/night (IR-cut) control — the per-camera config cap
|
|
@@ -25018,7 +25250,17 @@ var dayNightCapability = {
|
|
|
25018
25250
|
schema: DayNightStatusSchema,
|
|
25019
25251
|
kind: "poll"
|
|
25020
25252
|
},
|
|
25021
|
-
runtimeState: DayNightStatusSchema
|
|
25253
|
+
runtimeState: DayNightStatusSchema,
|
|
25254
|
+
/**
|
|
25255
|
+
* Runtime-state durability: **restored** — operator-set IR-cut behaviour; mutation-driven.
|
|
25256
|
+
*
|
|
25257
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25258
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25259
|
+
*/
|
|
25260
|
+
durability: "restored",
|
|
25261
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25262
|
+
* whether persisting is worth a SQLite commit. */
|
|
25263
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
25022
25264
|
};
|
|
25023
25265
|
/**
|
|
25024
25266
|
* Generic device-level status snapshot. Auto-registered by `BaseDevice`
|
|
@@ -25065,7 +25307,17 @@ onStatusChanged: { data: object({
|
|
|
25065
25307
|
schema: DeviceStatusSchema,
|
|
25066
25308
|
kind: "push"
|
|
25067
25309
|
},
|
|
25068
|
-
runtimeState: DeviceStatusSchema
|
|
25310
|
+
runtimeState: DeviceStatusSchema,
|
|
25311
|
+
/**
|
|
25312
|
+
* 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.
|
|
25313
|
+
*
|
|
25314
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25315
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25316
|
+
*/
|
|
25317
|
+
durability: "restored",
|
|
25318
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25319
|
+
* whether persisting is worth a SQLite commit. */
|
|
25320
|
+
volatileStateFields: ["lastChangedAt"]
|
|
25069
25321
|
};
|
|
25070
25322
|
/**
|
|
25071
25323
|
* Doorbell button cap. Two kinds of providers coexist behind this cap
|
|
@@ -25127,7 +25379,14 @@ onPressed: { data: DoorbellPressEventSchema } },
|
|
|
25127
25379
|
* `device.state.doorbell.value`. UIs can show "last ring 5m ago"
|
|
25128
25380
|
* without subscribing.
|
|
25129
25381
|
*/
|
|
25130
|
-
runtimeState: DoorbellStatusSchema
|
|
25382
|
+
runtimeState: DoorbellStatusSchema,
|
|
25383
|
+
/**
|
|
25384
|
+
* 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.
|
|
25385
|
+
*
|
|
25386
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25387
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25388
|
+
*/
|
|
25389
|
+
durability: "restored"
|
|
25131
25390
|
};
|
|
25132
25391
|
/**
|
|
25133
25392
|
* Enum-state sensor — a string value picked from a finite option set.
|
|
@@ -25167,7 +25426,17 @@ var enumSensorCapability = {
|
|
|
25167
25426
|
schema: EnumSensorStatusSchema,
|
|
25168
25427
|
kind: "push"
|
|
25169
25428
|
},
|
|
25170
|
-
runtimeState: EnumSensorStatusSchema
|
|
25429
|
+
runtimeState: EnumSensorStatusSchema,
|
|
25430
|
+
/**
|
|
25431
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`; 80 devices.
|
|
25432
|
+
*
|
|
25433
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25434
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25435
|
+
*/
|
|
25436
|
+
durability: "restored",
|
|
25437
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25438
|
+
* whether persisting is worth a SQLite commit. */
|
|
25439
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
25171
25440
|
};
|
|
25172
25441
|
/**
|
|
25173
25442
|
* Generic stateless event emitter. Installed on a `DeviceType.EventEmitter`
|
|
@@ -25203,7 +25472,14 @@ var eventEmitterCapability = {
|
|
|
25203
25472
|
schema: EventEmitterStatusSchema,
|
|
25204
25473
|
kind: "push"
|
|
25205
25474
|
},
|
|
25206
|
-
runtimeState: EventEmitterStatusSchema
|
|
25475
|
+
runtimeState: EventEmitterStatusSchema,
|
|
25476
|
+
/**
|
|
25477
|
+
* Runtime-state durability: **session** — `eventCountSinceStart` names its own scope.
|
|
25478
|
+
*
|
|
25479
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25480
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25481
|
+
*/
|
|
25482
|
+
durability: "session"
|
|
25207
25483
|
};
|
|
25208
25484
|
var EventItemSchema = object({
|
|
25209
25485
|
id: string(),
|
|
@@ -25520,7 +25796,14 @@ var fanControlCapability = {
|
|
|
25520
25796
|
* Runtime-state slice — mirrored by the kernel. UI fan speed
|
|
25521
25797
|
* sliders read `percentage` for live updates.
|
|
25522
25798
|
*/
|
|
25523
|
-
runtimeState: FanControlStatusSchema
|
|
25799
|
+
runtimeState: FanControlStatusSchema,
|
|
25800
|
+
/**
|
|
25801
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
25802
|
+
*
|
|
25803
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25804
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25805
|
+
*/
|
|
25806
|
+
durability: "session"
|
|
25524
25807
|
};
|
|
25525
25808
|
/**
|
|
25526
25809
|
* Per-device feature/identity probe slice. Holds the runtime-resolved
|
|
@@ -25596,7 +25879,14 @@ onProbeChanged: { data: object({
|
|
|
25596
25879
|
schema: FeatureProbeStatusSchema,
|
|
25597
25880
|
kind: "push"
|
|
25598
25881
|
},
|
|
25599
|
-
runtimeState: FeatureProbeStatusSchema
|
|
25882
|
+
runtimeState: FeatureProbeStatusSchema,
|
|
25883
|
+
/**
|
|
25884
|
+
* 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.
|
|
25885
|
+
*
|
|
25886
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25887
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25888
|
+
*/
|
|
25889
|
+
durability: "session"
|
|
25600
25890
|
};
|
|
25601
25891
|
/**
|
|
25602
25892
|
* Water leak / moisture sensor. Boolean "is liquid currently
|
|
@@ -25623,7 +25913,17 @@ var floodCapability = {
|
|
|
25623
25913
|
schema: FloodStatusSchema,
|
|
25624
25914
|
kind: "push"
|
|
25625
25915
|
},
|
|
25626
|
-
runtimeState: FloodStatusSchema
|
|
25916
|
+
runtimeState: FloodStatusSchema,
|
|
25917
|
+
/**
|
|
25918
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
25919
|
+
*
|
|
25920
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25921
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25922
|
+
*/
|
|
25923
|
+
durability: "restored",
|
|
25924
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25925
|
+
* whether persisting is worth a SQLite commit. */
|
|
25926
|
+
volatileStateFields: ["lastChangedAt"]
|
|
25627
25927
|
};
|
|
25628
25928
|
/**
|
|
25629
25929
|
* Combustible-gas (LPG / methane / hydrogen) alarm sensor. Drives
|
|
@@ -25646,7 +25946,17 @@ var gasCapability = {
|
|
|
25646
25946
|
schema: GasStatusSchema,
|
|
25647
25947
|
kind: "push"
|
|
25648
25948
|
},
|
|
25649
|
-
runtimeState: GasStatusSchema
|
|
25949
|
+
runtimeState: GasStatusSchema,
|
|
25950
|
+
/**
|
|
25951
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
25952
|
+
*
|
|
25953
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
25954
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
25955
|
+
*/
|
|
25956
|
+
durability: "restored",
|
|
25957
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
25958
|
+
* whether persisting is worth a SQLite commit. */
|
|
25959
|
+
volatileStateFields: ["lastChangedAt"]
|
|
25650
25960
|
};
|
|
25651
25961
|
/**
|
|
25652
25962
|
* Humidifier / dehumidifier cap. Models HA `humidifier.*` entities —
|
|
@@ -25722,7 +26032,14 @@ var humidifierCapability = {
|
|
|
25722
26032
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
25723
26033
|
* slice for live humidity / mode changes.
|
|
25724
26034
|
*/
|
|
25725
|
-
runtimeState: HumidifierStatusSchema
|
|
26035
|
+
runtimeState: HumidifierStatusSchema,
|
|
26036
|
+
/**
|
|
26037
|
+
* Runtime-state durability: **session** — as `climate-control`.
|
|
26038
|
+
*
|
|
26039
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26040
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26041
|
+
*/
|
|
26042
|
+
durability: "session"
|
|
25726
26043
|
};
|
|
25727
26044
|
/**
|
|
25728
26045
|
* Single-metric humidity reading. Drives Home Assistant `sensor`
|
|
@@ -25758,7 +26075,17 @@ var humiditySensorCapability = {
|
|
|
25758
26075
|
schema: HumiditySensorStatusSchema,
|
|
25759
26076
|
kind: "push"
|
|
25760
26077
|
},
|
|
25761
|
-
runtimeState: HumiditySensorStatusSchema
|
|
26078
|
+
runtimeState: HumiditySensorStatusSchema,
|
|
26079
|
+
/**
|
|
26080
|
+
* Runtime-state durability: **restored** — as `numeric-sensor` (67 of 75 writes were the clock alone).
|
|
26081
|
+
*
|
|
26082
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26083
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26084
|
+
*/
|
|
26085
|
+
durability: "restored",
|
|
26086
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26087
|
+
* whether persisting is worth a SQLite commit. */
|
|
26088
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
25762
26089
|
};
|
|
25763
26090
|
/**
|
|
25764
26091
|
* Image display cap. Models a single still image exposed by an integration —
|
|
@@ -25796,7 +26123,14 @@ var imageCapability = {
|
|
|
25796
26123
|
* Runtime-state slice — mirrored by the kernel. The UI reads `url`
|
|
25797
26124
|
* directly and renders the still image.
|
|
25798
26125
|
*/
|
|
25799
|
-
runtimeState: ImageStatusSchema
|
|
26126
|
+
runtimeState: ImageStatusSchema,
|
|
26127
|
+
/**
|
|
26128
|
+
* Runtime-state durability: **session** — a snapshot URL is a session-scoped handle; a restored one points at nothing.
|
|
26129
|
+
*
|
|
26130
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26131
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26132
|
+
*/
|
|
26133
|
+
durability: "session"
|
|
25800
26134
|
};
|
|
25801
26135
|
/**
|
|
25802
26136
|
* Vendor-neutral image / picture-adjustment cap — the per-camera config
|
|
@@ -25945,7 +26279,17 @@ var imageSettingsCapability = {
|
|
|
25945
26279
|
schema: ImageSettingsStatusSchema,
|
|
25946
26280
|
kind: "poll"
|
|
25947
26281
|
},
|
|
25948
|
-
runtimeState: ImageSettingsStatusSchema
|
|
26282
|
+
runtimeState: ImageSettingsStatusSchema,
|
|
26283
|
+
/**
|
|
26284
|
+
* Runtime-state durability: **restored** — operator-set camera imaging; mutation-driven.
|
|
26285
|
+
*
|
|
26286
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26287
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26288
|
+
*/
|
|
26289
|
+
durability: "restored",
|
|
26290
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26291
|
+
* whether persisting is worth a SQLite commit. */
|
|
26292
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
25949
26293
|
};
|
|
25950
26294
|
/**
|
|
25951
26295
|
* integrations — system-scoped singleton capability for integration
|
|
@@ -26354,7 +26698,14 @@ var lawnMowerControlCapability = {
|
|
|
26354
26698
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
26355
26699
|
* slice for live activity + battery changes.
|
|
26356
26700
|
*/
|
|
26357
|
-
runtimeState: LawnMowerControlStatusSchema
|
|
26701
|
+
runtimeState: LawnMowerControlStatusSchema,
|
|
26702
|
+
/**
|
|
26703
|
+
* Runtime-state durability: **session** — as `vacuum-control`.
|
|
26704
|
+
*
|
|
26705
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26706
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26707
|
+
*/
|
|
26708
|
+
durability: "session"
|
|
26358
26709
|
};
|
|
26359
26710
|
/**
|
|
26360
26711
|
* local-network — hub-only singleton.
|
|
@@ -26630,7 +26981,17 @@ var lockControlCapability = {
|
|
|
26630
26981
|
* read `state` and disable themselves during `locking`/`unlocking`
|
|
26631
26982
|
* transitions.
|
|
26632
26983
|
*/
|
|
26633
|
-
runtimeState: LockControlStatusSchema
|
|
26984
|
+
runtimeState: LockControlStatusSchema,
|
|
26985
|
+
/**
|
|
26986
|
+
* Runtime-state durability: **restored** — a lock left locked must still read locked.
|
|
26987
|
+
*
|
|
26988
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
26989
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
26990
|
+
*/
|
|
26991
|
+
durability: "restored",
|
|
26992
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
26993
|
+
* whether persisting is worth a SQLite commit. */
|
|
26994
|
+
volatileStateFields: ["lastChangedAt"]
|
|
26634
26995
|
};
|
|
26635
26996
|
/**
|
|
26636
26997
|
* Media-player cap. Models HA `media_player.*` (Sonos, Chromecast,
|
|
@@ -26792,7 +27153,14 @@ var mediaPlayerCapability = {
|
|
|
26792
27153
|
* full slice for live now-playing, volume, and progress updates
|
|
26793
27154
|
* without polling.
|
|
26794
27155
|
*/
|
|
26795
|
-
runtimeState: MediaPlayerStatusSchema
|
|
27156
|
+
runtimeState: MediaPlayerStatusSchema,
|
|
27157
|
+
/**
|
|
27158
|
+
* Runtime-state durability: **session** — a restored transport position describes a playback that stopped when the hub did.
|
|
27159
|
+
*
|
|
27160
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27161
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27162
|
+
*/
|
|
27163
|
+
durability: "session"
|
|
26796
27164
|
};
|
|
26797
27165
|
/**
|
|
26798
27166
|
* mesh-network — collection cap for mesh-VPN providers.
|
|
@@ -27117,7 +27485,14 @@ onMotionChanged: { data: MotionOnMotionChangedDataSchema } },
|
|
|
27117
27485
|
* `device.state.motion.value`. Reads never invoke the provider, so
|
|
27118
27486
|
* UIs and other addons can poll the cached state safely.
|
|
27119
27487
|
*/
|
|
27120
|
-
runtimeState: MotionStatusSchema
|
|
27488
|
+
runtimeState: MotionStatusSchema,
|
|
27489
|
+
/**
|
|
27490
|
+
* 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.
|
|
27491
|
+
*
|
|
27492
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27493
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27494
|
+
*/
|
|
27495
|
+
durability: "session"
|
|
27121
27496
|
};
|
|
27122
27497
|
/**
|
|
27123
27498
|
* Motion-trigger toggle for accessory devices.
|
|
@@ -27182,7 +27557,14 @@ var motionTriggerCapability = {
|
|
|
27182
27557
|
schema: MotionTriggerStatusSchema,
|
|
27183
27558
|
kind: "command-driven"
|
|
27184
27559
|
},
|
|
27185
|
-
runtimeState: MotionTriggerRuntimeStateSchema
|
|
27560
|
+
runtimeState: MotionTriggerRuntimeStateSchema,
|
|
27561
|
+
/**
|
|
27562
|
+
* 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.
|
|
27563
|
+
*
|
|
27564
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27565
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27566
|
+
*/
|
|
27567
|
+
durability: "session"
|
|
27186
27568
|
};
|
|
27187
27569
|
/**
|
|
27188
27570
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
@@ -27249,7 +27631,17 @@ var motionZonesCapability = {
|
|
|
27249
27631
|
schema: MotionZoneStatusSchema,
|
|
27250
27632
|
kind: "poll"
|
|
27251
27633
|
},
|
|
27252
|
-
runtimeState: MotionZoneStatusSchema
|
|
27634
|
+
runtimeState: MotionZoneStatusSchema,
|
|
27635
|
+
/**
|
|
27636
|
+
* 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.
|
|
27637
|
+
*
|
|
27638
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27639
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27640
|
+
*/
|
|
27641
|
+
durability: "restored",
|
|
27642
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27643
|
+
* whether persisting is worth a SQLite commit. */
|
|
27644
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
27253
27645
|
};
|
|
27254
27646
|
/**
|
|
27255
27647
|
* On-camera AI object detection cap. Surfaces per-device the classes
|
|
@@ -27323,7 +27715,17 @@ var nativeObjectDetectionCapability = {
|
|
|
27323
27715
|
schema: NativeObjectDetectionStatusSchema,
|
|
27324
27716
|
kind: "push"
|
|
27325
27717
|
},
|
|
27326
|
-
runtimeState: NativeObjectDetectionRuntimeStateSchema
|
|
27718
|
+
runtimeState: NativeObjectDetectionRuntimeStateSchema,
|
|
27719
|
+
/**
|
|
27720
|
+
* 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.
|
|
27721
|
+
*
|
|
27722
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
27723
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
27724
|
+
*/
|
|
27725
|
+
durability: "restored",
|
|
27726
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
27727
|
+
* whether persisting is worth a SQLite commit. */
|
|
27728
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
27327
27729
|
};
|
|
27328
27730
|
/**
|
|
27329
27731
|
* network-quality — system-scoped singleton capability tracking RTT,
|
|
@@ -27710,7 +28112,14 @@ onSent: { data: object({
|
|
|
27710
28112
|
* form reads `supports` to gate optional fields; history pane reads
|
|
27711
28113
|
* `lastSentAt` / `lastError` / `queueDepth`.
|
|
27712
28114
|
*/
|
|
27713
|
-
runtimeState: NotifierStatusSchema
|
|
28115
|
+
runtimeState: NotifierStatusSchema,
|
|
28116
|
+
/**
|
|
28117
|
+
* Runtime-state durability: **session** — live queue depth and last-send state; a restored queue depth describes a queue that no longer exists.
|
|
28118
|
+
*
|
|
28119
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
28120
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
28121
|
+
*/
|
|
28122
|
+
durability: "session"
|
|
27714
28123
|
};
|
|
27715
28124
|
/**
|
|
27716
28125
|
* Generic numeric sensor — last-resort fallback when no typed numeric
|
|
@@ -27753,7 +28162,17 @@ var numericSensorCapability = {
|
|
|
27753
28162
|
schema: NumericSensorStatusSchema,
|
|
27754
28163
|
kind: "push"
|
|
27755
28164
|
},
|
|
27756
|
-
runtimeState: NumericSensorStatusSchema
|
|
28165
|
+
runtimeState: NumericSensorStatusSchema,
|
|
28166
|
+
/**
|
|
28167
|
+
* 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.
|
|
28168
|
+
*
|
|
28169
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
28170
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
28171
|
+
*/
|
|
28172
|
+
durability: "restored",
|
|
28173
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
28174
|
+
* whether persisting is worth a SQLite commit. */
|
|
28175
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
27757
28176
|
};
|
|
27758
28177
|
/**
|
|
27759
28178
|
* Generic on-screen-display (video overlay) cap. Each camera exposes
|
|
@@ -28231,7 +28650,14 @@ var petFeederCapability = {
|
|
|
28231
28650
|
* the full slice via `device.state.petFeeder.value` and refresh on
|
|
28232
28651
|
* every poll without re-querying the provider.
|
|
28233
28652
|
*/
|
|
28234
|
-
runtimeState: PetFeederStatusSchema
|
|
28653
|
+
runtimeState: PetFeederStatusSchema,
|
|
28654
|
+
/**
|
|
28655
|
+
* Runtime-state durability: **session** — live appliance state re-published on connect.
|
|
28656
|
+
*
|
|
28657
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
28658
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
28659
|
+
*/
|
|
28660
|
+
durability: "session"
|
|
28235
28661
|
};
|
|
28236
28662
|
var VehicleSchema = object({
|
|
28237
28663
|
id: string(),
|
|
@@ -28587,7 +29013,17 @@ var powerMeterCapability = {
|
|
|
28587
29013
|
schema: PowerMeterStatusSchema,
|
|
28588
29014
|
kind: "push"
|
|
28589
29015
|
},
|
|
28590
|
-
runtimeState: PowerMeterStatusSchema
|
|
29016
|
+
runtimeState: PowerMeterStatusSchema,
|
|
29017
|
+
/**
|
|
29018
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`; `kwhTotal` is an accumulator whose restored value is the baseline.
|
|
29019
|
+
*
|
|
29020
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
29021
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
29022
|
+
*/
|
|
29023
|
+
durability: "restored",
|
|
29024
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
29025
|
+
* whether persisting is worth a SQLite commit. */
|
|
29026
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
28591
29027
|
};
|
|
28592
29028
|
/**
|
|
28593
29029
|
* Presence cap. Models HA `person.*` and `device_tracker.*` entities
|
|
@@ -28644,7 +29080,17 @@ var presenceCapability = {
|
|
|
28644
29080
|
* the map pin is rendered (use `DeviceFeature.PresenceGps` for the
|
|
28645
29081
|
* pre-fetch fast-path check).
|
|
28646
29082
|
*/
|
|
28647
|
-
runtimeState: PresenceStatusSchema
|
|
29083
|
+
runtimeState: PresenceStatusSchema,
|
|
29084
|
+
/**
|
|
29085
|
+
* Runtime-state durability: **restored** — occupancy-relevant: the restored state is what an occupancy rule compares the first post-restart observation against.
|
|
29086
|
+
*
|
|
29087
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
29088
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
29089
|
+
*/
|
|
29090
|
+
durability: "restored",
|
|
29091
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
29092
|
+
* whether persisting is worth a SQLite commit. */
|
|
29093
|
+
volatileStateFields: ["lastChangedAt"]
|
|
28648
29094
|
};
|
|
28649
29095
|
/**
|
|
28650
29096
|
* Atmospheric pressure reading in hectopascals. Drives Home Assistant
|
|
@@ -28680,7 +29126,17 @@ var pressureSensorCapability = {
|
|
|
28680
29126
|
schema: PressureSensorStatusSchema,
|
|
28681
29127
|
kind: "push"
|
|
28682
29128
|
},
|
|
28683
|
-
runtimeState: PressureSensorStatusSchema
|
|
29129
|
+
runtimeState: PressureSensorStatusSchema,
|
|
29130
|
+
/**
|
|
29131
|
+
* Runtime-state durability: **restored** — as `numeric-sensor`.
|
|
29132
|
+
*
|
|
29133
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
29134
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
29135
|
+
*/
|
|
29136
|
+
durability: "restored",
|
|
29137
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
29138
|
+
* whether persisting is worth a SQLite commit. */
|
|
29139
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
28684
29140
|
};
|
|
28685
29141
|
/**
|
|
28686
29142
|
* PRIVACY — what the camera deliberately does not capture. Two planes:
|
|
@@ -28810,7 +29266,17 @@ var privacyMaskCapability = {
|
|
|
28810
29266
|
schema: PrivacyMaskStatusSchema,
|
|
28811
29267
|
kind: "poll"
|
|
28812
29268
|
},
|
|
28813
|
-
runtimeState: PrivacyMaskStatusSchema
|
|
29269
|
+
runtimeState: PrivacyMaskStatusSchema,
|
|
29270
|
+
/**
|
|
29271
|
+
* Runtime-state durability: **restored** — operator-drawn regions, zero real churn — 22 writes in 25 minutes, every one of them the clock.
|
|
29272
|
+
*
|
|
29273
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
29274
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
29275
|
+
*/
|
|
29276
|
+
durability: "restored",
|
|
29277
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
29278
|
+
* whether persisting is worth a SQLite commit. */
|
|
29279
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
28814
29280
|
};
|
|
28815
29281
|
var PtzPresetSchema = object({
|
|
28816
29282
|
id: string(),
|
|
@@ -29018,7 +29484,14 @@ var ptzAutotrackCapability = {
|
|
|
29018
29484
|
* fetch / cache / fallback logic out of the four cap methods —
|
|
29019
29485
|
* they become trampolines over `runtimeState`.
|
|
29020
29486
|
*/
|
|
29021
|
-
runtimeState: PtzAutotrackRuntimeStateSchema
|
|
29487
|
+
runtimeState: PtzAutotrackRuntimeStateSchema,
|
|
29488
|
+
/**
|
|
29489
|
+
* Runtime-state durability: **session** — mirrors the camera's own autotrack config, re-read on connect.
|
|
29490
|
+
*
|
|
29491
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
29492
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
29493
|
+
*/
|
|
29494
|
+
durability: "session"
|
|
29022
29495
|
};
|
|
29023
29496
|
/**
|
|
29024
29497
|
* reboot — device-scoped capability for "soft" device reboots (firmware
|
|
@@ -29826,7 +30299,14 @@ var sceneMonitorCapability = {
|
|
|
29826
30299
|
schema: SceneMonitorStatusSchema,
|
|
29827
30300
|
kind: "push"
|
|
29828
30301
|
},
|
|
29829
|
-
runtimeState: SceneMonitorStatusSchema
|
|
30302
|
+
runtimeState: SceneMonitorStatusSchema,
|
|
30303
|
+
/**
|
|
30304
|
+
* Runtime-state durability: **session** — re-derived from the current scene on the next evaluation.
|
|
30305
|
+
*
|
|
30306
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
30307
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
30308
|
+
*/
|
|
30309
|
+
durability: "session"
|
|
29830
30310
|
};
|
|
29831
30311
|
/**
|
|
29832
30312
|
* Per-stage gating mode applied to the zones a rule references.
|
|
@@ -29970,7 +30450,14 @@ var scriptRunnerCapability = {
|
|
|
29970
30450
|
* `isRunning` to render a spinner during execution and surfaces
|
|
29971
30451
|
* `lastError` / `lastRunSuccess` in the recent-runs panel.
|
|
29972
30452
|
*/
|
|
29973
|
-
runtimeState: ScriptRunnerStatusSchema
|
|
30453
|
+
runtimeState: ScriptRunnerStatusSchema,
|
|
30454
|
+
/**
|
|
30455
|
+
* Runtime-state durability: **session** — a restored `isRunning: true` describes a process that died with the previous hub.
|
|
30456
|
+
*
|
|
30457
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
30458
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
30459
|
+
*/
|
|
30460
|
+
durability: "session"
|
|
29974
30461
|
};
|
|
29975
30462
|
/**
|
|
29976
30463
|
* Smoke alarm sensor — boolean "is smoke currently detected" with
|
|
@@ -29997,7 +30484,17 @@ var smokeCapability = {
|
|
|
29997
30484
|
schema: SmokeStatusSchema,
|
|
29998
30485
|
kind: "push"
|
|
29999
30486
|
},
|
|
30000
|
-
runtimeState: SmokeStatusSchema
|
|
30487
|
+
runtimeState: SmokeStatusSchema,
|
|
30488
|
+
/**
|
|
30489
|
+
* Runtime-state durability: **restored** — a safety sensor must not read "clear" merely because the hub restarted.
|
|
30490
|
+
*
|
|
30491
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
30492
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
30493
|
+
*/
|
|
30494
|
+
durability: "restored",
|
|
30495
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
30496
|
+
* whether persisting is worth a SQLite commit. */
|
|
30497
|
+
volatileStateFields: ["lastChangedAt"]
|
|
30001
30498
|
};
|
|
30002
30499
|
/**
|
|
30003
30500
|
* One publishable camera stream as its OWNING PROVIDER describes it — the same
|
|
@@ -30183,7 +30680,17 @@ var streamParamsCapability = {
|
|
|
30183
30680
|
schema: StreamParamsStatusSchema,
|
|
30184
30681
|
kind: "poll"
|
|
30185
30682
|
},
|
|
30186
|
-
runtimeState: StreamParamsStatusSchema
|
|
30683
|
+
runtimeState: StreamParamsStatusSchema,
|
|
30684
|
+
/**
|
|
30685
|
+
* Runtime-state durability: **restored** — operator-set encoder profile; mutation-driven.
|
|
30686
|
+
*
|
|
30687
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
30688
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
30689
|
+
*/
|
|
30690
|
+
durability: "restored",
|
|
30691
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
30692
|
+
* whether persisting is worth a SQLite commit. */
|
|
30693
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
30187
30694
|
};
|
|
30188
30695
|
/**
|
|
30189
30696
|
* Generic on/off switch cap for accessory children (siren, floodlight,
|
|
@@ -30229,6 +30736,16 @@ var switchCapability = {
|
|
|
30229
30736
|
* not need to re-query the provider after a setState mutation.
|
|
30230
30737
|
*/
|
|
30231
30738
|
runtimeState: SwitchStatusSchema,
|
|
30739
|
+
/**
|
|
30740
|
+
* Runtime-state durability: **restored** — device state an operator reads as authoritative; 55 devices, transition-driven.
|
|
30741
|
+
*
|
|
30742
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
30743
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
30744
|
+
*/
|
|
30745
|
+
durability: "restored",
|
|
30746
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
30747
|
+
* whether persisting is worth a SQLite commit. */
|
|
30748
|
+
volatileStateFields: ["lastChangedAt"],
|
|
30232
30749
|
settings: { bindings: [{
|
|
30233
30750
|
kind: "scalar",
|
|
30234
30751
|
statusPath: "on",
|
|
@@ -30323,7 +30840,17 @@ var tamperCapability = {
|
|
|
30323
30840
|
schema: TamperStatusSchema,
|
|
30324
30841
|
kind: "push"
|
|
30325
30842
|
},
|
|
30326
|
-
runtimeState: TamperStatusSchema
|
|
30843
|
+
runtimeState: TamperStatusSchema,
|
|
30844
|
+
/**
|
|
30845
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
30846
|
+
*
|
|
30847
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
30848
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
30849
|
+
*/
|
|
30850
|
+
durability: "restored",
|
|
30851
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
30852
|
+
* whether persisting is worth a SQLite commit. */
|
|
30853
|
+
volatileStateFields: ["lastChangedAt"]
|
|
30327
30854
|
};
|
|
30328
30855
|
/**
|
|
30329
30856
|
* Single-metric temperature reading. Drives Home Assistant `sensor`
|
|
@@ -30368,7 +30895,17 @@ var temperatureSensorCapability = {
|
|
|
30368
30895
|
schema: TemperatureSensorStatusSchema,
|
|
30369
30896
|
kind: "push"
|
|
30370
30897
|
},
|
|
30371
|
-
runtimeState: TemperatureSensorStatusSchema
|
|
30898
|
+
runtimeState: TemperatureSensorStatusSchema,
|
|
30899
|
+
/**
|
|
30900
|
+
* Runtime-state durability: **restored** — as `numeric-sensor` (69 of 125 writes were the clock alone).
|
|
30901
|
+
*
|
|
30902
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
30903
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
30904
|
+
*/
|
|
30905
|
+
durability: "restored",
|
|
30906
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
30907
|
+
* whether persisting is worth a SQLite commit. */
|
|
30908
|
+
volatileStateFields: ["lastFetchedAt"]
|
|
30372
30909
|
};
|
|
30373
30910
|
/**
|
|
30374
30911
|
* toast — system-scoped singleton capability that streams toast
|
|
@@ -30444,7 +30981,14 @@ var updateCapability = {
|
|
|
30444
30981
|
schema: UpdateStatusSchema,
|
|
30445
30982
|
kind: "poll"
|
|
30446
30983
|
},
|
|
30447
|
-
runtimeState: UpdateStatusSchema
|
|
30984
|
+
runtimeState: UpdateStatusSchema,
|
|
30985
|
+
/**
|
|
30986
|
+
* Runtime-state durability: **session** — a restored `inProgress: true` describes an update that is no longer running; versions are re-probed at boot.
|
|
30987
|
+
*
|
|
30988
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
30989
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
30990
|
+
*/
|
|
30991
|
+
durability: "session"
|
|
30448
30992
|
};
|
|
30449
30993
|
var UserSummarySchema = object({
|
|
30450
30994
|
id: string(),
|
|
@@ -30820,7 +31364,14 @@ var vacuumControlCapability = {
|
|
|
30820
31364
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
30821
31365
|
* slice for live state + battery + fan-speed changes.
|
|
30822
31366
|
*/
|
|
30823
|
-
runtimeState: VacuumControlStatusSchema
|
|
31367
|
+
runtimeState: VacuumControlStatusSchema,
|
|
31368
|
+
/**
|
|
31369
|
+
* Runtime-state durability: **session** — as `media-player` — a restored `state: cleaning` is a robot that is not cleaning.
|
|
31370
|
+
*
|
|
31371
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
31372
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
31373
|
+
*/
|
|
31374
|
+
durability: "session"
|
|
30824
31375
|
};
|
|
30825
31376
|
var ValveStatusSchema = object({
|
|
30826
31377
|
/** Lifecycle state of the valve. */
|
|
@@ -30872,7 +31423,14 @@ var valveCapability = {
|
|
|
30872
31423
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
30873
31424
|
* slice for live position changes during a move.
|
|
30874
31425
|
*/
|
|
30875
|
-
runtimeState: ValveStatusSchema
|
|
31426
|
+
runtimeState: ValveStatusSchema,
|
|
31427
|
+
/**
|
|
31428
|
+
* Runtime-state durability: **session** — as `brightness`.
|
|
31429
|
+
*
|
|
31430
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
31431
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
31432
|
+
*/
|
|
31433
|
+
durability: "session"
|
|
30876
31434
|
};
|
|
30877
31435
|
/**
|
|
30878
31436
|
* Vibration / shake / impact sensor. Drives Home Assistant
|
|
@@ -30894,7 +31452,17 @@ var vibrationCapability = {
|
|
|
30894
31452
|
schema: VibrationStatusSchema,
|
|
30895
31453
|
kind: "push"
|
|
30896
31454
|
},
|
|
30897
|
-
runtimeState: VibrationStatusSchema
|
|
31455
|
+
runtimeState: VibrationStatusSchema,
|
|
31456
|
+
/**
|
|
31457
|
+
* Runtime-state durability: **restored** — as `smoke`.
|
|
31458
|
+
*
|
|
31459
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
31460
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
31461
|
+
*/
|
|
31462
|
+
durability: "restored",
|
|
31463
|
+
/** Clock fields: written, but excluded from the compare that decides
|
|
31464
|
+
* whether persisting is worth a SQLite commit. */
|
|
31465
|
+
volatileStateFields: ["lastChangedAt"]
|
|
30898
31466
|
};
|
|
30899
31467
|
/**
|
|
30900
31468
|
* Water heater / boiler cap. Models HA `water_heater.*` entities — a
|
|
@@ -30968,7 +31536,14 @@ var waterHeaterCapability = {
|
|
|
30968
31536
|
* Runtime-state slice — mirrored by the kernel. UI controls watch the
|
|
30969
31537
|
* slice for live temperature / mode / away changes.
|
|
30970
31538
|
*/
|
|
30971
|
-
runtimeState: WaterHeaterStatusSchema
|
|
31539
|
+
runtimeState: WaterHeaterStatusSchema,
|
|
31540
|
+
/**
|
|
31541
|
+
* Runtime-state durability: **session** — as `climate-control`.
|
|
31542
|
+
*
|
|
31543
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
31544
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
31545
|
+
*/
|
|
31546
|
+
durability: "session"
|
|
30972
31547
|
};
|
|
30973
31548
|
/**
|
|
30974
31549
|
* Weather provider cap. Models HA `weather.*` entities — a read-only
|
|
@@ -31027,7 +31602,14 @@ var weatherCapability = {
|
|
|
31027
31602
|
* Runtime-state slice — mirrored by the kernel. The UI reads the
|
|
31028
31603
|
* current conditions directly from the slice on each weather push.
|
|
31029
31604
|
*/
|
|
31030
|
-
runtimeState: WeatherStatusSchema
|
|
31605
|
+
runtimeState: WeatherStatusSchema,
|
|
31606
|
+
/**
|
|
31607
|
+
* Runtime-state durability: **session** — a forecast is stale the moment the hub is down; the provider re-fetches on connect.
|
|
31608
|
+
*
|
|
31609
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
31610
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
31611
|
+
*/
|
|
31612
|
+
durability: "session"
|
|
31031
31613
|
};
|
|
31032
31614
|
/**
|
|
31033
31615
|
* Per-zone occupancy aggregation produced by the analytics frame
|
|
@@ -31189,7 +31771,14 @@ var zoneAnalyticsCapability = {
|
|
|
31189
31771
|
* automatically; the explicit `getCurrentSnapshot` cap method is
|
|
31190
31772
|
* still useful for one-off polls without a subscription.
|
|
31191
31773
|
*/
|
|
31192
|
-
runtimeState: CameraOccupancySnapshotSchema
|
|
31774
|
+
runtimeState: CameraOccupancySnapshotSchema,
|
|
31775
|
+
/**
|
|
31776
|
+
* Runtime-state durability: **session** — per-frame analytics; with `audio-metrics` it is ~90 % of the offered write rate. Re-derived on the next frame.
|
|
31777
|
+
*
|
|
31778
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
31779
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
31780
|
+
*/
|
|
31781
|
+
durability: "session"
|
|
31193
31782
|
};
|
|
31194
31783
|
/**
|
|
31195
31784
|
* Stages a {@link ZoneRule} can apply to. Discriminator on the rules
|
|
@@ -31267,7 +31856,14 @@ var zoneRulesCapability = {
|
|
|
31267
31856
|
motion: array(ZoneRuleSchema).readonly(),
|
|
31268
31857
|
detection: array(ZoneRuleSchema).readonly(),
|
|
31269
31858
|
package: array(ZoneRuleSchema).readonly()
|
|
31270
|
-
})
|
|
31859
|
+
}),
|
|
31860
|
+
/**
|
|
31861
|
+
* Runtime-state durability: **restored** — operator intent, mutation-only, same argument as `zones`.
|
|
31862
|
+
*
|
|
31863
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
31864
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
31865
|
+
*/
|
|
31866
|
+
durability: "restored"
|
|
31271
31867
|
};
|
|
31272
31868
|
/**
|
|
31273
31869
|
* Most specific first. Extending this list is how a new device kind becomes
|
|
@@ -37134,6 +37730,7 @@ Object.freeze({
|
|
|
37134
37730
|
"network-access": "ingress",
|
|
37135
37731
|
"smtp-provider": "email"
|
|
37136
37732
|
});
|
|
37733
|
+
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
37137
37734
|
new Set(["devices", "classes"]);
|
|
37138
37735
|
var WEEKDAY_TO_DAY = {
|
|
37139
37736
|
Sun: 0,
|