@camstack/addon-admin-ui 1.2.651 → 1.2.653
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/CHANGELOG.md +17 -0
- package/dist/assets/Addons-B-UM6GSX.js +5 -0
- package/dist/assets/{AdminPage-j7wlZJaX.js → AdminPage-IHC_FLB8.js} +1 -1
- package/dist/assets/AdminSectionedPage-Ch-ZRoVJ.js +1 -0
- package/dist/assets/AiProfiles-B4SUJQ9G.js +3 -0
- package/dist/assets/{BootstrapSettingsForm-BybQlvQs.js → BootstrapSettingsForm-BIJKJjHp.js} +1 -1
- package/dist/assets/Build-BHR9T6UJ.js +40 -0
- package/dist/assets/{Calendars-CG2avL1-.js → Calendars-GKfsLcqY.js} +1 -1
- package/dist/assets/{CameraGrids-dfX8bLpt.js → CameraGrids-MUUhy0x2.js} +1 -1
- package/dist/assets/{Cluster-ddOQtA0z.js → Cluster-DxEZYSF0.js} +1 -1
- package/dist/assets/CompositionBlockEditor-BFBeiHR4.js +2 -0
- package/dist/assets/{CompositionEditorPage-CIYtKsgd.js → CompositionEditorPage-Dz7XI_eP.js} +1 -1
- package/dist/assets/{Data-40hNsswQ.js → Data-BaAuEhoW.js} +2 -2
- package/dist/assets/DeviceDetail-C0SC_4iD.js +2 -0
- package/dist/assets/{Devices-D82RrdaQ.js → Devices-Bf4nCnel.js} +1 -1
- package/dist/assets/{EmbedDevicePage-DCqyPvjt.js → EmbedDevicePage-C3NGsRrc.js} +1 -1
- package/dist/assets/{EmbedPlayerPage-CoUvRfeW.js → EmbedPlayerPage-BBY-Sx6F.js} +1 -1
- package/dist/assets/History-DCTkD2C5.js +1 -0
- package/dist/assets/Identity-nbJoxA5E.js +1 -0
- package/dist/assets/InstancesTable-D2eTsMze.js +1 -0
- package/dist/assets/IntegrationDetail-DL_jE7Ho.js +1 -0
- package/dist/assets/IntegrationWizard-BeAKGqkD.js +1 -0
- package/dist/assets/Integrations-B6dYn6fd.js +1 -0
- package/dist/assets/{Integrations-CqTN93AE.js → Integrations-Cj6uWWN_.js} +2 -2
- package/dist/assets/{Library-BIn-La3n.js → Library-DZE79diS.js} +1 -1
- package/dist/assets/Locations-CqKj6DUZ.js +3 -0
- package/dist/assets/{Logs-q8mnPoZt.js → Logs-BhqOgQ6e.js} +1 -1
- package/dist/assets/{MaskShapeCanvas-C5CA5ArA.js → MaskShapeCanvas-LlW1oTr3.js} +1 -1
- package/dist/assets/{MotionZonesSettings-CuEdW4kg.js → MotionZonesSettings-Dw3DU6pD.js} +1 -1
- package/dist/assets/{MyAccess-BuMfiAQv.js → MyAccess-D-Cz_u-P.js} +1 -1
- package/dist/assets/{Network-Cb8igqGd.js → Network-B1Tex5sO.js} +1 -1
- package/dist/assets/{NodeAddonsSettingsPanel-Epb11fvO.js → NodeAddonsSettingsPanel-BaDE0Pex.js} +2 -2
- package/dist/assets/Notifications-DhTbXKSI.js +1 -0
- package/dist/assets/Pipeline-DdOSXsJd.js +1 -0
- package/dist/assets/{PrivacyMaskSettings-CRGHDdXy.js → PrivacyMaskSettings-DCVqX841.js} +1 -1
- package/dist/assets/Recordings-Clozl5li.js +1 -0
- package/dist/assets/{RemoteGrid-JW_jcrRL.js → RemoteGrid--NiAHBK3.js} +1 -1
- package/dist/assets/{ScanSubnetEditor-Bp0ZzAGR.js → ScanSubnetEditor-Dp0E5C1_.js} +1 -1
- package/dist/assets/{SceneMonitorEditor-Q7jXeGpo.js → SceneMonitorEditor-Djr3jYA7.js} +1 -1
- package/dist/assets/SessionsList-GT-Vu8fp.js +2 -0
- package/dist/assets/{Showroom-B3_xGKQA.js → Showroom-l4vJyL2_.js} +1 -1
- package/dist/assets/StorageLocationsTable-BnmqVIjs.js +1 -0
- package/dist/assets/System-XHHHEn1g.js +1 -0
- package/dist/assets/{Templates-CjBsCi25.js → Templates-DdfynSCT.js} +1 -1
- package/dist/assets/{Terminal-BvsE40TJ.js → Terminal-CSQtVQmE.js} +3 -3
- package/dist/assets/{TrainingProviders-CqyzYHwE.js → TrainingProviders-De81MhS-.js} +1 -1
- package/dist/assets/{Viewer-Cz5LM-ZD.js → Viewer-FR0LH5M7.js} +1 -1
- package/dist/assets/{_virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-GRzbN4aL.js → _virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-BBA_NCm-.js} +1 -1
- package/dist/assets/action-draft-BUIf6miK.js +1 -0
- package/dist/assets/{ai-page.helpers-DNcaXg8W.js → ai-page.helpers-CowRsr4f.js} +1 -1
- package/dist/assets/{assignment-candidates-Brt1TfBJ.js → assignment-candidates-DNvncHM2.js} +1 -1
- package/dist/assets/{authed-media-BDz2D3wE.js → authed-media-DQUbrVb4.js} +1 -1
- package/dist/assets/{board-model-fGSLbQlQ.js → board-model-YFLbUrn6.js} +1 -1
- package/dist/assets/client-BPycW7-C.js +1115 -0
- package/dist/assets/command-vocab-tdjzfkdy.js +1 -0
- package/dist/assets/create-composition-DLzarGQj.js +1 -0
- package/dist/assets/device-detail-CLGID6OK.js +1 -0
- package/dist/assets/{device-integration-icon-BaZamKTr.js → device-integration-icon-BT-_hxIF.js} +1 -1
- package/dist/assets/device-picker-model-Dp5rCpVe.js +1 -0
- package/dist/assets/{dist-Cv10wXXS.js → dist-BGrtxcme.js} +1 -1
- package/dist/assets/dist-D_CJWYmG.js +1115 -0
- package/dist/assets/{format-CD_iudtm.js → format--HuC16nb.js} +1 -1
- package/dist/assets/{hostInit-C7q5ZVa2.js → hostInit-3uCgRlGz.js} +1 -1
- package/dist/assets/i18n-DMi5B3uV.js +1 -0
- package/dist/assets/{icons-DGI91n0_.js → icons-Q-ksrnyT.js} +1 -1
- package/dist/assets/index-CfI8I1jw.css +2 -0
- package/dist/assets/index-D4P9-tQo.js +4 -0
- package/dist/assets/{linked-devices-model-DdmaPBcx.js → linked-devices-model-JZgr5Mkd.js} +1 -1
- package/dist/assets/{mf-entry-bootstrap-0-72008839.js → mf-entry-bootstrap-0-01002c42.js} +2 -2
- package/dist/assets/mount-Dp5rCpVe.js +1 -0
- package/dist/assets/{notification-rule-status-DorPFV4O.js → notification-rule-status-DIIXoVdn.js} +1 -1
- package/dist/assets/{player-overlays-BhrNQiuF.js → player-overlays-DuVrpJ5X.js} +1 -1
- package/dist/assets/remoteEntry-Cll_F6YF.js +1 -0
- package/dist/assets/src-CDP4x5TP.js +253 -0
- package/dist/assets/{step-inspector-model-CCXeB8Qp.js → step-inspector-model-C76V4MWJ.js} +1 -1
- package/dist/assets/{use-scenes-feed-BlDgjdbB.js → use-scenes-feed-cmZKGNSW.js} +1 -1
- package/dist/assets/{use-stationary-objects-X5LldesX.js → use-stationary-objects-BoUGi1JO.js} +1 -1
- package/dist/assets/{useAdminDeviceRemoval-DPzuxsjZ.js → useAdminDeviceRemoval-DLI0kLAU.js} +1 -1
- package/dist/assets/useEventInvalidation-Dp5rCpVe.js +1 -0
- package/dist/assets/{useNodeUrlSelection-qjXl6qTX.js → useNodeUrlSelection-DMmVYpSE.js} +1 -1
- package/dist/assets/useTemplateSave-j5OtpDNQ.js +1 -0
- package/dist/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-Pzb2Fskx.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-6S8fCuje.js} +2 -2
- package/dist/index.html +8 -8
- package/dist/server/addon.js +620 -354
- package/package.json +2 -2
- package/dist/assets/Addons-B8ltQOv0.js +0 -5
- package/dist/assets/AdminSectionedPage-Bff3Jex6.js +0 -1
- package/dist/assets/AiProfiles-BKV84wBr.js +0 -3
- package/dist/assets/Build-RULxbWDd.js +0 -40
- package/dist/assets/CompositionBlockEditor-E9dJvNcn.js +0 -2
- package/dist/assets/DeviceDetail-DIOgBXBE.js +0 -2
- package/dist/assets/History-LROTE-3F.js +0 -1
- package/dist/assets/Identity-B59zHLA3.js +0 -1
- package/dist/assets/InstancesTable-I61ipsWQ.js +0 -1
- package/dist/assets/IntegrationDetail-rOO7_tpX.js +0 -1
- package/dist/assets/IntegrationWizard-D-DvT_nc.js +0 -1
- package/dist/assets/Integrations-D9I8f_dT.js +0 -1
- package/dist/assets/Locations-Dhv1Kc76.js +0 -3
- package/dist/assets/Notifications-Dqd_UOOG.js +0 -1
- package/dist/assets/Pipeline-BmIjO9-D.js +0 -1
- package/dist/assets/Recordings-DwV6-ANm.js +0 -1
- package/dist/assets/SessionsList-CmpxjyUF.js +0 -2
- package/dist/assets/StorageLocationsTable-BvMGBanJ.js +0 -1
- package/dist/assets/System-JVEKqDtH.js +0 -1
- package/dist/assets/action-draft-BVTi9xo9.js +0 -1
- package/dist/assets/client-D5elicir.js +0 -1114
- package/dist/assets/command-vocab-GNKqYgCN.js +0 -1
- package/dist/assets/create-composition-DTVI2eEi.js +0 -1
- package/dist/assets/device-detail-BRYKrKpX.js +0 -1
- package/dist/assets/device-picker-model-DoO_DpCX.js +0 -1
- package/dist/assets/dist-B6ZlvtdW.js +0 -1114
- package/dist/assets/i18n-BNkA6jrS.js +0 -1
- package/dist/assets/index-BKgdp64z.js +0 -4
- package/dist/assets/index-SyR6jUqA.css +0 -2
- package/dist/assets/mount-DoO_DpCX.js +0 -1
- package/dist/assets/remoteEntry-C0hl0rQE.js +0 -1
- package/dist/assets/src-B_Sz8ZXm.js +0 -252
- package/dist/assets/useEventInvalidation-DoO_DpCX.js +0 -1
- package/dist/assets/useTemplateSave-msQZOGf6.js +0 -1
package/dist/server/addon.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
2
|
import { fileURLToPath } from "node:url";
|
|
3
|
-
//#region ../types/dist/event-category-
|
|
3
|
+
//#region ../types/dist/event-category-Dv-Gcv1f.mjs
|
|
4
4
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
5
5
|
EventCategory["SystemBoot"] = "system.boot";
|
|
6
6
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -441,6 +441,15 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
441
441
|
*/
|
|
442
442
|
EventCategory["DeviceStateChanged"] = "device.state-changed";
|
|
443
443
|
/**
|
|
444
|
+
* A device COMMAND (a vocabulary action, D920/D983) settled in the hub's
|
|
445
|
+
* transition audit (D1022): confirmed, already in place, unconfirmed or
|
|
446
|
+
* failed. Never a device's own change. Payload: `DeviceCommandSettledEvent`
|
|
447
|
+
* (`{deviceId, action, outcome, actor, at}`, no arguments). It feeds
|
|
448
|
+
* the Notification Center `device-command` kind. Telemetry (D8): losing one
|
|
449
|
+
* costs a notification, never state; the audit row is the record.
|
|
450
|
+
*/
|
|
451
|
+
EventCategory["DeviceCommandSettled"] = "device.command-settled";
|
|
452
|
+
/**
|
|
444
453
|
* The NATIVE shadow of a cap a composition has claimed fields of moved
|
|
445
454
|
* (D663). Payload: `{ deviceId, capName, native }` — what the provider
|
|
446
455
|
* wrote, BEFORE the owned fields are overlaid. Owner-only (D224): it is for
|
|
@@ -5912,7 +5921,7 @@ var ZodIssueCode = {
|
|
|
5912
5921
|
var ZodFirstPartyTypeKind;
|
|
5913
5922
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5914
5923
|
//#endregion
|
|
5915
|
-
//#region ../types/dist/sleep-
|
|
5924
|
+
//#region ../types/dist/sleep-DyIxjZZt.mjs
|
|
5916
5925
|
/**
|
|
5917
5926
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5918
5927
|
* window to float samples (D455).
|
|
@@ -6588,6 +6597,13 @@ async function runAddonMigrations(host, migrations, logger, options = {}) {
|
|
|
6588
6597
|
else skipped.push(id);
|
|
6589
6598
|
};
|
|
6590
6599
|
const selected = options.only === void 0 ? null : new Set(options.only);
|
|
6600
|
+
const deferred = /* @__PURE__ */ new Set();
|
|
6601
|
+
const deferredBy = (reason) => {
|
|
6602
|
+
if (selected === null || reason === null) return null;
|
|
6603
|
+
const dep = /^dependency-(?:pending|blocked):(.+)$/.exec(reason)?.[1];
|
|
6604
|
+
if (dep === void 0 || !byId.has(dep)) return null;
|
|
6605
|
+
return !selected.has(dep) || deferred.has(dep) ? dep : null;
|
|
6606
|
+
};
|
|
6591
6607
|
for (const step of declaration.steps) {
|
|
6592
6608
|
if (selected !== null && !selected.has(step.id)) continue;
|
|
6593
6609
|
const bound = byId.get(step.id);
|
|
@@ -6599,6 +6615,19 @@ async function runAddonMigrations(host, migrations, logger, options = {}) {
|
|
|
6599
6615
|
try {
|
|
6600
6616
|
const gate = await host.startMigration({ id: step.id });
|
|
6601
6617
|
if (!gate.proceed) {
|
|
6618
|
+
const waitsFor = deferredBy(gate.reason);
|
|
6619
|
+
if (waitsFor !== null) {
|
|
6620
|
+
log.info("migration deferred: its predecessor runs in another phase of this owner", {
|
|
6621
|
+
tags,
|
|
6622
|
+
meta: {
|
|
6623
|
+
waitsFor,
|
|
6624
|
+
reason: gate.reason
|
|
6625
|
+
}
|
|
6626
|
+
});
|
|
6627
|
+
deferred.add(step.id);
|
|
6628
|
+
skipped.push(step.id);
|
|
6629
|
+
continue;
|
|
6630
|
+
}
|
|
6602
6631
|
log.warn("migration not run", {
|
|
6603
6632
|
tags,
|
|
6604
6633
|
meta: {
|
|
@@ -9333,6 +9362,13 @@ var DeviceTransitionSchema = object({
|
|
|
9333
9362
|
actor: TransitionActorSchema,
|
|
9334
9363
|
command: TransitionCommandSchema.optional()
|
|
9335
9364
|
});
|
|
9365
|
+
object({
|
|
9366
|
+
deviceId: number$1().int(),
|
|
9367
|
+
action: string(),
|
|
9368
|
+
outcome: TransitionOutcomeSchema,
|
|
9369
|
+
actor: TransitionActorSchema,
|
|
9370
|
+
at: number$1()
|
|
9371
|
+
});
|
|
9336
9372
|
var READING_QUANTITIES = [
|
|
9337
9373
|
"temperature",
|
|
9338
9374
|
"pressure",
|
|
@@ -14280,6 +14316,32 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
14280
14316
|
...SYSTEM_CAP_VOCABULARY
|
|
14281
14317
|
};
|
|
14282
14318
|
/**
|
|
14319
|
+
* Vocabulary actions by id (D983). An action step names a vocabulary action
|
|
14320
|
+
* (`cover.open`), never a raw cap method; this is the one lookup that turns the
|
|
14321
|
+
* id into its cap, method and effect — and a persisted legacy `cap` + `method`
|
|
14322
|
+
* pair back into the action id when exactly one action matches.
|
|
14323
|
+
*/
|
|
14324
|
+
function buildIndex() {
|
|
14325
|
+
const byId = /* @__PURE__ */ new Map();
|
|
14326
|
+
for (const [cap, entry] of Object.entries(CAP_VOCABULARY_BY_NAME)) {
|
|
14327
|
+
if (entry.scope !== "device") continue;
|
|
14328
|
+
for (const action of entry.actions ?? []) byId.set(action.id, {
|
|
14329
|
+
cap,
|
|
14330
|
+
action
|
|
14331
|
+
});
|
|
14332
|
+
}
|
|
14333
|
+
return byId;
|
|
14334
|
+
}
|
|
14335
|
+
var index;
|
|
14336
|
+
function actionIndex() {
|
|
14337
|
+
index ??= buildIndex();
|
|
14338
|
+
return index;
|
|
14339
|
+
}
|
|
14340
|
+
/** The vocabulary action with this id, or `undefined`. */
|
|
14341
|
+
function findVocabAction(actionId) {
|
|
14342
|
+
return actionIndex().get(actionId);
|
|
14343
|
+
}
|
|
14344
|
+
/**
|
|
14283
14345
|
* `addon-pages-source` — collection cap exposing per-provider raw page
|
|
14284
14346
|
* declarations. Every addon that contributes a UI page registers a
|
|
14285
14347
|
* provider here. The hub-side singleton aggregator (`addon-pages` cap,
|
|
@@ -43637,21 +43699,23 @@ function convertLegacyWhen(half) {
|
|
|
43637
43699
|
* (instants) and state leaves (durations). It replaces the flat trigger list
|
|
43638
43700
|
* plus the separate condition tree; the firing rule is in that file and in
|
|
43639
43701
|
* ADR "one tree".
|
|
43640
|
-
* - **Actions** — the `wait` and `
|
|
43702
|
+
* - **Actions** — the `wait` and device `command` steps, plus the `{kind:'code'}`
|
|
43641
43703
|
* fragment of §3.2.2. See {@link AutomationActionSchema}.
|
|
43642
43704
|
*
|
|
43643
43705
|
* A recipe stored in the old shape (`triggers` + `conditions`) still LOADS:
|
|
43644
43706
|
* {@link AutomationRecipeSchema} (the parse-anywhere schema) converts it on parse. Nothing writes it.
|
|
43645
43707
|
*/
|
|
43646
43708
|
/**
|
|
43647
|
-
* One action step: `wait`, or a `
|
|
43709
|
+
* One action step: `wait`, or a device `command`.
|
|
43648
43710
|
*
|
|
43649
|
-
* A
|
|
43650
|
-
* `{ $var }` resolved from the run's
|
|
43651
|
-
*
|
|
43652
|
-
*
|
|
43653
|
-
*
|
|
43654
|
-
*
|
|
43711
|
+
* A command step names a VOCABULARY action (`cover.open`) and who it acts on
|
|
43712
|
+
* (D983: `devices`, a `domain`, or a `{ $var }` resolved from the run's
|
|
43713
|
+
* variables). It never names a cap method: the step runner turns the action
|
|
43714
|
+
* id into its cap + method through the vocabulary index when the step runs
|
|
43715
|
+
* (`vocabCall`), the one place that mapping happens. The step runner
|
|
43716
|
+
* (`runSteps`) owns the device-scope check, the stop-at-first-failure and the
|
|
43717
|
+
* variable substitution, once, for every caller — automations, Actions, and
|
|
43718
|
+
* the notification centre, which runs only Actions (planning#473).
|
|
43655
43719
|
*/
|
|
43656
43720
|
/** The longest one `wait` step lasts. It is cut by a restart of the run and does not survive a hub restart. */
|
|
43657
43721
|
var WAIT_MAX_SECONDS = 3600;
|
|
@@ -43660,39 +43724,22 @@ var AutomationWaitStepSchema = object({
|
|
|
43660
43724
|
kind: literal("wait"),
|
|
43661
43725
|
seconds: number$1().min(0).max(WAIT_MAX_SECONDS, WAIT_TOO_LONG)
|
|
43662
43726
|
});
|
|
43663
|
-
/** The legacy `deviceId` of a cap step: still READ, never written (D983). */
|
|
43664
|
-
var LegacyStepDeviceSchema = union([
|
|
43665
|
-
number$1().int(),
|
|
43666
|
-
array(number$1().int()).min(1),
|
|
43667
|
-
object({ $var: string().min(1) })
|
|
43668
|
-
]);
|
|
43669
43727
|
/**
|
|
43670
|
-
* The fields of a
|
|
43671
|
-
*
|
|
43672
|
-
* device); a step is {@link AutomationCapStepSchema}.
|
|
43728
|
+
* The fields of a command step, before the vocabulary check. A step is
|
|
43729
|
+
* {@link AutomationCommandStepSchema}.
|
|
43673
43730
|
*/
|
|
43674
|
-
var
|
|
43675
|
-
kind: literal("
|
|
43676
|
-
/**
|
|
43677
|
-
|
|
43678
|
-
|
|
43679
|
-
|
|
43680
|
-
* cap + method match exactly one vocabulary action.
|
|
43681
|
-
*/
|
|
43682
|
-
actionId: string().min(1).optional(),
|
|
43683
|
-
/** WHO the step acts on. The only shape that is written. */
|
|
43684
|
-
target: ActionTargetSchema.optional(),
|
|
43731
|
+
var AutomationCommandStepBaseSchema = object({
|
|
43732
|
+
kind: literal("command"),
|
|
43733
|
+
/** WHO the step acts on. */
|
|
43734
|
+
target: ActionTargetSchema,
|
|
43735
|
+
/** The vocabulary action this step performs (`cover.open`). */
|
|
43736
|
+
actionId: string().min(1),
|
|
43685
43737
|
/**
|
|
43686
|
-
*
|
|
43687
|
-
*
|
|
43688
|
-
*
|
|
43738
|
+
* The values of the action's OPEN args (`position`, `presetId`); the args
|
|
43739
|
+
* the vocabulary bakes into the action are added when the step runs. Values
|
|
43740
|
+
* may carry `{{vars.x}}` slots, or be exactly `{ $var: 'name' }`, which
|
|
43741
|
+
* SUBSTITUTE and do not evaluate (§3.2.3).
|
|
43689
43742
|
*/
|
|
43690
|
-
deviceId: LegacyStepDeviceSchema.optional(),
|
|
43691
|
-
cap: string().min(1),
|
|
43692
|
-
method: string().min(1),
|
|
43693
|
-
/** Values may carry `{{vars.x}}` slots, or be exactly `{ $var: 'name' }`, which
|
|
43694
|
-
* SUBSTITUTE and do not evaluate (§3.2.3). Anything beyond substitution is
|
|
43695
|
-
* the expression leaf. */
|
|
43696
43743
|
args: record(string(), unknown()).optional(),
|
|
43697
43744
|
/**
|
|
43698
43745
|
* The unit the person picked per arg (display only). `args` always hold the
|
|
@@ -43701,18 +43748,20 @@ var AutomationCapStepBaseSchema = object({
|
|
|
43701
43748
|
*/
|
|
43702
43749
|
argUnits: record(string(), string().min(1)).optional()
|
|
43703
43750
|
});
|
|
43751
|
+
/** The vocabulary check every command step passes: the action exists. */
|
|
43752
|
+
function refineKnownAction(step, ctx) {
|
|
43753
|
+
if (findVocabAction(step.actionId) === void 0) ctx.addIssue({
|
|
43754
|
+
code: "custom",
|
|
43755
|
+
message: `"${step.actionId}" is not a vocabulary action id`,
|
|
43756
|
+
path: ["actionId"]
|
|
43757
|
+
});
|
|
43758
|
+
}
|
|
43704
43759
|
/**
|
|
43705
|
-
* The steps an internal Action may contain:
|
|
43760
|
+
* The steps an internal Action may contain: command and wait, and nothing that can
|
|
43706
43761
|
* call back into an Action — so an Action can never reach itself (no cycles).
|
|
43707
43762
|
* This is the LEAF shape: no condition of its own.
|
|
43708
43763
|
*/
|
|
43709
|
-
var LeafActionStepSchema = discriminatedUnion("kind", [AutomationWaitStepSchema,
|
|
43710
|
-
message: "a cap step needs a target",
|
|
43711
|
-
path: ["target"]
|
|
43712
|
-
}).refine((step) => step.target?.kind !== "domain" || step.actionId !== void 0, {
|
|
43713
|
-
message: "a domain target needs the vocabulary action it applies to (actionId)",
|
|
43714
|
-
path: ["actionId"]
|
|
43715
|
-
})]);
|
|
43764
|
+
var LeafActionStepSchema = discriminatedUnion("kind", [AutomationWaitStepSchema, AutomationCommandStepBaseSchema.superRefine(refineKnownAction)]);
|
|
43716
43765
|
/**
|
|
43717
43766
|
* The optional guard of a step (#472): `if` is the ONE `when` tree (D980), read
|
|
43718
43767
|
* on the state mirror when the step is reached; `else` runs when it is false.
|
|
@@ -43733,13 +43782,7 @@ var GuardedWaitStepSchema = AutomationWaitStepSchema.extend(stepGuardShape).refi
|
|
|
43733
43782
|
* same two step kinds an automation runs, minus a guard that reads the
|
|
43734
43783
|
* automation's trigger, which such a list does not have.
|
|
43735
43784
|
*/
|
|
43736
|
-
var ActionStepSchema = discriminatedUnion("kind", [GuardedWaitStepSchema,
|
|
43737
|
-
message: "a cap step needs a target",
|
|
43738
|
-
path: ["target"]
|
|
43739
|
-
}).refine((step) => step.target?.kind !== "domain" || step.actionId !== void 0, {
|
|
43740
|
-
message: "a domain target needs the vocabulary action it applies to (actionId)",
|
|
43741
|
-
path: ["actionId"]
|
|
43742
|
-
}).refine((step) => step.else === void 0 || step.if !== void 0, elseNeedsIf)]).superRefine((step, ctx) => {
|
|
43785
|
+
var ActionStepSchema = discriminatedUnion("kind", [GuardedWaitStepSchema, AutomationCommandStepBaseSchema.extend(stepGuardShape).superRefine(refineKnownAction).refine((step) => step.else === void 0 || step.if !== void 0, elseNeedsIf)]).superRefine((step, ctx) => {
|
|
43743
43786
|
if (step.if !== void 0 && hasTriggeredByLeaves(step.if)) ctx.addIssue({
|
|
43744
43787
|
code: "custom",
|
|
43745
43788
|
message: TRIGGERED_BY_NEEDS_AUTOMATION,
|
|
@@ -43754,17 +43797,11 @@ var ActionStepSchema = discriminatedUnion("kind", [GuardedWaitStepSchema, Automa
|
|
|
43754
43797
|
var continueOnErrorShape = {
|
|
43755
43798
|
/** A failure of this step is traced `failed-continued` and the next step runs. */
|
|
43756
43799
|
continueOnError: literal(true).optional() };
|
|
43757
|
-
/** An automation's
|
|
43758
|
-
var
|
|
43800
|
+
/** An automation's command step: the shared guarded command step, plus `continueOnError`. */
|
|
43801
|
+
var AutomationGuardedCommandStepSchema = AutomationCommandStepBaseSchema.extend({
|
|
43759
43802
|
...stepGuardShape,
|
|
43760
43803
|
...continueOnErrorShape
|
|
43761
|
-
}).refine((step) => step.
|
|
43762
|
-
message: "a cap step needs a target",
|
|
43763
|
-
path: ["target"]
|
|
43764
|
-
}).refine((step) => step.target?.kind !== "domain" || step.actionId !== void 0, {
|
|
43765
|
-
message: "a domain target needs the vocabulary action it applies to (actionId)",
|
|
43766
|
-
path: ["actionId"]
|
|
43767
|
-
}).refine((step) => step.else === void 0 || step.if !== void 0, elseNeedsIf);
|
|
43804
|
+
}).superRefine(refineKnownAction).refine((step) => step.else === void 0 || step.if !== void 0, elseNeedsIf);
|
|
43768
43805
|
/** End the run here, on purpose. `reason` may carry `{{vars.x}}` slots. */
|
|
43769
43806
|
var AutomationStopStepSchema = object({
|
|
43770
43807
|
kind: literal("stop"),
|
|
@@ -43844,13 +43881,7 @@ function nestTooDeep(issue) {
|
|
|
43844
43881
|
}
|
|
43845
43882
|
var plainStepSchemas = [
|
|
43846
43883
|
AutomationWaitStepSchema.strict(),
|
|
43847
|
-
|
|
43848
|
-
message: "a cap step needs a target",
|
|
43849
|
-
path: ["target"]
|
|
43850
|
-
}).refine((step) => step.target?.kind !== "domain" || step.actionId !== void 0, {
|
|
43851
|
-
message: "a domain target needs the vocabulary action it applies to (actionId)",
|
|
43852
|
-
path: ["actionId"]
|
|
43853
|
-
}),
|
|
43884
|
+
AutomationCommandStepBaseSchema.extend(continueOnErrorShape).strict().superRefine(refineKnownAction),
|
|
43854
43885
|
AutomationStopStepSchema.omit({ if: true }).strict(),
|
|
43855
43886
|
AutomationSetStepSchema.omit({ if: true }).strict(),
|
|
43856
43887
|
AutomationRunActionStepSchema.strict()
|
|
@@ -43861,7 +43892,7 @@ var plainStepSchemas = [
|
|
|
43861
43892
|
*/
|
|
43862
43893
|
var AutomationBranchStepSchema = discriminatedUnion("kind", plainStepSchemas, { error: nestTooDeep });
|
|
43863
43894
|
/** A step that can run beside others: it writes no variable and does not end the run. */
|
|
43864
|
-
var AutomationParallelMemberSchema = AutomationBranchStepSchema.refine((step) => step.kind === "
|
|
43895
|
+
var AutomationParallelMemberSchema = AutomationBranchStepSchema.refine((step) => step.kind === "command" || step.kind === "action" || step.kind === "wait", "a parallel holds device commands, actions and waits only: a set or a stop beside other steps has no order");
|
|
43865
43896
|
/**
|
|
43866
43897
|
* Several steps at once (#500): all are started together and all are awaited.
|
|
43867
43898
|
* A failure fails the run once the others finished, as in a sequence; a member
|
|
@@ -43941,7 +43972,7 @@ var AutomationBodyStepSchema = discriminatedUnion("kind", [
|
|
|
43941
43972
|
var AutomationRepeatStepSchema = repeatSchemaOf(AutomationBodyStepSchema);
|
|
43942
43973
|
var AutomationActionSchema = discriminatedUnion("kind", [
|
|
43943
43974
|
GuardedWaitStepSchema,
|
|
43944
|
-
|
|
43975
|
+
AutomationGuardedCommandStepSchema,
|
|
43945
43976
|
AutomationStopStepSchema,
|
|
43946
43977
|
AutomationSetStepSchema,
|
|
43947
43978
|
chooseSchemaOf(AutomationBodyStepSchema),
|
|
@@ -44012,86 +44043,6 @@ function convertLegacyRecipe(legacy) {
|
|
|
44012
44043
|
};
|
|
44013
44044
|
}
|
|
44014
44045
|
var AutomationRecipeSchema = union([CurrentAutomationRecipeSchema, LegacyAutomationRecipeSchema.transform(convertLegacyRecipe)]);
|
|
44015
|
-
var DETECTION_DESCRIPTIONS = {
|
|
44016
|
-
deviceId: "the camera that saw it",
|
|
44017
|
-
className: "what it saw",
|
|
44018
|
-
trackId: "the track",
|
|
44019
|
-
score: "how sure the detector was",
|
|
44020
|
-
label: "the label it matched (a name, a plate), empty when none"
|
|
44021
|
-
};
|
|
44022
|
-
var STATIONARY_DESCRIPTIONS = {
|
|
44023
|
-
deviceId: "the camera that saw it",
|
|
44024
|
-
className: "what it saw",
|
|
44025
|
-
zones: "the zones it is in",
|
|
44026
|
-
phase: "appeared or departed",
|
|
44027
|
-
entryId: "the stopped object"
|
|
44028
|
-
};
|
|
44029
|
-
var BECOMES_DESCRIPTIONS = {
|
|
44030
|
-
deviceId: "the device that changed",
|
|
44031
|
-
from: "the value before the change, empty when it is not known",
|
|
44032
|
-
to: "the value it changed to"
|
|
44033
|
-
};
|
|
44034
|
-
/**
|
|
44035
|
-
* A fire's payload is offered too, as `data.<path>` (`{{vars.data.channel}}`):
|
|
44036
|
-
* those names depend on the device, so they are not in this list.
|
|
44037
|
-
*/
|
|
44038
|
-
var FIRED_DESCRIPTIONS = {
|
|
44039
|
-
deviceId: "the device that fired",
|
|
44040
|
-
eventType: "the event, as the device names it",
|
|
44041
|
-
sourceId: "the part of the device that fired (a button), empty when it names none",
|
|
44042
|
-
eventKind: "the kind of press (press, long-press …), empty when the device declares none"
|
|
44043
|
-
};
|
|
44044
|
-
function describe$1(descriptions) {
|
|
44045
|
-
return Object.entries(descriptions).map(([name, description]) => ({
|
|
44046
|
-
name,
|
|
44047
|
-
description
|
|
44048
|
-
}));
|
|
44049
|
-
}
|
|
44050
|
-
describe$1(DETECTION_DESCRIPTIONS);
|
|
44051
|
-
describe$1(STATIONARY_DESCRIPTIONS);
|
|
44052
|
-
describe$1(FIRED_DESCRIPTIONS).map((v) => v.name === "deviceId" ? {
|
|
44053
|
-
...v,
|
|
44054
|
-
hintKey: "firedDeviceId"
|
|
44055
|
-
} : v);
|
|
44056
|
-
describe$1(BECOMES_DESCRIPTIONS).map((v) => v.name === "deviceId" ? {
|
|
44057
|
-
...v,
|
|
44058
|
-
hintKey: "becomesDeviceId"
|
|
44059
|
-
} : v);
|
|
44060
|
-
new Set(Object.values(COCO_TO_MACRO.mapping));
|
|
44061
|
-
/**
|
|
44062
|
-
* Generic stateless event emitter. Installed on a `DeviceType.EventEmitter`
|
|
44063
|
-
* device. Carries the device's EXACT declared event vocabulary verbatim
|
|
44064
|
-
* (NO normalization). Two shapes:
|
|
44065
|
-
* - structured source (HA `event.*` entity) → `vocabulary` is the fixed
|
|
44066
|
-
* declared set (e.g. press_short, press_long, …).
|
|
44067
|
-
* - generic/legacy source (HA bus events, e.g. zha_event) → `vocabulary`
|
|
44068
|
-
* is [] (open) and `lastEvent.data` carries the complex payload.
|
|
44069
|
-
* `vocabulary` (D1044) names each event for a person and types it for a
|
|
44070
|
-
* rule; `eventTypes` is its list of native tokens, kept for older readers.
|
|
44071
|
-
* A fire names the part of the device it came from in `sourceId` when the
|
|
44072
|
-
* vocabulary declares sources (a remote's buttons).
|
|
44073
|
-
* `seq` is monotonic so two identical events still produce distinct slice writes.
|
|
44074
|
-
*/
|
|
44075
|
-
var EventFireSchema = object({
|
|
44076
|
-
deviceId: number$1(),
|
|
44077
|
-
eventType: string(),
|
|
44078
|
-
sourceId: string().optional(),
|
|
44079
|
-
data: record(string(), unknown()).nullable(),
|
|
44080
|
-
timestamp: number$1().meta(readingMeta("none")),
|
|
44081
|
-
seq: number$1().meta(readingMeta("count"))
|
|
44082
|
-
});
|
|
44083
|
-
var EventEmitterStatusSchema = object({
|
|
44084
|
-
eventTypes: array(string()),
|
|
44085
|
-
/**
|
|
44086
|
-
* Required of a provider by the type. A status written before the field
|
|
44087
|
-
* existed still parses, as an empty vocabulary: read it through
|
|
44088
|
-
* `readEventVocabulary`, which then answers with the plain tokens.
|
|
44089
|
-
*/
|
|
44090
|
-
vocabulary: array(EventVocabularyEntrySchema).default([]),
|
|
44091
|
-
lastEvent: EventFireSchema.nullable(),
|
|
44092
|
-
eventCountSinceStart: number$1().meta(readingMeta("count"))
|
|
44093
|
-
});
|
|
44094
|
-
DeviceType.EventEmitter;
|
|
44095
44046
|
/**
|
|
44096
44047
|
* Schedulers (D983) — an entity that performs actions over the day.
|
|
44097
44048
|
*
|
|
@@ -44490,6 +44441,86 @@ var AutomationStateDocSchema = object({
|
|
|
44490
44441
|
lastRunStartedAt: number$1().nullable(),
|
|
44491
44442
|
traces: array(AutomationRunTraceSchema)
|
|
44492
44443
|
});
|
|
44444
|
+
var DETECTION_DESCRIPTIONS = {
|
|
44445
|
+
deviceId: "the camera that saw it",
|
|
44446
|
+
className: "what it saw",
|
|
44447
|
+
trackId: "the track",
|
|
44448
|
+
score: "how sure the detector was",
|
|
44449
|
+
label: "the label it matched (a name, a plate), empty when none"
|
|
44450
|
+
};
|
|
44451
|
+
var STATIONARY_DESCRIPTIONS = {
|
|
44452
|
+
deviceId: "the camera that saw it",
|
|
44453
|
+
className: "what it saw",
|
|
44454
|
+
zones: "the zones it is in",
|
|
44455
|
+
phase: "appeared or departed",
|
|
44456
|
+
entryId: "the stopped object"
|
|
44457
|
+
};
|
|
44458
|
+
var BECOMES_DESCRIPTIONS = {
|
|
44459
|
+
deviceId: "the device that changed",
|
|
44460
|
+
from: "the value before the change, empty when it is not known",
|
|
44461
|
+
to: "the value it changed to"
|
|
44462
|
+
};
|
|
44463
|
+
/**
|
|
44464
|
+
* A fire's payload is offered too, as `data.<path>` (`{{vars.data.channel}}`):
|
|
44465
|
+
* those names depend on the device, so they are not in this list.
|
|
44466
|
+
*/
|
|
44467
|
+
var FIRED_DESCRIPTIONS = {
|
|
44468
|
+
deviceId: "the device that fired",
|
|
44469
|
+
eventType: "the event, as the device names it",
|
|
44470
|
+
sourceId: "the part of the device that fired (a button), empty when it names none",
|
|
44471
|
+
eventKind: "the kind of press (press, long-press …), empty when the device declares none"
|
|
44472
|
+
};
|
|
44473
|
+
function describe$1(descriptions) {
|
|
44474
|
+
return Object.entries(descriptions).map(([name, description]) => ({
|
|
44475
|
+
name,
|
|
44476
|
+
description
|
|
44477
|
+
}));
|
|
44478
|
+
}
|
|
44479
|
+
describe$1(DETECTION_DESCRIPTIONS);
|
|
44480
|
+
describe$1(STATIONARY_DESCRIPTIONS);
|
|
44481
|
+
describe$1(FIRED_DESCRIPTIONS).map((v) => v.name === "deviceId" ? {
|
|
44482
|
+
...v,
|
|
44483
|
+
hintKey: "firedDeviceId"
|
|
44484
|
+
} : v);
|
|
44485
|
+
describe$1(BECOMES_DESCRIPTIONS).map((v) => v.name === "deviceId" ? {
|
|
44486
|
+
...v,
|
|
44487
|
+
hintKey: "becomesDeviceId"
|
|
44488
|
+
} : v);
|
|
44489
|
+
new Set(Object.values(COCO_TO_MACRO.mapping));
|
|
44490
|
+
/**
|
|
44491
|
+
* Generic stateless event emitter. Installed on a `DeviceType.EventEmitter`
|
|
44492
|
+
* device. Carries the device's EXACT declared event vocabulary verbatim
|
|
44493
|
+
* (NO normalization). Two shapes:
|
|
44494
|
+
* - structured source (HA `event.*` entity) → `vocabulary` is the fixed
|
|
44495
|
+
* declared set (e.g. press_short, press_long, …).
|
|
44496
|
+
* - generic/legacy source (HA bus events, e.g. zha_event) → `vocabulary`
|
|
44497
|
+
* is [] (open) and `lastEvent.data` carries the complex payload.
|
|
44498
|
+
* `vocabulary` (D1044) names each event for a person and types it for a
|
|
44499
|
+
* rule; `eventTypes` is its list of native tokens, kept for older readers.
|
|
44500
|
+
* A fire names the part of the device it came from in `sourceId` when the
|
|
44501
|
+
* vocabulary declares sources (a remote's buttons).
|
|
44502
|
+
* `seq` is monotonic so two identical events still produce distinct slice writes.
|
|
44503
|
+
*/
|
|
44504
|
+
var EventFireSchema = object({
|
|
44505
|
+
deviceId: number$1(),
|
|
44506
|
+
eventType: string(),
|
|
44507
|
+
sourceId: string().optional(),
|
|
44508
|
+
data: record(string(), unknown()).nullable(),
|
|
44509
|
+
timestamp: number$1().meta(readingMeta("none")),
|
|
44510
|
+
seq: number$1().meta(readingMeta("count"))
|
|
44511
|
+
});
|
|
44512
|
+
var EventEmitterStatusSchema = object({
|
|
44513
|
+
eventTypes: array(string()),
|
|
44514
|
+
/**
|
|
44515
|
+
* Required of a provider by the type. A status written before the field
|
|
44516
|
+
* existed still parses, as an empty vocabulary: read it through
|
|
44517
|
+
* `readEventVocabulary`, which then answers with the plain tokens.
|
|
44518
|
+
*/
|
|
44519
|
+
vocabulary: array(EventVocabularyEntrySchema).default([]),
|
|
44520
|
+
lastEvent: EventFireSchema.nullable(),
|
|
44521
|
+
eventCountSinceStart: number$1().meta(readingMeta("count"))
|
|
44522
|
+
});
|
|
44523
|
+
DeviceType.EventEmitter;
|
|
44493
44524
|
/**
|
|
44494
44525
|
* Actions — named, runnable things an operator (or an automation) can start,
|
|
44495
44526
|
* declared as LIST ENTRIES, never as devices.
|
|
@@ -44669,6 +44700,177 @@ var UnitWarningSchema = object({
|
|
|
44669
44700
|
assumedUnit: string(),
|
|
44670
44701
|
message: string()
|
|
44671
44702
|
});
|
|
44703
|
+
/**
|
|
44704
|
+
* `device-export` — collection cap for addons that export camstack
|
|
44705
|
+
* devices to external ecosystems (HomeAssistant via MQTT discovery,
|
|
44706
|
+
* HomeKit/HAP, Alexa Smart Home, …).
|
|
44707
|
+
*
|
|
44708
|
+
* No `ecosystem` enum — the addon id identifies the export target.
|
|
44709
|
+
* Each addon owns its mapping logic in its own settings UI. The cap
|
|
44710
|
+
* exposes only the COMMON surface: link state, supported device
|
|
44711
|
+
* kinds (so the UI can filter the device picker), and per-device
|
|
44712
|
+
* expose/unexpose.
|
|
44713
|
+
*
|
|
44714
|
+
* INSTANCES. One export addon can serve several independent targets (a
|
|
44715
|
+
* HomeKit bridge, a Home Assistant broker). `listInstances` names them.
|
|
44716
|
+
* `instanceId` on a READ is optional: absent = the whole addon (linked if any
|
|
44717
|
+
* enabled instance is, `exposedDeviceCount` = distinct devices, `setup` = the
|
|
44718
|
+
* default instance's); present = that instance; an id the provider does not
|
|
44719
|
+
* serve is refused with `ExportInstanceUnknownError` (`export-instance-unknown`),
|
|
44720
|
+
* never answered empty. `instanceId` on a WRITE is REQUIRED: a membership
|
|
44721
|
+
* change always names the target it changes. A single-instance provider
|
|
44722
|
+
* accepts an absent id on a read or its own id, and refuses any other.
|
|
44723
|
+
*/
|
|
44724
|
+
/** Which instance of an export addon a call addresses. Absent on a read = the whole addon. */
|
|
44725
|
+
var InstanceIdSchema$1 = string().min(1);
|
|
44726
|
+
var InstancePinSchema = object({ instanceId: InstanceIdSchema$1.optional() });
|
|
44727
|
+
/** One independent export target of an addon. */
|
|
44728
|
+
var ExportInstanceSchema = object({
|
|
44729
|
+
instanceId: InstanceIdSchema$1,
|
|
44730
|
+
name: string(),
|
|
44731
|
+
enabled: boolean(),
|
|
44732
|
+
kind: string().optional(),
|
|
44733
|
+
/**
|
|
44734
|
+
* What this instance's platform accepts as a device name, in one operator-facing sentence
|
|
44735
|
+
* (D1049). The derived "Name on <instance>" field shows it; absent = the field says nothing
|
|
44736
|
+
* about the rule.
|
|
44737
|
+
*/
|
|
44738
|
+
nameRule: string().optional()
|
|
44739
|
+
});
|
|
44740
|
+
var LinkStateSchema = _enum([
|
|
44741
|
+
"unlinked",
|
|
44742
|
+
"linked",
|
|
44743
|
+
"error"
|
|
44744
|
+
]);
|
|
44745
|
+
/**
|
|
44746
|
+
* A single label/value row surfaced in the export panel's "Setup"
|
|
44747
|
+
* section. Rendered with a copy-to-clipboard button. `secret: true`
|
|
44748
|
+
* rows are masked by default with a reveal toggle (client ids,
|
|
44749
|
+
* secrets, …).
|
|
44750
|
+
*/
|
|
44751
|
+
var ExportSetupFieldSchema = object({
|
|
44752
|
+
label: string(),
|
|
44753
|
+
value: string(),
|
|
44754
|
+
/** Mask the value by default + render a reveal toggle (client id, secrets). */
|
|
44755
|
+
secret: boolean().optional()
|
|
44756
|
+
});
|
|
44757
|
+
/**
|
|
44758
|
+
* Generic, addon-agnostic pairing/account block. Any export addon can
|
|
44759
|
+
* surface a scannable QR, a set of copyable label/value rows, and a
|
|
44760
|
+
* free-form operator note — the `DeviceExportPanel` renders whatever
|
|
44761
|
+
* the provider supplies and skips the section entirely when `setup`
|
|
44762
|
+
* is unset.
|
|
44763
|
+
*/
|
|
44764
|
+
var ExportSetupSchema = object({
|
|
44765
|
+
/** A string to render as a scannable QR — HAP `X-HM://…` URI, a pairing URL, etc. Omitted when there's nothing to scan. */
|
|
44766
|
+
qr: string().optional(),
|
|
44767
|
+
/** Label/value rows shown with a copy button (HAP setup code, OAuth URLs, client id, linked-account count, …). */
|
|
44768
|
+
fields: array(ExportSetupFieldSchema).readonly().optional(),
|
|
44769
|
+
/** Free-form operator instructions rendered above the fields. */
|
|
44770
|
+
note: string().optional()
|
|
44771
|
+
});
|
|
44772
|
+
var DeviceExportStatusSchema = object({
|
|
44773
|
+
linkState: LinkStateSchema,
|
|
44774
|
+
exposedDeviceCount: number$1(),
|
|
44775
|
+
error: string().optional(),
|
|
44776
|
+
/**
|
|
44777
|
+
* Optional pairing/account info the panel renders in a generic
|
|
44778
|
+
* "Setup" section. Addon-agnostic — the addon id identifies the
|
|
44779
|
+
* export target, never an `ecosystem` key here.
|
|
44780
|
+
*/
|
|
44781
|
+
setup: ExportSetupSchema.optional()
|
|
44782
|
+
});
|
|
44783
|
+
var DeviceKindSchema = string();
|
|
44784
|
+
/**
|
|
44785
|
+
* EXPOSED NAME. What one instance calls a device on its platform, when it should not be the
|
|
44786
|
+
* device's own name. The exporter owns it: it is stored per instance in the exporter's per-device
|
|
44787
|
+
* store (D865), validated by the exporter against its platform's naming rules, and never reaches
|
|
44788
|
+
* the exported id — a rename updates the SAME device on the platform, never a second one.
|
|
44789
|
+
* Blank or `null` = the device's own name. A name the platform would refuse is refused with
|
|
44790
|
+
* `ExportNameRefusedError` (`export-name-refused`), whose message says why.
|
|
44791
|
+
*/
|
|
44792
|
+
var ExposedDeviceSchema = object({
|
|
44793
|
+
deviceId: string(),
|
|
44794
|
+
exposedAs: string().optional(),
|
|
44795
|
+
/** The operator's name for this device on this instance; absent = the device's own name. */
|
|
44796
|
+
exposedName: string().optional(),
|
|
44797
|
+
capabilities: array(string()).optional()
|
|
44798
|
+
});
|
|
44799
|
+
var ExposeInputSchema = object({
|
|
44800
|
+
instanceId: InstanceIdSchema$1,
|
|
44801
|
+
deviceId: string(),
|
|
44802
|
+
capabilities: array(string()).optional(),
|
|
44803
|
+
/** Set the exposed name in the same call; absent = leave it as it is, blank/null = clear it. */
|
|
44804
|
+
exposedName: string().nullable().optional()
|
|
44805
|
+
});
|
|
44806
|
+
var SetExposedNameInputSchema = object({
|
|
44807
|
+
instanceId: InstanceIdSchema$1,
|
|
44808
|
+
deviceId: string(),
|
|
44809
|
+
/** Blank or null = the device's own name. */
|
|
44810
|
+
name: string().nullable(),
|
|
44811
|
+
/**
|
|
44812
|
+
* Validate only: refuse exactly as a real call would, write nothing. A caller saving several
|
|
44813
|
+
* names at once checks every one first, so one refusal writes none (D1049).
|
|
44814
|
+
*/
|
|
44815
|
+
dryRun: boolean().optional()
|
|
44816
|
+
});
|
|
44817
|
+
var UnexposeInputSchema = object({
|
|
44818
|
+
instanceId: InstanceIdSchema$1,
|
|
44819
|
+
deviceId: string()
|
|
44820
|
+
});
|
|
44821
|
+
/**
|
|
44822
|
+
* What an exporter may expose besides devices (D968). An action and a
|
|
44823
|
+
* notification target are LIST ENTRIES, never devices (D954): they enter an
|
|
44824
|
+
* exporter's own selection, not the device registry.
|
|
44825
|
+
*/
|
|
44826
|
+
var ExportEntityKindSchema = _enum([
|
|
44827
|
+
"device",
|
|
44828
|
+
"action",
|
|
44829
|
+
"notifier"
|
|
44830
|
+
]);
|
|
44831
|
+
var ExportEntityRefSchema = discriminatedUnion("kind", [
|
|
44832
|
+
object({
|
|
44833
|
+
kind: literal("device"),
|
|
44834
|
+
deviceId: string()
|
|
44835
|
+
}),
|
|
44836
|
+
object({
|
|
44837
|
+
kind: literal("action"),
|
|
44838
|
+
actionId: string().min(1)
|
|
44839
|
+
}),
|
|
44840
|
+
object({
|
|
44841
|
+
kind: literal("notifier"),
|
|
44842
|
+
targetId: string().min(1)
|
|
44843
|
+
})
|
|
44844
|
+
]);
|
|
44845
|
+
var ExposedEntitySchema = object({
|
|
44846
|
+
entity: ExportEntityRefSchema,
|
|
44847
|
+
exposedAs: string().optional()
|
|
44848
|
+
});
|
|
44849
|
+
var ExposeEntityInputSchema = object({
|
|
44850
|
+
instanceId: InstanceIdSchema$1,
|
|
44851
|
+
entity: ExportEntityRefSchema
|
|
44852
|
+
});
|
|
44853
|
+
var UnexposeEntityInputSchema = object({
|
|
44854
|
+
instanceId: InstanceIdSchema$1,
|
|
44855
|
+
entity: ExportEntityRefSchema
|
|
44856
|
+
});
|
|
44857
|
+
method(InstancePinSchema, DeviceExportStatusSchema), method(_void(), array(ExportInstanceSchema)), method(InstancePinSchema, array(DeviceKindSchema)), method(InstancePinSchema, array(ExposedDeviceSchema)), method(ExposeInputSchema, _void(), {
|
|
44858
|
+
kind: "mutation",
|
|
44859
|
+
auth: "admin"
|
|
44860
|
+
}), method(UnexposeInputSchema, _void(), {
|
|
44861
|
+
kind: "mutation",
|
|
44862
|
+
auth: "admin"
|
|
44863
|
+
}), method(SetExposedNameInputSchema, _void(), {
|
|
44864
|
+
kind: "mutation",
|
|
44865
|
+
auth: "admin"
|
|
44866
|
+
}), optionalMethod(_void(), array(ExportEntityKindSchema)), optionalMethod(InstancePinSchema, array(ExposedEntitySchema)), optionalMethod(ExposeEntityInputSchema, _void(), {
|
|
44867
|
+
kind: "mutation",
|
|
44868
|
+
auth: "admin"
|
|
44869
|
+
}), optionalMethod(UnexposeEntityInputSchema, _void(), {
|
|
44870
|
+
kind: "mutation",
|
|
44871
|
+
auth: "admin"
|
|
44872
|
+
});
|
|
44873
|
+
record(string(), string());
|
|
44672
44874
|
_enum([
|
|
44673
44875
|
"automation",
|
|
44674
44876
|
"action",
|
|
@@ -51254,144 +51456,6 @@ method(object({
|
|
|
51254
51456
|
kind: "mutation",
|
|
51255
51457
|
auth: "admin"
|
|
51256
51458
|
});
|
|
51257
|
-
/**
|
|
51258
|
-
* `device-export` — collection cap for addons that export camstack
|
|
51259
|
-
* devices to external ecosystems (HomeAssistant via MQTT discovery,
|
|
51260
|
-
* HomeKit/HAP, Alexa Smart Home, …).
|
|
51261
|
-
*
|
|
51262
|
-
* No `ecosystem` enum — the addon id identifies the export target.
|
|
51263
|
-
* Each addon owns its mapping logic in its own settings UI. The cap
|
|
51264
|
-
* exposes only the COMMON surface: link state, supported device
|
|
51265
|
-
* kinds (so the UI can filter the device picker), and per-device
|
|
51266
|
-
* expose/unexpose.
|
|
51267
|
-
*
|
|
51268
|
-
* INSTANCES. One export addon can serve several independent targets (a
|
|
51269
|
-
* HomeKit bridge, a Home Assistant broker). `listInstances` names them.
|
|
51270
|
-
* `instanceId` on a READ is optional: absent = the whole addon (linked if any
|
|
51271
|
-
* enabled instance is, `exposedDeviceCount` = distinct devices, `setup` = the
|
|
51272
|
-
* default instance's); present = that instance; an id the provider does not
|
|
51273
|
-
* serve is refused with `ExportInstanceUnknownError` (`export-instance-unknown`),
|
|
51274
|
-
* never answered empty. `instanceId` on a WRITE is REQUIRED: a membership
|
|
51275
|
-
* change always names the target it changes. A single-instance provider
|
|
51276
|
-
* accepts an absent id on a read or its own id, and refuses any other.
|
|
51277
|
-
*/
|
|
51278
|
-
/** Which instance of an export addon a call addresses. Absent on a read = the whole addon. */
|
|
51279
|
-
var InstanceIdSchema$1 = string().min(1);
|
|
51280
|
-
var InstancePinSchema = object({ instanceId: InstanceIdSchema$1.optional() });
|
|
51281
|
-
/** One independent export target of an addon. */
|
|
51282
|
-
var ExportInstanceSchema = object({
|
|
51283
|
-
instanceId: InstanceIdSchema$1,
|
|
51284
|
-
name: string(),
|
|
51285
|
-
enabled: boolean(),
|
|
51286
|
-
kind: string().optional()
|
|
51287
|
-
});
|
|
51288
|
-
var LinkStateSchema = _enum([
|
|
51289
|
-
"unlinked",
|
|
51290
|
-
"linked",
|
|
51291
|
-
"error"
|
|
51292
|
-
]);
|
|
51293
|
-
/**
|
|
51294
|
-
* A single label/value row surfaced in the export panel's "Setup"
|
|
51295
|
-
* section. Rendered with a copy-to-clipboard button. `secret: true`
|
|
51296
|
-
* rows are masked by default with a reveal toggle (client ids,
|
|
51297
|
-
* secrets, …).
|
|
51298
|
-
*/
|
|
51299
|
-
var ExportSetupFieldSchema = object({
|
|
51300
|
-
label: string(),
|
|
51301
|
-
value: string(),
|
|
51302
|
-
/** Mask the value by default + render a reveal toggle (client id, secrets). */
|
|
51303
|
-
secret: boolean().optional()
|
|
51304
|
-
});
|
|
51305
|
-
/**
|
|
51306
|
-
* Generic, addon-agnostic pairing/account block. Any export addon can
|
|
51307
|
-
* surface a scannable QR, a set of copyable label/value rows, and a
|
|
51308
|
-
* free-form operator note — the `DeviceExportPanel` renders whatever
|
|
51309
|
-
* the provider supplies and skips the section entirely when `setup`
|
|
51310
|
-
* is unset.
|
|
51311
|
-
*/
|
|
51312
|
-
var ExportSetupSchema = object({
|
|
51313
|
-
/** A string to render as a scannable QR — HAP `X-HM://…` URI, a pairing URL, etc. Omitted when there's nothing to scan. */
|
|
51314
|
-
qr: string().optional(),
|
|
51315
|
-
/** Label/value rows shown with a copy button (HAP setup code, OAuth URLs, client id, linked-account count, …). */
|
|
51316
|
-
fields: array(ExportSetupFieldSchema).readonly().optional(),
|
|
51317
|
-
/** Free-form operator instructions rendered above the fields. */
|
|
51318
|
-
note: string().optional()
|
|
51319
|
-
});
|
|
51320
|
-
var DeviceExportStatusSchema = object({
|
|
51321
|
-
linkState: LinkStateSchema,
|
|
51322
|
-
exposedDeviceCount: number$1(),
|
|
51323
|
-
error: string().optional(),
|
|
51324
|
-
/**
|
|
51325
|
-
* Optional pairing/account info the panel renders in a generic
|
|
51326
|
-
* "Setup" section. Addon-agnostic — the addon id identifies the
|
|
51327
|
-
* export target, never an `ecosystem` key here.
|
|
51328
|
-
*/
|
|
51329
|
-
setup: ExportSetupSchema.optional()
|
|
51330
|
-
});
|
|
51331
|
-
var DeviceKindSchema = string();
|
|
51332
|
-
var ExposedDeviceSchema = object({
|
|
51333
|
-
deviceId: string(),
|
|
51334
|
-
exposedAs: string().optional(),
|
|
51335
|
-
capabilities: array(string()).optional()
|
|
51336
|
-
});
|
|
51337
|
-
var ExposeInputSchema = object({
|
|
51338
|
-
instanceId: InstanceIdSchema$1,
|
|
51339
|
-
deviceId: string(),
|
|
51340
|
-
capabilities: array(string()).optional()
|
|
51341
|
-
});
|
|
51342
|
-
var UnexposeInputSchema = object({
|
|
51343
|
-
instanceId: InstanceIdSchema$1,
|
|
51344
|
-
deviceId: string()
|
|
51345
|
-
});
|
|
51346
|
-
/**
|
|
51347
|
-
* What an exporter may expose besides devices (D968). An action and a
|
|
51348
|
-
* notification target are LIST ENTRIES, never devices (D954): they enter an
|
|
51349
|
-
* exporter's own selection, not the device registry.
|
|
51350
|
-
*/
|
|
51351
|
-
var ExportEntityKindSchema = _enum([
|
|
51352
|
-
"device",
|
|
51353
|
-
"action",
|
|
51354
|
-
"notifier"
|
|
51355
|
-
]);
|
|
51356
|
-
var ExportEntityRefSchema = discriminatedUnion("kind", [
|
|
51357
|
-
object({
|
|
51358
|
-
kind: literal("device"),
|
|
51359
|
-
deviceId: string()
|
|
51360
|
-
}),
|
|
51361
|
-
object({
|
|
51362
|
-
kind: literal("action"),
|
|
51363
|
-
actionId: string().min(1)
|
|
51364
|
-
}),
|
|
51365
|
-
object({
|
|
51366
|
-
kind: literal("notifier"),
|
|
51367
|
-
targetId: string().min(1)
|
|
51368
|
-
})
|
|
51369
|
-
]);
|
|
51370
|
-
var ExposedEntitySchema = object({
|
|
51371
|
-
entity: ExportEntityRefSchema,
|
|
51372
|
-
exposedAs: string().optional()
|
|
51373
|
-
});
|
|
51374
|
-
var ExposeEntityInputSchema = object({
|
|
51375
|
-
instanceId: InstanceIdSchema$1,
|
|
51376
|
-
entity: ExportEntityRefSchema
|
|
51377
|
-
});
|
|
51378
|
-
var UnexposeEntityInputSchema = object({
|
|
51379
|
-
instanceId: InstanceIdSchema$1,
|
|
51380
|
-
entity: ExportEntityRefSchema
|
|
51381
|
-
});
|
|
51382
|
-
method(InstancePinSchema, DeviceExportStatusSchema), method(_void(), array(ExportInstanceSchema)), method(InstancePinSchema, array(DeviceKindSchema)), method(InstancePinSchema, array(ExposedDeviceSchema)), method(ExposeInputSchema, _void(), {
|
|
51383
|
-
kind: "mutation",
|
|
51384
|
-
auth: "admin"
|
|
51385
|
-
}), method(UnexposeInputSchema, _void(), {
|
|
51386
|
-
kind: "mutation",
|
|
51387
|
-
auth: "admin"
|
|
51388
|
-
}), optionalMethod(_void(), array(ExportEntityKindSchema)), optionalMethod(InstancePinSchema, array(ExposedEntitySchema)), optionalMethod(ExposeEntityInputSchema, _void(), {
|
|
51389
|
-
kind: "mutation",
|
|
51390
|
-
auth: "admin"
|
|
51391
|
-
}), optionalMethod(UnexposeEntityInputSchema, _void(), {
|
|
51392
|
-
kind: "mutation",
|
|
51393
|
-
auth: "admin"
|
|
51394
|
-
});
|
|
51395
51459
|
var DeviceAliasSchema = string().max(64).regex(/^[a-z][a-z0-9_]*$/);
|
|
51396
51460
|
var DeviceTemplateSchema = string().min(1).max(4096);
|
|
51397
51461
|
/** One value a caller hands the renderer for `thisDevice`. */
|
|
@@ -55540,6 +55604,128 @@ var StateLookSchema = object({
|
|
|
55540
55604
|
background: _enum(HERO_BACKGROUNDS),
|
|
55541
55605
|
animation: HeroAnimationSchema
|
|
55542
55606
|
});
|
|
55607
|
+
/** A string in both languages, as the cap vocabulary writes it (D920): no `t()` in the model. */
|
|
55608
|
+
var HeroTextSchema = object({
|
|
55609
|
+
en: string(),
|
|
55610
|
+
it: string()
|
|
55611
|
+
});
|
|
55612
|
+
/**
|
|
55613
|
+
* The ONE measurement a simple sensor shows (card wave, phase 1).
|
|
55614
|
+
*
|
|
55615
|
+
* A sensor that measures a single quantity (a temperature, a humidity, a power,
|
|
55616
|
+
* a contact, a text state) is drawn as that reading, once, big, inside a scene
|
|
55617
|
+
* whose motion says what the number means: heat rising when hot, flakes when
|
|
55618
|
+
* cold, a wire flowing at the speed of the power, a ring while a window is
|
|
55619
|
+
* open. Everything the card draws is decided here; a client only paints it.
|
|
55620
|
+
*/
|
|
55621
|
+
var HERO_MEASUREMENT_QUANTITIES = [
|
|
55622
|
+
"temperature",
|
|
55623
|
+
"humidity",
|
|
55624
|
+
"power",
|
|
55625
|
+
"contact",
|
|
55626
|
+
"text"
|
|
55627
|
+
];
|
|
55628
|
+
/** How a temperature reads to a person; drives the heat or the cold scene. */
|
|
55629
|
+
var HERO_MEASUREMENT_BANDS = [
|
|
55630
|
+
"hot",
|
|
55631
|
+
"mild",
|
|
55632
|
+
"cold"
|
|
55633
|
+
];
|
|
55634
|
+
/** `updated` = the value was last read then ("2 min ago"); `changed` = it has held since then ("for 12 min"). */
|
|
55635
|
+
var HERO_MEASUREMENT_SINCE_KINDS = ["updated", "changed"];
|
|
55636
|
+
var HeroMeasurementReadingSchema = object({
|
|
55637
|
+
value: number$1(),
|
|
55638
|
+
quantity: ReadingQuantitySchema
|
|
55639
|
+
});
|
|
55640
|
+
var HeroMeasurementSchema = object({
|
|
55641
|
+
quantity: _enum(HERO_MEASUREMENT_QUANTITIES),
|
|
55642
|
+
reading: HeroMeasurementReadingSchema.nullable(),
|
|
55643
|
+
icon: IconKeySchema.nullable(),
|
|
55644
|
+
value: HeroTextSchema,
|
|
55645
|
+
unit: string().nullable(),
|
|
55646
|
+
band: _enum(HERO_MEASUREMENT_BANDS).nullable(),
|
|
55647
|
+
level: number$1().min(0).max(1).nullable(),
|
|
55648
|
+
word: HeroTextSchema,
|
|
55649
|
+
tone: _enum(HERO_TONES),
|
|
55650
|
+
since: number$1().nullable(),
|
|
55651
|
+
sinceKind: _enum(HERO_MEASUREMENT_SINCE_KINDS),
|
|
55652
|
+
historyKey: string().nullable()
|
|
55653
|
+
});
|
|
55654
|
+
var same$2 = (text) => t(text, text);
|
|
55655
|
+
var clamp01$1 = (n) => Math.min(1, Math.max(0, n));
|
|
55656
|
+
var trimmed = (n, digits) => String(Number(n.toFixed(digits)));
|
|
55657
|
+
function temperatureBand(celsius) {
|
|
55658
|
+
if (celsius < 12) return "cold";
|
|
55659
|
+
if (celsius > 28) return "hot";
|
|
55660
|
+
return "mild";
|
|
55661
|
+
}
|
|
55662
|
+
var BAND_WORD = {
|
|
55663
|
+
hot: t("Hot", "Caldo"),
|
|
55664
|
+
mild: t("Normal", "Normale"),
|
|
55665
|
+
cold: t("Cold", "Freddo")
|
|
55666
|
+
};
|
|
55667
|
+
var BAND_TONE = {
|
|
55668
|
+
hot: "warning",
|
|
55669
|
+
mild: "muted",
|
|
55670
|
+
cold: "info"
|
|
55671
|
+
};
|
|
55672
|
+
function temperatureMeasurement(celsius, since) {
|
|
55673
|
+
const band = temperatureBand(celsius);
|
|
55674
|
+
return {
|
|
55675
|
+
quantity: "temperature",
|
|
55676
|
+
reading: {
|
|
55677
|
+
value: celsius,
|
|
55678
|
+
quantity: "temperature"
|
|
55679
|
+
},
|
|
55680
|
+
icon: "thermometer",
|
|
55681
|
+
value: same$2(trimmed(celsius, 1)),
|
|
55682
|
+
unit: "°C",
|
|
55683
|
+
band,
|
|
55684
|
+
level: null,
|
|
55685
|
+
word: BAND_WORD[band],
|
|
55686
|
+
tone: BAND_TONE[band],
|
|
55687
|
+
since,
|
|
55688
|
+
sinceKind: "updated",
|
|
55689
|
+
historyKey: "cap:temperature-sensor.temperature"
|
|
55690
|
+
};
|
|
55691
|
+
}
|
|
55692
|
+
function humidityMeasurement(percent, since) {
|
|
55693
|
+
const dry = percent < 30;
|
|
55694
|
+
const humid = percent > 70;
|
|
55695
|
+
return {
|
|
55696
|
+
quantity: "humidity",
|
|
55697
|
+
reading: {
|
|
55698
|
+
value: percent,
|
|
55699
|
+
quantity: "humidity"
|
|
55700
|
+
},
|
|
55701
|
+
icon: "droplets",
|
|
55702
|
+
value: same$2(String(Math.round(percent))),
|
|
55703
|
+
unit: "%",
|
|
55704
|
+
band: null,
|
|
55705
|
+
level: clamp01$1(percent / 100),
|
|
55706
|
+
word: dry ? t("Dry", "Secco") : humid ? t("Humid", "Umido") : t("Normal", "Normale"),
|
|
55707
|
+
tone: dry || humid ? "warning" : "info",
|
|
55708
|
+
since,
|
|
55709
|
+
sinceKind: "updated",
|
|
55710
|
+
historyKey: "cap:humidity-sensor.humidity"
|
|
55711
|
+
};
|
|
55712
|
+
}
|
|
55713
|
+
function textMeasurement(text, since) {
|
|
55714
|
+
return {
|
|
55715
|
+
quantity: "text",
|
|
55716
|
+
reading: null,
|
|
55717
|
+
icon: null,
|
|
55718
|
+
value: same$2(text),
|
|
55719
|
+
unit: null,
|
|
55720
|
+
band: null,
|
|
55721
|
+
level: null,
|
|
55722
|
+
word: t("Changed", "Cambiato"),
|
|
55723
|
+
tone: "muted",
|
|
55724
|
+
since,
|
|
55725
|
+
sinceKind: "updated",
|
|
55726
|
+
historyKey: null
|
|
55727
|
+
};
|
|
55728
|
+
}
|
|
55543
55729
|
/** The scene as the model carries it. `null` = the device did not say (never a guess). */
|
|
55544
55730
|
var HeroSceneSchema = object({
|
|
55545
55731
|
id: _enum([
|
|
@@ -55591,11 +55777,6 @@ var HeroSceneSchema = object({
|
|
|
55591
55777
|
});
|
|
55592
55778
|
DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.HeatPump, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway;
|
|
55593
55779
|
DeviceRole.Siren, DeviceRole.Floodlight, DeviceRole.Spotlight, DeviceRole.PirSensor, DeviceRole.Chime, DeviceRole.Autotrack, DeviceRole.Nightvision, DeviceRole.PrivacyMask, DeviceRole.Doorbell, DeviceRole.CoverBlind, DeviceRole.CoverShutter, DeviceRole.CoverAwning, DeviceRole.CoverCurtain, DeviceRole.CoverGarage, DeviceRole.CoverGate, DeviceRole.CoverDoor, DeviceRole.CoverWindow, DeviceRole.BinaryHelper, DeviceRole.Outlet, DeviceRole.SwitchHeater, DeviceRole.SwitchFan, DeviceRole.ClimateAc, DeviceRole.ClimateThermostat, DeviceRole.ClimateFloor, DeviceRole.ClimateRadiator, DeviceRole.ClimateHeater, DeviceRole.ClimateHeatPumpCircuit, DeviceRole.MotionSensor, DeviceRole.ContactSensor, DeviceRole.LeakSensor, DeviceRole.SmokeSensor, DeviceRole.COSensor, DeviceRole.GasSensor, DeviceRole.TamperSensor, DeviceRole.VibrationSensor, DeviceRole.ConnectivitySensor, DeviceRole.SoundSensor, DeviceRole.BinarySensor, DeviceRole.TemperatureSensor, DeviceRole.HumiditySensor, DeviceRole.AmbientLightSensor, DeviceRole.PressureSensor, DeviceRole.WindSensor, DeviceRole.RainSensor, DeviceRole.UvSensor, DeviceRole.SolarRadiationSensor, DeviceRole.SoilMoistureSensor, DeviceRole.PowerSensor, DeviceRole.EnergySensor, DeviceRole.VoltageSensor, DeviceRole.CurrentSensor, DeviceRole.AirQualitySensor, DeviceRole.BatterySensor, DeviceRole.NumericSensor, DeviceRole.EnumSensor, DeviceRole.DateTimeSensor, DeviceRole.GenericSensor, DeviceRole.NumericControl, DeviceRole.SelectControl, DeviceRole.TextControl, DeviceRole.DateTimeControl, DeviceRole.MobilePushNotifier, DeviceRole.MessagingNotifier, DeviceRole.EmailNotifier, DeviceRole.GenericNotifier, DeviceRole.IrTransmitter;
|
|
55594
|
-
/** A string in both languages, as the cap vocabulary writes it (D920): no `t()` in the model. */
|
|
55595
|
-
var HeroTextSchema = object({
|
|
55596
|
-
en: string(),
|
|
55597
|
-
it: string()
|
|
55598
|
-
});
|
|
55599
55780
|
var HeroRowIdSchema = _enum([
|
|
55600
55781
|
"progress",
|
|
55601
55782
|
"run-for",
|
|
@@ -55701,6 +55882,25 @@ var HeroControlSchema = discriminatedUnion("kind", [
|
|
|
55701
55882
|
optionLabels: record(string(), HeroTextSchema).optional(),
|
|
55702
55883
|
call: HeroCallSchema,
|
|
55703
55884
|
valueArg: string()
|
|
55885
|
+
}),
|
|
55886
|
+
object({
|
|
55887
|
+
kind: literal("number"),
|
|
55888
|
+
id: string(),
|
|
55889
|
+
label: HeroTextSchema,
|
|
55890
|
+
value: number$1().nullable(),
|
|
55891
|
+
/** `null` = any number; the device rounds what it does not accept. */
|
|
55892
|
+
step: number$1().nullable(),
|
|
55893
|
+
unit: string(),
|
|
55894
|
+
call: HeroCallSchema,
|
|
55895
|
+
valueArg: string()
|
|
55896
|
+
}),
|
|
55897
|
+
object({
|
|
55898
|
+
kind: literal("text"),
|
|
55899
|
+
id: string(),
|
|
55900
|
+
label: HeroTextSchema,
|
|
55901
|
+
value: string().nullable(),
|
|
55902
|
+
call: HeroCallSchema,
|
|
55903
|
+
valueArg: string()
|
|
55704
55904
|
})
|
|
55705
55905
|
]);
|
|
55706
55906
|
/** Declared by its interface: a `z.infer` of one more icon union pushes the cap's inferred type past what the compiler can print. */
|
|
@@ -55902,6 +56102,11 @@ var HeroModelSchema = object({
|
|
|
55902
56102
|
timedRun: HeroTimedRunSlotSchema.nullable(),
|
|
55903
56103
|
powerSupply: HeroPowerSupplySlotSchema.nullable(),
|
|
55904
56104
|
rows: array(HeroRowSchema),
|
|
56105
|
+
/**
|
|
56106
|
+
* The ONE measurement of a simple sensor, drawn once inside the scene in place of
|
|
56107
|
+
* the caption, tiles and value chips. Absent = the card draws as before.
|
|
56108
|
+
*/
|
|
56109
|
+
measurement: HeroMeasurementSchema.optional(),
|
|
55905
56110
|
/** Ids of parts that actuate the device, hidden from a session that may not act on it. */
|
|
55906
56111
|
gated: array(string()),
|
|
55907
56112
|
provenance: array(HeroProvenanceSchema)
|
|
@@ -55973,8 +56178,23 @@ var HeroRowModelSchema = object({
|
|
|
55973
56178
|
* the call. Absent or empty = `primary` alone.
|
|
55974
56179
|
*/
|
|
55975
56180
|
extras: array(HeroControlSchema).max(2).optional(),
|
|
55976
|
-
trailing: HeroFactSchema.nullable()
|
|
56181
|
+
trailing: HeroFactSchema.nullable(),
|
|
56182
|
+
/**
|
|
56183
|
+
* The simple sensor's one reading (the hero's `measurement`): the row draws its value
|
|
56184
|
+
* at the right, the unit small, the quantity's icon in the mini-scene. Absent = an
|
|
56185
|
+
* older server or a device that is not a simple sensor: draw `trailing`.
|
|
56186
|
+
*/
|
|
56187
|
+
measurement: HeroMeasurementSchema.optional()
|
|
55977
56188
|
});
|
|
56189
|
+
new Set([
|
|
56190
|
+
"temperature",
|
|
56191
|
+
"humidity",
|
|
56192
|
+
"pressure",
|
|
56193
|
+
"illuminance",
|
|
56194
|
+
"reading",
|
|
56195
|
+
"air-quality",
|
|
56196
|
+
"valve"
|
|
56197
|
+
]);
|
|
55978
56198
|
DeviceType.Climate;
|
|
55979
56199
|
DeviceType.Climate, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer;
|
|
55980
56200
|
/**
|
|
@@ -66020,6 +66240,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
66020
66240
|
"recording-degraded",
|
|
66021
66241
|
"device-attention-required",
|
|
66022
66242
|
"device-attention-resolved",
|
|
66243
|
+
"device-command",
|
|
66023
66244
|
"storage-location-low",
|
|
66024
66245
|
"storage-location-critical",
|
|
66025
66246
|
"storage-location-ok",
|
|
@@ -66082,11 +66303,6 @@ var NC_ALARM_SYSTEM_EVENT_KINDS = [
|
|
|
66082
66303
|
"alarm-sensor-bypass",
|
|
66083
66304
|
"alarm-disarmed"
|
|
66084
66305
|
];
|
|
66085
|
-
/**
|
|
66086
|
-
* One coherent system-event condition. `kinds` is the required opt-in safety
|
|
66087
|
-
* gate; the remaining lists are optional narrowing filters relevant to the
|
|
66088
|
-
* selected kinds.
|
|
66089
|
-
*/
|
|
66090
66306
|
var NcSystemEventConditionSchema = object({
|
|
66091
66307
|
kinds: array(NcSystemEventKindSchema).min(1),
|
|
66092
66308
|
deviceIds: array(number$1().int()).min(1).optional(),
|
|
@@ -66118,6 +66334,28 @@ var NcSystemEventConditionSchema = object({
|
|
|
66118
66334
|
nodeIds: array(string().min(1)).min(1).optional(),
|
|
66119
66335
|
packageNames: array(string().min(1)).min(1).optional(),
|
|
66120
66336
|
/**
|
|
66337
|
+
* `device-command` only: the vocabulary ACTION IDS (D983, `powerSource.forceRestart`)
|
|
66338
|
+
* this rule speaks about - the same dictionary the automation action blocks
|
|
66339
|
+
* pick from. The hub refuses an id the action index does not know.
|
|
66340
|
+
*/
|
|
66341
|
+
commandActions: array(string().min(1)).min(1).optional(),
|
|
66342
|
+
/** `device-command` only: how the command settled. A device's own change is not a command. */
|
|
66343
|
+
commandOutcomes: array(_enum([
|
|
66344
|
+
"confirmed",
|
|
66345
|
+
"already",
|
|
66346
|
+
"unconfirmed",
|
|
66347
|
+
"failed"
|
|
66348
|
+
])).min(1).optional(),
|
|
66349
|
+
/** `device-command` only: who asked (`user`, `addon`, `action`, `scheduler`, `composition`, `node`). */
|
|
66350
|
+
commandActorKinds: array(_enum([
|
|
66351
|
+
"user",
|
|
66352
|
+
"addon",
|
|
66353
|
+
"action",
|
|
66354
|
+
"scheduler",
|
|
66355
|
+
"composition",
|
|
66356
|
+
"node"
|
|
66357
|
+
])).min(1).optional(),
|
|
66358
|
+
/**
|
|
66121
66359
|
* At or below this remaining-life %, a consumable is LOW for THIS rule
|
|
66122
66360
|
* (D642). Absent = {@link NC_CONSUMABLE_LOW_PERCENT_DEFAULT}; at most
|
|
66123
66361
|
* {@link NC_CONSUMABLE_LOW_PERCENT_MAX}, so every episode can recover. Scoped to the
|
|
@@ -72993,10 +73231,15 @@ var RecordingSignalStatusSchema = object({
|
|
|
72993
73231
|
});
|
|
72994
73232
|
RecordingSignalStatusSchema.extend({ lastFetchedAt: number$1() });
|
|
72995
73233
|
DeviceType.Camera, method(object({ deviceId: number$1() }), RecordingSignalStatusSchema);
|
|
72996
|
-
var RemoteBindingSchema = object({ action:
|
|
72997
|
-
|
|
72998
|
-
|
|
72999
|
-
|
|
73234
|
+
var RemoteBindingSchema = object({ action: object({
|
|
73235
|
+
kind: literal("cap"),
|
|
73236
|
+
deviceId: number$1().int().nonnegative(),
|
|
73237
|
+
cap: string().min(1),
|
|
73238
|
+
method: string().min(1),
|
|
73239
|
+
args: record(string(), unknown()).optional(),
|
|
73240
|
+
/** The unit the person picked per arg (display only); `args` always hold the cap's own unit. */
|
|
73241
|
+
argUnits: record(string(), string().min(1)).optional()
|
|
73242
|
+
}) });
|
|
73000
73243
|
var RemoteCustomButtonSchema = object({
|
|
73001
73244
|
/** The slug after `custom:` in the role. */
|
|
73002
73245
|
key: string().refine(isRemoteCustomKey, { message: "a lowercase slug" }),
|
|
@@ -78423,6 +78666,13 @@ function contribution(cap, schema, build) {
|
|
|
78423
78666
|
}
|
|
78424
78667
|
};
|
|
78425
78668
|
}
|
|
78669
|
+
/** The fragment, carrying the cap's single measurement when it has one. */
|
|
78670
|
+
function measured(fragment, measurement) {
|
|
78671
|
+
return measurement === void 0 ? fragment : {
|
|
78672
|
+
...fragment,
|
|
78673
|
+
measurement
|
|
78674
|
+
};
|
|
78675
|
+
}
|
|
78426
78676
|
function action(id, label, icon, cap, method, args = {}, emphasis = "normal", confirm = null) {
|
|
78427
78677
|
return {
|
|
78428
78678
|
id,
|
|
@@ -79697,10 +79947,26 @@ var controlContribution = contribution("control", ControlStatusSchema, (slice, c
|
|
|
79697
79947
|
};
|
|
79698
79948
|
});
|
|
79699
79949
|
var CONTROL_LABEL = t("Value", "Valore");
|
|
79700
|
-
/**
|
|
79950
|
+
/**
|
|
79951
|
+
* A number with known bounds is a slider, one without a number field, a choice a picker,
|
|
79952
|
+
* free text a text field; a date stays read-only.
|
|
79953
|
+
*/
|
|
79701
79954
|
function controlRows(slice) {
|
|
79702
79955
|
if (slice.kind === "numeric" && typeof slice.value === "number") {
|
|
79703
|
-
if (slice.min === void 0 || slice.max === void 0) return [
|
|
79956
|
+
if (slice.min === void 0 || slice.max === void 0) return [row$1("control", "sliders-horizontal", null, [{
|
|
79957
|
+
kind: "number",
|
|
79958
|
+
id: "control.value",
|
|
79959
|
+
label: CONTROL_LABEL,
|
|
79960
|
+
value: slice.value,
|
|
79961
|
+
step: slice.step ?? null,
|
|
79962
|
+
unit: "",
|
|
79963
|
+
call: {
|
|
79964
|
+
cap: "control",
|
|
79965
|
+
method: "setValue",
|
|
79966
|
+
args: { control: { kind: "numeric" } }
|
|
79967
|
+
},
|
|
79968
|
+
valueArg: "control.value"
|
|
79969
|
+
}])];
|
|
79704
79970
|
return [row$1("control", "sliders-horizontal", null, [{
|
|
79705
79971
|
kind: "slider",
|
|
79706
79972
|
id: "control.value",
|
|
@@ -79731,6 +79997,18 @@ function controlRows(slice) {
|
|
|
79731
79997
|
},
|
|
79732
79998
|
valueArg: "control.value"
|
|
79733
79999
|
}])];
|
|
80000
|
+
if (slice.kind === "text") return [row$1("control", "sliders-horizontal", null, [{
|
|
80001
|
+
kind: "text",
|
|
80002
|
+
id: "control.value",
|
|
80003
|
+
label: CONTROL_LABEL,
|
|
80004
|
+
value: typeof slice.value === "string" ? slice.value : null,
|
|
80005
|
+
call: {
|
|
80006
|
+
cap: "control",
|
|
80007
|
+
method: "setValue",
|
|
80008
|
+
args: { control: { kind: "text" } }
|
|
80009
|
+
},
|
|
80010
|
+
valueArg: "control.value"
|
|
80011
|
+
}])];
|
|
79734
80012
|
return [];
|
|
79735
80013
|
}
|
|
79736
80014
|
var SENSORS_FAMILY_CONTRIBUTIONS = {
|
|
@@ -80086,15 +80364,15 @@ function sensorFragment(value, id, icon, en, it, text) {
|
|
|
80086
80364
|
tiles: { right: [tile$1(en, it, text)] }
|
|
80087
80365
|
};
|
|
80088
80366
|
}
|
|
80089
|
-
var temperatureContribution = contribution("temperature-sensor", TemperatureSensorStatusSchema, (slice) => sensorFragment(slice?.temperature ?? null, "temperature", "thermometer", "Temperature", "Temperatura", formatDegrees(slice?.temperature ?? 0)));
|
|
80090
|
-
var humidityContribution = contribution("humidity-sensor", HumiditySensorStatusSchema, (slice) => sensorFragment(slice?.humidity ?? null, "humidity", "droplets", "Humidity", "Umidità", `${Math.round(slice?.humidity ?? 0)}%`));
|
|
80367
|
+
var temperatureContribution = contribution("temperature-sensor", TemperatureSensorStatusSchema, (slice) => measured(sensorFragment(slice?.temperature ?? null, "temperature", "thermometer", "Temperature", "Temperatura", formatDegrees(slice?.temperature ?? 0)), slice?.temperature == null ? void 0 : temperatureMeasurement(slice.temperature, slice.lastFetchedAt)));
|
|
80368
|
+
var humidityContribution = contribution("humidity-sensor", HumiditySensorStatusSchema, (slice) => measured(sensorFragment(slice?.humidity ?? null, "humidity", "droplets", "Humidity", "Umidità", `${Math.round(slice?.humidity ?? 0)}%`), slice?.humidity == null ? void 0 : humidityMeasurement(slice.humidity, slice.lastFetchedAt)));
|
|
80091
80369
|
var pressureContribution = contribution("pressure-sensor", PressureSensorStatusSchema, (slice) => sensorFragment(slice?.pressure ?? null, "pressure", "gauge", "Pressure", "Pressione", `${Math.round(slice?.pressure ?? 0)} hPa`));
|
|
80092
80370
|
var illuminanceContribution = contribution("ambient-light-sensor", AmbientLightSensorStatusSchema, (slice) => sensorFragment(slice?.illuminance ?? null, "illuminance", "sun", "Light", "Luce", `${Math.round(slice?.illuminance ?? 0)} lx`));
|
|
80093
80371
|
var numericContribution = contribution("numeric-sensor", NumericSensorStatusSchema, (slice) => sensorFragment(slice?.value ?? null, "reading", "gauge", "Value", "Valore", String(Number((slice?.value ?? 0).toFixed(2)))));
|
|
80094
80372
|
var enumContribution = contribution("enum-sensor", EnumSensorStatusSchema, (slice) => {
|
|
80095
80373
|
if (slice === void 0 || slice.value === "") return { reading: reading("sensor", "unknown") };
|
|
80096
80374
|
if (slice.timestamp === true) return { reading: reading("sensor", "on") };
|
|
80097
|
-
return sensorFragment(slice.value, "reading", "gauge", "State", "Stato", slice.value);
|
|
80375
|
+
return measured(sensorFragment(slice.value, "reading", "gauge", "State", "Stato", slice.value), textMeasurement(slice.value, slice.lastFetchedAt));
|
|
80098
80376
|
});
|
|
80099
80377
|
/** Index bands: the headline of an air-quality sensor is a word, not a number. */
|
|
80100
80378
|
function airQualityWord(aqi) {
|
|
@@ -82990,6 +83268,13 @@ Object.freeze({
|
|
|
82990
83268
|
access: "view",
|
|
82991
83269
|
role: "admin"
|
|
82992
83270
|
},
|
|
83271
|
+
"deviceExport.setExposedName": {
|
|
83272
|
+
capName: "device-export",
|
|
83273
|
+
capScope: "system",
|
|
83274
|
+
addonId: null,
|
|
83275
|
+
access: "create",
|
|
83276
|
+
role: "admin"
|
|
83277
|
+
},
|
|
82993
83278
|
"deviceExport.unexposeDevice": {
|
|
82994
83279
|
capName: "device-export",
|
|
82995
83280
|
capScope: "system",
|
|
@@ -91454,48 +91739,6 @@ Object.freeze({
|
|
|
91454
91739
|
role: "admin"
|
|
91455
91740
|
}
|
|
91456
91741
|
});
|
|
91457
|
-
/**
|
|
91458
|
-
* "Do" actions an operator can pick for a device — presentation-free.
|
|
91459
|
-
*
|
|
91460
|
-
* The wire shape stays `{ cap, method, args }`. Since D920 this module no
|
|
91461
|
-
* longer HOLDS a catalogue: {@link DEVICE_DO_ACTIONS} is a projection of the
|
|
91462
|
-
* cap vocabulary (`cap-vocabulary/`), the one cap-keyed map of every action
|
|
91463
|
-
* and trigger — so a picker built on this module and one built on
|
|
91464
|
-
* `actionsForDevice` (the vocabulary resolver) can never disagree about what
|
|
91465
|
-
* a device can do. Ids, baked args and the matching of saved steps are the
|
|
91466
|
-
* vocabulary's; labels here are its English labels.
|
|
91467
|
-
*
|
|
91468
|
-
* Shared by the admin NC Sequences / rule Do editor and Automations; the
|
|
91469
|
-
* viewer can reuse the same catalogue once its step editor catches up.
|
|
91470
|
-
*/
|
|
91471
|
-
function openArgKind(offer) {
|
|
91472
|
-
if (offer.kind === "number") return "number";
|
|
91473
|
-
if (offer.kind === "dynamic" && offer.valueKind === "number") return "number";
|
|
91474
|
-
if (offer.kind === "enum" && offer.values.every((v) => typeof v.value === "number")) return "number";
|
|
91475
|
-
return "string";
|
|
91476
|
-
}
|
|
91477
|
-
function projectOpenArg(arg) {
|
|
91478
|
-
return {
|
|
91479
|
-
key: arg.key,
|
|
91480
|
-
label: arg.label.en,
|
|
91481
|
-
kind: openArgKind(arg.offer),
|
|
91482
|
-
offer: arg.offer,
|
|
91483
|
-
...arg.optional === true ? { optional: true } : {}
|
|
91484
|
-
};
|
|
91485
|
-
}
|
|
91486
|
-
function projectAction(cap, action) {
|
|
91487
|
-
const open = action.openArgs ?? [];
|
|
91488
|
-
return {
|
|
91489
|
-
id: action.id,
|
|
91490
|
-
label: action.label.en,
|
|
91491
|
-
cap,
|
|
91492
|
-
method: action.method,
|
|
91493
|
-
args: action.args ?? {},
|
|
91494
|
-
...open.length > 0 ? { openArgs: open.map(projectOpenArg) } : {}
|
|
91495
|
-
};
|
|
91496
|
-
}
|
|
91497
|
-
Object.entries(CAP_VOCABULARY_BY_NAME).flatMap(([cap, entry]) => entry.scope === "device" ? (entry.actions ?? []).map((a) => projectAction(cap, a)) : []);
|
|
91498
|
-
DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.HeatPump, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway;
|
|
91499
91742
|
DeviceFeature.BatteryOperated;
|
|
91500
91743
|
function bound(cap, methods = [], authority = "reported") {
|
|
91501
91744
|
return {
|
|
@@ -94731,7 +94974,10 @@ var NC_SYSTEM_EVENT_FILTER_KEYS = [
|
|
|
94731
94974
|
"deviceTypes",
|
|
94732
94975
|
"nodeIds",
|
|
94733
94976
|
"packageNames",
|
|
94734
|
-
"consumableLowPercent"
|
|
94977
|
+
"consumableLowPercent",
|
|
94978
|
+
"commandActions",
|
|
94979
|
+
"commandOutcomes",
|
|
94980
|
+
"commandActorKinds"
|
|
94735
94981
|
];
|
|
94736
94982
|
new Map(Object.entries({
|
|
94737
94983
|
"device-online": "device-events",
|
|
@@ -94754,6 +95000,7 @@ new Map(Object.entries({
|
|
|
94754
95000
|
"recording-degraded": "device-events",
|
|
94755
95001
|
"device-attention-required": "device-events",
|
|
94756
95002
|
"device-attention-resolved": "device-events",
|
|
95003
|
+
"device-command": "device-events",
|
|
94757
95004
|
"node-online": "system",
|
|
94758
95005
|
"node-offline": "system",
|
|
94759
95006
|
"node-restarting": "system",
|
|
@@ -94854,6 +95101,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
94854
95101
|
label: "Needs attention",
|
|
94855
95102
|
kinds: ["device-attention-required", "device-attention-resolved"]
|
|
94856
95103
|
},
|
|
95104
|
+
{
|
|
95105
|
+
id: "device-command",
|
|
95106
|
+
family: "device-events",
|
|
95107
|
+
label: "Commands given to devices",
|
|
95108
|
+
kinds: ["device-command"]
|
|
95109
|
+
},
|
|
94857
95110
|
{
|
|
94858
95111
|
id: "nodes",
|
|
94859
95112
|
family: "system",
|
|
@@ -94931,6 +95184,15 @@ function systemEventKindsOfFamily(family) {
|
|
|
94931
95184
|
return NC_SYSTEM_EVENT_KIND_GROUP_SPECS.filter((g) => g.family === family).flatMap((g) => g.kinds);
|
|
94932
95185
|
}
|
|
94933
95186
|
NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
|
|
95187
|
+
new Set([
|
|
95188
|
+
"alarm.trigger",
|
|
95189
|
+
"alarm.disarm",
|
|
95190
|
+
"alarm.arm.home",
|
|
95191
|
+
"alarm.arm.away",
|
|
95192
|
+
"alarm.arm.night",
|
|
95193
|
+
"alarm.arm.vacation",
|
|
95194
|
+
"alarm.arm.custom_bypass"
|
|
95195
|
+
]);
|
|
94934
95196
|
/**
|
|
94935
95197
|
* WHICH WAY A BOOLEAN SENSOR MOVED — read off the one slice a sensor event
|
|
94936
95198
|
* persists (D640 "a sensor rule fires on the raise, the clear, or both").
|
|
@@ -95126,6 +95388,7 @@ var DEVICE_EVENTS = [
|
|
|
95126
95388
|
"recording-healthy",
|
|
95127
95389
|
"recording-degraded",
|
|
95128
95390
|
...DEVICE_ATTENTION,
|
|
95391
|
+
"device-command",
|
|
95129
95392
|
...ALARM
|
|
95130
95393
|
];
|
|
95131
95394
|
/** Every kind a summary may speak about — the two summarisable families. */
|
|
@@ -95279,6 +95542,9 @@ var STATE_SUMMARY_VARS = [
|
|
|
95279
95542
|
[...RULE_BODY_ONLY],
|
|
95280
95543
|
[...RULE_TEXT],
|
|
95281
95544
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
95545
|
+
[...RULE_TEXT],
|
|
95546
|
+
[...RULE_TEXT],
|
|
95547
|
+
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
95282
95548
|
([...RULE_TEXT], [...COMBINED_ALARM]),
|
|
95283
95549
|
([...RULE_TEXT], [...COMBINED_ALARM]),
|
|
95284
95550
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
@@ -96018,7 +96284,7 @@ var AdminUIAddon = class extends BaseAddon {
|
|
|
96018
96284
|
capability: adminUiCapability,
|
|
96019
96285
|
provider: {
|
|
96020
96286
|
getStaticDir: async () => ({ staticDir: resolveAdminUiDistDir() }),
|
|
96021
|
-
getVersion: async () => ({ version: "1.2.
|
|
96287
|
+
getVersion: async () => ({ version: "1.2.653" })
|
|
96022
96288
|
}
|
|
96023
96289
|
}];
|
|
96024
96290
|
}
|