@camstack/addon-admin-ui 1.2.626 → 1.2.628

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 (162) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/assets/Addons-DYXP9Vml.js +5 -0
  3. package/dist/assets/{AdminPage-dLt1mKEa.js → AdminPage-D8jyd8NK.js} +1 -1
  4. package/dist/assets/{AdminSectionedPage-BYn7-4dT.js → AdminSectionedPage-BVfSxBNr.js} +1 -1
  5. package/dist/assets/AiProfiles-cx0x2sbl.js +3 -0
  6. package/dist/assets/{Authentication-CykaHfAJ.js → Authentication-C15V7E8r.js} +1 -1
  7. package/dist/assets/Build-goVTGENZ.js +39 -0
  8. package/dist/assets/{Calendars-D_iMy7Yy.js → Calendars-BwAVxLT1.js} +1 -1
  9. package/dist/assets/{CameraGrids-WkOqz0ai.js → CameraGrids-DZskmHW3.js} +1 -1
  10. package/dist/assets/Cluster-B1_BYrrA.js +1 -0
  11. package/dist/assets/CompositionBlockEditor-BXmpBbjk.js +2 -0
  12. package/dist/assets/CompositionEditorPage-ewhTgbIT.js +1 -0
  13. package/dist/assets/Data-CRPjnR7i.js +2 -0
  14. package/dist/assets/DeviceDetail-B5-2vX2l.js +2 -0
  15. package/dist/assets/{DeviceDoActionFields-CAAMOfrL.js → DeviceDoActionFields-C5X74bZ6.js} +1 -1
  16. package/dist/assets/{Devices-CelRF0ak.js → Devices-BZZZzZZt.js} +1 -1
  17. package/dist/assets/{EmbedPlayerPage-CMOLFarm.js → EmbedPlayerPage-B7SerkXI.js} +1 -1
  18. package/dist/assets/History-CB2UV29J.js +1 -0
  19. package/dist/assets/Identity-FncxI-3k.js +1 -0
  20. package/dist/assets/{InstanceSwitchCell-BQekirNX.js → InstanceSwitchCell-DL1wNRqw.js} +1 -1
  21. package/dist/assets/InstancesTable-C9lW5ahJ.js +1 -0
  22. package/dist/assets/IntegrationDetail-CRgTh0vI.js +1 -0
  23. package/dist/assets/{IntegrationHub-jVzJirPk.js → IntegrationHub-itremyka.js} +1 -1
  24. package/dist/assets/Integrations-CKsDYSo_.js +2 -0
  25. package/dist/assets/Integrations-Doe4DOLd.js +1 -0
  26. package/dist/assets/Library-DZAOkZl5.js +1 -0
  27. package/dist/assets/Locations-BWYHqMs1.js +3 -0
  28. package/dist/assets/{Logs-DOFxrXxZ.js → Logs-BtV5zfyp.js} +1 -1
  29. package/dist/assets/{MaskShapeCanvas-C6vw0mq_.js → MaskShapeCanvas-C5NPlFTZ.js} +1 -1
  30. package/dist/assets/{MotionZonesSettings-BPLgHoj3.js → MotionZonesSettings-DBiJiDpA.js} +1 -1
  31. package/dist/assets/MyAccess-Dn6aOrRH.js +2 -0
  32. package/dist/assets/Network-Bb5q027q.js +1 -0
  33. package/dist/assets/{NodeAddonsSettingsPanel-BGB_St7Q.js → NodeAddonsSettingsPanel-B2CB5Cql.js} +1 -1
  34. package/dist/assets/Notifications-B96nhFZS.js +1 -0
  35. package/dist/assets/Pipeline-DGVG0VZc.js +1 -0
  36. package/dist/assets/{PrivacyMaskSettings-mpx3kl1W.js → PrivacyMaskSettings-Cxcz6fqW.js} +1 -1
  37. package/dist/assets/Recordings-DwBtl1P7.js +1 -0
  38. package/dist/assets/{ScanSubnetEditor-MFkKIxnM.js → ScanSubnetEditor-Om5o0_fX.js} +1 -1
  39. package/dist/assets/{SceneMonitorEditor-HTEqKGnK.js → SceneMonitorEditor-C3Ht01Y_.js} +1 -1
  40. package/dist/assets/SessionsList-CLJLWiDV.js +2 -0
  41. package/dist/assets/{Showroom-CyZpVw5e.js → Showroom-DHls8MSr.js} +1 -1
  42. package/dist/assets/{StorageLocationsTable-DznxRZnK.js → StorageLocationsTable-Ch3ABRRX.js} +1 -1
  43. package/dist/assets/{System-C-k3Rz-I.js → System-DTVt3mqw.js} +1 -1
  44. package/dist/assets/{Templates-DAIsSP23.js → Templates-DSIFW4Sg.js} +1 -1
  45. package/dist/assets/{Terminal-C1QNo9AN.js → Terminal-DtQsE9UM.js} +3 -3
  46. package/dist/assets/{TrainingProviders-DbqfB5Q6.js → TrainingProviders-d3o_ZKQJ.js} +1 -1
  47. package/dist/assets/{Viewer-CZuKd6lk.js → Viewer-630uaAn-.js} +1 -1
  48. package/dist/assets/{_virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-CSfv8t1Z.js → _virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-CCci1-8S.js} +1 -1
  49. package/dist/assets/{ai-page.helpers-CJk-hY0M.js → ai-page.helpers-DYP6h9NO.js} +1 -1
  50. package/dist/assets/{archive-CvMfQY3E.js → archive-JrYGCSml.js} +1 -1
  51. package/dist/assets/{assignment-candidates-DN-VoSTA.js → assignment-candidates-Bg8uFhC2.js} +1 -1
  52. package/dist/assets/{authed-media-DkaeZ1M8.js → authed-media-Bf-hw8ZZ.js} +1 -1
  53. package/dist/assets/{bell-off-B4ksiU12.js → bell-off-Bpmfs7A4.js} +1 -1
  54. package/dist/assets/{board-model-D-CIwcV1.js → board-model-C4Q-Tf8g.js} +1 -1
  55. package/dist/assets/{boxes-C9Y0YvOc.js → boxes-li1RD5xe.js} +1 -1
  56. package/dist/assets/{calendar-clock-CqZRVSc3.js → calendar-clock-DztRh5OG.js} +1 -1
  57. package/dist/assets/circle-arrow-up-CZgLptGX.js +1 -0
  58. package/dist/assets/circle-slash-xZwqd0BU.js +1 -0
  59. package/dist/assets/client-BGa0ynTX.js +809 -0
  60. package/dist/assets/create-composition-D8ndL58S.js +2 -0
  61. package/dist/assets/crop-BoVOvHci.js +1 -0
  62. package/dist/assets/{database-zap-Bk33ph_X.js → database-zap-D5EwGo_g.js} +1 -1
  63. package/dist/assets/{device-integration-icon-Duw74rkd.js → device-integration-icon-C4Qf-4Rd.js} +1 -1
  64. package/dist/assets/device-picker-model-LnwJcnrH.js +1 -0
  65. package/dist/assets/{dist-Dli1FBe2.js → dist-COIeUAeS.js} +1 -1
  66. package/dist/assets/dist-ClneX5Rj.js +809 -0
  67. package/dist/assets/{eraser-C1LaIkqO.js → eraser-CrZ4yaiD.js} +1 -1
  68. package/dist/assets/{file-up-CODncsO3.js → file-up-CCndGa8K.js} +1 -1
  69. package/dist/assets/{format-C7beVF9i.js → format-vZthOBDI.js} +1 -1
  70. package/dist/assets/{hard-drive-download-gFUluoPC.js → hard-drive-download-BOts87eq.js} +1 -1
  71. package/dist/assets/{hostInit-OZrStRqO.js → hostInit-KnMePivw.js} +1 -1
  72. package/dist/assets/i18n-CKtnf08g.js +1 -0
  73. package/dist/assets/icons-DzRQ57dB.js +1 -0
  74. package/dist/assets/index-DCQq1ksG.js +4 -0
  75. package/dist/assets/index-cBkBJKJv.css +2 -0
  76. package/dist/assets/{key-BSgMvX5L.js → key-DlDr1x_1.js} +1 -1
  77. package/dist/assets/{key-square-CX058EfV.js → key-square-Dg-fQSMX.js} +1 -1
  78. package/dist/assets/{layers-DgoxyPih.js → layers-qknQ4SI0.js} +1 -1
  79. package/dist/assets/{link-2-off-DmtgBwh-.js → link-2-off-ClQoCkvl.js} +1 -1
  80. package/dist/assets/{linked-devices-model-B_gqV5Gg.js → linked-devices-model-BxDwmRW0.js} +1 -1
  81. package/dist/assets/{list-ordered-C0l-Wwk-.js → list-ordered-DK6yrsuq.js} +1 -1
  82. package/dist/assets/{memory-stick-BSUaqG9H.js → memory-stick-4bgTdR1n.js} +1 -1
  83. package/dist/assets/{message-square-plus-spORh6qX.js → message-square-plus-Bv2lcMzp.js} +1 -1
  84. package/dist/assets/{mf-entry-bootstrap-0-762c2049.js → mf-entry-bootstrap-0-9a11aec7.js} +2 -2
  85. package/dist/assets/{mic-off-DiGyKjsE.js → mic-off-CwdWl1x4.js} +1 -1
  86. package/dist/assets/{monitor-off-CatAL1-V.js → monitor-off-Ccscg8YU.js} +1 -1
  87. package/dist/assets/{monitor-smartphone-CrChoiUo.js → monitor-smartphone-C8BeBYyf.js} +1 -1
  88. package/dist/assets/mount-LnwJcnrH.js +1 -0
  89. package/dist/assets/{notification-rule-status-BaZr2lCj.js → notification-rule-status-BrmTbrp9.js} +1 -1
  90. package/dist/assets/player-overlays-BPvPXIk8.js +1 -0
  91. package/dist/assets/remoteEntry-Bfe_8orj.js +1 -0
  92. package/dist/assets/{ruler-6Q54d4xt.js → ruler-CH-94_uK.js} +1 -1
  93. package/dist/assets/{tv-BdJr-riI.js → scan-eye-D_sweDOa.js} +1 -1
  94. package/dist/assets/{scissors-BBC_GGoc.js → scissors-DPQ0H7Hw.js} +1 -1
  95. package/dist/assets/{search-x-CHDiifxm.js → search-x-Bcr_N2Jd.js} +1 -1
  96. package/dist/assets/{send-CwDFB9fX.js → send-dBvBmsQA.js} +1 -1
  97. package/dist/assets/{settings-2-C5tt8eea.js → settings-2-CUqyfTbY.js} +1 -1
  98. package/dist/assets/{shapes-C5Nnn9NE.js → shapes-1kA4AD87.js} +1 -1
  99. package/dist/assets/{sigma-BSlFNDI5.js → sigma--1BGzaqj.js} +1 -1
  100. package/dist/assets/src-Bgosi05F.js +169 -0
  101. package/dist/assets/{sso-popup-C6eP07wS.js → sso-popup-BGoesDjS.js} +1 -1
  102. package/dist/assets/{step-inspector-model-CEg8vezx.js → step-inspector-model-XS8YChH9.js} +1 -1
  103. package/dist/assets/{table-2-CeAydAOI.js → table-2-CilKmwQl.js} +1 -1
  104. package/dist/assets/{timer-reset-B_Ta8kGS.js → timer-reset-D4i4Gq1v.js} +1 -1
  105. package/dist/assets/{unlink-DzO14DVn.js → unlink-D4LV8ueN.js} +1 -1
  106. package/dist/assets/{usb-W-ktPgHL.js → usb-CReSdVpL.js} +1 -1
  107. package/dist/assets/{use-device-bound-caps-xJuEMYyg.js → use-device-bound-caps-D1IKyog8.js} +1 -1
  108. package/dist/assets/{use-scenes-feed-BFZqBAYX.js → use-scenes-feed-Ch0tafaX.js} +1 -1
  109. package/dist/assets/{use-stationary-objects-CHjUAUSJ.js → use-stationary-objects-YYdmB4ug.js} +1 -1
  110. package/dist/assets/{useAdminDeviceRemoval-YiBXHBHP.js → useAdminDeviceRemoval-BFZd48u8.js} +1 -1
  111. package/dist/assets/useEventInvalidation-LnwJcnrH.js +1 -0
  112. package/dist/assets/{useNodeUrlSelection-D9CPif56.js → useNodeUrlSelection-DuUq732x.js} +1 -1
  113. package/dist/assets/useTemplateSave-DB88BNeY.js +1 -0
  114. package/dist/assets/user-round-DeoBP4Ew.js +1 -0
  115. package/dist/assets/{user-x--TnMk2gT.js → user-x-o0ouhQrV.js} +1 -1
  116. package/dist/assets/{variable-Bz8zKWo2.js → variable-BER3ndF7.js} +1 -1
  117. package/dist/assets/{video-b4uGYAxS.js → video-Cifrbvwj.js} +1 -1
  118. package/dist/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-Cs7a4rE-.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-ET0QdTsB.js} +2 -2
  119. package/dist/index.html +10 -11
  120. package/dist/server/addon.js +1069 -173
  121. package/package.json +2 -2
  122. package/dist/assets/Addons-B4N1LxY8.js +0 -5
  123. package/dist/assets/AiProfiles-DcAkO0SI.js +0 -3
  124. package/dist/assets/Build-DvxNre5q.js +0 -39
  125. package/dist/assets/Cluster-CyLi0SW_.js +0 -1
  126. package/dist/assets/CompositionBlockEditor-B6GFdIeM.js +0 -2
  127. package/dist/assets/CompositionEditorPage-B8-97pRO.js +0 -1
  128. package/dist/assets/Data-CDo9vIwN.js +0 -2
  129. package/dist/assets/DeviceDetail-BBanvUVD.js +0 -2
  130. package/dist/assets/History-Cvy2subh.js +0 -1
  131. package/dist/assets/Identity-DrFBCRWk.js +0 -1
  132. package/dist/assets/InstancesTable-Bt8qoWMR.js +0 -1
  133. package/dist/assets/IntegrationDetail-DvlDDD_J.js +0 -1
  134. package/dist/assets/Integrations-B9p5_Qf7.js +0 -1
  135. package/dist/assets/Integrations-HUB0bAoi.js +0 -2
  136. package/dist/assets/Library-DCDTlPnF.js +0 -1
  137. package/dist/assets/Locations-1E3b4qVs.js +0 -3
  138. package/dist/assets/MyAccess-CShkG3rs.js +0 -2
  139. package/dist/assets/Network-CRBMMSjJ.js +0 -1
  140. package/dist/assets/Notifications-CEls0HQ3.js +0 -1
  141. package/dist/assets/Pipeline-CHz7NNm6.js +0 -1
  142. package/dist/assets/Recordings-Bccg5edp.js +0 -1
  143. package/dist/assets/SessionsList-CLTlUoNj.js +0 -2
  144. package/dist/assets/addon-icons-context-WCP6A9AS.js +0 -1
  145. package/dist/assets/circle-slash-DDhnvhLN.js +0 -1
  146. package/dist/assets/client-kWeONSGL.js +0 -809
  147. package/dist/assets/create-composition-CNJkzaMb.js +0 -2
  148. package/dist/assets/crop-D1l0Xs25.js +0 -1
  149. package/dist/assets/device-picker-model-DCNN-HPV.js +0 -1
  150. package/dist/assets/dist-DXhYk_uu.js +0 -809
  151. package/dist/assets/i18n-Cmy3cCDH.js +0 -1
  152. package/dist/assets/icons-BM3wcj03.js +0 -1
  153. package/dist/assets/index-D4z5SYp_.css +0 -2
  154. package/dist/assets/index-DwCHDODI.js +0 -4
  155. package/dist/assets/mount-DCNN-HPV.js +0 -1
  156. package/dist/assets/player-overlays-CC-b3--a.js +0 -1
  157. package/dist/assets/remoteEntry-C16PJyFZ.js +0 -1
  158. package/dist/assets/speaker-ydML9LxI.js +0 -1
  159. package/dist/assets/src-DGSNF4l8.js +0 -100
  160. package/dist/assets/useEventInvalidation-DCNN-HPV.js +0 -1
  161. package/dist/assets/useTemplateSave-DBc8G5sM.js +0 -1
  162. package/dist/assets/user-round-D8euVsR1.js +0 -1
