@camstack/addon-admin-ui 1.2.660 → 1.2.661
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 +13 -0
- package/dist/assets/Addons-Dd01MZDq.js +5 -0
- package/dist/assets/{AdminPage-CERAT6OE.js → AdminPage-Cr4Mgq6E.js} +1 -1
- package/dist/assets/{AdminSectionedPage-Br7kOiVH.js → AdminSectionedPage-BT0D5Z5E.js} +1 -1
- package/dist/assets/AiProfiles-CQC25jwp.js +3 -0
- package/dist/assets/{BootstrapSettingsForm-BKRohQp4.js → BootstrapSettingsForm-AwY0YIsh.js} +1 -1
- package/dist/assets/Build-BxBtb1pa.js +42 -0
- package/dist/assets/Calendars-CUwxuhjS.js +1 -0
- package/dist/assets/{CameraGrids-BL9IJLpe.js → CameraGrids-jGWuONma.js} +1 -1
- package/dist/assets/Cluster-BsxCN2Ee.js +1 -0
- package/dist/assets/CompositionBlockEditor-ePXZVSiz.js +2 -0
- package/dist/assets/{CompositionEditorPage-CPPeSp5g.js → CompositionEditorPage-Bs6PP5S0.js} +1 -1
- package/dist/assets/Data-CFXuZX2p.js +2 -0
- package/dist/assets/DeviceDetail-B7hrPP0Q.js +2 -0
- package/dist/assets/Devices-DmAIsMCu.js +1 -0
- package/dist/assets/{EmbedDevicePage-DvRASgDw.js → EmbedDevicePage-igDGWLlu.js} +1 -1
- package/dist/assets/{EmbedPlayerPage-DHSr3Tl_.js → EmbedPlayerPage-CRe4aMxN.js} +1 -1
- package/dist/assets/History-CkGkYHIQ.js +1 -0
- package/dist/assets/Identity-BOuV0PJp.js +1 -0
- package/dist/assets/InstancesTable-B4YAqBGO.js +1 -0
- package/dist/assets/IntegrationDetail-DRtu4AI8.js +1 -0
- package/dist/assets/Integrations-B0NJiQCE.js +1 -0
- package/dist/assets/{Integrations-SQZl5xUE.js → Integrations-Cr2CqMEa.js} +2 -2
- package/dist/assets/Library-iu7KepLq.js +1 -0
- package/dist/assets/Locations-DaOJoHB_.js +3 -0
- package/dist/assets/{Logs-BUIyFNHB.js → Logs-B7Y7BGWA.js} +1 -1
- package/dist/assets/{MaskShapeCanvas-B4cgdl3M.js → MaskShapeCanvas-BITNuLal.js} +1 -1
- package/dist/assets/{MotionZonesSettings-E62PigxG.js → MotionZonesSettings-BDiBCvY5.js} +1 -1
- package/dist/assets/MyAccess-BCmi5v1l.js +2 -0
- package/dist/assets/Network-DqeqHMP6.js +1 -0
- package/dist/assets/NodeAddonsSettingsPanel-CxbHY55W.js +2 -0
- package/dist/assets/Notifications-C8QeVMgl.js +1 -0
- package/dist/assets/Pipeline-GX33Dr8E.js +1 -0
- package/dist/assets/{PrivacyMaskSettings-CY_ePn_3.js → PrivacyMaskSettings-BXQOKceN.js} +1 -1
- package/dist/assets/Recordings-D0HsC6x1.js +1 -0
- package/dist/assets/SceneMonitorEditor-CZ_BFOG7.js +1 -0
- package/dist/assets/SessionsList-DLEV9_gs.js +2 -0
- package/dist/assets/Showroom-2AKsy64i.js +1 -0
- package/dist/assets/StorageLocationsTable-BgrUmv1n.js +1 -0
- package/dist/assets/{System-GaBMCDXq.js → System-DaWWeXtH.js} +1 -1
- package/dist/assets/{Terminal-bEPuP-Ni.js → Terminal-CJ4WgYjd.js} +5 -5
- package/dist/assets/{TrainingProviders-CKnVaSy5.js → TrainingProviders-B7k0ZtE0.js} +1 -1
- package/dist/assets/{Viewer-D6N_FDoi.js → Viewer-CjsGjUB-.js} +1 -1
- package/dist/assets/{_virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-xQ6ZAyO5.js → _virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-D8PmgRp8.js} +1 -1
- package/dist/assets/{action-draft-BFWQOcD-.js → action-draft-DnNIEmvI.js} +1 -1
- package/dist/assets/{ai-page.helpers-B5WcoTGx.js → ai-page.helpers-CGjpeisw.js} +1 -1
- package/dist/assets/{assignment-candidates-BCi2Ds6Z.js → assignment-candidates-naQrL3dO.js} +1 -1
- package/dist/assets/{authed-media-C7-SuZfk.js → authed-media-DTuPnK89.js} +1 -1
- package/dist/assets/{board-model-Dtuzj7p0.js → board-model-Bd0emGWd.js} +1 -1
- package/dist/assets/client-CdF3TYeB.js +1115 -0
- package/dist/assets/{command-vocab-D8O8h9Nx.js → command-vocab-DjcG_iEx.js} +1 -1
- package/dist/assets/{device-detail-CNETUEYQ.js → device-detail-BakcTqag.js} +1 -1
- package/dist/assets/device-integration-icon-Cyq0fBL5.js +1 -0
- package/dist/assets/device-picker-model-Ciov4ggQ.js +1 -0
- package/dist/assets/{dist-D2wqGzzP.js → dist-7-KeEy8F.js} +1 -1
- package/dist/assets/dist-7sm4pyDQ.js +1115 -0
- package/dist/assets/{format-DQPwm2LA.js → format-DdSyVeZV.js} +1 -1
- package/dist/assets/{hostInit-BjmW5lpD.js → hostInit-CHSexcMQ.js} +1 -1
- package/dist/assets/i18n-CfxLCMD-.js +1 -0
- package/dist/assets/icons-DCgN8JXc.js +1 -0
- package/dist/assets/index-BxZnZO1J.js +4 -0
- package/dist/assets/{index-CoqQ1LfI.css → index-CK-FKuHu.css} +1 -1
- package/dist/assets/{linked-devices-model-CeeIdQcU.js → linked-devices-model-_6nOgrEe.js} +1 -1
- package/dist/assets/{mf-entry-bootstrap-0-1178bf74.js → mf-entry-bootstrap-0-a2f86924.js} +2 -2
- package/dist/assets/mount-Ciov4ggQ.js +1 -0
- package/dist/assets/{notification-rule-status-CoQzv8bD.js → notification-rule-status-DYX3kx8s.js} +1 -1
- package/dist/assets/{player-overlays-BT0TXPfb.js → player-overlays-D6PvO1EY.js} +1 -1
- package/dist/assets/remoteEntry-BRIrNkYL.js +1 -0
- package/dist/assets/src-BZ76tsZe.js +263 -0
- package/dist/assets/sso-popup-CRva85Eh.js +1 -0
- package/dist/assets/{step-inspector-model-Bs29Quj-.js → step-inspector-model-CGMSXxPh.js} +1 -1
- package/dist/assets/{terminal-BSZfUawf.js → terminal-DK_9A3Rq.js} +1 -1
- package/dist/assets/{use-scenes-feed-DjWk3U0s.js → use-scenes-feed-DE611aYH.js} +1 -1
- package/dist/assets/{use-stationary-objects-D8_FnyFC.js → use-stationary-objects-zZxmRKHa.js} +1 -1
- package/dist/assets/{useAdminDeviceRemoval-DgZKyG5k.js → useAdminDeviceRemoval-C1c-5Iqt.js} +1 -1
- package/dist/assets/useEventInvalidation-Ciov4ggQ.js +1 -0
- package/dist/assets/{useNodeUrlSelection-CdgZ2vRL.js → useNodeUrlSelection-pGeSjWQO.js} +1 -1
- package/dist/assets/useTemplateSave-1_ofWdl6.js +1 -0
- package/dist/assets/variable-Cq3v1-Kt.js +1 -0
- package/dist/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-B3VWqHa8.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-UBhz1_JR.js} +2 -2
- package/dist/index.html +10 -9
- package/dist/server/addon.js +516 -51
- package/package.json +2 -2
- package/dist/assets/Addons-BKyuLQDW.js +0 -5
- package/dist/assets/AiProfiles-CBSjTujs.js +0 -3
- package/dist/assets/Build-DDQsUqm9.js +0 -40
- package/dist/assets/Calendars-BCrXW6ev.js +0 -1
- package/dist/assets/Cluster-B9ANo52_.js +0 -1
- package/dist/assets/CompositionBlockEditor-DCCYb3Al.js +0 -2
- package/dist/assets/Data-DbJLrZGB.js +0 -2
- package/dist/assets/DeviceDetail-D40ZWxPY.js +0 -2
- package/dist/assets/Devices-Ci3mDEu7.js +0 -1
- package/dist/assets/History-C8ol6H76.js +0 -1
- package/dist/assets/Identity-CEJnvsoZ.js +0 -1
- package/dist/assets/InstancesTable-FBx9JRZk.js +0 -1
- package/dist/assets/IntegrationDetail-BEK8Sry_.js +0 -1
- package/dist/assets/IntegrationWizard-CcNLdn4m.js +0 -1
- package/dist/assets/Integrations-ET87lqxO.js +0 -1
- package/dist/assets/Library-goz2bc6M.js +0 -1
- package/dist/assets/Locations-2rJZmR7V.js +0 -3
- package/dist/assets/MyAccess-BWDAey7o.js +0 -2
- package/dist/assets/Network-CKKRKQ-O.js +0 -1
- package/dist/assets/NodeAddonsSettingsPanel-Cst9sv6D.js +0 -2
- package/dist/assets/Notifications-C5328Lom.js +0 -1
- package/dist/assets/Pipeline-vIZNfSae.js +0 -1
- package/dist/assets/Recordings-DFKQYs1C.js +0 -1
- package/dist/assets/ScanSubnetEditor-BQ7H3hHG.js +0 -1
- package/dist/assets/SceneMonitorEditor-DXSSscj5.js +0 -1
- package/dist/assets/SessionsList-PNK9JpXa.js +0 -2
- package/dist/assets/Showroom-DobzkfjB.js +0 -1
- package/dist/assets/StorageLocationsTable-D_AWqrcu.js +0 -1
- package/dist/assets/Templates-BPfFAYcv.js +0 -1
- package/dist/assets/client-rKDh78PS.js +0 -1115
- package/dist/assets/create-composition-BDLBjShb.js +0 -1
- package/dist/assets/device-integration-icon-DgV2s6G7.js +0 -1
- package/dist/assets/device-picker-model-DoWv_-il.js +0 -1
- package/dist/assets/dist-XuKhSZmU.js +0 -1115
- package/dist/assets/framework-packages-B0ugw-Ay.js +0 -1
- package/dist/assets/i18n-a_osePOH.js +0 -1
- package/dist/assets/icons-BIkHFZKC.js +0 -1
- package/dist/assets/index-GTPwIjSa.js +0 -4
- package/dist/assets/mount-DoWv_-il.js +0 -1
- package/dist/assets/remoteEntry-BAhwoqOT.js +0 -1
- package/dist/assets/src-BJEmpxo2.js +0 -263
- package/dist/assets/useEventInvalidation-DoWv_-il.js +0 -1
- package/dist/assets/useTemplateSave-OvjvioSD.js +0 -1
- package/dist/assets/variable-Cy0obf0C.js +0 -1
package/dist/server/addon.js
CHANGED
|
@@ -812,7 +812,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
812
812
|
return EventCategory;
|
|
813
813
|
}({});
|
|
814
814
|
//#endregion
|
|
815
|
-
//#region ../types/dist/composed-stable-id-
|
|
815
|
+
//#region ../types/dist/composed-stable-id-B3wcvtvW.mjs
|
|
816
816
|
/**
|
|
817
817
|
import { errMsg } from '@camstack/types'
|
|
818
818
|
* Extract a human-readable message from an unknown error value.
|
|
@@ -939,6 +939,10 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
|
939
939
|
* water, cooling, solar), its system modes and its power. One main read-only
|
|
940
940
|
* `heat-pump-status` cap carries all of it; `heat-pump-control` sets it (D1026). */
|
|
941
941
|
DeviceType["HeatPump"] = "heat-pump";
|
|
942
|
+
/** A home energy installation (any vendor): solar, grid, house, a metered heat pump
|
|
943
|
+
* and the storage as branches of one bus. One read-only `energy-system` cap carries
|
|
944
|
+
* every value; the storage is a field of it, never the `battery` cap (#513, #522). */
|
|
945
|
+
DeviceType["EnergySystem"] = "energy-system";
|
|
942
946
|
return DeviceType;
|
|
943
947
|
}({});
|
|
944
948
|
var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
|
|
@@ -5926,7 +5930,7 @@ var ZodIssueCode = {
|
|
|
5926
5930
|
var ZodFirstPartyTypeKind;
|
|
5927
5931
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5928
5932
|
//#endregion
|
|
5929
|
-
//#region ../types/dist/sleep-
|
|
5933
|
+
//#region ../types/dist/sleep-Cykc2bzi.mjs
|
|
5930
5934
|
/**
|
|
5931
5935
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5932
5936
|
* window to float samples (D455).
|
|
@@ -16742,6 +16746,13 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
16742
16746
|
}
|
|
16743
16747
|
]
|
|
16744
16748
|
},
|
|
16749
|
+
"energy-system": {
|
|
16750
|
+
scope: "device",
|
|
16751
|
+
noun: {
|
|
16752
|
+
en: "Energy system",
|
|
16753
|
+
it: "Sistema energetico"
|
|
16754
|
+
}
|
|
16755
|
+
},
|
|
16745
16756
|
"air-quality-sensor": {
|
|
16746
16757
|
scope: "device",
|
|
16747
16758
|
noun: {
|
|
@@ -18539,6 +18550,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
18539
18550
|
"do-not-disturb",
|
|
18540
18551
|
"doorbell",
|
|
18541
18552
|
"embedding-encoder",
|
|
18553
|
+
"energy-system",
|
|
18542
18554
|
"enum-sensor",
|
|
18543
18555
|
"event-emitter",
|
|
18544
18556
|
"face-gallery",
|
|
@@ -19316,6 +19328,96 @@ Object.freeze({
|
|
|
19316
19328
|
"path": "pressCountSinceStart",
|
|
19317
19329
|
"valueType": "number"
|
|
19318
19330
|
}],
|
|
19331
|
+
"energy-system": [
|
|
19332
|
+
{
|
|
19333
|
+
"path": "solar.powerW",
|
|
19334
|
+
"valueType": "number"
|
|
19335
|
+
},
|
|
19336
|
+
{
|
|
19337
|
+
"path": "solar.energyKwh",
|
|
19338
|
+
"valueType": "number"
|
|
19339
|
+
},
|
|
19340
|
+
{
|
|
19341
|
+
"path": "solar.todayKwh",
|
|
19342
|
+
"valueType": "number"
|
|
19343
|
+
},
|
|
19344
|
+
{
|
|
19345
|
+
"path": "grid.powerW",
|
|
19346
|
+
"valueType": "number"
|
|
19347
|
+
},
|
|
19348
|
+
{
|
|
19349
|
+
"path": "grid.importKwh",
|
|
19350
|
+
"valueType": "number"
|
|
19351
|
+
},
|
|
19352
|
+
{
|
|
19353
|
+
"path": "grid.exportKwh",
|
|
19354
|
+
"valueType": "number"
|
|
19355
|
+
},
|
|
19356
|
+
{
|
|
19357
|
+
"path": "grid.importTodayKwh",
|
|
19358
|
+
"valueType": "number"
|
|
19359
|
+
},
|
|
19360
|
+
{
|
|
19361
|
+
"path": "grid.exportTodayKwh",
|
|
19362
|
+
"valueType": "number"
|
|
19363
|
+
},
|
|
19364
|
+
{
|
|
19365
|
+
"path": "house.powerW",
|
|
19366
|
+
"valueType": "number"
|
|
19367
|
+
},
|
|
19368
|
+
{
|
|
19369
|
+
"path": "house.energyKwh",
|
|
19370
|
+
"valueType": "number"
|
|
19371
|
+
},
|
|
19372
|
+
{
|
|
19373
|
+
"path": "house.todayKwh",
|
|
19374
|
+
"valueType": "number"
|
|
19375
|
+
},
|
|
19376
|
+
{
|
|
19377
|
+
"path": "heatPump.powerW",
|
|
19378
|
+
"valueType": "number"
|
|
19379
|
+
},
|
|
19380
|
+
{
|
|
19381
|
+
"path": "heatPump.energyKwh",
|
|
19382
|
+
"valueType": "number"
|
|
19383
|
+
},
|
|
19384
|
+
{
|
|
19385
|
+
"path": "heatPump.todayKwh",
|
|
19386
|
+
"valueType": "number"
|
|
19387
|
+
},
|
|
19388
|
+
{
|
|
19389
|
+
"path": "storage.stateOfChargePct",
|
|
19390
|
+
"valueType": "number"
|
|
19391
|
+
},
|
|
19392
|
+
{
|
|
19393
|
+
"path": "storage.storedKwh",
|
|
19394
|
+
"valueType": "number"
|
|
19395
|
+
},
|
|
19396
|
+
{
|
|
19397
|
+
"path": "storage.capacityKwh",
|
|
19398
|
+
"valueType": "number"
|
|
19399
|
+
},
|
|
19400
|
+
{
|
|
19401
|
+
"path": "storage.powerW",
|
|
19402
|
+
"valueType": "number"
|
|
19403
|
+
},
|
|
19404
|
+
{
|
|
19405
|
+
"path": "storage.chargedKwh",
|
|
19406
|
+
"valueType": "number"
|
|
19407
|
+
},
|
|
19408
|
+
{
|
|
19409
|
+
"path": "storage.dischargedKwh",
|
|
19410
|
+
"valueType": "number"
|
|
19411
|
+
},
|
|
19412
|
+
{
|
|
19413
|
+
"path": "storage.chargedTodayKwh",
|
|
19414
|
+
"valueType": "number"
|
|
19415
|
+
},
|
|
19416
|
+
{
|
|
19417
|
+
"path": "storage.dischargedTodayKwh",
|
|
19418
|
+
"valueType": "number"
|
|
19419
|
+
}
|
|
19420
|
+
],
|
|
19319
19421
|
"enum-sensor": [{
|
|
19320
19422
|
"path": "value",
|
|
19321
19423
|
"valueType": "string"
|
|
@@ -20630,7 +20732,7 @@ Object.freeze({
|
|
|
20630
20732
|
}
|
|
20631
20733
|
});
|
|
20632
20734
|
//#endregion
|
|
20633
|
-
//#region ../types/dist/implemented-methods-
|
|
20735
|
+
//#region ../types/dist/implemented-methods-CgUBu6uM.mjs
|
|
20634
20736
|
/**
|
|
20635
20737
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
20636
20738
|
*
|
|
@@ -46698,6 +46800,104 @@ var ActionTargetSchema = discriminatedUnion("kind", [
|
|
|
46698
46800
|
})
|
|
46699
46801
|
]);
|
|
46700
46802
|
EventCategory.DeviceRegistered, EventCategory.DeviceUnregistered, EventCategory.DeviceUpdated, EventCategory.DeviceMetaChanged, EventCategory.DeviceBindingsChanged;
|
|
46803
|
+
var EventVocabularyKindSchema = _enum([
|
|
46804
|
+
"press",
|
|
46805
|
+
"long-press",
|
|
46806
|
+
"long-press-start",
|
|
46807
|
+
"release",
|
|
46808
|
+
"repeat",
|
|
46809
|
+
"double-press",
|
|
46810
|
+
"other"
|
|
46811
|
+
]);
|
|
46812
|
+
/** The part of the device an event comes from: a button, a channel. */
|
|
46813
|
+
var EventVocabularySourceSchema = object({
|
|
46814
|
+
id: string().min(1),
|
|
46815
|
+
label: string().min(1)
|
|
46816
|
+
});
|
|
46817
|
+
/** One scalar field of an event's `data`, by dotted path. */
|
|
46818
|
+
var EventVocabularyFieldSchema = object({
|
|
46819
|
+
path: string().min(1),
|
|
46820
|
+
kind: _enum([
|
|
46821
|
+
"string",
|
|
46822
|
+
"number",
|
|
46823
|
+
"boolean",
|
|
46824
|
+
"enum"
|
|
46825
|
+
]),
|
|
46826
|
+
enumValues: array(string()).optional(),
|
|
46827
|
+
label: string().min(1).optional()
|
|
46828
|
+
});
|
|
46829
|
+
var EventVocabularyEntrySchema = object({
|
|
46830
|
+
/** The native token, verbatim. */
|
|
46831
|
+
id: string().min(1),
|
|
46832
|
+
source: EventVocabularySourceSchema.optional(),
|
|
46833
|
+
label: string().min(1),
|
|
46834
|
+
description: string().optional(),
|
|
46835
|
+
kind: EventVocabularyKindSchema.optional(),
|
|
46836
|
+
payload: array(EventVocabularyFieldSchema).optional()
|
|
46837
|
+
});
|
|
46838
|
+
/**
|
|
46839
|
+
* The link an automation made FROM a template carries (#527): which template,
|
|
46840
|
+
* the values the operator filled in, and — when the template has since changed
|
|
46841
|
+
* so that those values no longer fit — the problems that say why.
|
|
46842
|
+
*
|
|
46843
|
+
* It lives inside the recipe (`AutomationRecipe.template`), so the one row in
|
|
46844
|
+
* `core_blocks` stays the one artefact: there is no second store of instances
|
|
46845
|
+
* to drift from the blocks, and deleting the automation deletes the link.
|
|
46846
|
+
* "Convert to a free automation" is dropping this field.
|
|
46847
|
+
*
|
|
46848
|
+
* This file depends on nothing in `recipe.ts`, so the recipe can embed it and
|
|
46849
|
+
* the template engine (`template/automation-template.ts`) can import both.
|
|
46850
|
+
*/
|
|
46851
|
+
/** An `event` input's value: the same three narrowing lists a `device-fired` row takes. */
|
|
46852
|
+
var TemplateEventValueSchema = object({
|
|
46853
|
+
eventIds: array(string().min(1)).min(1).max(64).optional(),
|
|
46854
|
+
sourceIds: array(string().min(1)).min(1).max(64).optional(),
|
|
46855
|
+
kinds: array(EventVocabularyKindSchema).min(1).optional()
|
|
46856
|
+
}).refine((value) => value.eventIds !== void 0 || value.sourceIds !== void 0 || value.kinds !== void 0, { message: "an event names at least one event, part or kind" });
|
|
46857
|
+
/** An `action` input's value: a vocabulary action and its open args. */
|
|
46858
|
+
var TemplateActionValueSchema = object({
|
|
46859
|
+
actionId: string().min(1),
|
|
46860
|
+
args: record(string(), unknown()).optional()
|
|
46861
|
+
});
|
|
46862
|
+
/** The value of one non-group input. Which member is right is the input kind's to judge. */
|
|
46863
|
+
var TemplateScalarValueSchema = union([
|
|
46864
|
+
number$1(),
|
|
46865
|
+
string(),
|
|
46866
|
+
boolean(),
|
|
46867
|
+
array(number$1().int().nonnegative()),
|
|
46868
|
+
TemplateEventValueSchema,
|
|
46869
|
+
TemplateActionValueSchema
|
|
46870
|
+
]);
|
|
46871
|
+
var TemplateInputValueSchema = union([TemplateScalarValueSchema, array(record(string(), TemplateScalarValueSchema))]);
|
|
46872
|
+
/** Input key → value. */
|
|
46873
|
+
var TemplateInputValuesSchema = record(string(), TemplateInputValueSchema);
|
|
46874
|
+
var TemplateInstanceProblemSchema = object({
|
|
46875
|
+
code: _enum([
|
|
46876
|
+
"missing-input",
|
|
46877
|
+
"invalid-input",
|
|
46878
|
+
"invalid-recipe",
|
|
46879
|
+
"missing-template",
|
|
46880
|
+
"edited-by-hand"
|
|
46881
|
+
]),
|
|
46882
|
+
/** Dotted input address (`buttons.2.targets`); absent for a whole-recipe problem. */
|
|
46883
|
+
input: string().optional(),
|
|
46884
|
+
detail: string()
|
|
46885
|
+
});
|
|
46886
|
+
var AutomationTemplateLinkSchema = object({
|
|
46887
|
+
templateId: string().min(1),
|
|
46888
|
+
values: TemplateInputValuesSchema,
|
|
46889
|
+
/**
|
|
46890
|
+
* Fingerprint of the generated code with this literal blanked
|
|
46891
|
+
* (`instanceCodeHash`), stamped by `generateAutomationBlock`. Code that no
|
|
46892
|
+
* longer matches it was edited by hand, and is never regenerated over.
|
|
46893
|
+
*/
|
|
46894
|
+
codeHash: string().optional(),
|
|
46895
|
+
/**
|
|
46896
|
+
* Present when the last re-expansion refused these values. The automation
|
|
46897
|
+
* keeps running the body of its last good expansion; nothing is dropped.
|
|
46898
|
+
*/
|
|
46899
|
+
problems: array(TemplateInstanceProblemSchema).min(1).optional()
|
|
46900
|
+
});
|
|
46701
46901
|
var ExpressionBindingSourceSchema = union([
|
|
46702
46902
|
object({
|
|
46703
46903
|
kind: literal("field").optional(),
|
|
@@ -46990,41 +47190,6 @@ function macroOnly(macro) {
|
|
|
46990
47190
|
};
|
|
46991
47191
|
}
|
|
46992
47192
|
}
|
|
46993
|
-
var EventVocabularyKindSchema = _enum([
|
|
46994
|
-
"press",
|
|
46995
|
-
"long-press",
|
|
46996
|
-
"long-press-start",
|
|
46997
|
-
"release",
|
|
46998
|
-
"repeat",
|
|
46999
|
-
"double-press",
|
|
47000
|
-
"other"
|
|
47001
|
-
]);
|
|
47002
|
-
/** The part of the device an event comes from: a button, a channel. */
|
|
47003
|
-
var EventVocabularySourceSchema = object({
|
|
47004
|
-
id: string().min(1),
|
|
47005
|
-
label: string().min(1)
|
|
47006
|
-
});
|
|
47007
|
-
/** One scalar field of an event's `data`, by dotted path. */
|
|
47008
|
-
var EventVocabularyFieldSchema = object({
|
|
47009
|
-
path: string().min(1),
|
|
47010
|
-
kind: _enum([
|
|
47011
|
-
"string",
|
|
47012
|
-
"number",
|
|
47013
|
-
"boolean",
|
|
47014
|
-
"enum"
|
|
47015
|
-
]),
|
|
47016
|
-
enumValues: array(string()).optional(),
|
|
47017
|
-
label: string().min(1).optional()
|
|
47018
|
-
});
|
|
47019
|
-
var EventVocabularyEntrySchema = object({
|
|
47020
|
-
/** The native token, verbatim. */
|
|
47021
|
-
id: string().min(1),
|
|
47022
|
-
source: EventVocabularySourceSchema.optional(),
|
|
47023
|
-
label: string().min(1),
|
|
47024
|
-
description: string().optional(),
|
|
47025
|
-
kind: EventVocabularyKindSchema.optional(),
|
|
47026
|
-
payload: array(EventVocabularyFieldSchema).optional()
|
|
47027
|
-
});
|
|
47028
47193
|
Math.PI / 180;
|
|
47029
47194
|
/**
|
|
47030
47195
|
* WHEN something happens, as data (D983) — the one time vocabulary of the
|
|
@@ -48068,7 +48233,13 @@ var CurrentAutomationRecipeSchema = object({
|
|
|
48068
48233
|
actions: array(AutomationActionSchema),
|
|
48069
48234
|
runMode: AutomationRunModeSchema.optional(),
|
|
48070
48235
|
/** How many run traces the automation keeps (default {@link DEFAULT_TRACE_KEEP}). */
|
|
48071
|
-
keepTraces: number$1().int().min(1).max(100).optional()
|
|
48236
|
+
keepTraces: number$1().int().min(1).max(100).optional(),
|
|
48237
|
+
/**
|
|
48238
|
+
* Set when the automation was made from a template (#527): the template and
|
|
48239
|
+
* the values filled in. The rest of the recipe is then the expansion, which
|
|
48240
|
+
* the template engine rewrites when the template changes.
|
|
48241
|
+
*/
|
|
48242
|
+
template: AutomationTemplateLinkSchema.optional()
|
|
48072
48243
|
});
|
|
48073
48244
|
/** A recipe as it was stored before the single tree. Read-only: nothing writes this. */
|
|
48074
48245
|
var LegacyAutomationRecipeSchema = object({
|
|
@@ -54486,7 +54657,7 @@ DeviceType.MediaPlayer, optionalMethod(deviceOnly, _void(), {
|
|
|
54486
54657
|
}]
|
|
54487
54658
|
}]
|
|
54488
54659
|
});
|
|
54489
|
-
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Climate, DeviceType.EventEmitter, 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.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, DeviceType.HeatPump, DeviceType.Camera, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Lock, DeviceType.Camera, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Gateway, DeviceType.Camera, DeviceType.Sensor, DeviceType.MediaPlayer, DeviceType.Vacuum, DeviceType.Generic, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.PetFountain, DeviceType.Fan, DeviceType.Humidifier, DeviceType.Climate, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.PetFeeder, DeviceType.MediaPlayer;
|
|
54660
|
+
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Climate, DeviceType.EventEmitter, 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.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, DeviceType.HeatPump, DeviceType.EnergySystem, DeviceType.Camera, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Lock, DeviceType.Camera, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Gateway, DeviceType.Camera, DeviceType.Sensor, DeviceType.MediaPlayer, DeviceType.Vacuum, DeviceType.Generic, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.PetFountain, DeviceType.Fan, DeviceType.Humidifier, DeviceType.Climate, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.PetFeeder, DeviceType.MediaPlayer;
|
|
54490
54661
|
var NUMBER = {
|
|
54491
54662
|
kind: "fixed",
|
|
54492
54663
|
result: ["number"]
|
|
@@ -59305,6 +59476,79 @@ method(object({
|
|
|
59305
59476
|
kind: "mutation",
|
|
59306
59477
|
auth: "admin"
|
|
59307
59478
|
}), NOT_A_DEVICE.ML;
|
|
59479
|
+
/**
|
|
59480
|
+
* Energy system (#513): the one READ-ONLY cap of a home energy installation —
|
|
59481
|
+
* solar production, the grid connection, the house, a heat pump where the
|
|
59482
|
+
* system meters one, and the storage. Each part is a branch of one bus.
|
|
59483
|
+
*
|
|
59484
|
+
* A part the system does not have is `null` (the whole object); a value the
|
|
59485
|
+
* system did not report is `null`, never `0` (D393).
|
|
59486
|
+
*
|
|
59487
|
+
* Signs, all in watts:
|
|
59488
|
+
* - `solar.powerW`, `house.powerW`, `heatPump.powerW` are magnitudes (≥ 0);
|
|
59489
|
+
* - `grid.powerW` is + importing, − exporting;
|
|
59490
|
+
* - `storage.powerW` is + charging, − discharging.
|
|
59491
|
+
*
|
|
59492
|
+
* The storage is a FIELD of this model, never the `battery` cap: that cap says
|
|
59493
|
+
* a device runs on a battery and feeds the low-battery alerts, and a home
|
|
59494
|
+
* storage at 19 % is not a device about to go flat (#522).
|
|
59495
|
+
*
|
|
59496
|
+
* Lifetime kWh are counters (D944); a `…TodayKwh` is the system's own day total.
|
|
59497
|
+
* The self-consumption share is not a field: it derives at read time
|
|
59498
|
+
* ({@link energySystemSelfConsumptionPct}).
|
|
59499
|
+
*/
|
|
59500
|
+
/** Production: the panels. */
|
|
59501
|
+
var EnergySolarSchema = object({
|
|
59502
|
+
powerW: number$1().nullable().meta(readingMeta("power")),
|
|
59503
|
+
/** Lifetime production, kWh. */
|
|
59504
|
+
energyKwh: number$1().nullable().meta(readingMeta("energy")),
|
|
59505
|
+
/** Produced today, kWh. */
|
|
59506
|
+
todayKwh: number$1().nullable().meta(readingMeta("energy"))
|
|
59507
|
+
});
|
|
59508
|
+
/** The grid connection: + import, − export. */
|
|
59509
|
+
var EnergyGridSchema = object({
|
|
59510
|
+
powerW: number$1().nullable().meta(readingMeta("power")),
|
|
59511
|
+
/** Lifetime imported, kWh. */
|
|
59512
|
+
importKwh: number$1().nullable().meta(readingMeta("energy")),
|
|
59513
|
+
/** Lifetime exported, kWh. */
|
|
59514
|
+
exportKwh: number$1().nullable().meta(readingMeta("energy")),
|
|
59515
|
+
importTodayKwh: number$1().nullable().meta(readingMeta("energy")),
|
|
59516
|
+
exportTodayKwh: number$1().nullable().meta(readingMeta("energy"))
|
|
59517
|
+
});
|
|
59518
|
+
/** A consumer on the bus (the house, the heat pump): power and energy drawn. */
|
|
59519
|
+
var EnergyConsumerSchema = object({
|
|
59520
|
+
powerW: number$1().nullable().meta(readingMeta("power")),
|
|
59521
|
+
/** Lifetime consumption, kWh. */
|
|
59522
|
+
energyKwh: number$1().nullable().meta(readingMeta("energy")),
|
|
59523
|
+
/** Consumed today, kWh. */
|
|
59524
|
+
todayKwh: number$1().nullable().meta(readingMeta("energy"))
|
|
59525
|
+
});
|
|
59526
|
+
/** The home storage (accumulo): + charging, − discharging. */
|
|
59527
|
+
var EnergyStorageSchema = object({
|
|
59528
|
+
/** State of charge, 0..100. */
|
|
59529
|
+
stateOfChargePct: number$1().nullable().meta(readingMeta("percentage")),
|
|
59530
|
+
/** Energy held now, kWh. */
|
|
59531
|
+
storedKwh: number$1().nullable().meta(readingMeta("energy")),
|
|
59532
|
+
/** Usable capacity, kWh. */
|
|
59533
|
+
capacityKwh: number$1().nullable().meta(readingMeta("energy")),
|
|
59534
|
+
powerW: number$1().nullable().meta(readingMeta("power")),
|
|
59535
|
+
/** Lifetime charged, kWh. */
|
|
59536
|
+
chargedKwh: number$1().nullable().meta(readingMeta("energy")),
|
|
59537
|
+
/** Lifetime discharged, kWh. */
|
|
59538
|
+
dischargedKwh: number$1().nullable().meta(readingMeta("energy")),
|
|
59539
|
+
chargedTodayKwh: number$1().nullable().meta(readingMeta("energy")),
|
|
59540
|
+
dischargedTodayKwh: number$1().nullable().meta(readingMeta("energy"))
|
|
59541
|
+
});
|
|
59542
|
+
object({
|
|
59543
|
+
solar: EnergySolarSchema.nullable(),
|
|
59544
|
+
grid: EnergyGridSchema.nullable(),
|
|
59545
|
+
house: EnergyConsumerSchema.nullable(),
|
|
59546
|
+
heatPump: EnergyConsumerSchema.nullable(),
|
|
59547
|
+
storage: EnergyStorageSchema.nullable(),
|
|
59548
|
+
/** Ms epoch when the slice was last read from the system. */
|
|
59549
|
+
lastFetchedAt: number$1()
|
|
59550
|
+
});
|
|
59551
|
+
DeviceType.EnergySystem;
|
|
59308
59552
|
_enum([
|
|
59309
59553
|
"date",
|
|
59310
59554
|
"time",
|
|
@@ -61296,7 +61540,7 @@ var HeroSceneSchema = object({
|
|
|
61296
61540
|
/** 0..1: volume, cover position, cycle progress. */
|
|
61297
61541
|
level: number$1().min(0).max(1).nullable()
|
|
61298
61542
|
});
|
|
61299
|
-
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;
|
|
61543
|
+
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.EnergySystem, 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;
|
|
61300
61544
|
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.SwitchLight, 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;
|
|
61301
61545
|
var HeroRowIdSchema = _enum([
|
|
61302
61546
|
"progress",
|
|
@@ -62265,6 +62509,19 @@ var IntegrationInstanceKindSchema = object({
|
|
|
62265
62509
|
* finds the instances whose kind names it; absent takes the kind `id`.
|
|
62266
62510
|
*/
|
|
62267
62511
|
brokerKind: string().min(1).optional(),
|
|
62512
|
+
/**
|
|
62513
|
+
* Other function caps an instance of this kind also serves (a Google account sends mail, so it
|
|
62514
|
+
* serves `smtp-provider` beside being a `broker`). A link to one of these caps lists and accepts
|
|
62515
|
+
* the instance; a page section stays the kinds whose `functionCap` it names. Absent means none.
|
|
62516
|
+
*/
|
|
62517
|
+
alsoServes: array(string().min(1)).optional(),
|
|
62518
|
+
/**
|
|
62519
|
+
* The kind's own icon (a brand mark), hub-relative or a `data:` URI. Absent: the client shows
|
|
62520
|
+
* the provider addon's icon.
|
|
62521
|
+
*/
|
|
62522
|
+
iconUrl: string().min(1).optional(),
|
|
62523
|
+
/** The media type `iconUrl` serves (`image/svg+xml`, `image/png`); the URL carries no extension. */
|
|
62524
|
+
iconMediaType: string().min(1).optional(),
|
|
62268
62525
|
/** What instances of this kind are for the Integrations page; absent takes the provider's `role`. */
|
|
62269
62526
|
role: IntegrationInstanceRoleSchema.optional(),
|
|
62270
62527
|
/** `testInstance` really probes the remote for this kind; absent takes the provider's `canTest`. */
|
|
@@ -82422,14 +82679,188 @@ var TemperatureSensorStatusSchema = object({
|
|
|
82422
82679
|
lastFetchedAt: number$1()
|
|
82423
82680
|
});
|
|
82424
82681
|
DeviceType.Sensor, DeviceType.Climate;
|
|
82425
|
-
var
|
|
82682
|
+
var inputKey = string().regex(/^[A-Za-z][A-Za-z0-9_]{0,39}$/);
|
|
82683
|
+
var inputBase = {
|
|
82684
|
+
key: inputKey,
|
|
82685
|
+
label: string().min(1).max(80),
|
|
82686
|
+
description: string().max(300).optional(),
|
|
82687
|
+
/** Absent means required. */
|
|
82688
|
+
optional: literal(true).optional()
|
|
82689
|
+
};
|
|
82690
|
+
var TemplateDeviceFilterSchema = object({
|
|
82691
|
+
/** Only devices that offer this capability. */
|
|
82692
|
+
capability: string().min(1).optional(),
|
|
82693
|
+
/** Only devices of this role / device type (`light`, `switch`, `button`). */
|
|
82694
|
+
role: string().min(1).optional()
|
|
82695
|
+
});
|
|
82696
|
+
var DeviceInputSchema = object({
|
|
82697
|
+
kind: literal("device"),
|
|
82698
|
+
...inputBase,
|
|
82699
|
+
multiple: literal(true).optional(),
|
|
82700
|
+
filter: TemplateDeviceFilterSchema.optional()
|
|
82701
|
+
});
|
|
82702
|
+
var EventInputSchema = object({
|
|
82703
|
+
kind: literal("event"),
|
|
82704
|
+
...inputBase,
|
|
82705
|
+
/** The device input (same level) whose event vocabulary is offered (D1044). */
|
|
82706
|
+
deviceInput: inputKey
|
|
82707
|
+
});
|
|
82708
|
+
var ActionInputSchema$1 = object({
|
|
82709
|
+
kind: literal("action"),
|
|
82710
|
+
...inputBase,
|
|
82711
|
+
/** The device input (same level) whose actions are offered; absent offers all (D1050). */
|
|
82712
|
+
deviceInput: inputKey.optional()
|
|
82713
|
+
});
|
|
82714
|
+
var NumberInputSchema = object({
|
|
82715
|
+
kind: literal("number"),
|
|
82716
|
+
...inputBase,
|
|
82717
|
+
min: number$1().optional(),
|
|
82718
|
+
max: number$1().optional(),
|
|
82719
|
+
default: number$1().optional()
|
|
82720
|
+
});
|
|
82721
|
+
var DurationInputSchema = object({
|
|
82722
|
+
kind: literal("duration"),
|
|
82723
|
+
...inputBase,
|
|
82724
|
+
/** Seconds. */
|
|
82725
|
+
min: number$1().nonnegative().optional(),
|
|
82726
|
+
max: number$1().nonnegative().optional(),
|
|
82727
|
+
default: number$1().nonnegative().optional()
|
|
82728
|
+
});
|
|
82729
|
+
var TextInputSchema = object({
|
|
82730
|
+
kind: literal("text"),
|
|
82731
|
+
...inputBase,
|
|
82732
|
+
maxLength: number$1().int().min(1).max(2e3).optional(),
|
|
82733
|
+
default: string().optional()
|
|
82734
|
+
});
|
|
82735
|
+
var TemplateSelectOptionSchema = object({
|
|
82736
|
+
value: string().min(1),
|
|
82737
|
+
label: string().min(1).max(80)
|
|
82738
|
+
});
|
|
82739
|
+
var TemplateScalarInputSchema = discriminatedUnion("kind", [
|
|
82740
|
+
DeviceInputSchema,
|
|
82741
|
+
EventInputSchema,
|
|
82742
|
+
ActionInputSchema$1,
|
|
82743
|
+
NumberInputSchema,
|
|
82744
|
+
DurationInputSchema,
|
|
82745
|
+
TextInputSchema,
|
|
82746
|
+
object({
|
|
82747
|
+
kind: literal("select"),
|
|
82748
|
+
...inputBase,
|
|
82749
|
+
options: array(TemplateSelectOptionSchema).min(1).max(50),
|
|
82750
|
+
default: string().optional()
|
|
82751
|
+
}),
|
|
82752
|
+
object({
|
|
82753
|
+
kind: literal("boolean"),
|
|
82754
|
+
...inputBase,
|
|
82755
|
+
default: boolean().optional()
|
|
82756
|
+
})
|
|
82757
|
+
]);
|
|
82758
|
+
var GroupInputSchema = object({
|
|
82759
|
+
kind: literal("group"),
|
|
82760
|
+
...inputBase,
|
|
82761
|
+
inputs: array(TemplateScalarInputSchema).min(1).max(10),
|
|
82762
|
+
minRows: number$1().int().min(0).max(20).optional(),
|
|
82763
|
+
maxRows: number$1().int().min(1).max(20).optional()
|
|
82764
|
+
});
|
|
82765
|
+
var TemplateInputSchema = discriminatedUnion("kind", [...TemplateScalarInputSchema.options, GroupInputSchema]);
|
|
82766
|
+
var TemplatePathSchema = array(union([string().min(1), number$1().int().nonnegative()])).max(24);
|
|
82767
|
+
var TemplateValueBindingSchema = object({
|
|
82768
|
+
kind: literal("value"),
|
|
82769
|
+
input: inputKey,
|
|
82770
|
+
path: TemplatePathSchema,
|
|
82771
|
+
/** A device value written as a step target (`{ kind: 'devices', ids }`). */
|
|
82772
|
+
as: literal("target").optional()
|
|
82773
|
+
});
|
|
82774
|
+
var TemplateRowItemBindingSchema = discriminatedUnion("kind", [TemplateValueBindingSchema, object({
|
|
82775
|
+
kind: literal("row-id"),
|
|
82776
|
+
path: TemplatePathSchema
|
|
82777
|
+
})]);
|
|
82778
|
+
var TemplateBindingSchema = discriminatedUnion("kind", [TemplateValueBindingSchema, object({
|
|
82779
|
+
kind: literal("rows"),
|
|
82780
|
+
input: inputKey,
|
|
82781
|
+
/** The list in the body the rows are appended to. */
|
|
82782
|
+
path: TemplatePathSchema,
|
|
82783
|
+
/** The JSON copied once per row. */
|
|
82784
|
+
item: unknown(),
|
|
82785
|
+
bindings: array(TemplateRowItemBindingSchema).max(40)
|
|
82786
|
+
})]);
|
|
82787
|
+
function bindingProblems(payload, ctx) {
|
|
82788
|
+
const byKey = /* @__PURE__ */ new Map();
|
|
82789
|
+
payload.inputs.forEach((input, index) => {
|
|
82790
|
+
if (byKey.has(input.key)) ctx.addIssue({
|
|
82791
|
+
code: "custom",
|
|
82792
|
+
message: `input "${input.key}" is declared twice`,
|
|
82793
|
+
path: ["inputs", index]
|
|
82794
|
+
});
|
|
82795
|
+
byKey.set(input.key, input);
|
|
82796
|
+
const siblings = input.kind === "group" ? input.inputs : payload.inputs;
|
|
82797
|
+
for (const scalar of input.kind === "group" ? input.inputs : [input]) {
|
|
82798
|
+
if (scalar.kind !== "event" && scalar.kind !== "action") continue;
|
|
82799
|
+
if (scalar.deviceInput === void 0) continue;
|
|
82800
|
+
const device = siblings.find((s) => s.key === scalar.deviceInput);
|
|
82801
|
+
if (device === void 0 || device.kind !== "device") ctx.addIssue({
|
|
82802
|
+
code: "custom",
|
|
82803
|
+
message: `"${scalar.key}" reads the device input "${scalar.deviceInput}", which is not a device input beside it`,
|
|
82804
|
+
path: ["inputs", index]
|
|
82805
|
+
});
|
|
82806
|
+
}
|
|
82807
|
+
});
|
|
82808
|
+
payload.bindings.forEach((binding, index) => {
|
|
82809
|
+
const input = byKey.get(binding.input);
|
|
82810
|
+
if (input === void 0) {
|
|
82811
|
+
ctx.addIssue({
|
|
82812
|
+
code: "custom",
|
|
82813
|
+
message: `binding names the undeclared input "${binding.input}"`,
|
|
82814
|
+
path: ["bindings", index]
|
|
82815
|
+
});
|
|
82816
|
+
return;
|
|
82817
|
+
}
|
|
82818
|
+
if (binding.kind === "value" && input.kind === "group") ctx.addIssue({
|
|
82819
|
+
code: "custom",
|
|
82820
|
+
message: `group "${input.key}" is bound with rows, not a value`,
|
|
82821
|
+
path: ["bindings", index]
|
|
82822
|
+
});
|
|
82823
|
+
if (binding.kind === "rows") {
|
|
82824
|
+
if (input.kind !== "group") {
|
|
82825
|
+
ctx.addIssue({
|
|
82826
|
+
code: "custom",
|
|
82827
|
+
message: `rows need a group input, "${input.key}" is ${input.kind}`,
|
|
82828
|
+
path: ["bindings", index]
|
|
82829
|
+
});
|
|
82830
|
+
return;
|
|
82831
|
+
}
|
|
82832
|
+
for (const row of binding.bindings) if (row.kind === "value" && !input.inputs.some((i) => i.key === row.input)) ctx.addIssue({
|
|
82833
|
+
code: "custom",
|
|
82834
|
+
message: `row binding names "${row.input}", which group "${input.key}" does not declare`,
|
|
82835
|
+
path: ["bindings", index]
|
|
82836
|
+
});
|
|
82837
|
+
}
|
|
82838
|
+
});
|
|
82839
|
+
}
|
|
82840
|
+
var AutomationTemplatePayloadSchema = object({
|
|
82841
|
+
version: literal(1),
|
|
82842
|
+
description: string().max(500).optional(),
|
|
82843
|
+
/** The automation body; a recipe once the inputs are written into it. */
|
|
82844
|
+
body: record(string(), unknown()),
|
|
82845
|
+
inputs: array(TemplateInputSchema).max(30),
|
|
82846
|
+
bindings: array(TemplateBindingSchema).max(100)
|
|
82847
|
+
}).superRefine(bindingProblems);
|
|
82848
|
+
object({
|
|
82849
|
+
format: literal("camstack.automation-template"),
|
|
82850
|
+
version: literal(1),
|
|
82851
|
+
name: string().min(1).max(120),
|
|
82852
|
+
payload: AutomationTemplatePayloadSchema
|
|
82853
|
+
});
|
|
82854
|
+
var TemplateKindSchema = _enum(["remote", "automation"]);
|
|
82426
82855
|
/**
|
|
82427
82856
|
* template — the generic store of reusable, named operator data (D963). A
|
|
82428
82857
|
* record is `{ id, kind, name, payload }`; the kinds (today only `remote`, the
|
|
82429
82858
|
* button grid of a remote) and the schema each payload must satisfy are
|
|
82430
82859
|
* declared by the system in `template-kinds.ts`. Nothing here is specific to a
|
|
82431
82860
|
* kind: the engine validates a payload against its kind's schema and, on a
|
|
82432
|
-
* delete, asks the kind's owner whether anything still points at the record
|
|
82861
|
+
* delete, asks the kind's owner whether anything still points at the record
|
|
82862
|
+
* (a device's remote, an automation made from the template). Saving an
|
|
82863
|
+
* `automation` template re-expands every automation made from it (#527).
|
|
82433
82864
|
*
|
|
82434
82865
|
* Every refusal is a typed result — a UI says "unknown kind" or names the
|
|
82435
82866
|
* devices that still use a template, without parsing text.
|
|
@@ -82441,14 +82872,20 @@ var TemplateRecordSchema = object({
|
|
|
82441
82872
|
/** Shaped by the kind; `checkTemplatePayload(kind, payload)` reads it. */
|
|
82442
82873
|
payload: unknown(),
|
|
82443
82874
|
createdAt: number$1(),
|
|
82444
|
-
updatedAt: number$1()
|
|
82875
|
+
updatedAt: number$1(),
|
|
82876
|
+
/** Shipped with CamStack (`builtin:` ids): listed beside the operator's, never updated or deleted. */
|
|
82877
|
+
builtIn: literal(true).optional()
|
|
82445
82878
|
});
|
|
82446
82879
|
var TemplateWriteResultSchema = discriminatedUnion("status", [object({
|
|
82447
82880
|
status: literal("saved"),
|
|
82448
82881
|
template: TemplateRecordSchema
|
|
82449
82882
|
}), object({
|
|
82450
82883
|
status: literal("refused"),
|
|
82451
|
-
reason: _enum([
|
|
82884
|
+
reason: _enum([
|
|
82885
|
+
"invalid-payload",
|
|
82886
|
+
"not-found",
|
|
82887
|
+
"read-only"
|
|
82888
|
+
]),
|
|
82452
82889
|
detail: string()
|
|
82453
82890
|
})]);
|
|
82454
82891
|
/** A device still pointing at a template. */
|
|
@@ -82456,12 +82893,19 @@ var TemplateUserSchema = object({
|
|
|
82456
82893
|
deviceId: number$1().int().nonnegative(),
|
|
82457
82894
|
name: string()
|
|
82458
82895
|
});
|
|
82896
|
+
/** An automation made from a template (#527): a core block whose recipe links to it. */
|
|
82897
|
+
var TemplateAutomationUserSchema = object({
|
|
82898
|
+
blockId: string().min(1),
|
|
82899
|
+
name: string()
|
|
82900
|
+
});
|
|
82459
82901
|
var TemplateDeleteResultSchema = discriminatedUnion("status", [
|
|
82460
82902
|
object({ status: literal("deleted") }),
|
|
82461
82903
|
object({ status: literal("not-found") }),
|
|
82904
|
+
object({ status: literal("read-only") }),
|
|
82462
82905
|
object({
|
|
82463
82906
|
status: literal("in-use"),
|
|
82464
|
-
devices: array(TemplateUserSchema)
|
|
82907
|
+
devices: array(TemplateUserSchema),
|
|
82908
|
+
automations: array(TemplateAutomationUserSchema)
|
|
82465
82909
|
})
|
|
82466
82910
|
]);
|
|
82467
82911
|
method(object({ kind: TemplateKindSchema.optional() }), array(TemplateRecordSchema), { auth: "protected" }), method(object({ id: string().min(1) }), TemplateRecordSchema.nullable(), { auth: "protected" }), method(object({
|
|
@@ -85084,6 +85528,15 @@ btn("power", 0, 0, {
|
|
|
85084
85528
|
4
|
|
85085
85529
|
].map((n) => btn(`app${n}`, 0, n - 1, { role: `custom:app_slot_${n}` })), btn("back", 0, 0, { role: "back" }), btn("home", 0, 1, { role: "home" }), btn("menu", 0, 2, { role: "menu" });
|
|
85086
85530
|
/**
|
|
85531
|
+
* Automation templates shipped with CamStack (#527). They are read-only records
|
|
85532
|
+
* of the template store: `template.list` returns them beside the operator's
|
|
85533
|
+
* own, under `builtin:` ids, and an update or delete of one is refused. They
|
|
85534
|
+
* are code, not seeded rows, so a new release changes them without a
|
|
85535
|
+
* migration and nothing an operator saved is ever overwritten.
|
|
85536
|
+
*/
|
|
85537
|
+
var BUILTIN_TEMPLATE_ID_PREFIX = "builtin:";
|
|
85538
|
+
`${BUILTIN_TEMPLATE_ID_PREFIX}`, `${BUILTIN_TEMPLATE_ID_PREFIX}`;
|
|
85539
|
+
/**
|
|
85087
85540
|
* Propose a running threshold from a device's own power history (planning#405).
|
|
85088
85541
|
*
|
|
85089
85542
|
* Pure and deterministic: the same series gives the same answer. The series is
|
|
@@ -85174,7 +85627,7 @@ var AccessoryKind = {
|
|
|
85174
85627
|
};
|
|
85175
85628
|
AccessoryKind.Siren, AccessoryKind.Floodlight, AccessoryKind.Spotlight, AccessoryKind.PirSensor, AccessoryKind.Chime, AccessoryKind.Autotrack, AccessoryKind.Nightvision, AccessoryKind.PrivacyMask;
|
|
85176
85629
|
DeviceType.HeatPump;
|
|
85177
|
-
DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.HeatPump, DeviceType.Camera, DeviceType.Hub, DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, DeviceType.Sensor, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, 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;
|
|
85630
|
+
DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.HeatPump, DeviceType.EnergySystem, DeviceType.Camera, DeviceType.Hub, DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, DeviceType.Sensor, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, 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;
|
|
85178
85631
|
new Set(Object.values(DeviceType));
|
|
85179
85632
|
/** Parses the raw slice with the cap's own schema; `undefined` when it does not parse. */
|
|
85180
85633
|
function contribution(cap, schema, build) {
|
|
@@ -87215,7 +87668,7 @@ var HEAT_PUMP_FAMILY_CONTRIBUTIONS = { "heat-pump-status": contribution("heat-pu
|
|
|
87215
87668
|
...Object.values(CLIMATE_FAMILY_CONTRIBUTIONS),
|
|
87216
87669
|
...Object.values(HEAT_PUMP_FAMILY_CONTRIBUTIONS)
|
|
87217
87670
|
];
|
|
87218
|
-
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;
|
|
87671
|
+
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.EnergySystem, 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;
|
|
87219
87672
|
/**
|
|
87220
87673
|
* Who looks like what (D1023). One look per {@link DeviceType}, refined by a
|
|
87221
87674
|
* {@link DeviceRole} where the role changes how the device reads (a leak
|
|
@@ -87859,7 +88312,7 @@ lookOf({
|
|
|
87859
88312
|
standby: MUTED
|
|
87860
88313
|
});
|
|
87861
88314
|
DeviceType.Climate;
|
|
87862
|
-
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;
|
|
88315
|
+
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.EnergySystem, 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;
|
|
87863
88316
|
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.SwitchLight, 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;
|
|
87864
88317
|
Object.freeze({
|
|
87865
88318
|
"accessories.getStatus": {
|
|
@@ -91110,6 +91563,13 @@ Object.freeze({
|
|
|
91110
91563
|
access: "delete",
|
|
91111
91564
|
role: "admin"
|
|
91112
91565
|
},
|
|
91566
|
+
"energySystem.getStatus": {
|
|
91567
|
+
capName: "energy-system",
|
|
91568
|
+
capScope: "device",
|
|
91569
|
+
addonId: null,
|
|
91570
|
+
access: "view",
|
|
91571
|
+
role: "viewer"
|
|
91572
|
+
},
|
|
91113
91573
|
"enumSensor.getStatus": {
|
|
91114
91574
|
capName: "enum-sensor",
|
|
91115
91575
|
capScope: "device",
|
|
@@ -98316,7 +98776,7 @@ function offered(received) {
|
|
|
98316
98776
|
};
|
|
98317
98777
|
}
|
|
98318
98778
|
offered(HA_AS), withheld(HOMEKIT_REASON), withheld(ALEXA_REASON), withheld(GOOGLE_REASON), withheld(MATTER_REASON);
|
|
98319
|
-
DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.HeatPump, 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.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;
|
|
98779
|
+
DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.HeatPump, DeviceType.EnergySystem, 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.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;
|
|
98320
98780
|
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.SwitchLight, 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;
|
|
98321
98781
|
new Set(Object.values(DeviceType));
|
|
98322
98782
|
new Set(Object.values(DeviceRole));
|
|
@@ -99274,6 +99734,11 @@ Object.freeze({
|
|
|
99274
99734
|
form: "single",
|
|
99275
99735
|
optional: false
|
|
99276
99736
|
}],
|
|
99737
|
+
"energySystem.getStatus": [{
|
|
99738
|
+
name: "deviceId",
|
|
99739
|
+
form: "single",
|
|
99740
|
+
optional: false
|
|
99741
|
+
}],
|
|
99277
99742
|
"enumSensor.getStatus": [{
|
|
99278
99743
|
name: "deviceId",
|
|
99279
99744
|
form: "single",
|
|
@@ -102807,7 +103272,7 @@ var AdminUIAddon = class extends BaseAddon {
|
|
|
102807
103272
|
capability: adminUiCapability,
|
|
102808
103273
|
provider: {
|
|
102809
103274
|
getStaticDir: async () => ({ staticDir: resolveAdminUiDistDir() }),
|
|
102810
|
-
getVersion: async () => ({ version: "1.2.
|
|
103275
|
+
getVersion: async () => ({ version: "1.2.661" })
|
|
102811
103276
|
}
|
|
102812
103277
|
}];
|
|
102813
103278
|
}
|