@camstack/addon-admin-ui 1.2.660 → 1.2.662

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.
Files changed (133) hide show
  1. package/CHANGELOG.md +27 -1
  2. package/dist/assets/Addons-CjqcNK8h.js +5 -0
  3. package/dist/assets/{AdminPage-CERAT6OE.js → AdminPage-BTsUEgX1.js} +1 -1
  4. package/dist/assets/{AdminSectionedPage-Br7kOiVH.js → AdminSectionedPage-D662-gxB.js} +1 -1
  5. package/dist/assets/AiProfiles-Cm2Q7JhZ.js +3 -0
  6. package/dist/assets/{BootstrapSettingsForm-BKRohQp4.js → BootstrapSettingsForm-DB9tm-XM.js} +1 -1
  7. package/dist/assets/Build-BrrMWCRs.js +42 -0
  8. package/dist/assets/Calendars-X5kuugfK.js +1 -0
  9. package/dist/assets/{CameraGrids-BL9IJLpe.js → CameraGrids-2YCn1hwy.js} +1 -1
  10. package/dist/assets/{Cluster-B9ANo52_.js → Cluster-BWUBYf2O.js} +1 -1
  11. package/dist/assets/CompositionBlockEditor-IVaGWPoQ.js +2 -0
  12. package/dist/assets/CompositionEditorPage-CnDWWX--.js +1 -0
  13. package/dist/assets/Data-n-6LtblT.js +2 -0
  14. package/dist/assets/DeviceDetail-BEGQMf7d.js +2 -0
  15. package/dist/assets/Devices-rx5eVBlk.js +1 -0
  16. package/dist/assets/{EmbedDevicePage-DvRASgDw.js → EmbedDevicePage-Df6vV2Fs.js} +1 -1
  17. package/dist/assets/{EmbedPlayerPage-DHSr3Tl_.js → EmbedPlayerPage-BWrh5XSf.js} +1 -1
  18. package/dist/assets/History-D_aozO54.js +1 -0
  19. package/dist/assets/Identity-BmPRs4mg.js +1 -0
  20. package/dist/assets/InstancesTable-Cz2Nvv6V.js +1 -0
  21. package/dist/assets/IntegrationDetail-BSC9BD-J.js +1 -0
  22. package/dist/assets/Integrations-BwOWjFHm.js +2 -0
  23. package/dist/assets/Integrations-De2JyPXz.js +1 -0
  24. package/dist/assets/Library-ouqjvO91.js +1 -0
  25. package/dist/assets/Locations-CUMzXXog.js +3 -0
  26. package/dist/assets/{Logs-BUIyFNHB.js → Logs-DhIxC1_t.js} +1 -1
  27. package/dist/assets/{MaskShapeCanvas-B4cgdl3M.js → MaskShapeCanvas-DAEAeEsb.js} +1 -1
  28. package/dist/assets/{MotionZonesSettings-E62PigxG.js → MotionZonesSettings-Diw-iY7J.js} +1 -1
  29. package/dist/assets/MyAccess-DqTYKZ2_.js +2 -0
  30. package/dist/assets/Network-C2DyBsm5.js +1 -0
  31. package/dist/assets/NodeAddonsSettingsPanel-DBYJefzi.js +2 -0
  32. package/dist/assets/Notifications-DvmwEvAK.js +1 -0
  33. package/dist/assets/Pipeline-DRXj7Gu_.js +1 -0
  34. package/dist/assets/{PrivacyMaskSettings-CY_ePn_3.js → PrivacyMaskSettings-CHKiIcsw.js} +1 -1
  35. package/dist/assets/Recordings-tBQ7GNq1.js +1 -0
  36. package/dist/assets/{SceneMonitorEditor-DXSSscj5.js → SceneMonitorEditor-Djp_rvEh.js} +1 -1
  37. package/dist/assets/SessionsList-lLfA_jg3.js +2 -0
  38. package/dist/assets/Showroom-ePgxQlHR.js +1 -0
  39. package/dist/assets/StorageLocationsTable-DZjP3bRr.js +1 -0
  40. package/dist/assets/{System-GaBMCDXq.js → System-o0QFwzcf.js} +1 -1
  41. package/dist/assets/{Terminal-bEPuP-Ni.js → Terminal-VNG3sFJA.js} +4 -4
  42. package/dist/assets/{TrainingProviders-CKnVaSy5.js → TrainingProviders-C3EJXLp7.js} +1 -1
  43. package/dist/assets/{Viewer-D6N_FDoi.js → Viewer-D_pGUq-Y.js} +1 -1
  44. package/dist/assets/{_virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-xQ6ZAyO5.js → _virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-CPteDxIA.js} +1 -1
  45. package/dist/assets/{action-draft-BFWQOcD-.js → action-draft-BjuURFtz.js} +1 -1
  46. package/dist/assets/{ai-page.helpers-B5WcoTGx.js → ai-page.helpers-CrXOsRH5.js} +1 -1
  47. package/dist/assets/{assignment-candidates-BCi2Ds6Z.js → assignment-candidates-qVkiriMP.js} +1 -1
  48. package/dist/assets/{authed-media-C7-SuZfk.js → authed-media-BXrXD050.js} +1 -1
  49. package/dist/assets/{board-model-Dtuzj7p0.js → board-model-lauwzeiV.js} +1 -1
  50. package/dist/assets/client-DbkHdobd.js +1119 -0
  51. package/dist/assets/{command-vocab-D8O8h9Nx.js → command-vocab-D0HVfsUo.js} +1 -1
  52. package/dist/assets/{device-detail-CNETUEYQ.js → device-detail-BvB3nomd.js} +1 -1
  53. package/dist/assets/device-integration-icon-CLnHy0fo.js +1 -0
  54. package/dist/assets/device-picker-model-DRxal6IV.js +1 -0
  55. package/dist/assets/{dist-D2wqGzzP.js → dist-Bk6tqJHT.js} +1 -1
  56. package/dist/assets/dist-CfWnzxgg.js +1119 -0
  57. package/dist/assets/flask-conical-D7tbJQpj.js +1 -0
  58. package/dist/assets/{format-DQPwm2LA.js → format-CIAv5hh2.js} +1 -1
  59. package/dist/assets/{hostInit-BjmW5lpD.js → hostInit-DQkQDV8-.js} +1 -1
  60. package/dist/assets/i18n-D9gvzMlq.js +1 -0
  61. package/dist/assets/icons-BXQ6TgE8.js +1 -0
  62. package/dist/assets/index-C5CxkeN1.css +2 -0
  63. package/dist/assets/index-Xpk4gTbv.js +4 -0
  64. package/dist/assets/{linked-devices-model-CeeIdQcU.js → linked-devices-model-0tlf9-eZ.js} +1 -1
  65. package/dist/assets/{mf-entry-bootstrap-0-1178bf74.js → mf-entry-bootstrap-0-8ef88b9e.js} +2 -2
  66. package/dist/assets/mount-DRxal6IV.js +1 -0
  67. package/dist/assets/{notification-rule-status-CoQzv8bD.js → notification-rule-status-BVKLlf6x.js} +1 -1
  68. package/dist/assets/player-overlays-D-xr6JNm.js +1 -0
  69. package/dist/assets/remoteEntry-CCeILvpu.js +1 -0
  70. package/dist/assets/src-QaXiFLvn.js +272 -0
  71. package/dist/assets/sso-popup-D3eOaBzJ.js +1 -0
  72. package/dist/assets/{step-inspector-model-Bs29Quj-.js → step-inspector-model-eI0Wac5U.js} +1 -1
  73. package/dist/assets/terminal-DU-tvcEm.js +1 -0
  74. package/dist/assets/{use-scenes-feed-DjWk3U0s.js → use-scenes-feed-o6WPM551.js} +1 -1
  75. package/dist/assets/{use-stationary-objects-D8_FnyFC.js → use-stationary-objects-DniMKKDB.js} +1 -1
  76. package/dist/assets/{useAdminDeviceRemoval-DgZKyG5k.js → useAdminDeviceRemoval-Bz31MUiO.js} +1 -1
  77. package/dist/assets/useEventInvalidation-DRxal6IV.js +1 -0
  78. package/dist/assets/{useNodeUrlSelection-CdgZ2vRL.js → useNodeUrlSelection-D2-CzRHy.js} +1 -1
  79. package/dist/assets/useTemplateSave-CoTTvn6r.js +1 -0
  80. package/dist/assets/variable-Cq3v1-Kt.js +1 -0
  81. 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_-yMYUaEZc.js} +2 -2
  82. package/dist/index.html +10 -9
  83. package/dist/server/addon.js +651 -91
  84. package/package.json +2 -2
  85. package/dist/assets/Addons-BKyuLQDW.js +0 -5
  86. package/dist/assets/AiProfiles-CBSjTujs.js +0 -3
  87. package/dist/assets/Build-DDQsUqm9.js +0 -40
  88. package/dist/assets/Calendars-BCrXW6ev.js +0 -1
  89. package/dist/assets/CompositionBlockEditor-DCCYb3Al.js +0 -2
  90. package/dist/assets/CompositionEditorPage-CPPeSp5g.js +0 -1
  91. package/dist/assets/Data-DbJLrZGB.js +0 -2
  92. package/dist/assets/DeviceDetail-D40ZWxPY.js +0 -2
  93. package/dist/assets/Devices-Ci3mDEu7.js +0 -1
  94. package/dist/assets/History-C8ol6H76.js +0 -1
  95. package/dist/assets/Identity-CEJnvsoZ.js +0 -1
  96. package/dist/assets/InstancesTable-FBx9JRZk.js +0 -1
  97. package/dist/assets/IntegrationDetail-BEK8Sry_.js +0 -1
  98. package/dist/assets/IntegrationWizard-CcNLdn4m.js +0 -1
  99. package/dist/assets/Integrations-ET87lqxO.js +0 -1
  100. package/dist/assets/Integrations-SQZl5xUE.js +0 -2
  101. package/dist/assets/Library-goz2bc6M.js +0 -1
  102. package/dist/assets/Locations-2rJZmR7V.js +0 -3
  103. package/dist/assets/MyAccess-BWDAey7o.js +0 -2
  104. package/dist/assets/Network-CKKRKQ-O.js +0 -1
  105. package/dist/assets/NodeAddonsSettingsPanel-Cst9sv6D.js +0 -2
  106. package/dist/assets/Notifications-C5328Lom.js +0 -1
  107. package/dist/assets/Pipeline-vIZNfSae.js +0 -1
  108. package/dist/assets/Recordings-DFKQYs1C.js +0 -1
  109. package/dist/assets/ScanSubnetEditor-BQ7H3hHG.js +0 -1
  110. package/dist/assets/SessionsList-PNK9JpXa.js +0 -2
  111. package/dist/assets/Showroom-DobzkfjB.js +0 -1
  112. package/dist/assets/StorageLocationsTable-D_AWqrcu.js +0 -1
  113. package/dist/assets/Templates-BPfFAYcv.js +0 -1
  114. package/dist/assets/boxes-k5PsZ3NR.js +0 -1
  115. package/dist/assets/client-rKDh78PS.js +0 -1115
  116. package/dist/assets/create-composition-BDLBjShb.js +0 -1
  117. package/dist/assets/device-integration-icon-DgV2s6G7.js +0 -1
  118. package/dist/assets/device-picker-model-DoWv_-il.js +0 -1
  119. package/dist/assets/dist-XuKhSZmU.js +0 -1115
  120. package/dist/assets/framework-packages-B0ugw-Ay.js +0 -1
  121. package/dist/assets/i18n-a_osePOH.js +0 -1
  122. package/dist/assets/icons-BIkHFZKC.js +0 -1
  123. package/dist/assets/index-CoqQ1LfI.css +0 -2
  124. package/dist/assets/index-GTPwIjSa.js +0 -4
  125. package/dist/assets/mount-DoWv_-il.js +0 -1
  126. package/dist/assets/player-overlays-BT0TXPfb.js +0 -1
  127. package/dist/assets/remoteEntry-BAhwoqOT.js +0 -1
  128. package/dist/assets/send-D_NAoo3n.js +0 -1
  129. package/dist/assets/src-BJEmpxo2.js +0 -263
  130. package/dist/assets/terminal-BSZfUawf.js +0 -1
  131. package/dist/assets/useEventInvalidation-DoWv_-il.js +0 -1
  132. package/dist/assets/useTemplateSave-OvjvioSD.js +0 -1
  133. package/dist/assets/variable-Cy0obf0C.js +0 -1