@@ -803,7 +803,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
803
803
  return EventCategory;
804
804
  }({});
805
805
  //#endregion
806
- //#region ../types/dist/device-type-CbDhVwFP.mjs
806
+ //#region ../types/dist/device-type-DTTZKB2I.mjs
807
807
  /**
808
808
  import { errMsg } from '@camstack/types'
809
809
  * Extract a human-readable message from an unknown error value.
@@ -929,6 +929,10 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
929
929
  * (`reboot`, `device-admin-link`). Products are NOT its children — they are
930
930
  * adopted beside it — and its connection settings stay on the integration. */
931
931
  DeviceType["Gateway"] = "gateway";
932
+ /** A heat pump (any vendor): the compressor unit with its circuits (heating, hot
933
+ * water, cooling, solar), its system modes and its power. One main read-only
934
+ * `heat-pump-status` cap carries all of it; `heat-pump-control` sets it (D1026). */
935
+ DeviceType["HeatPump"] = "heat-pump";
932
936
  return DeviceType;
933
937
  }({});
934
938
  var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
@@ -5880,7 +5884,7 @@ var ZodIssueCode = {
5880
5884
  var ZodFirstPartyTypeKind;
5881
5885
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5882
5886
  //#endregion
5883
- //#region ../types/dist/sleep-CS5Xp1iQ.mjs
5887
+ //#region ../types/dist/sleep-DnVqHJc4.mjs
5884
5888
  /**
5885
5889
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5886
5890
  * window to float samples (D455).
@@ -8011,16 +8015,6 @@ var BaseAddon = class {
8011
8015
  return null;
8012
8016
  }
8013
8017
  /**
8014
- * The form schema of ONE integration instance, or `null` to use the scoped form.
8015
- *
8016
- * Override it only when an `instanceMode: multiple` addon's instances differ: an NVR integration
8017
- * needs its connection fields, the default integration the addon's own sections. It is the
8018
- * SHAPE of the form only — the values live on the instance record.
8019
- */
8020
- async integrationFormSchema(_instance) {
8021
- return null;
8022
- }
8023
- /**
8024
8018
  * D986 scoped settings: the form shape of the CLUSTER-wide settings one capability this addon
8025
8019
  * provides owns, or `null` when it has none. `cap` is a capability name the addon's manifest
8026
8020
  * declares. Stored as `addon-settings` rows `<addonId>.<field>`. The keys of this schema, of
@@ -8048,8 +8042,7 @@ var BaseAddon = class {
8048
8042
  }
8049
8043
  /**
8050
8044
  * The host's read of the scoped declarations: the schema one capability declares for `scope`,
8051
- * or `null`. Beside {@link getIntegrationFormSchema}, the same shape: the hook is protected, the
8052
- * host asks this method.
8045
+ * or `null`. The hook is protected, the host asks this method.
8053
8046
  */
8054
8047
  async getScopedSettingsSchema(scope, cap) {
8055
8048
  switch (scope) {
@@ -8217,22 +8210,6 @@ var BaseAddon = class {
8217
8210
  return Object.fromEntries([...collectHydratedFieldValues(form)].filter(([, value]) => value !== void 0));
8218
8211
  }
8219
8212
  /**
8220
- * What the create wizard and the integration edit page render for one instance: the addon's
8221
- * per-instance schema when it declares one, else its global schema (what they always showed).
8222
- */
8223
- async getIntegrationFormSchema(instance, nodeId) {
8224
- const scoped = await this.integrationFormSchema(instance);
8225
- if (scoped === null) return this.scopedForm(nodeId);
8226
- return hydrateSchema(scoped, {}, { inlineSecretsAsViews: true });
8227
- }
8228
- /** The form of the scoped schemas this addon declared, hydrated from its store. */
8229
- async scopedForm(nodeId) {
8230
- await this.loadScopedSchemas();
8231
- const schema = this.scopedFormSchema();
8232
- if (!schema) return { sections: [] };
8233
- return hydrateSchema(schema, await this.readRawProjectedStore(nodeId), { inlineSecretsAsViews: true });
8234
- }
8235
- /**
8236
8213
  * The raw addon store PROJECTED onto the target node's bare per-node keys:
8237
8214
  * every `perNode: true` field carries THAT node's scoped value on its bare
8238
8215
  * key (absent scoped key ⇒ key absent, so the schema `default` wins — no
@@ -8419,12 +8396,6 @@ var BaseAddon = class {
8419
8396
  this._nodeKeysByCap = /* @__PURE__ */ new Map();
8420
8397
  this._addonSecretTree = null;
8421
8398
  }
8422
- /** The form of an addon's scoped schemas: their sections, each shown once. */
8423
- scopedFormSchema(cap) {
8424
- const byId = /* @__PURE__ */ new Map();
8425
- for (const entry of this.loadedScopedSchemas(cap)) for (const section of entry.schema.sections) if (!byId.has(section.id)) byId.set(section.id, section);
8426
- return byId.size === 0 ? null : { sections: [...byId.values()] };
8427
- }
8428
8399
  /** Every loaded scoped schema of `cap`, or of every loaded capability. */
8429
8400
  loadedScopedSchemas(cap) {
8430
8401
  if (cap !== void 0) return this._scopedByCap.get(cap) ?? [];
@@ -9014,6 +8985,10 @@ function normalizeAddonInitResult(result) {
9014
8985
  if (Array.isArray(result)) return { providers: result };
9015
8986
  return result;
9016
8987
  }
8988
+ object({
8989
+ code: string().regex(/^[a-z][a-z0-9-]*(\.[a-z0-9-]+)+$/),
8990
+ params: record(string(), union([string(), number$1()])).optional()
8991
+ });
9017
8992
  object({
9018
8993
  field: string().min(1),
9019
8994
  on: literal("advance")
@@ -9090,12 +9065,6 @@ function systemMethod(input, output, options) {
9090
9065
  systemOnly: true
9091
9066
  };
9092
9067
  }
9093
- /**
9094
- * A method a SOURCE of a collection cap may legitimately not serve — OPTIONAL
9095
- * on `InferProvider`. The `providerOptional: true` literal is what
9096
- * `InferProvider` keys on; see {@link CapabilityMethodSchema.providerOptional}
9097
- * for when this is the honest answer and when it is a soft stub.
9098
- */
9099
9068
  function optionalMethod(input, output, options) {
9100
9069
  return {
9101
9070
  ...method(input, output, options),
@@ -9711,7 +9680,7 @@ function t(en, it) {
9711
9680
  * Things an operator switches, opens, sets or arms: lights, plugs, sirens,
9712
9681
  * covers, valves, locks, climate, fans, alarm panels.
9713
9682
  */
9714
- var ON = t("On", "Acceso");
9683
+ var ON$1 = t("On", "Acceso");
9715
9684
  var PERCENT = t("Percentage", "Percentuale");
9716
9685
  var OPEN_CLOSE_STATES = [
9717
9686
  {
@@ -9771,7 +9740,7 @@ var ACTUATOR_CAP_VOCABULARY = {
9771
9740
  state: [{
9772
9741
  kind: "boolean",
9773
9742
  field: "on",
9774
- label: ON,
9743
+ label: ON$1,
9775
9744
  whenTrue: t("When {device} turns on", "Quando {device} si accende"),
9776
9745
  whenFalse: t("When {device} turns off", "Quando {device} si spegne"),
9777
9746
  icon: "power"
@@ -10937,7 +10906,7 @@ var ACTUATOR_CAP_VOCABULARY = {
10937
10906
  state: [{
10938
10907
  kind: "boolean",
10939
10908
  field: "on",
10940
- label: ON,
10909
+ label: ON$1,
10941
10910
  whenTrue: t("When {device} turns on", "Quando {device} si accende"),
10942
10911
  whenFalse: t("When {device} turns off", "Quando {device} si spegne"),
10943
10912
  icon: "power"
@@ -13349,6 +13318,133 @@ var CAMERA_CAP_VOCABULARY = {
13349
13318
  }
13350
13319
  };
13351
13320
  /**
13321
+ * The heat pump (D1026): its system modes are phrased for automations, each with the
13322
+ * values the gateway really accepts; the per-circuit parameters need a circuit and are
13323
+ * set from the device page.
13324
+ */
13325
+ var OFF = {
13326
+ value: "off",
13327
+ label: t("Off", "Off")
13328
+ };
13329
+ var AUTO = {
13330
+ value: "auto",
13331
+ label: t("Auto", "Auto")
13332
+ };
13333
+ var ON = {
13334
+ value: "on",
13335
+ label: t("On", "On")
13336
+ };
13337
+ var MANUAL = {
13338
+ value: "manual",
13339
+ label: t("Manual", "Manuale")
13340
+ };
13341
+ var HOLIDAY_PROGRAMMES = [OFF, ...[
13342
+ 1,
13343
+ 2,
13344
+ 3,
13345
+ 4,
13346
+ 5,
13347
+ 6,
13348
+ 7,
13349
+ 8
13350
+ ].map((n) => ({
13351
+ value: `hm${n}`,
13352
+ label: t(`Programme ${n}`, `Programma ${n}`)
13353
+ }))];
13354
+ var PER_CIRCUIT = "Needs a circuit: set from the device page, not offered to automations";
13355
+ var HEAT_PUMP_CAP_VOCABULARY = {
13356
+ "heat-pump-status": {
13357
+ scope: "device",
13358
+ noun: t("Heat pump", "Pompa di calore")
13359
+ },
13360
+ "heat-pump-control": {
13361
+ scope: "device",
13362
+ noun: t("Heat pump settings", "Impostazioni pompa di calore"),
13363
+ actions: [
13364
+ {
13365
+ id: "heatPump.silent",
13366
+ method: "setSilentMode",
13367
+ label: t("Set silent mode", "Imposta la modalità silenziosa"),
13368
+ phrase: t("Set silent mode of {device} to {mode}", "Imposta la modalità silenziosa di {device} su {mode}"),
13369
+ icon: "volume-x",
13370
+ openArgs: [{
13371
+ key: "mode",
13372
+ label: t("Silent mode", "Modalità silenziosa"),
13373
+ offer: {
13374
+ kind: "enum",
13375
+ values: [
13376
+ OFF,
13377
+ AUTO,
13378
+ ON
13379
+ ]
13380
+ }
13381
+ }]
13382
+ },
13383
+ {
13384
+ id: "heatPump.away",
13385
+ method: "setAwayMode",
13386
+ label: t("Set away mode", "Imposta la modalità assente"),
13387
+ phrase: t("Set away mode of {device} to {mode}", "Imposta la modalità assente di {device} su {mode}"),
13388
+ icon: "plane",
13389
+ openArgs: [{
13390
+ key: "mode",
13391
+ label: t("Away mode", "Modalità assente"),
13392
+ offer: {
13393
+ kind: "enum",
13394
+ values: [OFF, ON]
13395
+ }
13396
+ }]
13397
+ },
13398
+ {
13399
+ id: "heatPump.additionalHeater",
13400
+ method: "setAdditionalHeaterMode",
13401
+ label: t("Set additional heater", "Imposta il riscaldatore aggiuntivo"),
13402
+ phrase: t("Set the additional heater of {device} to {mode}", "Imposta il riscaldatore aggiuntivo di {device} su {mode}"),
13403
+ icon: "flame",
13404
+ openArgs: [{
13405
+ key: "mode",
13406
+ label: t("Additional heater", "Riscaldatore aggiuntivo"),
13407
+ offer: {
13408
+ kind: "enum",
13409
+ values: [
13410
+ OFF,
13411
+ MANUAL,
13412
+ AUTO
13413
+ ]
13414
+ }
13415
+ }]
13416
+ },
13417
+ {
13418
+ id: "heatPump.holiday",
13419
+ method: "setHolidayMode",
13420
+ label: t("Set holiday mode", "Imposta la modalità vacanza"),
13421
+ phrase: t("Set holiday mode of {device} to {mode}", "Imposta la modalità vacanza di {device} su {mode}"),
13422
+ icon: "tree-palm",
13423
+ openArgs: [{
13424
+ key: "mode",
13425
+ label: t("Holiday programme", "Programma vacanza"),
13426
+ offer: {
13427
+ kind: "enum",
13428
+ values: HOLIDAY_PROGRAMMES
13429
+ }
13430
+ }]
13431
+ }
13432
+ ],
13433
+ notOperatorFacing: {
13434
+ setCircuitOperationMode: PER_CIRCUIT,
13435
+ setCircuitHeatCoolMode: PER_CIRCUIT,
13436
+ setCircuitSummerWinter: PER_CIRCUIT,
13437
+ setCircuitComfortSetpoint: PER_CIRCUIT,
13438
+ setCircuitEcoSetpoint: PER_CIRCUIT,
13439
+ setCircuitMaxFlowTemp: PER_CIRCUIT,
13440
+ setDhwOperationMode: PER_CIRCUIT,
13441
+ setDhwTemperatureLevel: PER_CIRCUIT,
13442
+ setDhwChargeDuration: PER_CIRCUIT,
13443
+ startExtraHotWater: PER_CIRCUIT
13444
+ }
13445
+ }
13446
+ };
13447
+ /**
13352
13448
  * Things an operator WATCHES: contacts, motion, leaks, smoke, measurements,
13353
13449
  * presence, reachability, batteries, doorbells and event sources.
13354
13450
  */
@@ -14070,6 +14166,7 @@ var CAP_VOCABULARY_BY_NAME = {
14070
14166
  ...ACTUATOR_CAP_VOCABULARY,
14071
14167
  ...APPLIANCE_CAP_VOCABULARY,
14072
14168
  ...CAMERA_CAP_VOCABULARY,
14169
+ ...HEAT_PUMP_CAP_VOCABULARY,
14073
14170
  ...SENSOR_CAP_VOCABULARY,
14074
14171
  ...SYSTEM_CAP_VOCABULARY
14075
14172
  };
@@ -14313,6 +14410,8 @@ var CAP_NAMES = Object.freeze([
14313
14410
  "group-active",
14314
14411
  "group-commands",
14315
14412
  "group-status",
14413
+ "heat-pump-control",
14414
+ "heat-pump-status",
14316
14415
  "heating-valve",
14317
14416
  "hero-layout",
14318
14417
  "humidifier",
@@ -15178,6 +15277,48 @@ Object.freeze({
15178
15277
  "valueType": "number"
15179
15278
  }
15180
15279
  ],
15280
+ "heat-pump-status": [
15281
+ {
15282
+ "path": "power.thermalW",
15283
+ "valueType": "number"
15284
+ },
15285
+ {
15286
+ "path": "power.electricalW",
15287
+ "valueType": "number"
15288
+ },
15289
+ {
15290
+ "path": "power.compressorPct",
15291
+ "valueType": "number"
15292
+ },
15293
+ {
15294
+ "path": "temperatures.supply",
15295
+ "valueType": "number"
15296
+ },
15297
+ {
15298
+ "path": "temperatures.return",
15299
+ "valueType": "number"
15300
+ },
15301
+ {
15302
+ "path": "temperatures.outdoor",
15303
+ "valueType": "number"
15304
+ },
15305
+ {
15306
+ "path": "energy.thermalKwh",
15307
+ "valueType": "number"
15308
+ },
15309
+ {
15310
+ "path": "energy.electricalKwh",
15311
+ "valueType": "number"
15312
+ },
15313
+ {
15314
+ "path": "waterPressureBar",
15315
+ "valueType": "number"
15316
+ },
15317
+ {
15318
+ "path": "starts",
15319
+ "valueType": "number"
15320
+ }
15321
+ ],
15181
15322
  "heating-valve": [{
15182
15323
  "path": "position",
15183
15324
  "valueType": "number"
@@ -16318,12 +16459,8 @@ Object.freeze({
16318
16459
  "uploadDataset": 72e5
16319
16460
  }
16320
16461
  });
16321
- object({
16322
- code: string().regex(/^[a-z][a-z0-9-]*(\.[a-z0-9-]+)+$/),
16323
- params: record(string(), union([string(), number$1()])).optional()
16324
- });
16325
16462
  //#endregion
16326
- //#region ../types/dist/composition-CXCX78IR.mjs
16463
+ //#region ../types/dist/composition-C6TZGqUb.mjs
16327
16464
  /**
16328
16465
  * The ffmpeg build every CamStack node downloads, per platform and arch.
16329
16466
  *
@@ -18033,25 +18170,6 @@ var RequiredAddonUpdateSchema = object({
18033
18170
  installed: string().nullable()
18034
18171
  });
18035
18172
  /**
18036
- * Which integration instance a settings form is for. An addon that serves several instances
18037
- * (`instanceMode: multiple`) can show a different form per instance — an NVR integration
18038
- * needs its connection, the default integration needs the addon's own sections.
18039
- *
18040
- * - `integrationId` is `null` in the create wizard: nothing exists yet, the operator is
18041
- * setting up a NEW instance.
18042
- * - `mode` is the wizard mode of the integration type (`getAvailableTypes`).
18043
- * - `candidateStableId` is the discovery candidate a wizard was seeded from, if any.
18044
- */
18045
- var IntegrationInstanceRefSchema = object({
18046
- integrationId: string().nullable(),
18047
- mode: _enum([
18048
- "standalone",
18049
- "account",
18050
- "broker"
18051
- ]),
18052
- candidateStableId: string().optional()
18053
- });
18054
- /**
18055
18173
  * notification-output — canonical, capability-gated notification delivery.
18056
18174
  *
18057
18175
  * Apprise-derived model (see
@@ -44137,10 +44255,6 @@ method(object({
44137
44255
  scope: ScopedSettingsScopeSchema,
44138
44256
  nodeId: string().optional()
44139
44257
  }), record(string(), unknown()).nullable()), method(object({
44140
- addonId: string(),
44141
- nodeId: string().optional(),
44142
- instance: IntegrationInstanceRefSchema
44143
- }), SettingsSchemaWithValuesSchema.nullable()), method(object({
44144
44258
  addonId: string(),
44145
44259
  nodeId: string().optional()
44146
44260
  }), object({ keys: array(string()) }).nullable(), { auth: "admin" }), method(object({
@@ -48383,7 +48497,7 @@ DeviceType.MediaPlayer, method(deviceOnly, _void(), {
48383
48497
  kind: "mutation",
48384
48498
  auth: "protected"
48385
48499
  });
48386
- DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat, DeviceType.EventEmitter, DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, 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.Heater, DeviceType.Dryer, DeviceType.Gateway, DeviceType.Camera, DeviceType.Fan, DeviceType.Lock, DeviceType.Camera, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Gateway, DeviceType.Hub, 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.Thermostat, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.MediaPlayer;
48500
+ DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat, DeviceType.EventEmitter, DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, 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.Heater, DeviceType.Dryer, DeviceType.Gateway, DeviceType.HeatPump, DeviceType.Camera, DeviceType.Fan, DeviceType.Lock, DeviceType.Camera, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Gateway, DeviceType.Hub, 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.Thermostat, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.MediaPlayer;
48387
48501
  var NUMBER = {
48388
48502
  kind: "fixed",
48389
48503
  result: ["number"]
@@ -53725,6 +53839,207 @@ var GroupStatusSchema = object({
53725
53839
  }))
53726
53840
  });
53727
53841
  DeviceType.Sensor, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Cover, DeviceType.Valve, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.Thermostat, DeviceType.Climate;
53842
+ /**
53843
+ * Heat pump settable surface (D1026): one typed method per parameter, never a
53844
+ * generic `set(key, value)`. The values a mode takes and the limits of a number
53845
+ * are the ones `heat-pump-status` carries (`allowed`, `min`, `max`, `step`),
53846
+ * read from the gateway; a provider refuses a value outside them. The state is
53847
+ * `heat-pump-status` — this cap has none.
53848
+ */
53849
+ var deviceId = number$1().int().nonnegative();
53850
+ var circuitId = string().min(1);
53851
+ var mode = string().min(1);
53852
+ var temp = number$1().finite();
53853
+ DeviceType.HeatPump, method(object({
53854
+ deviceId,
53855
+ mode
53856
+ }), _void(), {
53857
+ kind: "mutation",
53858
+ auth: "protected"
53859
+ }), method(object({
53860
+ deviceId,
53861
+ mode
53862
+ }), _void(), {
53863
+ kind: "mutation",
53864
+ auth: "protected"
53865
+ }), method(object({
53866
+ deviceId,
53867
+ mode
53868
+ }), _void(), {
53869
+ kind: "mutation",
53870
+ auth: "protected"
53871
+ }), method(object({
53872
+ deviceId,
53873
+ mode
53874
+ }), _void(), {
53875
+ kind: "mutation",
53876
+ auth: "protected"
53877
+ }), method(object({
53878
+ deviceId,
53879
+ circuitId,
53880
+ mode
53881
+ }), _void(), {
53882
+ kind: "mutation",
53883
+ auth: "protected"
53884
+ }), method(object({
53885
+ deviceId,
53886
+ circuitId,
53887
+ mode
53888
+ }), _void(), {
53889
+ kind: "mutation",
53890
+ auth: "protected"
53891
+ }), method(object({
53892
+ deviceId,
53893
+ circuitId,
53894
+ mode
53895
+ }), _void(), {
53896
+ kind: "mutation",
53897
+ auth: "protected"
53898
+ }), method(object({
53899
+ deviceId,
53900
+ circuitId,
53901
+ temp
53902
+ }), _void(), {
53903
+ kind: "mutation",
53904
+ auth: "protected"
53905
+ }), method(object({
53906
+ deviceId,
53907
+ circuitId,
53908
+ temp
53909
+ }), _void(), {
53910
+ kind: "mutation",
53911
+ auth: "protected"
53912
+ }), method(object({
53913
+ deviceId,
53914
+ circuitId,
53915
+ temp
53916
+ }), _void(), {
53917
+ kind: "mutation",
53918
+ auth: "protected"
53919
+ }), method(object({
53920
+ deviceId,
53921
+ circuitId,
53922
+ mode
53923
+ }), _void(), {
53924
+ kind: "mutation",
53925
+ auth: "protected"
53926
+ }), method(object({
53927
+ deviceId,
53928
+ circuitId,
53929
+ level: mode
53930
+ }), _void(), {
53931
+ kind: "mutation",
53932
+ auth: "protected"
53933
+ }), method(object({
53934
+ deviceId,
53935
+ circuitId,
53936
+ minutes: number$1().int().positive()
53937
+ }), _void(), {
53938
+ kind: "mutation",
53939
+ auth: "protected"
53940
+ }), method(object({
53941
+ deviceId,
53942
+ circuitId
53943
+ }), _void(), {
53944
+ kind: "mutation",
53945
+ auth: "protected"
53946
+ });
53947
+ var HeatPumpCircuitKindSchema = _enum([
53948
+ "heating",
53949
+ "dhw",
53950
+ "cooling",
53951
+ "solar"
53952
+ ]);
53953
+ /** A setting that takes one of a list of values the gateway named. */
53954
+ var HeatPumpOptionSettingSchema = object({
53955
+ /** The active value. Null when the gateway did not answer. */
53956
+ value: string().nullable(),
53957
+ /** Values the gateway accepts, in its order. Empty = read-only here. */
53958
+ allowed: array(string())
53959
+ });
53960
+ /** A numeric setting with the limits the gateway named. */
53961
+ var HeatPumpRangeSettingSchema = object({
53962
+ value: number$1().nullable(),
53963
+ min: number$1().nullable(),
53964
+ max: number$1().nullable(),
53965
+ step: number$1().nullable()
53966
+ });
53967
+ var HeatPumpCircuitSchema = object({
53968
+ /** Gateway id of the circuit (`hc1`, `dhw1`): the key of the series. */
53969
+ id: string().min(1),
53970
+ kind: HeatPumpCircuitKindSchema,
53971
+ label: string(),
53972
+ icon: IconKeySchema,
53973
+ /** Measured temperature of the circuit (room, tank, collector). */
53974
+ currentTemp: number$1().nullable().meta(readingMeta("temperature")),
53975
+ /** The setpoint in force now. */
53976
+ targetTemp: number$1().nullable().meta(readingMeta("temperature")),
53977
+ /** The operation mode in force (mirror of `operationMode.value`, for the series). */
53978
+ mode: string().nullable(),
53979
+ /** Whether the circuit is calling for heat right now. Null = unknown. */
53980
+ active: boolean().nullable(),
53981
+ operationMode: HeatPumpOptionSettingSchema.nullable(),
53982
+ /** Heating circuits: heat / cool / heatCool. */
53983
+ heatCoolMode: HeatPumpOptionSettingSchema.nullable(),
53984
+ /** Heating circuits: summer / winter changeover. */
53985
+ summerWinter: HeatPumpOptionSettingSchema.nullable(),
53986
+ comfortSetpoint: HeatPumpRangeSettingSchema.nullable(),
53987
+ ecoSetpoint: HeatPumpRangeSettingSchema.nullable(),
53988
+ maxFlowTemp: HeatPumpRangeSettingSchema.nullable(),
53989
+ /** Hot water: the temperature level (off / low / high / eco). */
53990
+ temperatureLevel: HeatPumpOptionSettingSchema.nullable(),
53991
+ /** Hot water: how long a charge lasts, minutes. */
53992
+ chargeDuration: HeatPumpRangeSettingSchema.nullable(),
53993
+ /** Hot water: whether an extra-hot-water charge is running. Null = no such surface. */
53994
+ extraHotWater: boolean().nullable()
53995
+ });
53996
+ /** The independent system modes, each with its real values. A null mode = the gateway has none. */
53997
+ var HeatPumpSystemSchema = object({
53998
+ silent: HeatPumpOptionSettingSchema.nullable(),
53999
+ away: HeatPumpOptionSettingSchema.nullable(),
54000
+ additionalHeater: HeatPumpOptionSettingSchema.nullable(),
54001
+ holiday: HeatPumpOptionSettingSchema.nullable()
54002
+ });
54003
+ var HeatPumpPowerSchema = object({
54004
+ thermalW: number$1().nullable().meta(readingMeta("power")),
54005
+ electricalW: number$1().nullable().meta(readingMeta("power")),
54006
+ /** Compressor modulation, percent. */
54007
+ compressorPct: number$1().nullable().meta(readingMeta("percentage"))
54008
+ });
54009
+ var HeatPumpTemperaturesSchema = object({
54010
+ supply: number$1().nullable().meta(readingMeta("temperature")),
54011
+ return: number$1().nullable().meta(readingMeta("temperature")),
54012
+ outdoor: number$1().nullable().meta(readingMeta("temperature"))
54013
+ });
54014
+ /** Lifetime meters, kWh: the energy of a period is computed at read time from their difference (D944). */
54015
+ var HeatPumpEnergySchema = object({
54016
+ thermalKwh: number$1().nullable().meta(readingMeta("energy")),
54017
+ electricalKwh: number$1().nullable().meta(readingMeta("energy"))
54018
+ });
54019
+ var HeatPumpStatusSchema = object({
54020
+ circuits: array(HeatPumpCircuitSchema),
54021
+ system: HeatPumpSystemSchema,
54022
+ power: HeatPumpPowerSchema,
54023
+ temperatures: HeatPumpTemperaturesSchema,
54024
+ energy: HeatPumpEnergySchema,
54025
+ /** Water pressure of the heating loop, bar. */
54026
+ waterPressureBar: number$1().nullable(),
54027
+ /** Compressor starts since commissioning. */
54028
+ starts: number$1().nullable(),
54029
+ /** Ms epoch when the slice was last read from the gateway. */
54030
+ lastFetchedAt: number$1()
54031
+ });
54032
+ /**
54033
+ * The instantaneous COP: thermal over electrical power. Null unless BOTH powers
54034
+ * are known and the unit draws power — a missing reading is never a 0 or a
54035
+ * division by it (D393). Computed on every read; there is no stored value.
54036
+ */
54037
+ function heatPumpInstantCop(power) {
54038
+ const { thermalW, electricalW } = power;
54039
+ if (thermalW === null || electricalW === null || electricalW <= 0) return null;
54040
+ return thermalW / electricalW;
54041
+ }
54042
+ DeviceType.HeatPump;
53728
54043
  var HeatingValveStatusSchema = object({
53729
54044
  /** Radiator valve opening 0 (closed) .. 100 (open). Null = not yet known. */
53730
54045
  position: number$1().min(0).max(100).nullable().meta(readingMeta("percentage")),
@@ -53882,6 +54197,7 @@ var HeroSceneSchema = object({
53882
54197
  "ac",
53883
54198
  "thermostat",
53884
54199
  "heater",
54200
+ "heat-pump",
53885
54201
  "fan",
53886
54202
  "washer",
53887
54203
  "dryer",
@@ -53924,7 +54240,7 @@ var HeroSceneSchema = object({
53924
54240
  /** 0..1: volume, cover position, cycle progress. */
53925
54241
  level: number$1().min(0).max(1).nullable()
53926
54242
  });
53927
- DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, 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.Heater, DeviceType.Dryer, DeviceType.Gateway;
54243
+ DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, 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.Heater, DeviceType.Dryer, DeviceType.Gateway;
53928
54244
  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.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;
53929
54245
  /** A string in both languages, as the cap vocabulary writes it (D920): no `t()` in the model. */
53930
54246
  var HeroTextSchema = object({
@@ -53932,6 +54248,7 @@ var HeroTextSchema = object({
53932
54248
  it: string()
53933
54249
  });
53934
54250
  var HeroRowIdSchema = _enum([
54251
+ "progress",
53935
54252
  "run-for",
53936
54253
  "cycle",
53937
54254
  "program",
@@ -53946,6 +54263,7 @@ var HeroRowIdSchema = _enum([
53946
54263
  "alarm",
53947
54264
  "fan",
53948
54265
  "vacuum",
54266
+ "vacuum-suction",
53949
54267
  "mower",
53950
54268
  "feeder",
53951
54269
  "fountain",
@@ -53964,7 +54282,10 @@ var HeroRowIdSchema = _enum([
53964
54282
  "climate-fan",
53965
54283
  "setpoint",
53966
54284
  "channel",
53967
- "control"
54285
+ "control",
54286
+ "circuit",
54287
+ "heat-pump-power",
54288
+ "system-mode"
53968
54289
  ]);
53969
54290
  var HeroArgValueSchema = lazy(() => union([
53970
54291
  string(),
@@ -54029,16 +54350,32 @@ var HeroControlSchema = discriminatedUnion("kind", [
54029
54350
  label: HeroTextSchema,
54030
54351
  current: string().nullable(),
54031
54352
  options: array(string()),
54353
+ /** A readable label per option value; an option without one is drawn as its raw value. */
54354
+ optionLabels: record(string(), HeroTextSchema).optional(),
54032
54355
  call: HeroCallSchema,
54033
54356
  valueArg: string()
54034
54357
  })
54035
54358
  ]);
54359
+ /** Declared by its interface: a `z.infer` of one more icon union pushes the cap's inferred type past what the compiler can print. */
54360
+ var HeroPillSchema = object({
54361
+ icon: IconKeySchema.nullable(),
54362
+ text: HeroTextSchema,
54363
+ tone: HeroToneSchema
54364
+ });
54036
54365
  var HeroRowSchema = object({
54037
54366
  id: HeroRowIdSchema,
54367
+ /** The row's own name when the kind's label would not tell rows of one kind apart (a circuit's label). */
54368
+ label: HeroTextSchema.optional(),
54369
+ /** A group header drawn above the row when it differs from the previous row's ("System"). */
54370
+ group: HeroTextSchema.optional(),
54371
+ /** Values drawn as pills across the row (a heat pump's powers). */
54372
+ pills: array(HeroPillSchema).optional(),
54038
54373
  icon: IconKeySchema,
54039
54374
  /** The row's status, in words. `null` = nothing to say. */
54040
54375
  status: HeroTextSchema.nullable(),
54041
- controls: array(HeroControlSchema)
54376
+ controls: array(HeroControlSchema),
54377
+ /** A bar under the row's label, 0..1; `null` / absent = no bar. */
54378
+ progress: number$1().min(0).max(1).nullable().optional()
54042
54379
  });
54043
54380
  var HeroDetailSchema = object({
54044
54381
  label: HeroTextSchema,
@@ -54046,7 +54383,11 @@ var HeroDetailSchema = object({
54046
54383
  unit: string().nullable()
54047
54384
  });
54048
54385
  var HeroBadgeSchema = object({
54049
- id: _enum(["battery", "network-link"]),
54386
+ id: _enum([
54387
+ "battery",
54388
+ "network-link",
54389
+ "integration"
54390
+ ]),
54050
54391
  icon: IconKeySchema,
54051
54392
  tone: HeroToneSchema,
54052
54393
  /** Percent for a battery, link quality for a link; `null` = not known. */
@@ -54146,7 +54487,12 @@ var HeroFactSchema = object({
54146
54487
  var HeroSideTileSchema = object({
54147
54488
  label: HeroTextSchema,
54148
54489
  value: HeroTextSchema,
54149
- tone: HeroToneSchema.optional()
54490
+ tone: HeroToneSchema.optional(),
54491
+ /**
54492
+ * Epoch ms when the tile reads a clock time (an appliance's end): a client prints it in
54493
+ * the viewer's own time zone; `value` is the fallback for one that cannot.
54494
+ */
54495
+ at: number$1().optional()
54150
54496
  });
54151
54497
  var HeroSideTilesSchema = object({
54152
54498
  left: array(HeroSideTileSchema).max(2),
@@ -54182,8 +54528,12 @@ var HeroModelSchema = object({
54182
54528
  sideTiles: HeroSideTilesSchema,
54183
54529
  /** The status line under the main icon. */
54184
54530
  title: HeroTextSchema,
54531
+ /** The scene's top line when it says more than `title`; absent = draw the title. */
54532
+ caption: HeroTextSchema.optional(),
54185
54533
  badges: array(HeroBadgeSchema),
54186
54534
  remote: HeroRemoteSlotSchema.nullable(),
54535
+ /** The foot button that opens the device's history: "History", "Cycles", "Meals", "Access". */
54536
+ historyLabel: HeroTextSchema,
54187
54537
  consumables: HeroConsumablesSlotSchema.nullable(),
54188
54538
  consumption: HeroConsumptionSlotSchema.nullable(),
54189
54539
  ownPower: HeroOwnPowerSlotSchema.nullable(),
@@ -54507,6 +54857,12 @@ var IntegrationWithStateSchema = object({
54507
54857
  name: string(),
54508
54858
  /** A projection of the instance body's switch (`setInstanceEnabled` is the only writer). */
54509
54859
  enabled: boolean(),
54860
+ /**
54861
+ * True when the addon that holds the switch did not answer (down, failed, or keeps no record for
54862
+ * this row): `enabled` is then the stored registry flag, a stale value, not the state. A reader
54863
+ * must not draw it as on or off (D315).
54864
+ */
54865
+ switchUnknown: literal(true).optional(),
54510
54866
  info: record(string(), unknown()).readonly(),
54511
54867
  /** The discovery candidate this integration was set up from (D984). */
54512
54868
  originStableId: string().optional(),
@@ -54520,6 +54876,12 @@ var IntegrationLiteSchema = object({
54520
54876
  name: string(),
54521
54877
  /** A projection of the instance body's switch (`setInstanceEnabled` is the only writer). */
54522
54878
  enabled: boolean(),
54879
+ /**
54880
+ * True when the addon that holds the switch did not answer (down, failed, or keeps no record for
54881
+ * this row): `enabled` is then the stored registry flag, a stale value, not the state. A reader
54882
+ * must not draw it as on or off (D315).
54883
+ */
54884
+ switchUnknown: literal(true).optional(),
54523
54885
  info: record(string(), unknown()).readonly(),
54524
54886
  /** The discovery candidate this integration was set up from (D984). */
54525
54887
  originStableId: string().optional(),
@@ -54618,9 +54980,9 @@ var UpdateIntegrationInputSchema = object({
54618
54980
  id: string(),
54619
54981
  name: string().optional(),
54620
54982
  /**
54621
- * Accepted for a FIXED builtin only (`info.fixed`: alarm panel, camera grid, core blocks,
54622
- * terminal), which keeps no instance record: the registry flag is its one store. Any other
54623
- * integration is switched through `integration-instances.setInstanceEnabled`.
54983
+ * Honoured ONLY for a fixed builtin (`info.fixed`), whose switch is the hub's own registry flag
54984
+ * and works while its addon is down. Any other row is refused (a typed `BAD_REQUEST`): its
54985
+ * switch is `integration-instances.setInstanceEnabled`.
54624
54986
  */
54625
54987
  enabled: boolean().optional(),
54626
54988
  info: record(string(), unknown()).optional()
@@ -54654,6 +55016,12 @@ method(_void(), array(IntegrationWithStateSchema)), method(object({ id: string()
54654
55016
  * the form as a `SecretFieldView`, never text (D789). A patch value omitted, `''`
54655
55017
  * or the redaction token KEEPS the stored secret; `{ $secretClear: true }`
54656
55018
  * clears it.
55019
+ *
55020
+ * Who may call (epic #440): every method but `describe` and `instanceFormSchema` is open to any
55021
+ * session (`caller: 'scoped'`) and default-denies. An admin passes everywhere. A non-admin passes
55022
+ * only on a call pinned to one addon whose `describe().userScoped` is true, and that provider
55023
+ * filters every row on the `caller` the router injected (a notification target is somebody's
55024
+ * phone: a user sees and changes only their own). An addon that says nothing keeps the admin door.
54657
55025
  */
54658
55026
  var ConfigSchemaPassthrough$2 = custom();
54659
55027
  var IntegrationInstanceIdSchema = string().min(1);
@@ -54767,7 +55135,15 @@ var IntegrationInstanceDescriptionSchema = object({
54767
55135
  */
54768
55136
  mintsId: boolean().optional(),
54769
55137
  /** The links to other instances the provider's kinds declare; absent means none. */
54770
- links: array(IntegrationInstanceLinkSchema).optional()
55138
+ links: array(IntegrationInstanceLinkSchema).optional(),
55139
+ /**
55140
+ * The rows belong to individual users (a notification target is somebody's phone). The router
55141
+ * then opens `listInstances`, `getInstance`, `createInstance`, `updateInstance`,
55142
+ * `setInstanceEnabled`, `deleteInstance` and `testInstance` to a NON-admin session on a call
55143
+ * pinned to this addon, and hands the provider the `caller` so it keeps a user to their own rows.
55144
+ * Absent means admin only, as it always was.
55145
+ */
55146
+ userScoped: boolean().optional()
54771
55147
  });
54772
55148
  var IntegrationInstanceStatusSchema = object({
54773
55149
  state: _enum([
@@ -54817,7 +55193,13 @@ method(_void(), IntegrationInstanceDescriptionSchema, { auth: "admin" }), method
54817
55193
  ]).optional(),
54818
55194
  /** The discovery candidate the wizard was seeded from (`stableId`), if any. */
54819
55195
  candidateStableId: string().min(1).optional()
54820
- }), ConfigSchemaPassthrough$2, { auth: "admin" }), method(_void(), array(IntegrationInstanceSchema).readonly(), { auth: "admin" }), method(object({ id: IntegrationInstanceIdSchema }), IntegrationInstanceSchema.nullable(), { auth: "admin" }), method(object({
55196
+ }), ConfigSchemaPassthrough$2, { auth: "admin" }), method(looseObject({}), array(IntegrationInstanceSchema).readonly(), {
55197
+ auth: "protected",
55198
+ caller: "scoped"
55199
+ }), method(object({ id: IntegrationInstanceIdSchema }), IntegrationInstanceSchema.nullable(), {
55200
+ auth: "protected",
55201
+ caller: "scoped"
55202
+ }), method(object({
54821
55203
  id: IntegrationInstanceIdSchema.optional(),
54822
55204
  name: string().min(1),
54823
55205
  kind: string().min(1).optional(),
@@ -54839,19 +55221,23 @@ method(_void(), IntegrationInstanceDescriptionSchema, { auth: "admin" }), method
54839
55221
  seed: object({ info: record(string(), unknown()) }).optional()
54840
55222
  }), object({ id: string() }), {
54841
55223
  kind: "mutation",
54842
- auth: "admin"
55224
+ auth: "protected",
55225
+ caller: "scoped"
54843
55226
  }), method(IntegrationInstancePatchSchema, object({ ok: literal(true) }), {
54844
55227
  kind: "mutation",
54845
- auth: "admin"
55228
+ auth: "protected",
55229
+ caller: "scoped"
54846
55230
  }), method(object({
54847
55231
  id: IntegrationInstanceIdSchema,
54848
55232
  enabled: boolean()
54849
55233
  }), object({ ok: literal(true) }), {
54850
55234
  kind: "mutation",
54851
- auth: "admin"
55235
+ auth: "protected",
55236
+ caller: "scoped"
54852
55237
  }), method(object({ id: IntegrationInstanceIdSchema }), object({ ok: literal(true) }), {
54853
55238
  kind: "mutation",
54854
- auth: "admin"
55239
+ auth: "protected",
55240
+ caller: "scoped"
54855
55241
  }), optionalMethod(object({
54856
55242
  id: IntegrationInstanceIdSchema.nullable(),
54857
55243
  values: record(string(), unknown()),
@@ -54859,7 +55245,8 @@ method(_void(), IntegrationInstanceDescriptionSchema, { auth: "admin" }), method
54859
55245
  kind: string().min(1).optional()
54860
55246
  }), TestConnectionResultSchema, {
54861
55247
  kind: "mutation",
54862
- auth: "admin"
55248
+ auth: "protected",
55249
+ caller: "scoped"
54863
55250
  });
54864
55251
  /**
54865
55252
  * Two-way audio / talk-back cap. Clients open a WebRTC audio-only
@@ -72707,6 +73094,11 @@ var SendEmailResultSchema = object({
72707
73094
  var SmtpStatusSchema = object({
72708
73095
  /** True iff the addon has successfully verified the relay. */
72709
73096
  ready: boolean(),
73097
+ /**
73098
+ * The tri-state behind `ready` (D315): true when the last send worked, false when it failed,
73099
+ * ABSENT when the relay has not sent yet (unknown, never "not verified").
73100
+ */
73101
+ verified: boolean().optional(),
72710
73102
  /** Operator-visible host string (no credentials). */
72711
73103
  host: string(),
72712
73104
  /** Last error message reported by the relay, when not ready. */
@@ -72718,10 +73110,6 @@ method(SendEmailInputSchema, SendEmailResultSchema, {
72718
73110
  kind: "mutation",
72719
73111
  auth: "admin",
72720
73112
  access: "create"
72721
- }), method(RelayPinSchema, SmtpStatusSchema, {
72722
- kind: "mutation",
72723
- auth: "admin",
72724
- access: "view"
72725
73113
  }), method(RelayPinSchema, SmtpStatusSchema, { auth: "admin" });
72726
73114
  /**
72727
73115
  * A single device snapshot returned as base64 JPEG/PNG.
@@ -76706,7 +77094,7 @@ var AccessoryKind = {
76706
77094
  PrivacyMask: DeviceRole.PrivacyMask
76707
77095
  };
76708
77096
  AccessoryKind.Siren, AccessoryKind.Floodlight, AccessoryKind.Spotlight, AccessoryKind.PirSensor, AccessoryKind.Chime, AccessoryKind.Autotrack, AccessoryKind.Nightvision, AccessoryKind.PrivacyMask;
76709
- DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Camera, DeviceType.Hub, DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, DeviceType.Sensor, DeviceType.Thermostat, 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.Heater, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway;
77097
+ 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.Thermostat, 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.Heater, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway;
76710
77098
  new Set(Object.values(DeviceType));
76711
77099
  /** Parses the raw slice with the cap's own schema; `undefined` when it does not parse. */
76712
77100
  function contribution(cap, schema, build) {
@@ -76842,6 +77230,13 @@ var lockContribution = contribution("lock-control", LockControlStatusSchema, (sl
76842
77230
  reading: reading("lock-control", words?.state ?? "unknown", false, words?.title),
76843
77231
  rows: [row$1("lock", state === "locked" || state === "locking" ? "lock" : "lock-open", joinText([title, since]), lockControls(state, ctx.features.includes(DeviceFeature.LockOpen)))],
76844
77232
  ...since === null || words === null ? {} : { facts: [fact("since", "clock", since, "muted")] },
77233
+ ...words === null ? {} : { tiles: { left: [{
77234
+ label: t("Door", "Porta"),
77235
+ value: title
77236
+ }, ...since === null ? [] : [{
77237
+ label: t("Since", "Da"),
77238
+ value: since
77239
+ }]] } },
76845
77240
  ...words?.door == null ? {} : { scene: { mode: words.door } }
76846
77241
  };
76847
77242
  });
@@ -76923,7 +77318,17 @@ var ACCESS_FAMILY_CONTRIBUTIONS = {
76923
77318
  return {
76924
77319
  reading: reading("alarm-panel", words?.state ?? "unknown", false, words?.title),
76925
77320
  rows: [row$1("alarm", state === "triggered" ? "shield-alert" : state === "disarmed" ? "shield-off" : "shield-check", joinText([words?.title ?? t("Unknown", "Sconosciuto"), since]), alarmControls(state, modes, slice?.requiresCode ?? false))],
76926
- ...since === null || words === null ? {} : { facts: [fact("since", "clock", since, state === "triggered" ? "danger" : "muted")] }
77321
+ ...since === null || words === null ? {} : { facts: [fact("since", "clock", since, state === "triggered" ? "danger" : "muted")] },
77322
+ ...words === null ? {} : { tiles: {
77323
+ left: [{
77324
+ label: t("Mode", "Modalità"),
77325
+ value: words.title
77326
+ }],
77327
+ ...since === null ? {} : { right: [{
77328
+ label: t("Since", "Da"),
77329
+ value: since
77330
+ }] }
77331
+ } }
76927
77332
  };
76928
77333
  }),
76929
77334
  "automation-control": contribution("automation-control", AutomationControlStatusSchema, (slice, ctx) => {
@@ -76987,7 +77392,7 @@ var ACCESS_FAMILY_CONTRIBUTIONS = {
76987
77392
  */
76988
77393
  var has$3 = (ctx, f) => ctx.features.includes(f);
76989
77394
  var unknownText = t("Unknown", "Sconosciuto");
76990
- var pct$1 = (n) => t(`${Math.round(n)}%`, `${Math.round(n)}%`);
77395
+ var pct$2 = (n) => t(`${Math.round(n)}%`, `${Math.round(n)}%`);
76991
77396
  var unit = (n) => Math.min(1, Math.max(0, n / 100));
76992
77397
  /** Battery as a fact, unless the device is also bound to the `battery` cap (it already says so). */
76993
77398
  function ownBattery(level, ctx) {
@@ -77049,7 +77454,7 @@ var fanContribution = contribution("fan-control", FanControlStatusSchema, (slice
77049
77454
  },
77050
77455
  valueArg: "direction"
77051
77456
  });
77052
- const speedText = speed === null ? null : pct$1(speed);
77457
+ const speedText = speed === null ? null : pct$2(speed);
77053
77458
  const preset = slice?.preset ?? "";
77054
77459
  const status = speed === null ? unknownText : joinText([speed === 0 ? t("Off", "Spento") : t(`Speed ${speed}%`, `Velocità ${speed}%`), preset === "" ? null : t(preset, preset)]);
77055
77460
  return {
@@ -77062,10 +77467,16 @@ var fanContribution = contribution("fan-control", FanControlStatusSchema, (slice
77062
77467
  }],
77063
77468
  ...speedText === null ? {} : {
77064
77469
  facts: [fact("speed", "fan", speedText, speed === 0 ? "muted" : "primary")],
77065
- tiles: { right: [{
77066
- label: t("Speed", "Velocità"),
77067
- value: speedText
77068
- }] },
77470
+ tiles: {
77471
+ ...slice?.oscillating == null ? {} : { left: [{
77472
+ label: t("Oscillation", "Oscilla"),
77473
+ value: slice.oscillating ? t("Yes", "Sì") : t("No", "No")
77474
+ }] },
77475
+ ...preset === "" ? {} : { right: [{
77476
+ label: t("Mode", "Modalità"),
77477
+ value: t(preset, preset)
77478
+ }] }
77479
+ },
77069
77480
  scene: { level: unit(speed ?? 0) }
77070
77481
  }
77071
77482
  };
@@ -77129,7 +77540,8 @@ var vacuumContribution = contribution("vacuum-control", VacuumControlStatusSchem
77129
77540
  const words = state === null ? null : VACUUM_WORDS[state];
77130
77541
  const title = state === "error" && slice?.errorLabel ? t(slice.errorLabel, slice.errorLabel) : words?.title;
77131
77542
  const controls = vacuumControls(state);
77132
- if (slice !== void 0 && slice.availableFanSpeeds.length > 0) controls.push({
77543
+ const suctionControls = [];
77544
+ if (slice !== void 0 && slice.availableFanSpeeds.length > 0) suctionControls.push({
77133
77545
  kind: "picker",
77134
77546
  id: "vacuum.suction",
77135
77547
  label: t("Suction", "Aspirazione"),
@@ -77144,22 +77556,31 @@ var vacuumContribution = contribution("vacuum-control", VacuumControlStatusSchem
77144
77556
  });
77145
77557
  if (state !== null) controls.push(vac("locate", "Locate", "Trova", "map-pin", "locate"));
77146
77558
  const progress = state === "cleaning" ? slice?.progress ?? null : null;
77559
+ const suction = slice?.fanSpeed == null || slice.fanSpeed === "" ? [] : [{
77560
+ label: t("Suction", "Aspirazione"),
77561
+ value: t(slice.fanSpeed, slice.fanSpeed)
77562
+ }];
77563
+ const suctionRows = suctionControls.length === 0 ? [] : [{
77564
+ id: "vacuum-suction",
77565
+ icon: "bot",
77566
+ status: null,
77567
+ controls: suctionControls
77568
+ }];
77569
+ const vacuumRows = [{
77570
+ id: "vacuum",
77571
+ icon: "bot",
77572
+ status: title ?? unknownText,
77573
+ controls
77574
+ }, ...suctionRows];
77147
77575
  return {
77148
77576
  reading: reading("vacuum-control", words?.state ?? "unknown", false, title),
77149
- rows: [{
77150
- id: "vacuum",
77151
- icon: "bot",
77152
- status: title ?? unknownText,
77153
- controls
77154
- }],
77155
- facts: [...ownBattery(slice?.batteryLevel ?? null, ctx), ...progress === null ? [] : [fact("progress", "activity", pct$1(progress), "primary")]],
77156
- ...progress === null ? {} : {
77157
- tiles: { right: [{
77158
- label: t("Progress", "Avanzamento"),
77159
- value: pct$1(progress)
77160
- }] },
77161
- scene: { level: unit(progress) }
77162
- }
77577
+ rows: vacuumRows,
77578
+ facts: [...ownBattery(slice?.batteryLevel ?? null, ctx), ...progress === null ? [] : [fact("progress", "activity", pct$2(progress), "primary")]],
77579
+ ...suction.length === 0 && progress === null ? {} : { tiles: { right: [...suction, ...progress === null ? [] : [{
77580
+ label: t("Progress", "Avanzamento"),
77581
+ value: pct$2(progress)
77582
+ }]] } },
77583
+ ...progress === null ? {} : { scene: { level: unit(progress) } }
77163
77584
  };
77164
77585
  });
77165
77586
  var MOWER_WORDS = {
@@ -77215,11 +77636,11 @@ var mowerContribution = contribution("lawn-mower-control", LawnMowerControlStatu
77215
77636
  status: title ?? unknownText,
77216
77637
  controls: mowerControls(activity)
77217
77638
  }],
77218
- facts: [...ownBattery(slice?.batteryLevel ?? null, ctx), ...progress === null ? [] : [fact("progress", "activity", pct$1(progress), "primary")]],
77639
+ facts: [...ownBattery(slice?.batteryLevel ?? null, ctx), ...progress === null ? [] : [fact("progress", "activity", pct$2(progress), "primary")]],
77219
77640
  ...progress === null ? {} : {
77220
77641
  tiles: { right: [{
77221
77642
  label: t("Progress", "Avanzamento"),
77222
- value: pct$1(progress)
77643
+ value: pct$2(progress)
77223
77644
  }] },
77224
77645
  scene: { level: unit(progress) }
77225
77646
  }
@@ -77290,10 +77711,13 @@ var feederContribution = contribution("pet-feeder", PetFeederStatusSchema, (slic
77290
77711
  ...last === null ? [] : [fact("last-run", "clock", t(`Last ${last} g`, `Ultimo ${last} g`))],
77291
77712
  ...ownBattery(slice?.powerSource === "battery" ? slice.batteryPower : null, ctx)
77292
77713
  ],
77293
- ...last === null ? {} : { tiles: { right: [{
77714
+ tiles: { left: [...slice?.foodLevel == null ? [] : [{
77715
+ label: t("Tank", "Serbatoio"),
77716
+ value: pct$2(slice.foodLevel)
77717
+ }], ...last === null ? [] : [{
77294
77718
  label: t("Last portion", "Ultima porzione"),
77295
77719
  value: t(`${last} g`, `${last} g`)
77296
- }] } }
77720
+ }]] }
77297
77721
  };
77298
77722
  });
77299
77723
  var fountainContribution = contribution("pet-fountain", PetFountainStatusSchema, (slice) => {
@@ -77321,10 +77745,13 @@ var fountainContribution = contribution("pet-fountain", PetFountainStatusSchema,
77321
77745
  }],
77322
77746
  ...level === null ? {} : {
77323
77747
  facts: [fact("level", "droplets", t(`Water ${Math.round(level)}%`, `Acqua ${Math.round(level)}%`), level <= 20 ? "warning" : "primary")],
77324
- tiles: { right: [{
77748
+ tiles: { left: [{
77325
77749
  label: t("Water", "Acqua"),
77326
- value: pct$1(level)
77327
- }] },
77750
+ value: pct$2(level)
77751
+ }, ...slice?.waterVolume == null ? [] : [{
77752
+ label: t("Volume", "Volume"),
77753
+ value: t(`${Math.round(slice.waterVolume)} ml`, `${Math.round(slice.waterVolume)} ml`)
77754
+ }]] },
77328
77755
  scene: { level: unit(level) }
77329
77756
  }
77330
77757
  };
@@ -77356,14 +77783,18 @@ var DEVICES_FAMILY_CONTRIBUTIONS = {
77356
77783
  * that does not parse reads `unknown`, never closed or off (D315/D393).
77357
77784
  */
77358
77785
  var has$2 = (ctx, f) => ctx.features.includes(f);
77359
- var pct = (n) => t(`${Math.round(n)}%`, `${Math.round(n)}%`);
77786
+ var pct$1 = (n) => t(`${Math.round(n)}%`, `${Math.round(n)}%`);
77360
77787
  var brightnessContribution = contribution("brightness", BrightnessStatusSchema, (slice) => {
77361
77788
  const level = slice?.level ?? null;
77362
77789
  return {
77363
77790
  ...level === null ? {} : { reading: reading("brightness", level > 0 ? "on" : "off") },
77364
77791
  ...level === null ? {} : {
77365
- facts: [fact("level", "sun-dim", pct(level), level > 0 ? "primary" : "muted")],
77366
- scene: { level: level / 100 }
77792
+ facts: [fact("level", "sun-dim", pct$1(level), level > 0 ? "primary" : "muted")],
77793
+ scene: { level: level / 100 },
77794
+ tiles: { left: [{
77795
+ label: t("Brightness", "Luminosità"),
77796
+ value: pct$1(level)
77797
+ }] }
77367
77798
  },
77368
77799
  rows: [row$1("brightness", "sun-dim", level === null ? null : t(`Brightness ${Math.round(level)}%`, `Luminosità ${Math.round(level)}%`), [{
77369
77800
  kind: "slider",
@@ -77572,12 +78003,16 @@ function travelFragment(s, state, position, tilt, ctx) {
77572
78003
  });
77573
78004
  return {
77574
78005
  reading: reading(s.source, words.state, false, words.title),
77575
- ...position === null ? {} : { facts: [fact("level", "arrow-up-down", pct(position))] },
78006
+ ...position === null ? {} : { facts: [fact("level", "arrow-up-down", pct$1(position))] },
78007
+ ...position === null ? {} : { tiles: { left: [{
78008
+ label: t("Opening", "Apertura"),
78009
+ value: pct$1(position)
78010
+ }] } },
77576
78011
  scene: {
77577
78012
  ...words.mode === null ? {} : { mode: words.mode },
77578
78013
  ...position === null ? {} : { level: position / 100 }
77579
78014
  },
77580
- rows: [row$1(s.rowId, "arrow-up-down", joinText([words.title, position !== null && state !== "open" ? pct(position) : null]), controls)]
78015
+ rows: [row$1(s.rowId, "arrow-up-down", joinText([words.title, position !== null && state !== "open" ? pct$1(position) : null]), controls)]
77581
78016
  };
77582
78017
  }
77583
78018
  var ACTUATORS_FAMILY_CONTRIBUTIONS = {
@@ -77655,10 +78090,10 @@ var ACTUATORS_FAMILY_CONTRIBUTIONS = {
77655
78090
  const now = slice.currentHumidity;
77656
78091
  return {
77657
78092
  reading: reading("humidifier", state, false, title),
77658
- ...now === null ? {} : { facts: [fact("level", "droplets", pct(now), "info")] },
78093
+ ...now === null ? {} : { facts: [fact("level", "droplets", pct$1(now), "info")] },
77659
78094
  ...slice.targetHumidity === null ? {} : { tiles: { right: [{
77660
78095
  label: t("Target", "Obiettivo"),
77661
- value: pct(slice.targetHumidity)
78096
+ value: pct$1(slice.targetHumidity)
77662
78097
  }] } },
77663
78098
  ...now === null ? {} : { scene: { level: now / 100 } },
77664
78099
  rows: [row$1("humidifier", "droplets", joinText([title, slice.mode === null ? null : t(slice.mode, slice.mode)]), controls)]
@@ -77906,17 +78341,16 @@ var weatherContribution = contribution("weather", WeatherStatusSchema, (slice, c
77906
78341
  });
77907
78342
  var updateContribution = contribution("update", UpdateStatusSchema, (slice) => {
77908
78343
  if (slice === void 0) return { reading: reading("update", "unknown") };
77909
- const { currentVersion, availableVersion, inProgress, updatable } = slice;
78344
+ const { currentVersion, availableVersion, inProgress } = slice;
77910
78345
  const pending = availableVersion !== null && availableVersion !== "" && availableVersion !== currentVersion;
77911
78346
  if (!pending && currentVersion === null && !inProgress) return { reading: reading("update", "unknown") };
77912
78347
  const state = inProgress ? "running" : pending ? "standby" : "idle";
77913
78348
  const title = inProgress ? t("Updating", "Aggiornamento in corso") : pending ? t("Update available", "Aggiornamento disponibile") : t("Up to date", "Aggiornato");
77914
78349
  const versions = currentVersion === null ? pending ? t(`${availableVersion}`, `${availableVersion}`) : null : pending ? t(`${currentVersion} → ${availableVersion}`, `${currentVersion} → ${availableVersion}`) : t(`Version ${currentVersion}`, `Versione ${currentVersion}`);
77915
- const install = pending && updatable && !inProgress ? [asAction(action("update.install", t("Install", "Installa"), "download", "update", "installUpdate", {}, "primary", "install"))] : [];
77916
78350
  return {
77917
78351
  reading: reading("update", state, false, title),
77918
78352
  facts: versions === null ? [] : [fact("reading", "download", versions, pending ? "warning" : "muted")],
77919
- rows: [row$1("update", "download", versions, install)]
78353
+ rows: [row$1("update", "download", versions, [])]
77920
78354
  };
77921
78355
  });
77922
78356
  var imageContribution = contribution("image", ImageStatusSchema, (slice, ctx) => {
@@ -78024,6 +78458,33 @@ var ON_MODE_PREFERENCE = [
78024
78458
  "heat",
78025
78459
  "cool"
78026
78460
  ];
78461
+ var FAN_LABEL = {
78462
+ auto: t("Auto", "Auto"),
78463
+ quiet: t("Quiet", "Silenziosa"),
78464
+ low: t("Low", "Bassa"),
78465
+ medium: t("Medium", "Media"),
78466
+ high: t("High", "Alta"),
78467
+ turbo: t("Turbo", "Turbo"),
78468
+ off: t("Off", "Spenta")
78469
+ };
78470
+ /** A readable label for a fan speed name; an unknown one is shown as the device reported it. */
78471
+ function fanLabelOf(fan) {
78472
+ return FAN_LABEL[fan] ?? t(fan, fan);
78473
+ }
78474
+ /** Short labels for a segmented control: one word each, so the segments stay on a line. */
78475
+ var MODE_SEGMENT_LABEL = {
78476
+ off: t("Off", "Spento"),
78477
+ heat: t("Heat", "Caldo"),
78478
+ cool: t("Cool", "Freddo"),
78479
+ auto: t("Auto", "Auto"),
78480
+ heat_cool: t("Heat/Cool", "Caldo/Freddo"),
78481
+ fan_only: t("Fan", "Vent."),
78482
+ dry: t("Dry", "Deum.")
78483
+ };
78484
+ /** The segment label of every available HVAC mode, keyed by the mode value. */
78485
+ function modeLabelsOf(modes) {
78486
+ return Object.fromEntries(modes.map((m) => [m, MODE_SEGMENT_LABEL[m]]));
78487
+ }
78027
78488
  /** 22 -> "22", 22.3 -> "22.3": a trailing zero is noise on a thermostat. */
78028
78489
  function formatDegrees(value) {
78029
78490
  return `${Number(value.toFixed(1))}°`;
@@ -78088,11 +78549,11 @@ function rangeFrom(min, max, step) {
78088
78549
  * contribute, types never do (D14). A slice that is absent or does not parse is
78089
78550
  * "not answered": the state reads unknown, no row is drawn (D315, D393).
78090
78551
  */
78091
- var same = (text) => t(text, text);
78092
- function tile(en, it, value) {
78552
+ var same$1 = (text) => t(text, text);
78553
+ function tile$1(en, it, value) {
78093
78554
  return {
78094
78555
  label: t(en, it),
78095
- value: same(value)
78556
+ value: same$1(value)
78096
78557
  };
78097
78558
  }
78098
78559
  function setpointSlider(id, cap, method, valueArg, value, range) {
@@ -78127,18 +78588,19 @@ var climateContribution = contribution("climate-control", ClimateControlStatusSc
78127
78588
  const status = climateStatusText(view);
78128
78589
  const facts = [];
78129
78590
  if (status !== null) facts.push(fact("climate", "thermometer", status));
78130
- if (view.humidity !== null) facts.push(fact("humidity", "droplets", same(`${Math.round(view.humidity)}%`)));
78131
- if (view.targetHumidity !== null) facts.push(fact("humidity", "droplets", same(`→ ${Math.round(view.targetHumidity)}%`)));
78591
+ if (view.humidity !== null) facts.push(fact("humidity", "droplets", same$1(`${Math.round(view.humidity)}%`)));
78592
+ if (view.targetHumidity !== null) facts.push(fact("humidity", "droplets", same$1(`→ ${Math.round(view.targetHumidity)}%`)));
78132
78593
  const left = [];
78133
78594
  const right = [];
78134
- if (view.measured !== null) left.push(tile("Indoor", "In casa", formatDegrees(view.measured)));
78135
- if (view.humidity !== null) left.push(tile("Humidity", "Umidità", `${Math.round(view.humidity)}%`));
78595
+ if (view.measured !== null) left.push(tile$1("Indoor", "In casa", formatDegrees(view.measured)));
78596
+ if (view.humidity !== null) left.push(tile$1("Humidity", "Umidità", `${Math.round(view.humidity)}%`));
78136
78597
  const modeControls = [{
78137
78598
  kind: "picker",
78138
78599
  id: "climate.mode",
78139
78600
  label: t("Mode", "Modalità"),
78140
78601
  current: view.mode,
78141
- options: [...view.availableModes],
78602
+ options: [...view.availableModes.filter((m) => m !== "off"), ...view.availableModes.filter((m) => m === "off")],
78603
+ optionLabels: modeLabelsOf(view.availableModes),
78142
78604
  call: {
78143
78605
  cap: "climate-control",
78144
78606
  method: "setMode",
@@ -78166,6 +78628,7 @@ var climateContribution = contribution("climate-control", ClimateControlStatusSc
78166
78628
  label: t("Fan", "Ventola"),
78167
78629
  current: slice.fanMode === "" ? null : slice.fanMode,
78168
78630
  options: [...slice.availableFanModes],
78631
+ optionLabels: Object.fromEntries(slice.availableFanModes.map((m) => [m, fanLabelOf(m)])),
78169
78632
  call: {
78170
78633
  cap: "climate-control",
78171
78634
  method: "setFanMode",
@@ -78191,14 +78654,15 @@ var climateContribution = contribution("climate-control", ClimateControlStatusSc
78191
78654
  if (fanControls.length > 0) rows.push({
78192
78655
  id: "climate-fan",
78193
78656
  icon: "fan",
78194
- status: slice.fanMode === "" ? null : same(slice.fanMode),
78657
+ status: slice.fanMode === "" ? null : same$1(slice.fanMode),
78195
78658
  controls: fanControls
78196
78659
  });
78197
- rows.push(...setpointRow(view.target === null ? null : same(formatDegrees(view.target)), view.range === null || view.target === null ? null : setpointSlider("climate.target", "climate-control", "setTarget", "target", view.target, view.range)));
78660
+ rows.push(...setpointRow(view.target === null ? null : same$1(formatDegrees(view.target)), view.range === null || view.target === null ? null : setpointSlider("climate.target", "climate-control", "setTarget", "target", view.target, view.range)));
78198
78661
  const sceneMode = view.sceneMode;
78199
78662
  return {
78200
78663
  reading: reading("climate-control", view.isOff ? "off" : "on"),
78201
78664
  title: view.modeLabel,
78665
+ ...view.isOff || slice.fanMode === "" ? {} : { caption: t(`${view.modeLabel.en} · fan ${fanLabelOf(slice.fanMode).en}`, `${view.modeLabel.it} · ventola ${fanLabelOf(slice.fanMode).it}`) },
78202
78666
  facts,
78203
78667
  ...left.length === 0 && right.length === 0 ? {} : { tiles: {
78204
78668
  left,
@@ -78225,7 +78689,7 @@ var WATER_ON_PREFERENCE = [
78225
78689
  "performance"
78226
78690
  ];
78227
78691
  function capitalised(word) {
78228
- return same(word.charAt(0).toUpperCase() + word.slice(1).replace(/_/g, " "));
78692
+ return same$1(word.charAt(0).toUpperCase() + word.slice(1).replace(/_/g, " "));
78229
78693
  }
78230
78694
  var waterHeaterContribution = contribution("water-heater", WaterHeaterStatusSchema, (slice) => {
78231
78695
  if (slice === void 0 || slice.operationMode === null) return { reading: reading("climate-control", "unknown") };
@@ -78262,13 +78726,13 @@ var waterHeaterContribution = contribution("water-heater", WaterHeaterStatusSche
78262
78726
  icon: "flame",
78263
78727
  status: label,
78264
78728
  controls: modeControls
78265
- }, ...setpointRow(slice.targetTemp === null ? null : same(formatDegrees(slice.targetTemp)), range === null || slice.targetTemp === null ? null : setpointSlider("water-heater.target", "water-heater", "setTargetTemp", "temp", slice.targetTemp, range))];
78729
+ }, ...setpointRow(slice.targetTemp === null ? null : same$1(formatDegrees(slice.targetTemp)), range === null || slice.targetTemp === null ? null : setpointSlider("water-heater.target", "water-heater", "setTargetTemp", "temp", slice.targetTemp, range))];
78266
78730
  const level = levelWithin(slice.targetTemp, range);
78267
78731
  return {
78268
78732
  reading: reading("climate-control", isOff ? "off" : "on"),
78269
78733
  title: label,
78270
78734
  facts: status === null ? [] : [fact("climate", "flame", status)],
78271
- ...slice.currentTemp === null ? {} : { tiles: { left: [tile("Water", "Acqua", formatDegrees(slice.currentTemp))] } },
78735
+ ...slice.currentTemp === null ? {} : { tiles: { left: [tile$1("Water", "Acqua", formatDegrees(slice.currentTemp))] } },
78272
78736
  scene: {
78273
78737
  ...isOff ? {} : { mode: "heat" },
78274
78738
  ...level === null ? {} : { level }
@@ -78286,11 +78750,12 @@ var waterHeaterContribution = contribution("water-heater", WaterHeaterStatusSche
78286
78750
  var heatingValveContribution = contribution("heating-valve", HeatingValveStatusSchema, (slice) => {
78287
78751
  const position = slice?.position ?? null;
78288
78752
  if (position === null) return { reading: reading("sensor", "unknown") };
78289
- const text = same(`${Math.round(position)}%`);
78753
+ const text = same$1(`${Math.round(position)}%`);
78290
78754
  return {
78291
78755
  reading: reading("sensor", position > 0 ? "running" : "idle"),
78292
78756
  facts: [fact("valve", "gauge", t(`Valve ${text.en}`, `Valvola ${text.it}`))],
78293
- tiles: { right: [tile("Valve", "Valvola", text.en)] },
78757
+ tiles: { right: [tile$1("Valve", "Valvola", text.en)] },
78758
+ ...position > 0 ? { caption: t(`Heating · valve ${text.en}`, `Riscalda · valvola ${text.it}`) } : {},
78294
78759
  scene: { level: position / 100 }
78295
78760
  };
78296
78761
  });
@@ -78299,9 +78764,9 @@ function sensorFragment(value, id, icon, en, it, text) {
78299
78764
  if (value === null) return { reading: reading("sensor", "unknown") };
78300
78765
  return {
78301
78766
  reading: reading("sensor", "on"),
78302
- title: same(text),
78303
- facts: [fact(id, icon, same(text))],
78304
- tiles: { right: [tile(en, it, text)] }
78767
+ title: same$1(text),
78768
+ facts: [fact(id, icon, same$1(text))],
78769
+ tiles: { right: [tile$1(en, it, text)] }
78305
78770
  };
78306
78771
  }
78307
78772
  var temperatureContribution = contribution("temperature-sensor", TemperatureSensorStatusSchema, (slice) => sensorFragment(slice?.temperature ?? null, "temperature", "thermometer", "Temperature", "Temperatura", formatDegrees(slice?.temperature ?? 0)));
@@ -78356,8 +78821,8 @@ var CLIMATE_FAMILY_CONTRIBUTIONS = {
78356
78821
  return {
78357
78822
  reading: reading("sensor", "on"),
78358
78823
  ...slice.aqi === void 0 ? {} : { title: airQualityWord(slice.aqi) },
78359
- facts: parts.map((p) => fact("air-quality", "wind", same(`${p.label} ${p.value}`))),
78360
- tiles: { right: parts.slice(0, 2).map((p) => tile(p.label, p.label, p.value)) }
78824
+ facts: parts.map((p) => fact("air-quality", "wind", same$1(`${p.label} ${p.value}`))),
78825
+ tiles: { right: parts.slice(0, 2).map((p) => tile$1(p.label, p.label, p.value)) }
78361
78826
  };
78362
78827
  }),
78363
78828
  "carbon-monoxide": contribution("carbon-monoxide", CarbonMonoxideStatusSchema, (slice) => {
@@ -78372,15 +78837,264 @@ var CLIMATE_FAMILY_CONTRIBUTIONS = {
78372
78837
  "numeric-sensor": numericContribution,
78373
78838
  "enum-sensor": enumContribution
78374
78839
  };
78840
+ /**
78841
+ * The heat pump's contribution to a hero (D1026): the compressor scene, every
78842
+ * circuit as a row with its own label and icon, the powers as pills (the
78843
+ * instantaneous COP only when both powers are known) and a "System" group with
78844
+ * one selector per mode. Values and their limits come from the slice, which the
78845
+ * gateway filled: a selector with no allowed value is not drawn, a missing
78846
+ * reading is never a 0 (D393).
78847
+ */
78848
+ var CAP = "heat-pump-control";
78849
+ var same = (text) => t(text, text);
78850
+ /** The words of the values the gateway names; a value not listed is drawn as the gateway wrote it. */
78851
+ var VALUE_LABELS = {
78852
+ off: t("Off", "Off"),
78853
+ on: t("On", "On"),
78854
+ auto: t("Auto", "Auto"),
78855
+ manual: t("Manual", "Manuale"),
78856
+ low: t("Low", "Bassa"),
78857
+ high: t("High", "Alta"),
78858
+ eco: t("Eco", "Eco"),
78859
+ heat: t("Heat", "Caldo"),
78860
+ cool: t("Cool", "Freddo"),
78861
+ heatCool: t("Heat/cool", "Caldo/freddo"),
78862
+ ownprogram: t("Programme", "Programma")
78863
+ };
78864
+ function valueLabel(value) {
78865
+ const known = VALUE_LABELS[value];
78866
+ if (known !== void 0) return known;
78867
+ const holiday = /^hm(\d+)$/.exec(value);
78868
+ if (holiday?.[1] !== void 0) return t(`Programme ${holiday[1]}`, `Programma ${holiday[1]}`);
78869
+ return same(value);
78870
+ }
78871
+ function optionLabels(allowed) {
78872
+ return Object.fromEntries(allowed.map((value) => [value, valueLabel(value)]));
78873
+ }
78874
+ function picker(id, label, setting, method, args, valueArg = "mode") {
78875
+ return {
78876
+ kind: "picker",
78877
+ id,
78878
+ label,
78879
+ current: setting.value,
78880
+ options: [...setting.allowed],
78881
+ optionLabels: optionLabels(setting.allowed),
78882
+ call: {
78883
+ cap: CAP,
78884
+ method,
78885
+ args: { ...args }
78886
+ },
78887
+ valueArg
78888
+ };
78889
+ }
78890
+ /** A selector exists only where the gateway named values to choose from. */
78891
+ function choosable(setting) {
78892
+ return setting !== null && setting.allowed.length > 0;
78893
+ }
78894
+ function circuitControl(circuit) {
78895
+ const args = { circuitId: circuit.id };
78896
+ if (circuit.kind === "dhw" && choosable(circuit.temperatureLevel)) return picker(`heat-pump.${circuit.id}.level`, t("Level", "Livello"), circuit.temperatureLevel, "setDhwTemperatureLevel", args, "level");
78897
+ if (!choosable(circuit.operationMode)) return null;
78898
+ const method = circuit.kind === "dhw" ? "setDhwOperationMode" : "setCircuitOperationMode";
78899
+ return picker(`heat-pump.${circuit.id}.mode`, t("Mode", "Modalità"), circuit.operationMode, method, args);
78900
+ }
78901
+ /** A circuit with no reading is still a row: it shows that nothing is known, not nothing. */
78902
+ var UNKNOWN_STATUS = same("—");
78903
+ function circuitRow(circuit) {
78904
+ const control = circuitControl(circuit);
78905
+ const status = thermalStatusText(circuit.targetTemp, circuit.currentTemp) ?? UNKNOWN_STATUS;
78906
+ return {
78907
+ id: "circuit",
78908
+ label: same(circuit.label),
78909
+ icon: circuit.icon,
78910
+ status,
78911
+ controls: control === null ? [] : [control]
78912
+ };
78913
+ }
78914
+ var kilowatts = (watts) => `${Number((watts / 1e3).toFixed(2))} kW`;
78915
+ function powerPills(status) {
78916
+ const { thermalW, electricalW } = status.power;
78917
+ const cop = heatPumpInstantCop(status.power);
78918
+ const pills = [];
78919
+ if (thermalW !== null) pills.push({
78920
+ icon: "flame",
78921
+ text: t(`Thermal ${kilowatts(thermalW)}`, `Termica ${kilowatts(thermalW)}`),
78922
+ tone: "muted"
78923
+ });
78924
+ if (electricalW !== null) pills.push({
78925
+ icon: "zap",
78926
+ text: t(`Electrical ${kilowatts(electricalW)}`, `Elettrica ${kilowatts(electricalW)}`),
78927
+ tone: "muted"
78928
+ });
78929
+ if (cop !== null) {
78930
+ const text = String(Number(cop.toFixed(1)));
78931
+ pills.push({
78932
+ icon: "gauge",
78933
+ text: t(`Instantaneous COP ${text}`, `COP istantaneo ${text}`),
78934
+ tone: "success"
78935
+ });
78936
+ }
78937
+ return pills;
78938
+ }
78939
+ /** The independent system modes, in the order the card draws them. */
78940
+ var SYSTEM_MODES = [
78941
+ {
78942
+ key: "silent",
78943
+ label: t("Silent", "Silenzioso"),
78944
+ icon: "volume-x",
78945
+ method: "setSilentMode"
78946
+ },
78947
+ {
78948
+ key: "away",
78949
+ label: t("Away", "Assente"),
78950
+ icon: "plane",
78951
+ method: "setAwayMode"
78952
+ },
78953
+ {
78954
+ key: "additionalHeater",
78955
+ label: t("Additional heater", "Riscaldatore aggiuntivo"),
78956
+ icon: "flame",
78957
+ method: "setAdditionalHeaterMode"
78958
+ },
78959
+ {
78960
+ key: "holiday",
78961
+ label: t("Holiday", "Vacanza"),
78962
+ icon: "tree-palm",
78963
+ method: "setHolidayMode"
78964
+ }
78965
+ ];
78966
+ var SYSTEM_GROUP = t("System", "Sistema");
78967
+ var PROGRAMME = /^hm\d+$/;
78968
+ /**
78969
+ * Holiday is two segments, off / programme. Choosing "programme" keeps the programme
78970
+ * that is set, else the first one the gateway allowed, so a write never leaves
78971
+ * `allowed`. The full hm1..hm8 pick is not in the hero (D1026). A holiday whose values
78972
+ * are not programmes keeps the plain selector.
78973
+ */
78974
+ function holidayRow(def, setting) {
78975
+ if (!setting.allowed.includes("off")) return null;
78976
+ const current = setting.value !== null && PROGRAMME.test(setting.value) ? setting.value : null;
78977
+ const programme = current ?? setting.allowed.find((v) => PROGRAMME.test(v));
78978
+ if (programme === void 0) return null;
78979
+ const control = picker("heat-pump.system.holiday", def.label, {
78980
+ value: setting.value,
78981
+ allowed: ["off", programme]
78982
+ }, def.method, {});
78983
+ const number = programme.slice(2);
78984
+ return {
78985
+ id: "system-mode",
78986
+ label: def.label,
78987
+ group: SYSTEM_GROUP,
78988
+ icon: def.icon,
78989
+ status: current === null ? null : t(`Programme ${number}`, `Programma ${number}`),
78990
+ controls: [control.kind === "picker" ? {
78991
+ ...control,
78992
+ optionLabels: {
78993
+ off: t("Off", "Off"),
78994
+ [programme]: t("Programme", "Programma")
78995
+ }
78996
+ } : control]
78997
+ };
78998
+ }
78999
+ function systemRows(status) {
79000
+ const rows = [];
79001
+ for (const def of SYSTEM_MODES) {
79002
+ const setting = status.system[def.key];
79003
+ if (!choosable(setting)) continue;
79004
+ if (def.key === "holiday") {
79005
+ const holiday = holidayRow(def, setting);
79006
+ if (holiday !== null) {
79007
+ rows.push(holiday);
79008
+ continue;
79009
+ }
79010
+ }
79011
+ rows.push({
79012
+ id: "system-mode",
79013
+ label: def.label,
79014
+ group: SYSTEM_GROUP,
79015
+ icon: def.icon,
79016
+ status: null,
79017
+ controls: [picker(`heat-pump.system.${def.key}`, def.label, setting, def.method, {})]
79018
+ });
79019
+ }
79020
+ return rows;
79021
+ }
79022
+ function tile(en, it, value) {
79023
+ return {
79024
+ label: t(en, it),
79025
+ value: same(value)
79026
+ };
79027
+ }
79028
+ function tilesOf$1(status) {
79029
+ const { supply, return: back, outdoor } = status.temperatures;
79030
+ const left = [];
79031
+ const right = [];
79032
+ if (supply !== null) left.push(tile("Supply", "Mandata", formatDegrees(supply)));
79033
+ if (back !== null) left.push(tile("Return", "Ritorno", formatDegrees(back)));
79034
+ if (outdoor !== null) right.push(tile("Outdoor", "Esterna", formatDegrees(outdoor)));
79035
+ if (status.waterPressureBar !== null) right.push(tile("Pressure", "Pressione", `${Number(status.waterPressureBar.toFixed(1))} bar`));
79036
+ return {
79037
+ left,
79038
+ right
79039
+ };
79040
+ }
79041
+ function isRunning(status) {
79042
+ const { compressorPct, electricalW } = status.power;
79043
+ if (compressorPct !== null) return compressorPct > 0;
79044
+ if (electricalW !== null) return electricalW > 0;
79045
+ return null;
79046
+ }
79047
+ var HEAT_PUMP_FAMILY_CONTRIBUTIONS = { "heat-pump-status": contribution("heat-pump-status", HeatPumpStatusSchema, (slice) => {
79048
+ if (slice === void 0) return { reading: reading("climate-control", "unknown") };
79049
+ const running = isRunning(slice);
79050
+ const facts = [];
79051
+ if (slice.power.electricalW !== null) facts.push(fact("power", "zap", same(`${Math.round(slice.power.electricalW)} W`)));
79052
+ if (slice.power.compressorPct !== null) facts.push(fact("level", "gauge", t(`Compressor ${Math.round(slice.power.compressorPct)} %`, `Compressore ${Math.round(slice.power.compressorPct)} %`)));
79053
+ const charging = slice.circuits.find((c) => c.active === true);
79054
+ const tiles = tilesOf$1(slice);
79055
+ const pills = powerPills(slice);
79056
+ const rows = [
79057
+ ...slice.circuits.map(circuitRow),
79058
+ ...pills.length === 0 ? [] : [{
79059
+ id: "heat-pump-power",
79060
+ icon: "zap",
79061
+ status: null,
79062
+ controls: [],
79063
+ pills: [...pills]
79064
+ }],
79065
+ ...systemRows(slice)
79066
+ ];
79067
+ return {
79068
+ reading: reading("climate-control", running === true ? "running" : running === false ? "idle" : "on"),
79069
+ title: t("Heat pump", "Pompa di calore"),
79070
+ ...charging === void 0 ? {} : { caption: t(`${charging.label} · heating`.toUpperCase(), `${charging.label} · in riscaldamento`.toUpperCase()) },
79071
+ facts,
79072
+ ...tiles.left.length === 0 && tiles.right.length === 0 ? {} : { tiles },
79073
+ ...slice.power.electricalW === null ? {} : { consumption: {
79074
+ priority: 1,
79075
+ slot: {
79076
+ kind: "power",
79077
+ watts: slice.power.electricalW,
79078
+ detail: slice.power.thermalW === null ? [] : [{
79079
+ label: t("Thermal", "Termica"),
79080
+ value: Math.round(slice.power.thermalW),
79081
+ unit: "W"
79082
+ }]
79083
+ }
79084
+ } },
79085
+ rows
79086
+ };
79087
+ }) };
78375
79088
  [
78376
79089
  ...Object.values(ACCESS_FAMILY_CONTRIBUTIONS),
78377
79090
  ...Object.values(DEVICES_FAMILY_CONTRIBUTIONS),
78378
79091
  ...Object.values(GROUPS_FAMILY_CONTRIBUTIONS),
78379
79092
  ...Object.values(ACTUATORS_FAMILY_CONTRIBUTIONS),
78380
79093
  ...Object.values(SENSORS_FAMILY_CONTRIBUTIONS),
78381
- ...Object.values(CLIMATE_FAMILY_CONTRIBUTIONS)
79094
+ ...Object.values(CLIMATE_FAMILY_CONTRIBUTIONS),
79095
+ ...Object.values(HEAT_PUMP_FAMILY_CONTRIBUTIONS)
78382
79096
  ];
78383
- DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, 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.Heater, DeviceType.Dryer, DeviceType.Gateway;
79097
+ DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, 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.Heater, DeviceType.Dryer, DeviceType.Gateway;
78384
79098
  /**
78385
79099
  * Who looks like what (D1023). One look per {@link DeviceType}, refined by a
78386
79100
  * {@link DeviceRole} where the role changes how the device reads (a leak
@@ -78770,7 +79484,7 @@ lookOf({
78770
79484
  ({ ...lookOf({
78771
79485
  icon: "shield-check",
78772
79486
  on: [
78773
- "success",
79487
+ "danger",
78774
79488
  "glow",
78775
79489
  "halo"
78776
79490
  ],
@@ -79008,8 +79722,24 @@ lookOf({
79008
79722
  idle: INFO,
79009
79723
  standby: MUTED
79010
79724
  });
79725
+ lookOf({
79726
+ icon: "thermometer-sun",
79727
+ on: [
79728
+ "warning",
79729
+ "heat-rise",
79730
+ "rise"
79731
+ ],
79732
+ off: MUTED,
79733
+ running: [
79734
+ "warning",
79735
+ "heat-rise",
79736
+ "rise"
79737
+ ],
79738
+ idle: INFO,
79739
+ standby: MUTED
79740
+ });
79011
79741
  DeviceType.Climate, DeviceType.Thermostat;
79012
- DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, 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.Heater, DeviceType.Dryer, DeviceType.Gateway;
79742
+ DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, 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.Heater, DeviceType.Dryer, DeviceType.Gateway;
79013
79743
  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.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;
79014
79744
  Object.freeze({
79015
79745
  "accessories.getStatus": {
@@ -79390,13 +80120,6 @@ Object.freeze({
79390
80120
  access: "view",
79391
80121
  role: "admin"
79392
80122
  },
79393
- "addonSettings.getIntegrationFormSchema": {
79394
- capName: "addon-settings",
79395
- capScope: "system",
79396
- addonId: null,
79397
- access: "view",
79398
- role: "admin"
79399
- },
79400
80123
  "addonSettings.getScopedSettings": {
79401
80124
  capName: "addon-settings",
79402
80125
  capScope: "system",
@@ -82512,6 +83235,111 @@ Object.freeze({
82512
83235
  access: "view",
82513
83236
  role: "viewer"
82514
83237
  },
83238
+ "heatPumpControl.setAdditionalHeaterMode": {
83239
+ capName: "heat-pump-control",
83240
+ capScope: "device",
83241
+ addonId: null,
83242
+ access: "create",
83243
+ role: "viewer"
83244
+ },
83245
+ "heatPumpControl.setAwayMode": {
83246
+ capName: "heat-pump-control",
83247
+ capScope: "device",
83248
+ addonId: null,
83249
+ access: "create",
83250
+ role: "viewer"
83251
+ },
83252
+ "heatPumpControl.setCircuitComfortSetpoint": {
83253
+ capName: "heat-pump-control",
83254
+ capScope: "device",
83255
+ addonId: null,
83256
+ access: "create",
83257
+ role: "viewer"
83258
+ },
83259
+ "heatPumpControl.setCircuitEcoSetpoint": {
83260
+ capName: "heat-pump-control",
83261
+ capScope: "device",
83262
+ addonId: null,
83263
+ access: "create",
83264
+ role: "viewer"
83265
+ },
83266
+ "heatPumpControl.setCircuitHeatCoolMode": {
83267
+ capName: "heat-pump-control",
83268
+ capScope: "device",
83269
+ addonId: null,
83270
+ access: "create",
83271
+ role: "viewer"
83272
+ },
83273
+ "heatPumpControl.setCircuitMaxFlowTemp": {
83274
+ capName: "heat-pump-control",
83275
+ capScope: "device",
83276
+ addonId: null,
83277
+ access: "create",
83278
+ role: "viewer"
83279
+ },
83280
+ "heatPumpControl.setCircuitOperationMode": {
83281
+ capName: "heat-pump-control",
83282
+ capScope: "device",
83283
+ addonId: null,
83284
+ access: "create",
83285
+ role: "viewer"
83286
+ },
83287
+ "heatPumpControl.setCircuitSummerWinter": {
83288
+ capName: "heat-pump-control",
83289
+ capScope: "device",
83290
+ addonId: null,
83291
+ access: "create",
83292
+ role: "viewer"
83293
+ },
83294
+ "heatPumpControl.setDhwChargeDuration": {
83295
+ capName: "heat-pump-control",
83296
+ capScope: "device",
83297
+ addonId: null,
83298
+ access: "create",
83299
+ role: "viewer"
83300
+ },
83301
+ "heatPumpControl.setDhwOperationMode": {
83302
+ capName: "heat-pump-control",
83303
+ capScope: "device",
83304
+ addonId: null,
83305
+ access: "create",
83306
+ role: "viewer"
83307
+ },
83308
+ "heatPumpControl.setDhwTemperatureLevel": {
83309
+ capName: "heat-pump-control",
83310
+ capScope: "device",
83311
+ addonId: null,
83312
+ access: "create",
83313
+ role: "viewer"
83314
+ },
83315
+ "heatPumpControl.setHolidayMode": {
83316
+ capName: "heat-pump-control",
83317
+ capScope: "device",
83318
+ addonId: null,
83319
+ access: "create",
83320
+ role: "viewer"
83321
+ },
83322
+ "heatPumpControl.setSilentMode": {
83323
+ capName: "heat-pump-control",
83324
+ capScope: "device",
83325
+ addonId: null,
83326
+ access: "create",
83327
+ role: "viewer"
83328
+ },
83329
+ "heatPumpControl.startExtraHotWater": {
83330
+ capName: "heat-pump-control",
83331
+ capScope: "device",
83332
+ addonId: null,
83333
+ access: "create",
83334
+ role: "viewer"
83335
+ },
83336
+ "heatPumpStatus.getStatus": {
83337
+ capName: "heat-pump-status",
83338
+ capScope: "device",
83339
+ addonId: null,
83340
+ access: "view",
83341
+ role: "viewer"
83342
+ },
82515
83343
  "heroLayout.getHeroModel": {
82516
83344
  capName: "hero-layout",
82517
83345
  capScope: "system",
@@ -87419,13 +88247,6 @@ Object.freeze({
87419
88247
  access: "create",
87420
88248
  role: "admin"
87421
88249
  },
87422
- "smtpProvider.verify": {
87423
- capName: "smtp-provider",
87424
- capScope: "system",
87425
- addonId: null,
87426
- access: "view",
87427
- role: "admin"
87428
- },
87429
88250
  "snapshot.applyDeviceSettingsPatch": {
87430
88251
  capName: "snapshot",
87431
88252
  capScope: "device",
@@ -89358,7 +90179,7 @@ function projectAction(cap, action) {
89358
90179
  };
89359
90180
  }
89360
90181
  Object.entries(CAP_VOCABULARY_BY_NAME).flatMap(([cap, entry]) => entry.scope === "device" ? (entry.actions ?? []).map((a) => projectAction(cap, a)) : []);
89361
- DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, 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.Heater, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway;
90182
+ DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, 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.Heater, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway;
89362
90183
  DeviceFeature.BatteryOperated;
89363
90184
  DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher;
89364
90185
  var HA_AS = "a power sensor (device_class power). Home Assistant has no laundry domain. running-state stays unexported until a null reading can be published as unavailable.";
@@ -90482,6 +91303,81 @@ Object.freeze({
90482
91303
  form: "single",
90483
91304
  optional: false
90484
91305
  }],
91306
+ "heatPumpControl.setAdditionalHeaterMode": [{
91307
+ name: "deviceId",
91308
+ form: "single",
91309
+ optional: false
91310
+ }],
91311
+ "heatPumpControl.setAwayMode": [{
91312
+ name: "deviceId",
91313
+ form: "single",
91314
+ optional: false
91315
+ }],
91316
+ "heatPumpControl.setCircuitComfortSetpoint": [{
91317
+ name: "deviceId",
91318
+ form: "single",
91319
+ optional: false
91320
+ }],
91321
+ "heatPumpControl.setCircuitEcoSetpoint": [{
91322
+ name: "deviceId",
91323
+ form: "single",
91324
+ optional: false
91325
+ }],
91326
+ "heatPumpControl.setCircuitHeatCoolMode": [{
91327
+ name: "deviceId",
91328
+ form: "single",
91329
+ optional: false
91330
+ }],
91331
+ "heatPumpControl.setCircuitMaxFlowTemp": [{
91332
+ name: "deviceId",
91333
+ form: "single",
91334
+ optional: false
91335
+ }],
91336
+ "heatPumpControl.setCircuitOperationMode": [{
91337
+ name: "deviceId",
91338
+ form: "single",
91339
+ optional: false
91340
+ }],
91341
+ "heatPumpControl.setCircuitSummerWinter": [{
91342
+ name: "deviceId",
91343
+ form: "single",
91344
+ optional: false
91345
+ }],
91346
+ "heatPumpControl.setDhwChargeDuration": [{
91347
+ name: "deviceId",
91348
+ form: "single",
91349
+ optional: false
91350
+ }],
91351
+ "heatPumpControl.setDhwOperationMode": [{
91352
+ name: "deviceId",
91353
+ form: "single",
91354
+ optional: false
91355
+ }],
91356
+ "heatPumpControl.setDhwTemperatureLevel": [{
91357
+ name: "deviceId",
91358
+ form: "single",
91359
+ optional: false
91360
+ }],
91361
+ "heatPumpControl.setHolidayMode": [{
91362
+ name: "deviceId",
91363
+ form: "single",
91364
+ optional: false
91365
+ }],
91366
+ "heatPumpControl.setSilentMode": [{
91367
+ name: "deviceId",
91368
+ form: "single",
91369
+ optional: false
91370
+ }],
91371
+ "heatPumpControl.startExtraHotWater": [{
91372
+ name: "deviceId",
91373
+ form: "single",
91374
+ optional: false
91375
+ }],
91376
+ "heatPumpStatus.getStatus": [{
91377
+ name: "deviceId",
91378
+ form: "single",
91379
+ optional: false
91380
+ }],
90485
91381
  "heroLayout.getHeroModel": [{
90486
91382
  name: "deviceId",
90487
91383
  form: "single",
@@ -93799,7 +94695,7 @@ var AdminUIAddon = class extends BaseAddon {
93799
94695
  capability: adminUiCapability,
93800
94696
  provider: {
93801
94697
  getStaticDir: async () => ({ staticDir: resolveAdminUiDistDir() }),
93802
- getVersion: async () => ({ version: "1.2.626" })
94698
+ getVersion: async () => ({ version: "1.2.628" })
93803
94699
  }
93804
94700
  }];
93805
94701
  }