@@ -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-iddnCQ51.mjs
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-C9PbO6Nb.mjs
5933
+ //#region ../types/dist/sleep-BCWQQG52.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).
@@ -9826,41 +9830,57 @@ var CAP_VOCABULARY_BY_NAME = {
9826
9830
  en: "Switch",
9827
9831
  it: "Interruttore"
9828
9832
  },
9829
- actions: [{
9830
- id: "switch.on",
9831
- method: "setState",
9832
- label: {
9833
- en: "Turn on",
9834
- it: "Accendi"
9835
- },
9836
- phrase: {
9837
- en: "Turn on {device}",
9838
- it: "Accendi {device}"
9839
- },
9840
- icon: "power",
9841
- args: { on: true },
9842
- effect: {
9843
- field: "on",
9844
- value: true
9845
- }
9846
- }, {
9847
- id: "switch.off",
9848
- method: "setState",
9849
- label: {
9850
- en: "Turn off",
9851
- it: "Spegni"
9833
+ actions: [
9834
+ {
9835
+ id: "switch.on",
9836
+ method: "setState",
9837
+ label: {
9838
+ en: "Turn on",
9839
+ it: "Accendi"
9840
+ },
9841
+ phrase: {
9842
+ en: "Turn on {device}",
9843
+ it: "Accendi {device}"
9844
+ },
9845
+ icon: "power",
9846
+ args: { on: true },
9847
+ effect: {
9848
+ field: "on",
9849
+ value: true
9850
+ }
9852
9851
  },
9853
- phrase: {
9854
- en: "Turn off {device}",
9855
- it: "Spegni {device}"
9852
+ {
9853
+ id: "switch.off",
9854
+ method: "setState",
9855
+ label: {
9856
+ en: "Turn off",
9857
+ it: "Spegni"
9858
+ },
9859
+ phrase: {
9860
+ en: "Turn off {device}",
9861
+ it: "Spegni {device}"
9862
+ },
9863
+ icon: "power-off",
9864
+ args: { on: false },
9865
+ effect: {
9866
+ field: "on",
9867
+ value: false
9868
+ }
9856
9869
  },
9857
- icon: "power-off",
9858
- args: { on: false },
9859
- effect: {
9860
- field: "on",
9861
- value: false
9870
+ {
9871
+ id: "switch.toggle",
9872
+ method: "toggle",
9873
+ label: {
9874
+ en: "Toggle",
9875
+ it: "Commuta"
9876
+ },
9877
+ phrase: {
9878
+ en: "Toggle {device}",
9879
+ it: "Commuta {device}"
9880
+ },
9881
+ icon: "toggle-right"
9862
9882
  }
9863
- }],
9883
+ ],
9864
9884
  state: [{
9865
9885
  kind: "boolean",
9866
9886
  field: "on",
@@ -16742,6 +16762,13 @@ var CAP_VOCABULARY_BY_NAME = {
16742
16762
  }
16743
16763
  ]
16744
16764
  },
16765
+ "energy-system": {
16766
+ scope: "device",
16767
+ noun: {
16768
+ en: "Energy system",
16769
+ it: "Sistema energetico"
16770
+ }
16771
+ },
16745
16772
  "air-quality-sensor": {
16746
16773
  scope: "device",
16747
16774
  noun: {
@@ -18539,6 +18566,7 @@ var CAP_NAMES = Object.freeze([
18539
18566
  "do-not-disturb",
18540
18567
  "doorbell",
18541
18568
  "embedding-encoder",
18569
+ "energy-system",
18542
18570
  "enum-sensor",
18543
18571
  "event-emitter",
18544
18572
  "face-gallery",
@@ -19316,6 +19344,96 @@ Object.freeze({
19316
19344
  "path": "pressCountSinceStart",
19317
19345
  "valueType": "number"
19318
19346
  }],
19347
+ "energy-system": [
19348
+ {
19349
+ "path": "solar.powerW",
19350
+ "valueType": "number"
19351
+ },
19352
+ {
19353
+ "path": "solar.energyKwh",
19354
+ "valueType": "number"
19355
+ },
19356
+ {
19357
+ "path": "solar.todayKwh",
19358
+ "valueType": "number"
19359
+ },
19360
+ {
19361
+ "path": "grid.powerW",
19362
+ "valueType": "number"
19363
+ },
19364
+ {
19365
+ "path": "grid.importKwh",
19366
+ "valueType": "number"
19367
+ },
19368
+ {
19369
+ "path": "grid.exportKwh",
19370
+ "valueType": "number"
19371
+ },
19372
+ {
19373
+ "path": "grid.importTodayKwh",
19374
+ "valueType": "number"
19375
+ },
19376
+ {
19377
+ "path": "grid.exportTodayKwh",
19378
+ "valueType": "number"
19379
+ },
19380
+ {
19381
+ "path": "house.powerW",
19382
+ "valueType": "number"
19383
+ },
19384
+ {
19385
+ "path": "house.energyKwh",
19386
+ "valueType": "number"
19387
+ },
19388
+ {
19389
+ "path": "house.todayKwh",
19390
+ "valueType": "number"
19391
+ },
19392
+ {
19393
+ "path": "heatPump.powerW",
19394
+ "valueType": "number"
19395
+ },
19396
+ {
19397
+ "path": "heatPump.energyKwh",
19398
+ "valueType": "number"
19399
+ },
19400
+ {
19401
+ "path": "heatPump.todayKwh",
19402
+ "valueType": "number"
19403
+ },
19404
+ {
19405
+ "path": "storage.stateOfChargePct",
19406
+ "valueType": "number"
19407
+ },
19408
+ {
19409
+ "path": "storage.storedKwh",
19410
+ "valueType": "number"
19411
+ },
19412
+ {
19413
+ "path": "storage.capacityKwh",
19414
+ "valueType": "number"
19415
+ },
19416
+ {
19417
+ "path": "storage.powerW",
19418
+ "valueType": "number"
19419
+ },
19420
+ {
19421
+ "path": "storage.chargedKwh",
19422
+ "valueType": "number"
19423
+ },
19424
+ {
19425
+ "path": "storage.dischargedKwh",
19426
+ "valueType": "number"
19427
+ },
19428
+ {
19429
+ "path": "storage.chargedTodayKwh",
19430
+ "valueType": "number"
19431
+ },
19432
+ {
19433
+ "path": "storage.dischargedTodayKwh",
19434
+ "valueType": "number"
19435
+ }
19436
+ ],
19319
19437
  "enum-sensor": [{
19320
19438
  "path": "value",
19321
19439
  "valueType": "string"
@@ -20630,7 +20748,7 @@ Object.freeze({
20630
20748
  }
20631
20749
  });
20632
20750
  //#endregion
20633
- //#region ../types/dist/implemented-methods-CSTk6zYK.mjs
20751
+ //#region ../types/dist/implemented-methods-CgUBu6uM.mjs
20634
20752
  /**
20635
20753
  * The ffmpeg build every CamStack node downloads, per platform and arch.
20636
20754
  *
@@ -46698,6 +46816,104 @@ var ActionTargetSchema = discriminatedUnion("kind", [
46698
46816
  })
46699
46817
  ]);
46700
46818
  EventCategory.DeviceRegistered, EventCategory.DeviceUnregistered, EventCategory.DeviceUpdated, EventCategory.DeviceMetaChanged, EventCategory.DeviceBindingsChanged;
46819
+ var EventVocabularyKindSchema = _enum([
46820
+ "press",
46821
+ "long-press",
46822
+ "long-press-start",
46823
+ "release",
46824
+ "repeat",
46825
+ "double-press",
46826
+ "other"
46827
+ ]);
46828
+ /** The part of the device an event comes from: a button, a channel. */
46829
+ var EventVocabularySourceSchema = object({
46830
+ id: string().min(1),
46831
+ label: string().min(1)
46832
+ });
46833
+ /** One scalar field of an event's `data`, by dotted path. */
46834
+ var EventVocabularyFieldSchema = object({
46835
+ path: string().min(1),
46836
+ kind: _enum([
46837
+ "string",
46838
+ "number",
46839
+ "boolean",
46840
+ "enum"
46841
+ ]),
46842
+ enumValues: array(string()).optional(),
46843
+ label: string().min(1).optional()
46844
+ });
46845
+ var EventVocabularyEntrySchema = object({
46846
+ /** The native token, verbatim. */
46847
+ id: string().min(1),
46848
+ source: EventVocabularySourceSchema.optional(),
46849
+ label: string().min(1),
46850
+ description: string().optional(),
46851
+ kind: EventVocabularyKindSchema.optional(),
46852
+ payload: array(EventVocabularyFieldSchema).optional()
46853
+ });
46854
+ /**
46855
+ * The link an automation made FROM a template carries (#527): which template,
46856
+ * the values the operator filled in, and — when the template has since changed
46857
+ * so that those values no longer fit — the problems that say why.
46858
+ *
46859
+ * It lives inside the recipe (`AutomationRecipe.template`), so the one row in
46860
+ * `core_blocks` stays the one artefact: there is no second store of instances
46861
+ * to drift from the blocks, and deleting the automation deletes the link.
46862
+ * "Convert to a free automation" is dropping this field.
46863
+ *
46864
+ * This file depends on nothing in `recipe.ts`, so the recipe can embed it and
46865
+ * the template engine (`template/automation-template.ts`) can import both.
46866
+ */
46867
+ /** An `event` input's value: the same three narrowing lists a `device-fired` row takes. */
46868
+ var TemplateEventValueSchema = object({
46869
+ eventIds: array(string().min(1)).min(1).max(64).optional(),
46870
+ sourceIds: array(string().min(1)).min(1).max(64).optional(),
46871
+ kinds: array(EventVocabularyKindSchema).min(1).optional()
46872
+ }).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" });
46873
+ /** An `action` input's value: a vocabulary action and its open args. */
46874
+ var TemplateActionValueSchema = object({
46875
+ actionId: string().min(1),
46876
+ args: record(string(), unknown()).optional()
46877
+ });
46878
+ /** The value of one non-group input. Which member is right is the input kind's to judge. */
46879
+ var TemplateScalarValueSchema = union([
46880
+ number$1(),
46881
+ string(),
46882
+ boolean(),
46883
+ array(number$1().int().nonnegative()),
46884
+ TemplateEventValueSchema,
46885
+ TemplateActionValueSchema
46886
+ ]);
46887
+ var TemplateInputValueSchema = union([TemplateScalarValueSchema, array(record(string(), TemplateScalarValueSchema))]);
46888
+ /** Input key → value. */
46889
+ var TemplateInputValuesSchema = record(string(), TemplateInputValueSchema);
46890
+ var TemplateInstanceProblemSchema = object({
46891
+ code: _enum([
46892
+ "missing-input",
46893
+ "invalid-input",
46894
+ "invalid-recipe",
46895
+ "missing-template",
46896
+ "edited-by-hand"
46897
+ ]),
46898
+ /** Dotted input address (`buttons.2.targets`); absent for a whole-recipe problem. */
46899
+ input: string().optional(),
46900
+ detail: string()
46901
+ });
46902
+ var AutomationTemplateLinkSchema = object({
46903
+ templateId: string().min(1),
46904
+ values: TemplateInputValuesSchema,
46905
+ /**
46906
+ * Fingerprint of the generated code with this literal blanked
46907
+ * (`instanceCodeHash`), stamped by `generateAutomationBlock`. Code that no
46908
+ * longer matches it was edited by hand, and is never regenerated over.
46909
+ */
46910
+ codeHash: string().optional(),
46911
+ /**
46912
+ * Present when the last re-expansion refused these values. The automation
46913
+ * keeps running the body of its last good expansion; nothing is dropped.
46914
+ */
46915
+ problems: array(TemplateInstanceProblemSchema).min(1).optional()
46916
+ });
46701
46917
  var ExpressionBindingSourceSchema = union([
46702
46918
  object({
46703
46919
  kind: literal("field").optional(),
@@ -46990,41 +47206,6 @@ function macroOnly(macro) {
46990
47206
  };
46991
47207
  }
46992
47208
  }
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
47209
  Math.PI / 180;
47029
47210
  /**
47030
47211
  * WHEN something happens, as data (D983) — the one time vocabulary of the
@@ -48068,7 +48249,13 @@ var CurrentAutomationRecipeSchema = object({
48068
48249
  actions: array(AutomationActionSchema),
48069
48250
  runMode: AutomationRunModeSchema.optional(),
48070
48251
  /** How many run traces the automation keeps (default {@link DEFAULT_TRACE_KEEP}). */
48071
- keepTraces: number$1().int().min(1).max(100).optional()
48252
+ keepTraces: number$1().int().min(1).max(100).optional(),
48253
+ /**
48254
+ * Set when the automation was made from a template (#527): the template and
48255
+ * the values filled in. The rest of the recipe is then the expansion, which
48256
+ * the template engine rewrites when the template changes.
48257
+ */
48258
+ template: AutomationTemplateLinkSchema.optional()
48072
48259
  });
48073
48260
  /** A recipe as it was stored before the single tree. Read-only: nothing writes this. */
48074
48261
  var LegacyAutomationRecipeSchema = object({
@@ -53020,7 +53207,9 @@ var ClusterUpdateFailureReasonSchema = _enum([
53020
53207
  "status-unreadable",
53021
53208
  "addon-update-failed",
53022
53209
  "addons-not-converged",
53023
- "interrupted"
53210
+ "interrupted",
53211
+ "timeout-stall",
53212
+ "timeout-ceiling"
53024
53213
  ]);
53025
53214
  var ClusterUpdateStepSchema = object({
53026
53215
  kind: ClusterUpdateStepKindSchema,
@@ -54486,7 +54675,7 @@ DeviceType.MediaPlayer, optionalMethod(deviceOnly, _void(), {
54486
54675
  }]
54487
54676
  }]
54488
54677
  });
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;
54678
+ 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
54679
  var NUMBER = {
54491
54680
  kind: "fixed",
54492
54681
  result: ["number"]
@@ -56422,9 +56611,15 @@ var SiteZoneSchema = object({
56422
56611
  locationKeys: array(string())
56423
56612
  });
56424
56613
  var DeviceSearchRequiresSchema = object({
56425
- /** Capability names the field wants a value of. */
56426
- caps: array(string()).readonly(),
56427
- /** `any` (default): a device with one of them is compatible. `all`: it must hold every one. */
56614
+ /** Capability names the field wants a value of. Absent when the field wants actions only. */
56615
+ caps: array(string()).readonly().optional(),
56616
+ /**
56617
+ * Vocabulary action ids (`cover.open`) the device must offer. Compatible means
56618
+ * the device's bindings resolve those actions; `values` stays empty when no
56619
+ * cap was required. `mode` applies the same way as for `caps`.
56620
+ */
56621
+ actions: array(string()).readonly().optional(),
56622
+ /** `any` (default): one of the named caps, and one of the named actions, is enough. `all`: every one. */
56428
56623
  mode: _enum(["any", "all"]).optional()
56429
56624
  });
56430
56625
  var DeviceSearchFiltersSchema = object({
@@ -59305,6 +59500,79 @@ method(object({
59305
59500
  kind: "mutation",
59306
59501
  auth: "admin"
59307
59502
  }), NOT_A_DEVICE.ML;
59503
+ /**
59504
+ * Energy system (#513): the one READ-ONLY cap of a home energy installation —
59505
+ * solar production, the grid connection, the house, a heat pump where the
59506
+ * system meters one, and the storage. Each part is a branch of one bus.
59507
+ *
59508
+ * A part the system does not have is `null` (the whole object); a value the
59509
+ * system did not report is `null`, never `0` (D393).
59510
+ *
59511
+ * Signs, all in watts:
59512
+ * - `solar.powerW`, `house.powerW`, `heatPump.powerW` are magnitudes (≥ 0);
59513
+ * - `grid.powerW` is + importing, − exporting;
59514
+ * - `storage.powerW` is + charging, − discharging.
59515
+ *
59516
+ * The storage is a FIELD of this model, never the `battery` cap: that cap says
59517
+ * a device runs on a battery and feeds the low-battery alerts, and a home
59518
+ * storage at 19 % is not a device about to go flat (#522).
59519
+ *
59520
+ * Lifetime kWh are counters (D944); a `…TodayKwh` is the system's own day total.
59521
+ * The self-consumption share is not a field: it derives at read time
59522
+ * ({@link energySystemSelfConsumptionPct}).
59523
+ */
59524
+ /** Production: the panels. */
59525
+ var EnergySolarSchema = object({
59526
+ powerW: number$1().nullable().meta(readingMeta("power")),
59527
+ /** Lifetime production, kWh. */
59528
+ energyKwh: number$1().nullable().meta(readingMeta("energy")),
59529
+ /** Produced today, kWh. */
59530
+ todayKwh: number$1().nullable().meta(readingMeta("energy"))
59531
+ });
59532
+ /** The grid connection: + import, − export. */
59533
+ var EnergyGridSchema = object({
59534
+ powerW: number$1().nullable().meta(readingMeta("power")),
59535
+ /** Lifetime imported, kWh. */
59536
+ importKwh: number$1().nullable().meta(readingMeta("energy")),
59537
+ /** Lifetime exported, kWh. */
59538
+ exportKwh: number$1().nullable().meta(readingMeta("energy")),
59539
+ importTodayKwh: number$1().nullable().meta(readingMeta("energy")),
59540
+ exportTodayKwh: number$1().nullable().meta(readingMeta("energy"))
59541
+ });
59542
+ /** A consumer on the bus (the house, the heat pump): power and energy drawn. */
59543
+ var EnergyConsumerSchema = object({
59544
+ powerW: number$1().nullable().meta(readingMeta("power")),
59545
+ /** Lifetime consumption, kWh. */
59546
+ energyKwh: number$1().nullable().meta(readingMeta("energy")),
59547
+ /** Consumed today, kWh. */
59548
+ todayKwh: number$1().nullable().meta(readingMeta("energy"))
59549
+ });
59550
+ /** The home storage (accumulo): + charging, − discharging. */
59551
+ var EnergyStorageSchema = object({
59552
+ /** State of charge, 0..100. */
59553
+ stateOfChargePct: number$1().nullable().meta(readingMeta("percentage")),
59554
+ /** Energy held now, kWh. */
59555
+ storedKwh: number$1().nullable().meta(readingMeta("energy")),
59556
+ /** Usable capacity, kWh. */
59557
+ capacityKwh: number$1().nullable().meta(readingMeta("energy")),
59558
+ powerW: number$1().nullable().meta(readingMeta("power")),
59559
+ /** Lifetime charged, kWh. */
59560
+ chargedKwh: number$1().nullable().meta(readingMeta("energy")),
59561
+ /** Lifetime discharged, kWh. */
59562
+ dischargedKwh: number$1().nullable().meta(readingMeta("energy")),
59563
+ chargedTodayKwh: number$1().nullable().meta(readingMeta("energy")),
59564
+ dischargedTodayKwh: number$1().nullable().meta(readingMeta("energy"))
59565
+ });
59566
+ object({
59567
+ solar: EnergySolarSchema.nullable(),
59568
+ grid: EnergyGridSchema.nullable(),
59569
+ house: EnergyConsumerSchema.nullable(),
59570
+ heatPump: EnergyConsumerSchema.nullable(),
59571
+ storage: EnergyStorageSchema.nullable(),
59572
+ /** Ms epoch when the slice was last read from the system. */
59573
+ lastFetchedAt: number$1()
59574
+ });
59575
+ DeviceType.EnergySystem;
59308
59576
  _enum([
59309
59577
  "date",
59310
59578
  "time",
@@ -61296,7 +61564,7 @@ var HeroSceneSchema = object({
61296
61564
  /** 0..1: volume, cover position, cycle progress. */
61297
61565
  level: number$1().min(0).max(1).nullable()
61298
61566
  });
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;
61567
+ 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
61568
  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
61569
  var HeroRowIdSchema = _enum([
61302
61570
  "progress",
@@ -62265,6 +62533,19 @@ var IntegrationInstanceKindSchema = object({
62265
62533
  * finds the instances whose kind names it; absent takes the kind `id`.
62266
62534
  */
62267
62535
  brokerKind: string().min(1).optional(),
62536
+ /**
62537
+ * Other function caps an instance of this kind also serves (a Google account sends mail, so it
62538
+ * serves `smtp-provider` beside being a `broker`). A link to one of these caps lists and accepts
62539
+ * the instance; a page section stays the kinds whose `functionCap` it names. Absent means none.
62540
+ */
62541
+ alsoServes: array(string().min(1)).optional(),
62542
+ /**
62543
+ * The kind's own icon (a brand mark), hub-relative or a `data:` URI. Absent: the client shows
62544
+ * the provider addon's icon.
62545
+ */
62546
+ iconUrl: string().min(1).optional(),
62547
+ /** The media type `iconUrl` serves (`image/svg+xml`, `image/png`); the URL carries no extension. */
62548
+ iconMediaType: string().min(1).optional(),
62268
62549
  /** What instances of this kind are for the Integrations page; absent takes the provider's `role`. */
62269
62550
  role: IntegrationInstanceRoleSchema.optional(),
62270
62551
  /** `testInstance` really probes the remote for this kind; absent takes the provider's `canTest`. */
@@ -73624,6 +73905,13 @@ var NcHistoryEntrySchema = object({
73624
73905
  error: string().optional(),
73625
73906
  subject: NcHistorySubjectSchema,
73626
73907
  /**
73908
+ * The title and body actually sent, frozen at delivery. Absent on a row
73909
+ * still pending, a row suppressed before a notification was built, and a
73910
+ * row delivered before this field shipped.
73911
+ */
73912
+ title: string().optional(),
73913
+ body: string().optional(),
73914
+ /**
73627
73915
  * Ids of the artefacts (still, then gif, then clip) this row's successful
73628
73916
  * delivery indexed in the artefact library — a REFERENCE, never the bytes
73629
73917
  * (an artefact is often megabytes; this row is durable JSON rewritten on
@@ -80818,7 +81106,8 @@ var ServerUpdateActionResultSchema = object({
80818
81106
  outcome: ServerUpdateOutcomeSchema.optional(),
80819
81107
  /**
80820
81108
  * Stable, greppable cause for `refused` / `failed` (the engine's
80821
- * `UpdateRefusalReason`, `staging-failed`, …). `null` on success.
81109
+ * `UpdateRefusalReason`, `staging-failed`, `timeout-stall`,
81110
+ * `timeout-ceiling`). `null` on success.
80822
81111
  */
80823
81112
  reason: string().nullable().optional(),
80824
81113
  /**
@@ -80902,6 +81191,14 @@ var SmokeStatusSchema = object({
80902
81191
  lastChangedAt: number$1()
80903
81192
  });
80904
81193
  DeviceType.Sensor;
81194
+ var EmailImagePartSchema = object({
81195
+ ticket: PeerBytesTicketSchema,
81196
+ mime: string().min(1),
81197
+ name: string().min(1),
81198
+ contentId: string().min(1),
81199
+ placement: _enum(["inline", "attachment"]),
81200
+ deviceId: number$1().int().nonnegative().optional()
81201
+ });
80905
81202
  /**
80906
81203
  * `smtp-provider` — pluggable email delivery surface.
80907
81204
  *
@@ -80911,8 +81208,8 @@ DeviceType.Sensor;
80911
81208
  * ready provider OR target a specific addonId.
80912
81209
  *
80913
81210
  * The shape stays small on purpose — `sendEmail` is enough for the
80914
- * 90% case. Attachments / HTML templating / multi-part are room for
80915
- * future fields without breaking the existing call sites.
81211
+ * 90% case. An image is not a byte field on this method (D613): `images`
81212
+ * names `peerBytes` tickets the sender opens and folds into one MIME body.
80916
81213
  */
80917
81214
  var EmailAddressSchema = email();
80918
81215
  /**
@@ -80939,7 +81236,12 @@ var SendEmailInputSchema = object({
80939
81236
  * for clients that strip HTML — including most spam filters). */
80940
81237
  text: string(),
80941
81238
  /** Optional HTML body. Renders alongside `text` as multi-part. */
80942
- html: string().optional()
81239
+ html: string().optional(),
81240
+ /**
81241
+ * Images the caller already offered over `peerBytes`. Absent = a mail with
81242
+ * no image. The sender opens each ticket; one it cannot read is left out.
81243
+ */
81244
+ images: array(EmailImagePartSchema).max(3).optional()
80943
81245
  });
80944
81246
  var SendEmailResultSchema = object({
80945
81247
  messageId: string(),
@@ -81802,6 +82104,15 @@ DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, method(ob
81802
82104
  },
81803
82105
  args: { on: false }
81804
82106
  }]
82107
+ }), optionalMethod(object({ deviceId: number$1() }), _void(), {
82108
+ kind: "mutation",
82109
+ auth: "protected",
82110
+ actions: [{
82111
+ id: "switch.toggle",
82112
+ label: t("Toggle", "Commuta"),
82113
+ phrase: t("Toggle {device}", "Commuta {device}"),
82114
+ icon: "toggle-right"
82115
+ }]
81805
82116
  }), object({
81806
82117
  deviceId: number$1(),
81807
82118
  on: boolean().nullable(),
@@ -82422,14 +82733,188 @@ var TemperatureSensorStatusSchema = object({
82422
82733
  lastFetchedAt: number$1()
82423
82734
  });
82424
82735
  DeviceType.Sensor, DeviceType.Climate;
82425
- var TemplateKindSchema = _enum(["remote"]);
82736
+ var inputKey = string().regex(/^[A-Za-z][A-Za-z0-9_]{0,39}$/);
82737
+ var inputBase = {
82738
+ key: inputKey,
82739
+ label: string().min(1).max(80),
82740
+ description: string().max(300).optional(),
82741
+ /** Absent means required. */
82742
+ optional: literal(true).optional()
82743
+ };
82744
+ var TemplateDeviceFilterSchema = object({
82745
+ /** Only devices that offer this capability. */
82746
+ capability: string().min(1).optional(),
82747
+ /** Only devices of this role / device type (`light`, `switch`, `button`). */
82748
+ role: string().min(1).optional()
82749
+ });
82750
+ var DeviceInputSchema = object({
82751
+ kind: literal("device"),
82752
+ ...inputBase,
82753
+ multiple: literal(true).optional(),
82754
+ filter: TemplateDeviceFilterSchema.optional()
82755
+ });
82756
+ var EventInputSchema = object({
82757
+ kind: literal("event"),
82758
+ ...inputBase,
82759
+ /** The device input (same level) whose event vocabulary is offered (D1044). */
82760
+ deviceInput: inputKey
82761
+ });
82762
+ var ActionInputSchema$1 = object({
82763
+ kind: literal("action"),
82764
+ ...inputBase,
82765
+ /** The device input (same level) whose actions are offered; absent offers all (D1050). */
82766
+ deviceInput: inputKey.optional()
82767
+ });
82768
+ var NumberInputSchema = object({
82769
+ kind: literal("number"),
82770
+ ...inputBase,
82771
+ min: number$1().optional(),
82772
+ max: number$1().optional(),
82773
+ default: number$1().optional()
82774
+ });
82775
+ var DurationInputSchema = object({
82776
+ kind: literal("duration"),
82777
+ ...inputBase,
82778
+ /** Seconds. */
82779
+ min: number$1().nonnegative().optional(),
82780
+ max: number$1().nonnegative().optional(),
82781
+ default: number$1().nonnegative().optional()
82782
+ });
82783
+ var TextInputSchema = object({
82784
+ kind: literal("text"),
82785
+ ...inputBase,
82786
+ maxLength: number$1().int().min(1).max(2e3).optional(),
82787
+ default: string().optional()
82788
+ });
82789
+ var TemplateSelectOptionSchema = object({
82790
+ value: string().min(1),
82791
+ label: string().min(1).max(80)
82792
+ });
82793
+ var TemplateScalarInputSchema = discriminatedUnion("kind", [
82794
+ DeviceInputSchema,
82795
+ EventInputSchema,
82796
+ ActionInputSchema$1,
82797
+ NumberInputSchema,
82798
+ DurationInputSchema,
82799
+ TextInputSchema,
82800
+ object({
82801
+ kind: literal("select"),
82802
+ ...inputBase,
82803
+ options: array(TemplateSelectOptionSchema).min(1).max(50),
82804
+ default: string().optional()
82805
+ }),
82806
+ object({
82807
+ kind: literal("boolean"),
82808
+ ...inputBase,
82809
+ default: boolean().optional()
82810
+ })
82811
+ ]);
82812
+ var GroupInputSchema = object({
82813
+ kind: literal("group"),
82814
+ ...inputBase,
82815
+ inputs: array(TemplateScalarInputSchema).min(1).max(10),
82816
+ minRows: number$1().int().min(0).max(20).optional(),
82817
+ maxRows: number$1().int().min(1).max(20).optional()
82818
+ });
82819
+ var TemplateInputSchema = discriminatedUnion("kind", [...TemplateScalarInputSchema.options, GroupInputSchema]);
82820
+ var TemplatePathSchema = array(union([string().min(1), number$1().int().nonnegative()])).max(24);
82821
+ var TemplateValueBindingSchema = object({
82822
+ kind: literal("value"),
82823
+ input: inputKey,
82824
+ path: TemplatePathSchema,
82825
+ /** A device value written as a step target (`{ kind: 'devices', ids }`). */
82826
+ as: literal("target").optional()
82827
+ });
82828
+ var TemplateRowItemBindingSchema = discriminatedUnion("kind", [TemplateValueBindingSchema, object({
82829
+ kind: literal("row-id"),
82830
+ path: TemplatePathSchema
82831
+ })]);
82832
+ var TemplateBindingSchema = discriminatedUnion("kind", [TemplateValueBindingSchema, object({
82833
+ kind: literal("rows"),
82834
+ input: inputKey,
82835
+ /** The list in the body the rows are appended to. */
82836
+ path: TemplatePathSchema,
82837
+ /** The JSON copied once per row. */
82838
+ item: unknown(),
82839
+ bindings: array(TemplateRowItemBindingSchema).max(40)
82840
+ })]);
82841
+ function bindingProblems(payload, ctx) {
82842
+ const byKey = /* @__PURE__ */ new Map();
82843
+ payload.inputs.forEach((input, index) => {
82844
+ if (byKey.has(input.key)) ctx.addIssue({
82845
+ code: "custom",
82846
+ message: `input "${input.key}" is declared twice`,
82847
+ path: ["inputs", index]
82848
+ });
82849
+ byKey.set(input.key, input);
82850
+ const siblings = input.kind === "group" ? input.inputs : payload.inputs;
82851
+ for (const scalar of input.kind === "group" ? input.inputs : [input]) {
82852
+ if (scalar.kind !== "event" && scalar.kind !== "action") continue;
82853
+ if (scalar.deviceInput === void 0) continue;
82854
+ const device = siblings.find((s) => s.key === scalar.deviceInput);
82855
+ if (device === void 0 || device.kind !== "device") ctx.addIssue({
82856
+ code: "custom",
82857
+ message: `"${scalar.key}" reads the device input "${scalar.deviceInput}", which is not a device input beside it`,
82858
+ path: ["inputs", index]
82859
+ });
82860
+ }
82861
+ });
82862
+ payload.bindings.forEach((binding, index) => {
82863
+ const input = byKey.get(binding.input);
82864
+ if (input === void 0) {
82865
+ ctx.addIssue({
82866
+ code: "custom",
82867
+ message: `binding names the undeclared input "${binding.input}"`,
82868
+ path: ["bindings", index]
82869
+ });
82870
+ return;
82871
+ }
82872
+ if (binding.kind === "value" && input.kind === "group") ctx.addIssue({
82873
+ code: "custom",
82874
+ message: `group "${input.key}" is bound with rows, not a value`,
82875
+ path: ["bindings", index]
82876
+ });
82877
+ if (binding.kind === "rows") {
82878
+ if (input.kind !== "group") {
82879
+ ctx.addIssue({
82880
+ code: "custom",
82881
+ message: `rows need a group input, "${input.key}" is ${input.kind}`,
82882
+ path: ["bindings", index]
82883
+ });
82884
+ return;
82885
+ }
82886
+ for (const row of binding.bindings) if (row.kind === "value" && !input.inputs.some((i) => i.key === row.input)) ctx.addIssue({
82887
+ code: "custom",
82888
+ message: `row binding names "${row.input}", which group "${input.key}" does not declare`,
82889
+ path: ["bindings", index]
82890
+ });
82891
+ }
82892
+ });
82893
+ }
82894
+ var AutomationTemplatePayloadSchema = object({
82895
+ version: literal(1),
82896
+ description: string().max(500).optional(),
82897
+ /** The automation body; a recipe once the inputs are written into it. */
82898
+ body: record(string(), unknown()),
82899
+ inputs: array(TemplateInputSchema).max(30),
82900
+ bindings: array(TemplateBindingSchema).max(100)
82901
+ }).superRefine(bindingProblems);
82902
+ object({
82903
+ format: literal("camstack.automation-template"),
82904
+ version: literal(1),
82905
+ name: string().min(1).max(120),
82906
+ payload: AutomationTemplatePayloadSchema
82907
+ });
82908
+ var TemplateKindSchema = _enum(["remote", "automation"]);
82426
82909
  /**
82427
82910
  * template — the generic store of reusable, named operator data (D963). A
82428
82911
  * record is `{ id, kind, name, payload }`; the kinds (today only `remote`, the
82429
82912
  * button grid of a remote) and the schema each payload must satisfy are
82430
82913
  * declared by the system in `template-kinds.ts`. Nothing here is specific to a
82431
82914
  * 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.
82915
+ * delete, asks the kind's owner whether anything still points at the record
82916
+ * (a device's remote, an automation made from the template). Saving an
82917
+ * `automation` template re-expands every automation made from it (#527).
82433
82918
  *
82434
82919
  * Every refusal is a typed result — a UI says "unknown kind" or names the
82435
82920
  * devices that still use a template, without parsing text.
@@ -82441,14 +82926,20 @@ var TemplateRecordSchema = object({
82441
82926
  /** Shaped by the kind; `checkTemplatePayload(kind, payload)` reads it. */
82442
82927
  payload: unknown(),
82443
82928
  createdAt: number$1(),
82444
- updatedAt: number$1()
82929
+ updatedAt: number$1(),
82930
+ /** Shipped with CamStack (`builtin:` ids): listed beside the operator's, never updated or deleted. */
82931
+ builtIn: literal(true).optional()
82445
82932
  });
82446
82933
  var TemplateWriteResultSchema = discriminatedUnion("status", [object({
82447
82934
  status: literal("saved"),
82448
82935
  template: TemplateRecordSchema
82449
82936
  }), object({
82450
82937
  status: literal("refused"),
82451
- reason: _enum(["invalid-payload", "not-found"]),
82938
+ reason: _enum([
82939
+ "invalid-payload",
82940
+ "not-found",
82941
+ "read-only"
82942
+ ]),
82452
82943
  detail: string()
82453
82944
  })]);
82454
82945
  /** A device still pointing at a template. */
@@ -82456,12 +82947,19 @@ var TemplateUserSchema = object({
82456
82947
  deviceId: number$1().int().nonnegative(),
82457
82948
  name: string()
82458
82949
  });
82950
+ /** An automation made from a template (#527): a core block whose recipe links to it. */
82951
+ var TemplateAutomationUserSchema = object({
82952
+ blockId: string().min(1),
82953
+ name: string()
82954
+ });
82459
82955
  var TemplateDeleteResultSchema = discriminatedUnion("status", [
82460
82956
  object({ status: literal("deleted") }),
82461
82957
  object({ status: literal("not-found") }),
82958
+ object({ status: literal("read-only") }),
82462
82959
  object({
82463
82960
  status: literal("in-use"),
82464
- devices: array(TemplateUserSchema).min(1)
82961
+ devices: array(TemplateUserSchema),
82962
+ automations: array(TemplateAutomationUserSchema)
82465
82963
  })
82466
82964
  ]);
82467
82965
  method(object({ kind: TemplateKindSchema.optional() }), array(TemplateRecordSchema), { auth: "protected" }), method(object({ id: string().min(1) }), TemplateRecordSchema.nullable(), { auth: "protected" }), method(object({
@@ -85084,6 +85582,15 @@ btn("power", 0, 0, {
85084
85582
  4
85085
85583
  ].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
85584
  /**
85585
+ * Automation templates shipped with CamStack (#527). They are read-only records
85586
+ * of the template store: `template.list` returns them beside the operator's
85587
+ * own, under `builtin:` ids, and an update or delete of one is refused. They
85588
+ * are code, not seeded rows, so a new release changes them without a
85589
+ * migration and nothing an operator saved is ever overwritten.
85590
+ */
85591
+ var BUILTIN_TEMPLATE_ID_PREFIX = "builtin:";
85592
+ `${BUILTIN_TEMPLATE_ID_PREFIX}`, `${BUILTIN_TEMPLATE_ID_PREFIX}`;
85593
+ /**
85087
85594
  * Propose a running threshold from a device's own power history (planning#405).
85088
85595
  *
85089
85596
  * Pure and deterministic: the same series gives the same answer. The series is
@@ -85174,7 +85681,7 @@ var AccessoryKind = {
85174
85681
  };
85175
85682
  AccessoryKind.Siren, AccessoryKind.Floodlight, AccessoryKind.Spotlight, AccessoryKind.PirSensor, AccessoryKind.Chime, AccessoryKind.Autotrack, AccessoryKind.Nightvision, AccessoryKind.PrivacyMask;
85176
85683
  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;
85684
+ 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
85685
  new Set(Object.values(DeviceType));
85179
85686
  /** Parses the raw slice with the cap's own schema; `undefined` when it does not parse. */
85180
85687
  function contribution(cap, schema, build) {
@@ -87215,7 +87722,7 @@ var HEAT_PUMP_FAMILY_CONTRIBUTIONS = { "heat-pump-status": contribution("heat-pu
87215
87722
  ...Object.values(CLIMATE_FAMILY_CONTRIBUTIONS),
87216
87723
  ...Object.values(HEAT_PUMP_FAMILY_CONTRIBUTIONS)
87217
87724
  ];
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;
87725
+ 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
87726
  /**
87220
87727
  * Who looks like what (D1023). One look per {@link DeviceType}, refined by a
87221
87728
  * {@link DeviceRole} where the role changes how the device reads (a leak
@@ -87859,7 +88366,7 @@ lookOf({
87859
88366
  standby: MUTED
87860
88367
  });
87861
88368
  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;
88369
+ 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
88370
  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
88371
  Object.freeze({
87865
88372
  "accessories.getStatus": {
@@ -91110,6 +91617,13 @@ Object.freeze({
91110
91617
  access: "delete",
91111
91618
  role: "admin"
91112
91619
  },
91620
+ "energySystem.getStatus": {
91621
+ capName: "energy-system",
91622
+ capScope: "device",
91623
+ addonId: null,
91624
+ access: "view",
91625
+ role: "viewer"
91626
+ },
91113
91627
  "enumSensor.getStatus": {
91114
91628
  capName: "enum-sensor",
91115
91629
  capScope: "device",
@@ -97151,6 +97665,13 @@ Object.freeze({
97151
97665
  access: "create",
97152
97666
  role: "viewer"
97153
97667
  },
97668
+ "switch.toggle": {
97669
+ capName: "switch",
97670
+ capScope: "device",
97671
+ addonId: null,
97672
+ access: "create",
97673
+ role: "viewer"
97674
+ },
97154
97675
  "system.debugWatch": {
97155
97676
  capName: "system",
97156
97677
  capScope: "system",
@@ -98316,7 +98837,7 @@ function offered(received) {
98316
98837
  };
98317
98838
  }
98318
98839
  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;
98840
+ 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
98841
  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
98842
  new Set(Object.values(DeviceType));
98322
98843
  new Set(Object.values(DeviceRole));
@@ -99274,6 +99795,11 @@ Object.freeze({
99274
99795
  form: "single",
99275
99796
  optional: false
99276
99797
  }],
99798
+ "energySystem.getStatus": [{
99799
+ name: "deviceId",
99800
+ form: "single",
99801
+ optional: false
99802
+ }],
99277
99803
  "enumSensor.getStatus": [{
99278
99804
  name: "deviceId",
99279
99805
  form: "single",
@@ -100973,6 +101499,12 @@ Object.freeze({
100973
101499
  form: "single",
100974
101500
  optional: false
100975
101501
  }],
101502
+ "smtpProvider.sendEmail": [{
101503
+ name: "images",
101504
+ form: "object-array",
101505
+ optional: true,
101506
+ itemField: "deviceId"
101507
+ }],
100976
101508
  "snapshot.applyDeviceSettingsPatch": [{
100977
101509
  name: "deviceId",
100978
101510
  form: "single",
@@ -101139,6 +101671,11 @@ Object.freeze({
101139
101671
  form: "single",
101140
101672
  optional: false
101141
101673
  }],
101674
+ "switch.toggle": [{
101675
+ name: "deviceId",
101676
+ form: "single",
101677
+ optional: false
101678
+ }],
101142
101679
  "system.debugWatch": [{
101143
101680
  name: "deviceIds",
101144
101681
  form: "array",
@@ -102002,6 +102539,28 @@ var STATE_SUMMARY_VARS = [
102002
102539
  systemEventKinds: [...SUMMARISABLE],
102003
102540
  systemEventDeliveries: ["summary"]
102004
102541
  },
102542
+ {
102543
+ name: "offlineCount",
102544
+ label: "Summary: how many went offline",
102545
+ example: "2",
102546
+ group: "system",
102547
+ families: ["rule"],
102548
+ fields: [...RULE_TEXT],
102549
+ kinds: ["system"],
102550
+ systemEventKinds: [...SUMMARISABLE],
102551
+ systemEventDeliveries: ["summary"]
102552
+ },
102553
+ {
102554
+ name: "onlineCount",
102555
+ label: "Summary: how many came back",
102556
+ example: "5",
102557
+ group: "system",
102558
+ families: ["rule"],
102559
+ fields: [...RULE_TEXT],
102560
+ kinds: ["system"],
102561
+ systemEventKinds: [...SUMMARISABLE],
102562
+ systemEventDeliveries: ["summary"]
102563
+ },
102005
102564
  {
102006
102565
  name: "summaryCount",
102007
102566
  label: "Summary: items reported",
@@ -102043,6 +102602,7 @@ var STATE_SUMMARY_VARS = [
102043
102602
  ([...RULE_TEXT], [...COMBINED_ALARM]),
102044
102603
  ([...RULE_TEXT], [...COMBINED_ALARM]),
102045
102604
  [...RULE_TEXT],
102605
+ [...RULE_TEXT],
102046
102606
  ([...RULE_TEXT], [...COMBINED_ALARM]),
102047
102607
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
102048
102608
  [...RULE_TEXT],
@@ -102807,7 +103367,7 @@ var AdminUIAddon = class extends BaseAddon {
102807
103367
  capability: adminUiCapability,
102808
103368
  provider: {
102809
103369
  getStaticDir: async () => ({ staticDir: resolveAdminUiDistDir() }),
102810
- getVersion: async () => ({ version: "1.2.660" })
103370
+ getVersion: async () => ({ version: "1.2.662" })
102811
103371
  }
102812
103372
  }];
102813
103373
  }