@camstack/addon-admin-ui 1.2.627 → 1.2.629

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 (164) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/assets/Addons-DXODyv5I.js +5 -0
  3. package/dist/assets/{AdminPage-BGjbZ_DP.js → AdminPage--nOshaiL.js} +1 -1
  4. package/dist/assets/{AdminSectionedPage-0BLzsere.js → AdminSectionedPage-CIxyIGLX.js} +1 -1
  5. package/dist/assets/AiProfiles-5gKlF5SA.js +3 -0
  6. package/dist/assets/{Authentication-BANp-rCQ.js → Authentication-hzo-rlN7.js} +1 -1
  7. package/dist/assets/Build-C9z1NeWg.js +39 -0
  8. package/dist/assets/Calendars-FrpYAxLI.js +1 -0
  9. package/dist/assets/{CameraGrids-BhMnY-U6.js → CameraGrids-CRFHej8A.js} +1 -1
  10. package/dist/assets/Cluster-BDWxBTf5.js +1 -0
  11. package/dist/assets/CompositionBlockEditor-B8wPHPMS.js +2 -0
  12. package/dist/assets/{CompositionEditorPage-Ry64j4qy.js → CompositionEditorPage-87qNps97.js} +1 -1
  13. package/dist/assets/Data-DHZySEHF.js +2 -0
  14. package/dist/assets/DeviceDetail-C7gs8bGQ.js +2 -0
  15. package/dist/assets/{DeviceDoActionFields-fbxUHBmB.js → DeviceDoActionFields-BxRnVrO0.js} +1 -1
  16. package/dist/assets/{Devices-DTyTQ5cG.js → Devices-pzVR6haD.js} +1 -1
  17. package/dist/assets/{EmbedPlayerPage-BHG81kfU.js → EmbedPlayerPage-C9s2VJTu.js} +1 -1
  18. package/dist/assets/History-7hRpKxjf.js +1 -0
  19. package/dist/assets/Identity-B8icd7-t.js +1 -0
  20. package/dist/assets/{InstanceSwitchCell-BE6j8roj.js → InstanceSwitchCell-cco16r-2.js} +1 -1
  21. package/dist/assets/InstancesTable-YMZL4Hv9.js +1 -0
  22. package/dist/assets/IntegrationDetail-RzwMA2qX.js +1 -0
  23. package/dist/assets/{IntegrationHub-Dh_MHAvj.js → IntegrationHub-BKA8gHDZ.js} +1 -1
  24. package/dist/assets/Integrations-DbQdu6YA.js +1 -0
  25. package/dist/assets/Integrations-DywBpzUX.js +2 -0
  26. package/dist/assets/Library-VR7dDYD8.js +1 -0
  27. package/dist/assets/Locations-EYikOuy9.js +3 -0
  28. package/dist/assets/{Logs-BPm2952O.js → Logs-CqVLnKoJ.js} +1 -1
  29. package/dist/assets/{MaskShapeCanvas-CaIwcviU.js → MaskShapeCanvas-t6MTg7DW.js} +1 -1
  30. package/dist/assets/{MotionZonesSettings-B8humXZO.js → MotionZonesSettings-Ce_0AnwA.js} +1 -1
  31. package/dist/assets/{MyAccess-IwGnqYJk.js → MyAccess-CVkqSF20.js} +1 -1
  32. package/dist/assets/Network-C2DL0ybE.js +1 -0
  33. package/dist/assets/{NodeAddonsSettingsPanel-Ch9_AwqF.js → NodeAddonsSettingsPanel-BsRs7nSX.js} +1 -1
  34. package/dist/assets/Notifications-Ddo6djcY.js +1 -0
  35. package/dist/assets/Pipeline-BbXwqXcj.js +1 -0
  36. package/dist/assets/{PrivacyMaskSettings-DdMBB4Li.js → PrivacyMaskSettings-CQRTBLfQ.js} +1 -1
  37. package/dist/assets/Recordings-FnSOlCqT.js +1 -0
  38. package/dist/assets/{ScanSubnetEditor-DEYVzz3F.js → ScanSubnetEditor-Ci-X_MzU.js} +1 -1
  39. package/dist/assets/{SceneMonitorEditor-BsbHr1g7.js → SceneMonitorEditor-1UIxobVK.js} +1 -1
  40. package/dist/assets/SessionsList-DkapSn12.js +2 -0
  41. package/dist/assets/{Showroom-CgyJscUi.js → Showroom-BFVXwm8r.js} +1 -1
  42. package/dist/assets/{StorageLocationsTable-DcJtsyAI.js → StorageLocationsTable-Cl3MSocN.js} +1 -1
  43. package/dist/assets/System-CTp2guOh.js +1 -0
  44. package/dist/assets/{Templates-lRI27MQE.js → Templates-DZgrywI-.js} +1 -1
  45. package/dist/assets/{Terminal-BhSCbzcJ.js → Terminal-C8n4HiiB.js} +3 -3
  46. package/dist/assets/{TrainingProviders-BDa6e9MH.js → TrainingProviders-BHszicEt.js} +1 -1
  47. package/dist/assets/{Viewer-CkpAWx9q.js → Viewer-D7bkozpi.js} +1 -1
  48. package/dist/assets/{_virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-CumqQOpu.js → _virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-Cs4KAbIo.js} +1 -1
  49. package/dist/assets/{ai-page.helpers-DSmy92dV.js → ai-page.helpers-rRn5Dnkg.js} +1 -1
  50. package/dist/assets/{archive-CfaRqsyD.js → archive-Dr2xsoZM.js} +1 -1
  51. package/dist/assets/{assignment-candidates-BbMu5YB7.js → assignment-candidates-M9WlDXc2.js} +1 -1
  52. package/dist/assets/{authed-media-BXlwKDeE.js → authed-media-DZVZANhe.js} +1 -1
  53. package/dist/assets/{bell-off-BxDCQl12.js → bell-off-CChqeOx6.js} +1 -1
  54. package/dist/assets/{board-model-I1a0N13b.js → board-model-GGSgQppc.js} +1 -1
  55. package/dist/assets/{boxes-Q4Vaj8rD.js → boxes-C-tRxuSn.js} +1 -1
  56. package/dist/assets/{calendar-clock-CXL7OclM.js → calendar-clock-BapEo3bQ.js} +1 -1
  57. package/dist/assets/circle-arrow-up-C-k8_6Du.js +1 -0
  58. package/dist/assets/circle-slash-DRCv7Ven.js +1 -0
  59. package/dist/assets/client-D9JNvTKB.js +839 -0
  60. package/dist/assets/create-composition-mEvB2TiR.js +2 -0
  61. package/dist/assets/crop-Dw4PFyYQ.js +1 -0
  62. package/dist/assets/{database-zap-By2T-LnV.js → database-zap-CM-osYT7.js} +1 -1
  63. package/dist/assets/{device-integration-icon-DxdEgan-.js → device-integration-icon-DERlaAcW.js} +1 -1
  64. package/dist/assets/device-picker-model-DW_BwbBH.js +1 -0
  65. package/dist/assets/dist-BsRpfwIu.js +839 -0
  66. package/dist/assets/{dist-Dqaqf70C.js → dist-CUMaXJDx.js} +1 -1
  67. package/dist/assets/{eraser-VwId2IQr.js → eraser-Bi88apXp.js} +1 -1
  68. package/dist/assets/{file-up-DQifBI2e.js → file-up-D5Tl1D4a.js} +1 -1
  69. package/dist/assets/{format-CU8vLl_T.js → format-DEEo-r4V.js} +1 -1
  70. package/dist/assets/{hard-drive-download-CQruQQxy.js → hard-drive-download-UvINP8cA.js} +1 -1
  71. package/dist/assets/{hostInit-D3bru2MD.js → hostInit-DghBW5p6.js} +1 -1
  72. package/dist/assets/i18n-BslHm0aZ.js +1 -0
  73. package/dist/assets/icons-DmMPiBYd.js +1 -0
  74. package/dist/assets/index-2c1CGZrj.js +4 -0
  75. package/dist/assets/index-cBkBJKJv.css +2 -0
  76. package/dist/assets/{key-B35noUmR.js → key-qrcMkMMV.js} +1 -1
  77. package/dist/assets/{key-square-DzO9u0uD.js → key-square-BZ4jnI9l.js} +1 -1
  78. package/dist/assets/{layers-BG9W-1M5.js → layers-Di5jzSuk.js} +1 -1
  79. package/dist/assets/{link-2-off-Co-R-jQs.js → link-2-off-CHTFpXLN.js} +1 -1
  80. package/dist/assets/{linked-devices-model-uwG0psGj.js → linked-devices-model-DIM4rt7c.js} +1 -1
  81. package/dist/assets/{list-ordered-DIKai4La.js → list-ordered-BrXvIamS.js} +1 -1
  82. package/dist/assets/{memory-stick-CIR0HAOO.js → memory-stick-SsoFJudU.js} +1 -1
  83. package/dist/assets/{message-square-plus-DOdNu6ys.js → message-square-plus-CatGSxYy.js} +1 -1
  84. package/dist/assets/{mf-entry-bootstrap-0-686859d1.js → mf-entry-bootstrap-0-47655283.js} +2 -2
  85. package/dist/assets/{mic-off-BiujQ8W3.js → mic-off-SHZW-v-M.js} +1 -1
  86. package/dist/assets/{monitor-off-7S_2iZ-C.js → monitor-off-CtwV9eDP.js} +1 -1
  87. package/dist/assets/{monitor-smartphone-BLCTjHAL.js → monitor-smartphone-CmuZkW4P.js} +1 -1
  88. package/dist/assets/mount-DW_BwbBH.js +1 -0
  89. package/dist/assets/{notification-rule-status-Cb4jx34Y.js → notification-rule-status-We26Y6rE.js} +1 -1
  90. package/dist/assets/player-overlays-CZ2UPwFU.js +1 -0
  91. package/dist/assets/remoteEntry-woQ7bkv3.js +1 -0
  92. package/dist/assets/{ruler-BeM-m4O5.js → ruler-BZYez5zJ.js} +1 -1
  93. package/dist/assets/{tv-BXIsODbK.js → scan-eye-BBUUAOIH.js} +1 -1
  94. package/dist/assets/{scissors-DY0_cgnp.js → scissors-DJFJfUvr.js} +1 -1
  95. package/dist/assets/{search-x-_pziDXsR.js → search-x-CD7RPOCs.js} +1 -1
  96. package/dist/assets/{send-CUC0A2_t.js → send-DhrMYPlJ.js} +1 -1
  97. package/dist/assets/{settings-2-BSRK8TEC.js → settings-2-DRSQGPYz.js} +1 -1
  98. package/dist/assets/{shapes-BN2HBJ_3.js → shapes-CDn__a11.js} +1 -1
  99. package/dist/assets/{sigma-DfN2Jhy4.js → sigma-CroJASnI.js} +1 -1
  100. package/dist/assets/src-CnKWzfeC.js +169 -0
  101. package/dist/assets/{sso-popup-Ch2mRf6V.js → sso-popup-_MJHzwa1.js} +1 -1
  102. package/dist/assets/{step-inspector-model-DKYOqORK.js → step-inspector-model-D5-dT0fB.js} +1 -1
  103. package/dist/assets/{table-2-gx6_SlYD.js → table-2-BxwWIn-y.js} +1 -1
  104. package/dist/assets/{timer-reset-Iy3ZgMXB.js → timer-reset-ClRhcxmM.js} +1 -1
  105. package/dist/assets/ungroup-B7tPeNP_.js +1 -0
  106. package/dist/assets/{unlink-B_U8L0Wx.js → unlink-CxpPjhkv.js} +1 -1
  107. package/dist/assets/{usb-OCXp5uEl.js → usb-Bx-Cjevg.js} +1 -1
  108. package/dist/assets/{use-device-bound-caps-BOAx-vk3.js → use-device-bound-caps-DIVrJIkK.js} +1 -1
  109. package/dist/assets/{use-scenes-feed--8rfo18P.js → use-scenes-feed-cfkeiUa4.js} +1 -1
  110. package/dist/assets/{use-stationary-objects-CZE5lmtm.js → use-stationary-objects-D9eVs3S4.js} +1 -1
  111. package/dist/assets/{useAdminDeviceRemoval-D2MzHW1R.js → useAdminDeviceRemoval-whFm_6Fi.js} +1 -1
  112. package/dist/assets/useEventInvalidation-DW_BwbBH.js +1 -0
  113. package/dist/assets/{useNodeUrlSelection-DtbPWifx.js → useNodeUrlSelection-qEkQhjp0.js} +1 -1
  114. package/dist/assets/useTemplateSave-BvYfXEvn.js +1 -0
  115. package/dist/assets/user-round-4-MOpEZk.js +1 -0
  116. package/dist/assets/{user-x-7OBQLt0v.js → user-x-BU8cPU0S.js} +1 -1
  117. package/dist/assets/variable-cuI5gx_W.js +1 -0
  118. package/dist/assets/{video-Cae__dYz.js → video-ChuXnPSj.js} +1 -1
  119. package/dist/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-DsLUyALP.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-a6KiaeUW.js} +2 -2
  120. package/dist/index.html +10 -11
  121. package/dist/server/addon.js +1160 -92
  122. package/package.json +2 -2
  123. package/dist/assets/Addons-cUjIvOvT.js +0 -5
  124. package/dist/assets/AiProfiles-BmCrxSUR.js +0 -3
  125. package/dist/assets/Build-CshYezTz.js +0 -39
  126. package/dist/assets/Calendars-nijSSBBn.js +0 -1
  127. package/dist/assets/Cluster-e11_2684.js +0 -1
  128. package/dist/assets/CompositionBlockEditor-Tlz_skRr.js +0 -2
  129. package/dist/assets/Data-CTbC0GG5.js +0 -2
  130. package/dist/assets/DeviceDetail-D9HCHrZA.js +0 -2
  131. package/dist/assets/History-C4qZ3gqF.js +0 -1
  132. package/dist/assets/Identity-B1OuI6MD.js +0 -1
  133. package/dist/assets/InstancesTable-B7rabb_v.js +0 -1
  134. package/dist/assets/IntegrationDetail-4XDFzceS.js +0 -1
  135. package/dist/assets/Integrations-CEP5cZG6.js +0 -2
  136. package/dist/assets/Integrations-CGNp6nto.js +0 -1
  137. package/dist/assets/Library-DUuHG1yU.js +0 -1
  138. package/dist/assets/Locations-CktpOpxD.js +0 -3
  139. package/dist/assets/Network-Bx8pmtNT.js +0 -1
  140. package/dist/assets/Notifications-C8aadgSQ.js +0 -1
  141. package/dist/assets/Pipeline-Bfx8XPU_.js +0 -1
  142. package/dist/assets/Recordings-hnmLWqEZ.js +0 -1
  143. package/dist/assets/SessionsList-zMHONQk5.js +0 -2
  144. package/dist/assets/System-D5Pndm3I.js +0 -1
  145. package/dist/assets/addon-icons-context-6Mrqvr1U.js +0 -1
  146. package/dist/assets/circle-slash-BXDMKEqg.js +0 -1
  147. package/dist/assets/client-COYx-TFD.js +0 -809
  148. package/dist/assets/create-composition-Dm3hnlaE.js +0 -2
  149. package/dist/assets/crop-BpJdhjaO.js +0 -1
  150. package/dist/assets/device-picker-model-B4F-5cg2.js +0 -1
  151. package/dist/assets/dist-BR3ExdiJ.js +0 -809
  152. package/dist/assets/i18n-CfXX-iuz.js +0 -1
  153. package/dist/assets/icons-BrUjXoAZ.js +0 -1
  154. package/dist/assets/index-BIUMsvsC.js +0 -4
  155. package/dist/assets/index-D4z5SYp_.css +0 -2
  156. package/dist/assets/mount-B4F-5cg2.js +0 -1
  157. package/dist/assets/player-overlays-Dl8i669l.js +0 -1
  158. package/dist/assets/remoteEntry-DWDUtJXh.js +0 -1
  159. package/dist/assets/speaker-CHLYh6wT.js +0 -1
  160. package/dist/assets/src-DzmVXlVl.js +0 -100
  161. package/dist/assets/useEventInvalidation-B4F-5cg2.js +0 -1
  162. package/dist/assets/useTemplateSave-CeQLDKqQ.js +0 -1
  163. package/dist/assets/user-round-B2WYnao7.js +0 -1
  164. package/dist/assets/variable-CuVMBdXX.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-CkinsFFb.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).
@@ -9676,7 +9680,7 @@ function t(en, it) {
9676
9680
  * Things an operator switches, opens, sets or arms: lights, plugs, sirens,
9677
9681
  * covers, valves, locks, climate, fans, alarm panels.
9678
9682
  */
9679
- var ON = t("On", "Acceso");
9683
+ var ON$1 = t("On", "Acceso");
9680
9684
  var PERCENT = t("Percentage", "Percentuale");
9681
9685
  var OPEN_CLOSE_STATES = [
9682
9686
  {
@@ -9736,7 +9740,7 @@ var ACTUATOR_CAP_VOCABULARY = {
9736
9740
  state: [{
9737
9741
  kind: "boolean",
9738
9742
  field: "on",
9739
- label: ON,
9743
+ label: ON$1,
9740
9744
  whenTrue: t("When {device} turns on", "Quando {device} si accende"),
9741
9745
  whenFalse: t("When {device} turns off", "Quando {device} si spegne"),
9742
9746
  icon: "power"
@@ -10902,7 +10906,7 @@ var ACTUATOR_CAP_VOCABULARY = {
10902
10906
  state: [{
10903
10907
  kind: "boolean",
10904
10908
  field: "on",
10905
- label: ON,
10909
+ label: ON$1,
10906
10910
  whenTrue: t("When {device} turns on", "Quando {device} si accende"),
10907
10911
  whenFalse: t("When {device} turns off", "Quando {device} si spegne"),
10908
10912
  icon: "power"
@@ -13314,6 +13318,133 @@ var CAMERA_CAP_VOCABULARY = {
13314
13318
  }
13315
13319
  };
13316
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
+ /**
13317
13448
  * Things an operator WATCHES: contacts, motion, leaks, smoke, measurements,
13318
13449
  * presence, reachability, batteries, doorbells and event sources.
13319
13450
  */
@@ -14035,6 +14166,7 @@ var CAP_VOCABULARY_BY_NAME = {
14035
14166
  ...ACTUATOR_CAP_VOCABULARY,
14036
14167
  ...APPLIANCE_CAP_VOCABULARY,
14037
14168
  ...CAMERA_CAP_VOCABULARY,
14169
+ ...HEAT_PUMP_CAP_VOCABULARY,
14038
14170
  ...SENSOR_CAP_VOCABULARY,
14039
14171
  ...SYSTEM_CAP_VOCABULARY
14040
14172
  };
@@ -14278,6 +14410,8 @@ var CAP_NAMES = Object.freeze([
14278
14410
  "group-active",
14279
14411
  "group-commands",
14280
14412
  "group-status",
14413
+ "heat-pump-control",
14414
+ "heat-pump-status",
14281
14415
  "heating-valve",
14282
14416
  "hero-layout",
14283
14417
  "humidifier",
@@ -15143,6 +15277,48 @@ Object.freeze({
15143
15277
  "valueType": "number"
15144
15278
  }
15145
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
+ ],
15146
15322
  "heating-valve": [{
15147
15323
  "path": "position",
15148
15324
  "valueType": "number"
@@ -16284,7 +16460,7 @@ Object.freeze({
16284
16460
  }
16285
16461
  });
16286
16462
  //#endregion
16287
- //#region ../types/dist/composition-CXCX78IR.mjs
16463
+ //#region ../types/dist/composition-C6TZGqUb.mjs
16288
16464
  /**
16289
16465
  * The ffmpeg build every CamStack node downloads, per platform and arch.
16290
16466
  *
@@ -43158,21 +43334,44 @@ var AutomationCapStepBaseSchema = object({
43158
43334
  */
43159
43335
  argUnits: record(string(), string().min(1)).optional()
43160
43336
  });
43161
- var AutomationCapStepSchema = AutomationCapStepBaseSchema.refine((step) => step.target !== void 0 || step.deviceId !== void 0, {
43337
+ /**
43338
+ * The steps an internal Action may contain: cap and wait, and nothing that can
43339
+ * call back into an Action — so an Action can never reach itself (no cycles).
43340
+ * This is the LEAF shape: no condition of its own.
43341
+ */
43342
+ var LeafActionStepSchema = discriminatedUnion("kind", [AutomationWaitStepSchema, AutomationCapStepBaseSchema.refine((step) => step.target !== void 0 || step.deviceId !== void 0, {
43162
43343
  message: "a cap step needs a target",
43163
43344
  path: ["target"]
43164
43345
  }).refine((step) => step.target?.kind !== "domain" || step.actionId !== void 0, {
43165
43346
  message: "a domain target needs the vocabulary action it applies to (actionId)",
43166
43347
  path: ["actionId"]
43167
- });
43348
+ })]);
43168
43349
  /**
43169
- * The steps an internal Action may contain: cap and wait, and nothing that can
43170
- * call back into an Action — so an Action can never reach itself (no cycles).
43350
+ * The optional guard of a step (#472): `if` is the ONE `when` tree (D980), read
43351
+ * on the state mirror when the step is reached; `else` runs when it is false.
43352
+ * An `else` holds leaf steps only — the nesting is bounded at ONE level, so a
43353
+ * branch can never grow a tree the trace has to draw.
43171
43354
  */
43172
- var ActionStepSchema = discriminatedUnion("kind", [AutomationWaitStepSchema, AutomationCapStepSchema]);
43355
+ var stepGuardShape = {
43356
+ if: AutomationWhenSchema.optional(),
43357
+ else: array(LeafActionStepSchema).max(10).optional()
43358
+ };
43359
+ var elseNeedsIf = {
43360
+ message: "an else list needs the condition it is the other side of (if)",
43361
+ path: ["else"]
43362
+ };
43363
+ var GuardedWaitStepSchema = AutomationWaitStepSchema.extend(stepGuardShape).refine((step) => step.else === void 0 || step.if !== void 0, elseNeedsIf);
43364
+ var GuardedCapStepSchema = AutomationCapStepBaseSchema.extend(stepGuardShape).refine((step) => step.target !== void 0 || step.deviceId !== void 0, {
43365
+ message: "a cap step needs a target",
43366
+ path: ["target"]
43367
+ }).refine((step) => step.target?.kind !== "domain" || step.actionId !== void 0, {
43368
+ message: "a domain target needs the vocabulary action it applies to (actionId)",
43369
+ path: ["actionId"]
43370
+ }).refine((step) => step.else === void 0 || step.if !== void 0, elseNeedsIf);
43371
+ var ActionStepSchema = discriminatedUnion("kind", [GuardedWaitStepSchema, GuardedCapStepSchema]);
43173
43372
  var AutomationActionSchema = discriminatedUnion("kind", [
43174
- AutomationWaitStepSchema,
43175
- AutomationCapStepSchema,
43373
+ GuardedWaitStepSchema,
43374
+ GuardedCapStepSchema,
43176
43375
  object({
43177
43376
  kind: literal("action"),
43178
43377
  /** An entry of the `actions` surface (`internal:<uuid>` or `<addonId>:<localId>`). */
@@ -43552,7 +43751,7 @@ var StepDeviceTraceSchema = object({
43552
43751
  outcome: _enum(["ok", "error"]),
43553
43752
  message: string().optional()
43554
43753
  });
43555
- var AutomationStepTraceSchema = object({
43754
+ var StepTraceBaseSchema = object({
43556
43755
  /** `actions.<i>` */
43557
43756
  path: string().min(1),
43558
43757
  kind: string().min(1),
@@ -43571,15 +43770,35 @@ var AutomationStepTraceSchema = object({
43571
43770
  * is shown as {@link REDACTED_ARG}. Absent on traces written before it existed.
43572
43771
  */
43573
43772
  args: record(string(), TraceValueSchema).optional(),
43574
- /** `empty`: the target resolved to no device, so nothing was done — never silently `ok`. */
43773
+ /**
43774
+ * The device values a templated arg printed as `—`, one `ref: reason` each
43775
+ * (D1021): why a sentence says "—" where a number was expected. Bounded.
43776
+ */
43777
+ templates: array(string()).max(20).optional(),
43778
+ /**
43779
+ * What the step's own `if` read when the step was reached (#472): `true` the
43780
+ * step ran, `false` its `else` ran (or nothing did), `unknown` a state leaf
43781
+ * could not be read, so NEITHER side ran. Absent on an unguarded step.
43782
+ */
43783
+ condition: _enum([
43784
+ "true",
43785
+ "false",
43786
+ "unknown"
43787
+ ]).optional(),
43788
+ /** Why the condition read what it read, in the evaluator's own words. */
43789
+ conditionReason: string().optional(),
43790
+ /** `empty`: the target resolved to no device, so nothing was done — never silently `ok`. `skipped`: its `if` was false (or unknown) and nothing ran in its place. */
43575
43791
  outcome: _enum([
43576
43792
  "ok",
43577
43793
  "error",
43578
43794
  "not-run",
43579
- "empty"
43795
+ "empty",
43796
+ "skipped"
43580
43797
  ]),
43581
43798
  message: string().optional()
43582
43799
  });
43800
+ /** A step trace; the `else` steps that ran are one level of the same shape (the nesting is bounded at one). */
43801
+ var AutomationStepTraceSchema = StepTraceBaseSchema.extend({ else: array(StepTraceBaseSchema).optional() });
43583
43802
  var AutomationRunTraceSchema = object({
43584
43803
  runId: string().min(1),
43585
43804
  startedAt: number$1(),
@@ -43755,6 +43974,7 @@ _enum([
43755
43974
  "invalid-variables",
43756
43975
  "invalid-steps",
43757
43976
  "not-linked",
43977
+ "template-scope",
43758
43978
  "busy"
43759
43979
  ]);
43760
43980
  object({
@@ -48321,7 +48541,7 @@ DeviceType.MediaPlayer, method(deviceOnly, _void(), {
48321
48541
  kind: "mutation",
48322
48542
  auth: "protected"
48323
48543
  });
48324
- 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;
48544
+ 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;
48325
48545
  var NUMBER = {
48326
48546
  kind: "fixed",
48327
48547
  result: ["number"]
@@ -50193,6 +50413,43 @@ method(InstancePinSchema, DeviceExportStatusSchema), method(_void(), array(Expor
50193
50413
  auth: "admin"
50194
50414
  });
50195
50415
  var DeviceAliasSchema = string().max(64).regex(/^[a-z][a-z0-9_]*$/);
50416
+ var DeviceTemplateSchema = string().min(1).max(4096);
50417
+ var DeviceTemplateRefusalSchema = object({
50418
+ reason: _enum([
50419
+ "too-long",
50420
+ "syntax",
50421
+ "forbidden-syntax",
50422
+ "forbidden-member",
50423
+ "unknown-filter",
50424
+ "ambiguous-field",
50425
+ "busy",
50426
+ "budget-exceeded",
50427
+ "timeout",
50428
+ "output-too-large",
50429
+ "render-failed",
50430
+ "out-of-scope",
50431
+ "unavailable"
50432
+ ]),
50433
+ message: string()
50434
+ });
50435
+ var DeviceTemplateTraceEntrySchema = object({
50436
+ ref: string(),
50437
+ reason: _enum([
50438
+ "unknown-alias",
50439
+ "unknown-field",
50440
+ "no-field",
50441
+ "unavailable"
50442
+ ])
50443
+ });
50444
+ var DeviceTemplateRenderSchema = discriminatedUnion("ok", [object({
50445
+ ok: literal(true),
50446
+ text: string(),
50447
+ trace: array(DeviceTemplateTraceEntrySchema)
50448
+ }), object({
50449
+ ok: literal(false),
50450
+ refusal: DeviceTemplateRefusalSchema,
50451
+ trace: array(DeviceTemplateTraceEntrySchema)
50452
+ })]);
50196
50453
  /**
50197
50454
  * A SITE ZONE — a named part of the property that several locations belong to.
50198
50455
  *
@@ -50931,6 +51188,22 @@ method(object({
50931
51188
  kind: "mutation",
50932
51189
  auth: "admin"
50933
51190
  }), method(object({
51191
+ templates: array(DeviceTemplateSchema).max(64),
51192
+ allowedDeviceIds: array(number$1().int()).optional()
51193
+ }), object({ results: array(DeviceTemplateRenderSchema) }), { auth: "admin" }), method(object({
51194
+ templates: array(string()).max(64),
51195
+ allowedDeviceIds: array(number$1().int()).optional()
51196
+ }), object({ results: array(discriminatedUnion("ok", [object({
51197
+ ok: literal(true),
51198
+ aliases: array(object({
51199
+ alias: string(),
51200
+ deviceId: number$1().int().nullable(),
51201
+ allowed: boolean()
51202
+ }))
51203
+ }), object({
51204
+ ok: literal(false),
51205
+ refusal: DeviceTemplateRefusalSchema
51206
+ })])) }), { auth: "admin" }), method(object({
50934
51207
  deviceId: number$1(),
50935
51208
  location: string().nullable()
50936
51209
  }), _void(), {
@@ -53663,6 +53936,207 @@ var GroupStatusSchema = object({
53663
53936
  }))
53664
53937
  });
53665
53938
  DeviceType.Sensor, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Cover, DeviceType.Valve, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.Thermostat, DeviceType.Climate;
53939
+ /**
53940
+ * Heat pump settable surface (D1026): one typed method per parameter, never a
53941
+ * generic `set(key, value)`. The values a mode takes and the limits of a number
53942
+ * are the ones `heat-pump-status` carries (`allowed`, `min`, `max`, `step`),
53943
+ * read from the gateway; a provider refuses a value outside them. The state is
53944
+ * `heat-pump-status` — this cap has none.
53945
+ */
53946
+ var deviceId = number$1().int().nonnegative();
53947
+ var circuitId = string().min(1);
53948
+ var mode = string().min(1);
53949
+ var temp = number$1().finite();
53950
+ DeviceType.HeatPump, method(object({
53951
+ deviceId,
53952
+ mode
53953
+ }), _void(), {
53954
+ kind: "mutation",
53955
+ auth: "protected"
53956
+ }), method(object({
53957
+ deviceId,
53958
+ mode
53959
+ }), _void(), {
53960
+ kind: "mutation",
53961
+ auth: "protected"
53962
+ }), method(object({
53963
+ deviceId,
53964
+ mode
53965
+ }), _void(), {
53966
+ kind: "mutation",
53967
+ auth: "protected"
53968
+ }), method(object({
53969
+ deviceId,
53970
+ mode
53971
+ }), _void(), {
53972
+ kind: "mutation",
53973
+ auth: "protected"
53974
+ }), method(object({
53975
+ deviceId,
53976
+ circuitId,
53977
+ mode
53978
+ }), _void(), {
53979
+ kind: "mutation",
53980
+ auth: "protected"
53981
+ }), method(object({
53982
+ deviceId,
53983
+ circuitId,
53984
+ mode
53985
+ }), _void(), {
53986
+ kind: "mutation",
53987
+ auth: "protected"
53988
+ }), method(object({
53989
+ deviceId,
53990
+ circuitId,
53991
+ mode
53992
+ }), _void(), {
53993
+ kind: "mutation",
53994
+ auth: "protected"
53995
+ }), method(object({
53996
+ deviceId,
53997
+ circuitId,
53998
+ temp
53999
+ }), _void(), {
54000
+ kind: "mutation",
54001
+ auth: "protected"
54002
+ }), method(object({
54003
+ deviceId,
54004
+ circuitId,
54005
+ temp
54006
+ }), _void(), {
54007
+ kind: "mutation",
54008
+ auth: "protected"
54009
+ }), method(object({
54010
+ deviceId,
54011
+ circuitId,
54012
+ temp
54013
+ }), _void(), {
54014
+ kind: "mutation",
54015
+ auth: "protected"
54016
+ }), method(object({
54017
+ deviceId,
54018
+ circuitId,
54019
+ mode
54020
+ }), _void(), {
54021
+ kind: "mutation",
54022
+ auth: "protected"
54023
+ }), method(object({
54024
+ deviceId,
54025
+ circuitId,
54026
+ level: mode
54027
+ }), _void(), {
54028
+ kind: "mutation",
54029
+ auth: "protected"
54030
+ }), method(object({
54031
+ deviceId,
54032
+ circuitId,
54033
+ minutes: number$1().int().positive()
54034
+ }), _void(), {
54035
+ kind: "mutation",
54036
+ auth: "protected"
54037
+ }), method(object({
54038
+ deviceId,
54039
+ circuitId
54040
+ }), _void(), {
54041
+ kind: "mutation",
54042
+ auth: "protected"
54043
+ });
54044
+ var HeatPumpCircuitKindSchema = _enum([
54045
+ "heating",
54046
+ "dhw",
54047
+ "cooling",
54048
+ "solar"
54049
+ ]);
54050
+ /** A setting that takes one of a list of values the gateway named. */
54051
+ var HeatPumpOptionSettingSchema = object({
54052
+ /** The active value. Null when the gateway did not answer. */
54053
+ value: string().nullable(),
54054
+ /** Values the gateway accepts, in its order. Empty = read-only here. */
54055
+ allowed: array(string())
54056
+ });
54057
+ /** A numeric setting with the limits the gateway named. */
54058
+ var HeatPumpRangeSettingSchema = object({
54059
+ value: number$1().nullable(),
54060
+ min: number$1().nullable(),
54061
+ max: number$1().nullable(),
54062
+ step: number$1().nullable()
54063
+ });
54064
+ var HeatPumpCircuitSchema = object({
54065
+ /** Gateway id of the circuit (`hc1`, `dhw1`): the key of the series. */
54066
+ id: string().min(1),
54067
+ kind: HeatPumpCircuitKindSchema,
54068
+ label: string(),
54069
+ icon: IconKeySchema,
54070
+ /** Measured temperature of the circuit (room, tank, collector). */
54071
+ currentTemp: number$1().nullable().meta(readingMeta("temperature")),
54072
+ /** The setpoint in force now. */
54073
+ targetTemp: number$1().nullable().meta(readingMeta("temperature")),
54074
+ /** The operation mode in force (mirror of `operationMode.value`, for the series). */
54075
+ mode: string().nullable(),
54076
+ /** Whether the circuit is calling for heat right now. Null = unknown. */
54077
+ active: boolean().nullable(),
54078
+ operationMode: HeatPumpOptionSettingSchema.nullable(),
54079
+ /** Heating circuits: heat / cool / heatCool. */
54080
+ heatCoolMode: HeatPumpOptionSettingSchema.nullable(),
54081
+ /** Heating circuits: summer / winter changeover. */
54082
+ summerWinter: HeatPumpOptionSettingSchema.nullable(),
54083
+ comfortSetpoint: HeatPumpRangeSettingSchema.nullable(),
54084
+ ecoSetpoint: HeatPumpRangeSettingSchema.nullable(),
54085
+ maxFlowTemp: HeatPumpRangeSettingSchema.nullable(),
54086
+ /** Hot water: the temperature level (off / low / high / eco). */
54087
+ temperatureLevel: HeatPumpOptionSettingSchema.nullable(),
54088
+ /** Hot water: how long a charge lasts, minutes. */
54089
+ chargeDuration: HeatPumpRangeSettingSchema.nullable(),
54090
+ /** Hot water: whether an extra-hot-water charge is running. Null = no such surface. */
54091
+ extraHotWater: boolean().nullable()
54092
+ });
54093
+ /** The independent system modes, each with its real values. A null mode = the gateway has none. */
54094
+ var HeatPumpSystemSchema = object({
54095
+ silent: HeatPumpOptionSettingSchema.nullable(),
54096
+ away: HeatPumpOptionSettingSchema.nullable(),
54097
+ additionalHeater: HeatPumpOptionSettingSchema.nullable(),
54098
+ holiday: HeatPumpOptionSettingSchema.nullable()
54099
+ });
54100
+ var HeatPumpPowerSchema = object({
54101
+ thermalW: number$1().nullable().meta(readingMeta("power")),
54102
+ electricalW: number$1().nullable().meta(readingMeta("power")),
54103
+ /** Compressor modulation, percent. */
54104
+ compressorPct: number$1().nullable().meta(readingMeta("percentage"))
54105
+ });
54106
+ var HeatPumpTemperaturesSchema = object({
54107
+ supply: number$1().nullable().meta(readingMeta("temperature")),
54108
+ return: number$1().nullable().meta(readingMeta("temperature")),
54109
+ outdoor: number$1().nullable().meta(readingMeta("temperature"))
54110
+ });
54111
+ /** Lifetime meters, kWh: the energy of a period is computed at read time from their difference (D944). */
54112
+ var HeatPumpEnergySchema = object({
54113
+ thermalKwh: number$1().nullable().meta(readingMeta("energy")),
54114
+ electricalKwh: number$1().nullable().meta(readingMeta("energy"))
54115
+ });
54116
+ var HeatPumpStatusSchema = object({
54117
+ circuits: array(HeatPumpCircuitSchema),
54118
+ system: HeatPumpSystemSchema,
54119
+ power: HeatPumpPowerSchema,
54120
+ temperatures: HeatPumpTemperaturesSchema,
54121
+ energy: HeatPumpEnergySchema,
54122
+ /** Water pressure of the heating loop, bar. */
54123
+ waterPressureBar: number$1().nullable(),
54124
+ /** Compressor starts since commissioning. */
54125
+ starts: number$1().nullable(),
54126
+ /** Ms epoch when the slice was last read from the gateway. */
54127
+ lastFetchedAt: number$1()
54128
+ });
54129
+ /**
54130
+ * The instantaneous COP: thermal over electrical power. Null unless BOTH powers
54131
+ * are known and the unit draws power — a missing reading is never a 0 or a
54132
+ * division by it (D393). Computed on every read; there is no stored value.
54133
+ */
54134
+ function heatPumpInstantCop(power) {
54135
+ const { thermalW, electricalW } = power;
54136
+ if (thermalW === null || electricalW === null || electricalW <= 0) return null;
54137
+ return thermalW / electricalW;
54138
+ }
54139
+ DeviceType.HeatPump;
53666
54140
  var HeatingValveStatusSchema = object({
53667
54141
  /** Radiator valve opening 0 (closed) .. 100 (open). Null = not yet known. */
53668
54142
  position: number$1().min(0).max(100).nullable().meta(readingMeta("percentage")),
@@ -53820,6 +54294,7 @@ var HeroSceneSchema = object({
53820
54294
  "ac",
53821
54295
  "thermostat",
53822
54296
  "heater",
54297
+ "heat-pump",
53823
54298
  "fan",
53824
54299
  "washer",
53825
54300
  "dryer",
@@ -53862,7 +54337,7 @@ var HeroSceneSchema = object({
53862
54337
  /** 0..1: volume, cover position, cycle progress. */
53863
54338
  level: number$1().min(0).max(1).nullable()
53864
54339
  });
53865
- 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;
54340
+ 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;
53866
54341
  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;
53867
54342
  /** A string in both languages, as the cap vocabulary writes it (D920): no `t()` in the model. */
53868
54343
  var HeroTextSchema = object({
@@ -53870,6 +54345,7 @@ var HeroTextSchema = object({
53870
54345
  it: string()
53871
54346
  });
53872
54347
  var HeroRowIdSchema = _enum([
54348
+ "progress",
53873
54349
  "run-for",
53874
54350
  "cycle",
53875
54351
  "program",
@@ -53884,6 +54360,7 @@ var HeroRowIdSchema = _enum([
53884
54360
  "alarm",
53885
54361
  "fan",
53886
54362
  "vacuum",
54363
+ "vacuum-suction",
53887
54364
  "mower",
53888
54365
  "feeder",
53889
54366
  "fountain",
@@ -53902,7 +54379,10 @@ var HeroRowIdSchema = _enum([
53902
54379
  "climate-fan",
53903
54380
  "setpoint",
53904
54381
  "channel",
53905
- "control"
54382
+ "control",
54383
+ "circuit",
54384
+ "heat-pump-power",
54385
+ "system-mode"
53906
54386
  ]);
53907
54387
  var HeroArgValueSchema = lazy(() => union([
53908
54388
  string(),
@@ -53967,16 +54447,32 @@ var HeroControlSchema = discriminatedUnion("kind", [
53967
54447
  label: HeroTextSchema,
53968
54448
  current: string().nullable(),
53969
54449
  options: array(string()),
54450
+ /** A readable label per option value; an option without one is drawn as its raw value. */
54451
+ optionLabels: record(string(), HeroTextSchema).optional(),
53970
54452
  call: HeroCallSchema,
53971
54453
  valueArg: string()
53972
54454
  })
53973
54455
  ]);
54456
+ /** Declared by its interface: a `z.infer` of one more icon union pushes the cap's inferred type past what the compiler can print. */
54457
+ var HeroPillSchema = object({
54458
+ icon: IconKeySchema.nullable(),
54459
+ text: HeroTextSchema,
54460
+ tone: HeroToneSchema
54461
+ });
53974
54462
  var HeroRowSchema = object({
53975
54463
  id: HeroRowIdSchema,
54464
+ /** The row's own name when the kind's label would not tell rows of one kind apart (a circuit's label). */
54465
+ label: HeroTextSchema.optional(),
54466
+ /** A group header drawn above the row when it differs from the previous row's ("System"). */
54467
+ group: HeroTextSchema.optional(),
54468
+ /** Values drawn as pills across the row (a heat pump's powers). */
54469
+ pills: array(HeroPillSchema).optional(),
53976
54470
  icon: IconKeySchema,
53977
54471
  /** The row's status, in words. `null` = nothing to say. */
53978
54472
  status: HeroTextSchema.nullable(),
53979
- controls: array(HeroControlSchema)
54473
+ controls: array(HeroControlSchema),
54474
+ /** A bar under the row's label, 0..1; `null` / absent = no bar. */
54475
+ progress: number$1().min(0).max(1).nullable().optional()
53980
54476
  });
53981
54477
  var HeroDetailSchema = object({
53982
54478
  label: HeroTextSchema,
@@ -53984,7 +54480,11 @@ var HeroDetailSchema = object({
53984
54480
  unit: string().nullable()
53985
54481
  });
53986
54482
  var HeroBadgeSchema = object({
53987
- id: _enum(["battery", "network-link"]),
54483
+ id: _enum([
54484
+ "battery",
54485
+ "network-link",
54486
+ "integration"
54487
+ ]),
53988
54488
  icon: IconKeySchema,
53989
54489
  tone: HeroToneSchema,
53990
54490
  /** Percent for a battery, link quality for a link; `null` = not known. */
@@ -54032,7 +54532,13 @@ var HeroTimedRunSlotSchema = object({
54032
54532
  activeUntil: number$1().nullable(),
54033
54533
  quickRun: TimedRunQuickRunSchema,
54034
54534
  run: HeroActionSchema,
54035
- cancel: HeroActionSchema
54535
+ cancel: HeroActionSchema,
54536
+ /**
54537
+ * Whole units left (the limit's unit, ceil). `null` while nothing is armed.
54538
+ * A number, not words: the row formats it, and a text here would not fit the
54539
+ * hero-layout declaration.
54540
+ */
54541
+ remaining: number$1().nullable()
54036
54542
  });
54037
54543
  var HeroPowerSupplySlotSchema = object({
54038
54544
  /** The plug's state; `null` = unknown, never off. */
@@ -54084,7 +54590,12 @@ var HeroFactSchema = object({
54084
54590
  var HeroSideTileSchema = object({
54085
54591
  label: HeroTextSchema,
54086
54592
  value: HeroTextSchema,
54087
- tone: HeroToneSchema.optional()
54593
+ tone: HeroToneSchema.optional(),
54594
+ /**
54595
+ * Epoch ms when the tile reads a clock time (an appliance's end): a client prints it in
54596
+ * the viewer's own time zone; `value` is the fallback for one that cannot.
54597
+ */
54598
+ at: number$1().optional()
54088
54599
  });
54089
54600
  var HeroSideTilesSchema = object({
54090
54601
  left: array(HeroSideTileSchema).max(2),
@@ -54120,8 +54631,12 @@ var HeroModelSchema = object({
54120
54631
  sideTiles: HeroSideTilesSchema,
54121
54632
  /** The status line under the main icon. */
54122
54633
  title: HeroTextSchema,
54634
+ /** The scene's top line when it says more than `title`; absent = draw the title. */
54635
+ caption: HeroTextSchema.optional(),
54123
54636
  badges: array(HeroBadgeSchema),
54124
54637
  remote: HeroRemoteSlotSchema.nullable(),
54638
+ /** The foot button that opens the device's history: "History", "Cycles", "Meals", "Access". */
54639
+ historyLabel: HeroTextSchema,
54125
54640
  consumables: HeroConsumablesSlotSchema.nullable(),
54126
54641
  consumption: HeroConsumptionSlotSchema.nullable(),
54127
54642
  ownPower: HeroOwnPowerSlotSchema.nullable(),
@@ -54142,18 +54657,31 @@ var HeroModelSchema = object({
54142
54657
  * 4. a trailing fact (power, else battery, else consumables).
54143
54658
  *
54144
54659
  * Selection rules, all taken from the model:
54145
- * - ONE control is ever shown: the device's own power; else the FIRST control of
54660
+ * - the primary control is the device's own power; else the FIRST control of
54146
54661
  * the FIRST row that has any (a later row's control is never promoted). When
54147
54662
  * the model lists that part in `gated`, the row has no inline control: the
54148
54663
  * projection never falls through to another control the caller could use.
54664
+ * - a timed run, when the model carries the slot, sits beside that primary:
54665
+ * Run while idle, Stop while armed. Gating the slot hides the control.
54149
54666
  * - the status line is the head (what plays, else the state) plus at most
54150
- * {@link ROW_STATUS_FACTS_MAX} facts, the trailing fact excluded;
54667
+ * {@link ROW_STATUS_FACTS_MAX} facts, the trailing fact excluded, then the
54668
+ * time left on an armed timed run;
54151
54669
  * - the trailing fact is the first of power, battery, consumables.
54152
54670
  *
54153
54671
  * `projectDeviceRow` is pure and computes nothing: it selects from a
54154
54672
  * {@link HeroModel}. A row that needed a value the hero lacks would mean the
54155
54673
  * model is missing it, so the fix goes in the model.
54156
54674
  */
54675
+ /**
54676
+ * The row's timed-run control. `id` is `timed-run.run` while idle and
54677
+ * `timed-run.cancel` while armed; `duration` and `unit` are the one-tap run
54678
+ * a Run press starts.
54679
+ */
54680
+ var HeroRowTimedRunSchema = object({
54681
+ id: _enum(["timed-run.run", "timed-run.cancel"]),
54682
+ duration: number$1(),
54683
+ unit: _enum(["min", "s"])
54684
+ });
54157
54685
  var HeroRowModelSchema = object({
54158
54686
  deviceId: number$1().int(),
54159
54687
  name: string(),
@@ -54166,6 +54694,11 @@ var HeroRowModelSchema = object({
54166
54694
  statusLine: array(HeroTextSchema),
54167
54695
  /** `null` = the type has no inline control, or the caller may not act on it. */
54168
54696
  primary: HeroControlSchema.nullable(),
54697
+ /**
54698
+ * Beside `primary` when the device offers a timed run: Run while idle, Stop
54699
+ * while armed. `null` when there is no slot, or the caller may not act.
54700
+ */
54701
+ timedRun: HeroRowTimedRunSchema.nullable(),
54169
54702
  trailing: HeroFactSchema.nullable()
54170
54703
  });
54171
54704
  /**
@@ -76682,7 +77215,7 @@ var AccessoryKind = {
76682
77215
  PrivacyMask: DeviceRole.PrivacyMask
76683
77216
  };
76684
77217
  AccessoryKind.Siren, AccessoryKind.Floodlight, AccessoryKind.Spotlight, AccessoryKind.PirSensor, AccessoryKind.Chime, AccessoryKind.Autotrack, AccessoryKind.Nightvision, AccessoryKind.PrivacyMask;
76685
- 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;
77218
+ 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;
76686
77219
  new Set(Object.values(DeviceType));
76687
77220
  /** Parses the raw slice with the cap's own schema; `undefined` when it does not parse. */
76688
77221
  function contribution(cap, schema, build) {
@@ -76818,6 +77351,13 @@ var lockContribution = contribution("lock-control", LockControlStatusSchema, (sl
76818
77351
  reading: reading("lock-control", words?.state ?? "unknown", false, words?.title),
76819
77352
  rows: [row$1("lock", state === "locked" || state === "locking" ? "lock" : "lock-open", joinText([title, since]), lockControls(state, ctx.features.includes(DeviceFeature.LockOpen)))],
76820
77353
  ...since === null || words === null ? {} : { facts: [fact("since", "clock", since, "muted")] },
77354
+ ...words === null ? {} : { tiles: { left: [{
77355
+ label: t("Door", "Porta"),
77356
+ value: title
77357
+ }, ...since === null ? [] : [{
77358
+ label: t("Since", "Da"),
77359
+ value: since
77360
+ }]] } },
76821
77361
  ...words?.door == null ? {} : { scene: { mode: words.door } }
76822
77362
  };
76823
77363
  });
@@ -76899,7 +77439,17 @@ var ACCESS_FAMILY_CONTRIBUTIONS = {
76899
77439
  return {
76900
77440
  reading: reading("alarm-panel", words?.state ?? "unknown", false, words?.title),
76901
77441
  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))],
76902
- ...since === null || words === null ? {} : { facts: [fact("since", "clock", since, state === "triggered" ? "danger" : "muted")] }
77442
+ ...since === null || words === null ? {} : { facts: [fact("since", "clock", since, state === "triggered" ? "danger" : "muted")] },
77443
+ ...words === null ? {} : { tiles: {
77444
+ left: [{
77445
+ label: t("Mode", "Modalità"),
77446
+ value: words.title
77447
+ }],
77448
+ ...since === null ? {} : { right: [{
77449
+ label: t("Since", "Da"),
77450
+ value: since
77451
+ }] }
77452
+ } }
76903
77453
  };
76904
77454
  }),
76905
77455
  "automation-control": contribution("automation-control", AutomationControlStatusSchema, (slice, ctx) => {
@@ -76963,7 +77513,7 @@ var ACCESS_FAMILY_CONTRIBUTIONS = {
76963
77513
  */
76964
77514
  var has$3 = (ctx, f) => ctx.features.includes(f);
76965
77515
  var unknownText = t("Unknown", "Sconosciuto");
76966
- var pct$1 = (n) => t(`${Math.round(n)}%`, `${Math.round(n)}%`);
77516
+ var pct$2 = (n) => t(`${Math.round(n)}%`, `${Math.round(n)}%`);
76967
77517
  var unit = (n) => Math.min(1, Math.max(0, n / 100));
76968
77518
  /** Battery as a fact, unless the device is also bound to the `battery` cap (it already says so). */
76969
77519
  function ownBattery(level, ctx) {
@@ -77025,7 +77575,7 @@ var fanContribution = contribution("fan-control", FanControlStatusSchema, (slice
77025
77575
  },
77026
77576
  valueArg: "direction"
77027
77577
  });
77028
- const speedText = speed === null ? null : pct$1(speed);
77578
+ const speedText = speed === null ? null : pct$2(speed);
77029
77579
  const preset = slice?.preset ?? "";
77030
77580
  const status = speed === null ? unknownText : joinText([speed === 0 ? t("Off", "Spento") : t(`Speed ${speed}%`, `Velocità ${speed}%`), preset === "" ? null : t(preset, preset)]);
77031
77581
  return {
@@ -77038,10 +77588,16 @@ var fanContribution = contribution("fan-control", FanControlStatusSchema, (slice
77038
77588
  }],
77039
77589
  ...speedText === null ? {} : {
77040
77590
  facts: [fact("speed", "fan", speedText, speed === 0 ? "muted" : "primary")],
77041
- tiles: { right: [{
77042
- label: t("Speed", "Velocità"),
77043
- value: speedText
77044
- }] },
77591
+ tiles: {
77592
+ ...slice?.oscillating == null ? {} : { left: [{
77593
+ label: t("Oscillation", "Oscilla"),
77594
+ value: slice.oscillating ? t("Yes", "Sì") : t("No", "No")
77595
+ }] },
77596
+ ...preset === "" ? {} : { right: [{
77597
+ label: t("Mode", "Modalità"),
77598
+ value: t(preset, preset)
77599
+ }] }
77600
+ },
77045
77601
  scene: { level: unit(speed ?? 0) }
77046
77602
  }
77047
77603
  };
@@ -77105,7 +77661,8 @@ var vacuumContribution = contribution("vacuum-control", VacuumControlStatusSchem
77105
77661
  const words = state === null ? null : VACUUM_WORDS[state];
77106
77662
  const title = state === "error" && slice?.errorLabel ? t(slice.errorLabel, slice.errorLabel) : words?.title;
77107
77663
  const controls = vacuumControls(state);
77108
- if (slice !== void 0 && slice.availableFanSpeeds.length > 0) controls.push({
77664
+ const suctionControls = [];
77665
+ if (slice !== void 0 && slice.availableFanSpeeds.length > 0) suctionControls.push({
77109
77666
  kind: "picker",
77110
77667
  id: "vacuum.suction",
77111
77668
  label: t("Suction", "Aspirazione"),
@@ -77120,22 +77677,31 @@ var vacuumContribution = contribution("vacuum-control", VacuumControlStatusSchem
77120
77677
  });
77121
77678
  if (state !== null) controls.push(vac("locate", "Locate", "Trova", "map-pin", "locate"));
77122
77679
  const progress = state === "cleaning" ? slice?.progress ?? null : null;
77680
+ const suction = slice?.fanSpeed == null || slice.fanSpeed === "" ? [] : [{
77681
+ label: t("Suction", "Aspirazione"),
77682
+ value: t(slice.fanSpeed, slice.fanSpeed)
77683
+ }];
77684
+ const suctionRows = suctionControls.length === 0 ? [] : [{
77685
+ id: "vacuum-suction",
77686
+ icon: "bot",
77687
+ status: null,
77688
+ controls: suctionControls
77689
+ }];
77690
+ const vacuumRows = [{
77691
+ id: "vacuum",
77692
+ icon: "bot",
77693
+ status: title ?? unknownText,
77694
+ controls
77695
+ }, ...suctionRows];
77123
77696
  return {
77124
77697
  reading: reading("vacuum-control", words?.state ?? "unknown", false, title),
77125
- rows: [{
77126
- id: "vacuum",
77127
- icon: "bot",
77128
- status: title ?? unknownText,
77129
- controls
77130
- }],
77131
- facts: [...ownBattery(slice?.batteryLevel ?? null, ctx), ...progress === null ? [] : [fact("progress", "activity", pct$1(progress), "primary")]],
77132
- ...progress === null ? {} : {
77133
- tiles: { right: [{
77134
- label: t("Progress", "Avanzamento"),
77135
- value: pct$1(progress)
77136
- }] },
77137
- scene: { level: unit(progress) }
77138
- }
77698
+ rows: vacuumRows,
77699
+ facts: [...ownBattery(slice?.batteryLevel ?? null, ctx), ...progress === null ? [] : [fact("progress", "activity", pct$2(progress), "primary")]],
77700
+ ...suction.length === 0 && progress === null ? {} : { tiles: { right: [...suction, ...progress === null ? [] : [{
77701
+ label: t("Progress", "Avanzamento"),
77702
+ value: pct$2(progress)
77703
+ }]] } },
77704
+ ...progress === null ? {} : { scene: { level: unit(progress) } }
77139
77705
  };
77140
77706
  });
77141
77707
  var MOWER_WORDS = {
@@ -77191,11 +77757,11 @@ var mowerContribution = contribution("lawn-mower-control", LawnMowerControlStatu
77191
77757
  status: title ?? unknownText,
77192
77758
  controls: mowerControls(activity)
77193
77759
  }],
77194
- facts: [...ownBattery(slice?.batteryLevel ?? null, ctx), ...progress === null ? [] : [fact("progress", "activity", pct$1(progress), "primary")]],
77760
+ facts: [...ownBattery(slice?.batteryLevel ?? null, ctx), ...progress === null ? [] : [fact("progress", "activity", pct$2(progress), "primary")]],
77195
77761
  ...progress === null ? {} : {
77196
77762
  tiles: { right: [{
77197
77763
  label: t("Progress", "Avanzamento"),
77198
- value: pct$1(progress)
77764
+ value: pct$2(progress)
77199
77765
  }] },
77200
77766
  scene: { level: unit(progress) }
77201
77767
  }
@@ -77266,10 +77832,13 @@ var feederContribution = contribution("pet-feeder", PetFeederStatusSchema, (slic
77266
77832
  ...last === null ? [] : [fact("last-run", "clock", t(`Last ${last} g`, `Ultimo ${last} g`))],
77267
77833
  ...ownBattery(slice?.powerSource === "battery" ? slice.batteryPower : null, ctx)
77268
77834
  ],
77269
- ...last === null ? {} : { tiles: { right: [{
77835
+ tiles: { left: [...slice?.foodLevel == null ? [] : [{
77836
+ label: t("Tank", "Serbatoio"),
77837
+ value: pct$2(slice.foodLevel)
77838
+ }], ...last === null ? [] : [{
77270
77839
  label: t("Last portion", "Ultima porzione"),
77271
77840
  value: t(`${last} g`, `${last} g`)
77272
- }] } }
77841
+ }]] }
77273
77842
  };
77274
77843
  });
77275
77844
  var fountainContribution = contribution("pet-fountain", PetFountainStatusSchema, (slice) => {
@@ -77297,10 +77866,13 @@ var fountainContribution = contribution("pet-fountain", PetFountainStatusSchema,
77297
77866
  }],
77298
77867
  ...level === null ? {} : {
77299
77868
  facts: [fact("level", "droplets", t(`Water ${Math.round(level)}%`, `Acqua ${Math.round(level)}%`), level <= 20 ? "warning" : "primary")],
77300
- tiles: { right: [{
77869
+ tiles: { left: [{
77301
77870
  label: t("Water", "Acqua"),
77302
- value: pct$1(level)
77303
- }] },
77871
+ value: pct$2(level)
77872
+ }, ...slice?.waterVolume == null ? [] : [{
77873
+ label: t("Volume", "Volume"),
77874
+ value: t(`${Math.round(slice.waterVolume)} ml`, `${Math.round(slice.waterVolume)} ml`)
77875
+ }]] },
77304
77876
  scene: { level: unit(level) }
77305
77877
  }
77306
77878
  };
@@ -77332,14 +77904,18 @@ var DEVICES_FAMILY_CONTRIBUTIONS = {
77332
77904
  * that does not parse reads `unknown`, never closed or off (D315/D393).
77333
77905
  */
77334
77906
  var has$2 = (ctx, f) => ctx.features.includes(f);
77335
- var pct = (n) => t(`${Math.round(n)}%`, `${Math.round(n)}%`);
77907
+ var pct$1 = (n) => t(`${Math.round(n)}%`, `${Math.round(n)}%`);
77336
77908
  var brightnessContribution = contribution("brightness", BrightnessStatusSchema, (slice) => {
77337
77909
  const level = slice?.level ?? null;
77338
77910
  return {
77339
77911
  ...level === null ? {} : { reading: reading("brightness", level > 0 ? "on" : "off") },
77340
77912
  ...level === null ? {} : {
77341
- facts: [fact("level", "sun-dim", pct(level), level > 0 ? "primary" : "muted")],
77342
- scene: { level: level / 100 }
77913
+ facts: [fact("level", "sun-dim", pct$1(level), level > 0 ? "primary" : "muted")],
77914
+ scene: { level: level / 100 },
77915
+ tiles: { left: [{
77916
+ label: t("Brightness", "Luminosità"),
77917
+ value: pct$1(level)
77918
+ }] }
77343
77919
  },
77344
77920
  rows: [row$1("brightness", "sun-dim", level === null ? null : t(`Brightness ${Math.round(level)}%`, `Luminosità ${Math.round(level)}%`), [{
77345
77921
  kind: "slider",
@@ -77548,12 +78124,16 @@ function travelFragment(s, state, position, tilt, ctx) {
77548
78124
  });
77549
78125
  return {
77550
78126
  reading: reading(s.source, words.state, false, words.title),
77551
- ...position === null ? {} : { facts: [fact("level", "arrow-up-down", pct(position))] },
78127
+ ...position === null ? {} : { facts: [fact("level", "arrow-up-down", pct$1(position))] },
78128
+ ...position === null ? {} : { tiles: { left: [{
78129
+ label: t("Opening", "Apertura"),
78130
+ value: pct$1(position)
78131
+ }] } },
77552
78132
  scene: {
77553
78133
  ...words.mode === null ? {} : { mode: words.mode },
77554
78134
  ...position === null ? {} : { level: position / 100 }
77555
78135
  },
77556
- rows: [row$1(s.rowId, "arrow-up-down", joinText([words.title, position !== null && state !== "open" ? pct(position) : null]), controls)]
78136
+ rows: [row$1(s.rowId, "arrow-up-down", joinText([words.title, position !== null && state !== "open" ? pct$1(position) : null]), controls)]
77557
78137
  };
77558
78138
  }
77559
78139
  var ACTUATORS_FAMILY_CONTRIBUTIONS = {
@@ -77631,10 +78211,10 @@ var ACTUATORS_FAMILY_CONTRIBUTIONS = {
77631
78211
  const now = slice.currentHumidity;
77632
78212
  return {
77633
78213
  reading: reading("humidifier", state, false, title),
77634
- ...now === null ? {} : { facts: [fact("level", "droplets", pct(now), "info")] },
78214
+ ...now === null ? {} : { facts: [fact("level", "droplets", pct$1(now), "info")] },
77635
78215
  ...slice.targetHumidity === null ? {} : { tiles: { right: [{
77636
78216
  label: t("Target", "Obiettivo"),
77637
- value: pct(slice.targetHumidity)
78217
+ value: pct$1(slice.targetHumidity)
77638
78218
  }] } },
77639
78219
  ...now === null ? {} : { scene: { level: now / 100 } },
77640
78220
  rows: [row$1("humidifier", "droplets", joinText([title, slice.mode === null ? null : t(slice.mode, slice.mode)]), controls)]
@@ -77882,17 +78462,16 @@ var weatherContribution = contribution("weather", WeatherStatusSchema, (slice, c
77882
78462
  });
77883
78463
  var updateContribution = contribution("update", UpdateStatusSchema, (slice) => {
77884
78464
  if (slice === void 0) return { reading: reading("update", "unknown") };
77885
- const { currentVersion, availableVersion, inProgress, updatable } = slice;
78465
+ const { currentVersion, availableVersion, inProgress } = slice;
77886
78466
  const pending = availableVersion !== null && availableVersion !== "" && availableVersion !== currentVersion;
77887
78467
  if (!pending && currentVersion === null && !inProgress) return { reading: reading("update", "unknown") };
77888
78468
  const state = inProgress ? "running" : pending ? "standby" : "idle";
77889
78469
  const title = inProgress ? t("Updating", "Aggiornamento in corso") : pending ? t("Update available", "Aggiornamento disponibile") : t("Up to date", "Aggiornato");
77890
78470
  const versions = currentVersion === null ? pending ? t(`${availableVersion}`, `${availableVersion}`) : null : pending ? t(`${currentVersion} → ${availableVersion}`, `${currentVersion} → ${availableVersion}`) : t(`Version ${currentVersion}`, `Versione ${currentVersion}`);
77891
- const install = pending && updatable && !inProgress ? [asAction(action("update.install", t("Install", "Installa"), "download", "update", "installUpdate", {}, "primary", "install"))] : [];
77892
78471
  return {
77893
78472
  reading: reading("update", state, false, title),
77894
78473
  facts: versions === null ? [] : [fact("reading", "download", versions, pending ? "warning" : "muted")],
77895
- rows: [row$1("update", "download", versions, install)]
78474
+ rows: [row$1("update", "download", versions, [])]
77896
78475
  };
77897
78476
  });
77898
78477
  var imageContribution = contribution("image", ImageStatusSchema, (slice, ctx) => {
@@ -78000,6 +78579,33 @@ var ON_MODE_PREFERENCE = [
78000
78579
  "heat",
78001
78580
  "cool"
78002
78581
  ];
78582
+ var FAN_LABEL = {
78583
+ auto: t("Auto", "Auto"),
78584
+ quiet: t("Quiet", "Silenziosa"),
78585
+ low: t("Low", "Bassa"),
78586
+ medium: t("Medium", "Media"),
78587
+ high: t("High", "Alta"),
78588
+ turbo: t("Turbo", "Turbo"),
78589
+ off: t("Off", "Spenta")
78590
+ };
78591
+ /** A readable label for a fan speed name; an unknown one is shown as the device reported it. */
78592
+ function fanLabelOf(fan) {
78593
+ return FAN_LABEL[fan] ?? t(fan, fan);
78594
+ }
78595
+ /** Short labels for a segmented control: one word each, so the segments stay on a line. */
78596
+ var MODE_SEGMENT_LABEL = {
78597
+ off: t("Off", "Spento"),
78598
+ heat: t("Heat", "Caldo"),
78599
+ cool: t("Cool", "Freddo"),
78600
+ auto: t("Auto", "Auto"),
78601
+ heat_cool: t("Heat/Cool", "Caldo/Freddo"),
78602
+ fan_only: t("Fan", "Vent."),
78603
+ dry: t("Dry", "Deum.")
78604
+ };
78605
+ /** The segment label of every available HVAC mode, keyed by the mode value. */
78606
+ function modeLabelsOf(modes) {
78607
+ return Object.fromEntries(modes.map((m) => [m, MODE_SEGMENT_LABEL[m]]));
78608
+ }
78003
78609
  /** 22 -> "22", 22.3 -> "22.3": a trailing zero is noise on a thermostat. */
78004
78610
  function formatDegrees(value) {
78005
78611
  return `${Number(value.toFixed(1))}°`;
@@ -78064,11 +78670,11 @@ function rangeFrom(min, max, step) {
78064
78670
  * contribute, types never do (D14). A slice that is absent or does not parse is
78065
78671
  * "not answered": the state reads unknown, no row is drawn (D315, D393).
78066
78672
  */
78067
- var same = (text) => t(text, text);
78068
- function tile(en, it, value) {
78673
+ var same$1 = (text) => t(text, text);
78674
+ function tile$1(en, it, value) {
78069
78675
  return {
78070
78676
  label: t(en, it),
78071
- value: same(value)
78677
+ value: same$1(value)
78072
78678
  };
78073
78679
  }
78074
78680
  function setpointSlider(id, cap, method, valueArg, value, range) {
@@ -78103,18 +78709,19 @@ var climateContribution = contribution("climate-control", ClimateControlStatusSc
78103
78709
  const status = climateStatusText(view);
78104
78710
  const facts = [];
78105
78711
  if (status !== null) facts.push(fact("climate", "thermometer", status));
78106
- if (view.humidity !== null) facts.push(fact("humidity", "droplets", same(`${Math.round(view.humidity)}%`)));
78107
- if (view.targetHumidity !== null) facts.push(fact("humidity", "droplets", same(`→ ${Math.round(view.targetHumidity)}%`)));
78712
+ if (view.humidity !== null) facts.push(fact("humidity", "droplets", same$1(`${Math.round(view.humidity)}%`)));
78713
+ if (view.targetHumidity !== null) facts.push(fact("humidity", "droplets", same$1(`→ ${Math.round(view.targetHumidity)}%`)));
78108
78714
  const left = [];
78109
78715
  const right = [];
78110
- if (view.measured !== null) left.push(tile("Indoor", "In casa", formatDegrees(view.measured)));
78111
- if (view.humidity !== null) left.push(tile("Humidity", "Umidità", `${Math.round(view.humidity)}%`));
78716
+ if (view.measured !== null) left.push(tile$1("Indoor", "In casa", formatDegrees(view.measured)));
78717
+ if (view.humidity !== null) left.push(tile$1("Humidity", "Umidità", `${Math.round(view.humidity)}%`));
78112
78718
  const modeControls = [{
78113
78719
  kind: "picker",
78114
78720
  id: "climate.mode",
78115
78721
  label: t("Mode", "Modalità"),
78116
78722
  current: view.mode,
78117
- options: [...view.availableModes],
78723
+ options: [...view.availableModes.filter((m) => m !== "off"), ...view.availableModes.filter((m) => m === "off")],
78724
+ optionLabels: modeLabelsOf(view.availableModes),
78118
78725
  call: {
78119
78726
  cap: "climate-control",
78120
78727
  method: "setMode",
@@ -78142,6 +78749,7 @@ var climateContribution = contribution("climate-control", ClimateControlStatusSc
78142
78749
  label: t("Fan", "Ventola"),
78143
78750
  current: slice.fanMode === "" ? null : slice.fanMode,
78144
78751
  options: [...slice.availableFanModes],
78752
+ optionLabels: Object.fromEntries(slice.availableFanModes.map((m) => [m, fanLabelOf(m)])),
78145
78753
  call: {
78146
78754
  cap: "climate-control",
78147
78755
  method: "setFanMode",
@@ -78167,14 +78775,15 @@ var climateContribution = contribution("climate-control", ClimateControlStatusSc
78167
78775
  if (fanControls.length > 0) rows.push({
78168
78776
  id: "climate-fan",
78169
78777
  icon: "fan",
78170
- status: slice.fanMode === "" ? null : same(slice.fanMode),
78778
+ status: slice.fanMode === "" ? null : same$1(slice.fanMode),
78171
78779
  controls: fanControls
78172
78780
  });
78173
- 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)));
78781
+ 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)));
78174
78782
  const sceneMode = view.sceneMode;
78175
78783
  return {
78176
78784
  reading: reading("climate-control", view.isOff ? "off" : "on"),
78177
78785
  title: view.modeLabel,
78786
+ ...view.isOff || slice.fanMode === "" ? {} : { caption: t(`${view.modeLabel.en} · fan ${fanLabelOf(slice.fanMode).en}`, `${view.modeLabel.it} · ventola ${fanLabelOf(slice.fanMode).it}`) },
78178
78787
  facts,
78179
78788
  ...left.length === 0 && right.length === 0 ? {} : { tiles: {
78180
78789
  left,
@@ -78201,7 +78810,7 @@ var WATER_ON_PREFERENCE = [
78201
78810
  "performance"
78202
78811
  ];
78203
78812
  function capitalised(word) {
78204
- return same(word.charAt(0).toUpperCase() + word.slice(1).replace(/_/g, " "));
78813
+ return same$1(word.charAt(0).toUpperCase() + word.slice(1).replace(/_/g, " "));
78205
78814
  }
78206
78815
  var waterHeaterContribution = contribution("water-heater", WaterHeaterStatusSchema, (slice) => {
78207
78816
  if (slice === void 0 || slice.operationMode === null) return { reading: reading("climate-control", "unknown") };
@@ -78238,13 +78847,13 @@ var waterHeaterContribution = contribution("water-heater", WaterHeaterStatusSche
78238
78847
  icon: "flame",
78239
78848
  status: label,
78240
78849
  controls: modeControls
78241
- }, ...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))];
78850
+ }, ...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))];
78242
78851
  const level = levelWithin(slice.targetTemp, range);
78243
78852
  return {
78244
78853
  reading: reading("climate-control", isOff ? "off" : "on"),
78245
78854
  title: label,
78246
78855
  facts: status === null ? [] : [fact("climate", "flame", status)],
78247
- ...slice.currentTemp === null ? {} : { tiles: { left: [tile("Water", "Acqua", formatDegrees(slice.currentTemp))] } },
78856
+ ...slice.currentTemp === null ? {} : { tiles: { left: [tile$1("Water", "Acqua", formatDegrees(slice.currentTemp))] } },
78248
78857
  scene: {
78249
78858
  ...isOff ? {} : { mode: "heat" },
78250
78859
  ...level === null ? {} : { level }
@@ -78262,11 +78871,12 @@ var waterHeaterContribution = contribution("water-heater", WaterHeaterStatusSche
78262
78871
  var heatingValveContribution = contribution("heating-valve", HeatingValveStatusSchema, (slice) => {
78263
78872
  const position = slice?.position ?? null;
78264
78873
  if (position === null) return { reading: reading("sensor", "unknown") };
78265
- const text = same(`${Math.round(position)}%`);
78874
+ const text = same$1(`${Math.round(position)}%`);
78266
78875
  return {
78267
78876
  reading: reading("sensor", position > 0 ? "running" : "idle"),
78268
78877
  facts: [fact("valve", "gauge", t(`Valve ${text.en}`, `Valvola ${text.it}`))],
78269
- tiles: { right: [tile("Valve", "Valvola", text.en)] },
78878
+ tiles: { right: [tile$1("Valve", "Valvola", text.en)] },
78879
+ ...position > 0 ? { caption: t(`Heating · valve ${text.en}`, `Riscalda · valvola ${text.it}`) } : {},
78270
78880
  scene: { level: position / 100 }
78271
78881
  };
78272
78882
  });
@@ -78275,9 +78885,9 @@ function sensorFragment(value, id, icon, en, it, text) {
78275
78885
  if (value === null) return { reading: reading("sensor", "unknown") };
78276
78886
  return {
78277
78887
  reading: reading("sensor", "on"),
78278
- title: same(text),
78279
- facts: [fact(id, icon, same(text))],
78280
- tiles: { right: [tile(en, it, text)] }
78888
+ title: same$1(text),
78889
+ facts: [fact(id, icon, same$1(text))],
78890
+ tiles: { right: [tile$1(en, it, text)] }
78281
78891
  };
78282
78892
  }
78283
78893
  var temperatureContribution = contribution("temperature-sensor", TemperatureSensorStatusSchema, (slice) => sensorFragment(slice?.temperature ?? null, "temperature", "thermometer", "Temperature", "Temperatura", formatDegrees(slice?.temperature ?? 0)));
@@ -78332,8 +78942,8 @@ var CLIMATE_FAMILY_CONTRIBUTIONS = {
78332
78942
  return {
78333
78943
  reading: reading("sensor", "on"),
78334
78944
  ...slice.aqi === void 0 ? {} : { title: airQualityWord(slice.aqi) },
78335
- facts: parts.map((p) => fact("air-quality", "wind", same(`${p.label} ${p.value}`))),
78336
- tiles: { right: parts.slice(0, 2).map((p) => tile(p.label, p.label, p.value)) }
78945
+ facts: parts.map((p) => fact("air-quality", "wind", same$1(`${p.label} ${p.value}`))),
78946
+ tiles: { right: parts.slice(0, 2).map((p) => tile$1(p.label, p.label, p.value)) }
78337
78947
  };
78338
78948
  }),
78339
78949
  "carbon-monoxide": contribution("carbon-monoxide", CarbonMonoxideStatusSchema, (slice) => {
@@ -78348,15 +78958,264 @@ var CLIMATE_FAMILY_CONTRIBUTIONS = {
78348
78958
  "numeric-sensor": numericContribution,
78349
78959
  "enum-sensor": enumContribution
78350
78960
  };
78961
+ /**
78962
+ * The heat pump's contribution to a hero (D1026): the compressor scene, every
78963
+ * circuit as a row with its own label and icon, the powers as pills (the
78964
+ * instantaneous COP only when both powers are known) and a "System" group with
78965
+ * one selector per mode. Values and their limits come from the slice, which the
78966
+ * gateway filled: a selector with no allowed value is not drawn, a missing
78967
+ * reading is never a 0 (D393).
78968
+ */
78969
+ var CAP = "heat-pump-control";
78970
+ var same = (text) => t(text, text);
78971
+ /** The words of the values the gateway names; a value not listed is drawn as the gateway wrote it. */
78972
+ var VALUE_LABELS = {
78973
+ off: t("Off", "Off"),
78974
+ on: t("On", "On"),
78975
+ auto: t("Auto", "Auto"),
78976
+ manual: t("Manual", "Manuale"),
78977
+ low: t("Low", "Bassa"),
78978
+ high: t("High", "Alta"),
78979
+ eco: t("Eco", "Eco"),
78980
+ heat: t("Heat", "Caldo"),
78981
+ cool: t("Cool", "Freddo"),
78982
+ heatCool: t("Heat/cool", "Caldo/freddo"),
78983
+ ownprogram: t("Programme", "Programma")
78984
+ };
78985
+ function valueLabel(value) {
78986
+ const known = VALUE_LABELS[value];
78987
+ if (known !== void 0) return known;
78988
+ const holiday = /^hm(\d+)$/.exec(value);
78989
+ if (holiday?.[1] !== void 0) return t(`Programme ${holiday[1]}`, `Programma ${holiday[1]}`);
78990
+ return same(value);
78991
+ }
78992
+ function optionLabels(allowed) {
78993
+ return Object.fromEntries(allowed.map((value) => [value, valueLabel(value)]));
78994
+ }
78995
+ function picker(id, label, setting, method, args, valueArg = "mode") {
78996
+ return {
78997
+ kind: "picker",
78998
+ id,
78999
+ label,
79000
+ current: setting.value,
79001
+ options: [...setting.allowed],
79002
+ optionLabels: optionLabels(setting.allowed),
79003
+ call: {
79004
+ cap: CAP,
79005
+ method,
79006
+ args: { ...args }
79007
+ },
79008
+ valueArg
79009
+ };
79010
+ }
79011
+ /** A selector exists only where the gateway named values to choose from. */
79012
+ function choosable(setting) {
79013
+ return setting !== null && setting.allowed.length > 0;
79014
+ }
79015
+ function circuitControl(circuit) {
79016
+ const args = { circuitId: circuit.id };
79017
+ if (circuit.kind === "dhw" && choosable(circuit.temperatureLevel)) return picker(`heat-pump.${circuit.id}.level`, t("Level", "Livello"), circuit.temperatureLevel, "setDhwTemperatureLevel", args, "level");
79018
+ if (!choosable(circuit.operationMode)) return null;
79019
+ const method = circuit.kind === "dhw" ? "setDhwOperationMode" : "setCircuitOperationMode";
79020
+ return picker(`heat-pump.${circuit.id}.mode`, t("Mode", "Modalità"), circuit.operationMode, method, args);
79021
+ }
79022
+ /** A circuit with no reading is still a row: it shows that nothing is known, not nothing. */
79023
+ var UNKNOWN_STATUS = same("—");
79024
+ function circuitRow(circuit) {
79025
+ const control = circuitControl(circuit);
79026
+ const status = thermalStatusText(circuit.targetTemp, circuit.currentTemp) ?? UNKNOWN_STATUS;
79027
+ return {
79028
+ id: "circuit",
79029
+ label: same(circuit.label),
79030
+ icon: circuit.icon,
79031
+ status,
79032
+ controls: control === null ? [] : [control]
79033
+ };
79034
+ }
79035
+ var kilowatts = (watts) => `${Number((watts / 1e3).toFixed(2))} kW`;
79036
+ function powerPills(status) {
79037
+ const { thermalW, electricalW } = status.power;
79038
+ const cop = heatPumpInstantCop(status.power);
79039
+ const pills = [];
79040
+ if (thermalW !== null) pills.push({
79041
+ icon: "flame",
79042
+ text: t(`Thermal ${kilowatts(thermalW)}`, `Termica ${kilowatts(thermalW)}`),
79043
+ tone: "muted"
79044
+ });
79045
+ if (electricalW !== null) pills.push({
79046
+ icon: "zap",
79047
+ text: t(`Electrical ${kilowatts(electricalW)}`, `Elettrica ${kilowatts(electricalW)}`),
79048
+ tone: "muted"
79049
+ });
79050
+ if (cop !== null) {
79051
+ const text = String(Number(cop.toFixed(1)));
79052
+ pills.push({
79053
+ icon: "gauge",
79054
+ text: t(`Instantaneous COP ${text}`, `COP istantaneo ${text}`),
79055
+ tone: "success"
79056
+ });
79057
+ }
79058
+ return pills;
79059
+ }
79060
+ /** The independent system modes, in the order the card draws them. */
79061
+ var SYSTEM_MODES = [
79062
+ {
79063
+ key: "silent",
79064
+ label: t("Silent", "Silenzioso"),
79065
+ icon: "volume-x",
79066
+ method: "setSilentMode"
79067
+ },
79068
+ {
79069
+ key: "away",
79070
+ label: t("Away", "Assente"),
79071
+ icon: "plane",
79072
+ method: "setAwayMode"
79073
+ },
79074
+ {
79075
+ key: "additionalHeater",
79076
+ label: t("Additional heater", "Riscaldatore aggiuntivo"),
79077
+ icon: "flame",
79078
+ method: "setAdditionalHeaterMode"
79079
+ },
79080
+ {
79081
+ key: "holiday",
79082
+ label: t("Holiday", "Vacanza"),
79083
+ icon: "tree-palm",
79084
+ method: "setHolidayMode"
79085
+ }
79086
+ ];
79087
+ var SYSTEM_GROUP = t("System", "Sistema");
79088
+ var PROGRAMME = /^hm\d+$/;
79089
+ /**
79090
+ * Holiday is two segments, off / programme. Choosing "programme" keeps the programme
79091
+ * that is set, else the first one the gateway allowed, so a write never leaves
79092
+ * `allowed`. The full hm1..hm8 pick is not in the hero (D1026). A holiday whose values
79093
+ * are not programmes keeps the plain selector.
79094
+ */
79095
+ function holidayRow(def, setting) {
79096
+ if (!setting.allowed.includes("off")) return null;
79097
+ const current = setting.value !== null && PROGRAMME.test(setting.value) ? setting.value : null;
79098
+ const programme = current ?? setting.allowed.find((v) => PROGRAMME.test(v));
79099
+ if (programme === void 0) return null;
79100
+ const control = picker("heat-pump.system.holiday", def.label, {
79101
+ value: setting.value,
79102
+ allowed: ["off", programme]
79103
+ }, def.method, {});
79104
+ const number = programme.slice(2);
79105
+ return {
79106
+ id: "system-mode",
79107
+ label: def.label,
79108
+ group: SYSTEM_GROUP,
79109
+ icon: def.icon,
79110
+ status: current === null ? null : t(`Programme ${number}`, `Programma ${number}`),
79111
+ controls: [control.kind === "picker" ? {
79112
+ ...control,
79113
+ optionLabels: {
79114
+ off: t("Off", "Off"),
79115
+ [programme]: t("Programme", "Programma")
79116
+ }
79117
+ } : control]
79118
+ };
79119
+ }
79120
+ function systemRows(status) {
79121
+ const rows = [];
79122
+ for (const def of SYSTEM_MODES) {
79123
+ const setting = status.system[def.key];
79124
+ if (!choosable(setting)) continue;
79125
+ if (def.key === "holiday") {
79126
+ const holiday = holidayRow(def, setting);
79127
+ if (holiday !== null) {
79128
+ rows.push(holiday);
79129
+ continue;
79130
+ }
79131
+ }
79132
+ rows.push({
79133
+ id: "system-mode",
79134
+ label: def.label,
79135
+ group: SYSTEM_GROUP,
79136
+ icon: def.icon,
79137
+ status: null,
79138
+ controls: [picker(`heat-pump.system.${def.key}`, def.label, setting, def.method, {})]
79139
+ });
79140
+ }
79141
+ return rows;
79142
+ }
79143
+ function tile(en, it, value) {
79144
+ return {
79145
+ label: t(en, it),
79146
+ value: same(value)
79147
+ };
79148
+ }
79149
+ function tilesOf$1(status) {
79150
+ const { supply, return: back, outdoor } = status.temperatures;
79151
+ const left = [];
79152
+ const right = [];
79153
+ if (supply !== null) left.push(tile("Supply", "Mandata", formatDegrees(supply)));
79154
+ if (back !== null) left.push(tile("Return", "Ritorno", formatDegrees(back)));
79155
+ if (outdoor !== null) right.push(tile("Outdoor", "Esterna", formatDegrees(outdoor)));
79156
+ if (status.waterPressureBar !== null) right.push(tile("Pressure", "Pressione", `${Number(status.waterPressureBar.toFixed(1))} bar`));
79157
+ return {
79158
+ left,
79159
+ right
79160
+ };
79161
+ }
79162
+ function isRunning(status) {
79163
+ const { compressorPct, electricalW } = status.power;
79164
+ if (compressorPct !== null) return compressorPct > 0;
79165
+ if (electricalW !== null) return electricalW > 0;
79166
+ return null;
79167
+ }
79168
+ var HEAT_PUMP_FAMILY_CONTRIBUTIONS = { "heat-pump-status": contribution("heat-pump-status", HeatPumpStatusSchema, (slice) => {
79169
+ if (slice === void 0) return { reading: reading("climate-control", "unknown") };
79170
+ const running = isRunning(slice);
79171
+ const facts = [];
79172
+ if (slice.power.electricalW !== null) facts.push(fact("power", "zap", same(`${Math.round(slice.power.electricalW)} W`)));
79173
+ if (slice.power.compressorPct !== null) facts.push(fact("level", "gauge", t(`Compressor ${Math.round(slice.power.compressorPct)} %`, `Compressore ${Math.round(slice.power.compressorPct)} %`)));
79174
+ const charging = slice.circuits.find((c) => c.active === true);
79175
+ const tiles = tilesOf$1(slice);
79176
+ const pills = powerPills(slice);
79177
+ const rows = [
79178
+ ...slice.circuits.map(circuitRow),
79179
+ ...pills.length === 0 ? [] : [{
79180
+ id: "heat-pump-power",
79181
+ icon: "zap",
79182
+ status: null,
79183
+ controls: [],
79184
+ pills: [...pills]
79185
+ }],
79186
+ ...systemRows(slice)
79187
+ ];
79188
+ return {
79189
+ reading: reading("climate-control", running === true ? "running" : running === false ? "idle" : "on"),
79190
+ title: t("Heat pump", "Pompa di calore"),
79191
+ ...charging === void 0 ? {} : { caption: t(`${charging.label} · heating`.toUpperCase(), `${charging.label} · in riscaldamento`.toUpperCase()) },
79192
+ facts,
79193
+ ...tiles.left.length === 0 && tiles.right.length === 0 ? {} : { tiles },
79194
+ ...slice.power.electricalW === null ? {} : { consumption: {
79195
+ priority: 1,
79196
+ slot: {
79197
+ kind: "power",
79198
+ watts: slice.power.electricalW,
79199
+ detail: slice.power.thermalW === null ? [] : [{
79200
+ label: t("Thermal", "Termica"),
79201
+ value: Math.round(slice.power.thermalW),
79202
+ unit: "W"
79203
+ }]
79204
+ }
79205
+ } },
79206
+ rows
79207
+ };
79208
+ }) };
78351
79209
  [
78352
79210
  ...Object.values(ACCESS_FAMILY_CONTRIBUTIONS),
78353
79211
  ...Object.values(DEVICES_FAMILY_CONTRIBUTIONS),
78354
79212
  ...Object.values(GROUPS_FAMILY_CONTRIBUTIONS),
78355
79213
  ...Object.values(ACTUATORS_FAMILY_CONTRIBUTIONS),
78356
79214
  ...Object.values(SENSORS_FAMILY_CONTRIBUTIONS),
78357
- ...Object.values(CLIMATE_FAMILY_CONTRIBUTIONS)
79215
+ ...Object.values(CLIMATE_FAMILY_CONTRIBUTIONS),
79216
+ ...Object.values(HEAT_PUMP_FAMILY_CONTRIBUTIONS)
78358
79217
  ];
78359
- 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;
79218
+ 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;
78360
79219
  /**
78361
79220
  * Who looks like what (D1023). One look per {@link DeviceType}, refined by a
78362
79221
  * {@link DeviceRole} where the role changes how the device reads (a leak
@@ -78746,7 +79605,7 @@ lookOf({
78746
79605
  ({ ...lookOf({
78747
79606
  icon: "shield-check",
78748
79607
  on: [
78749
- "success",
79608
+ "danger",
78750
79609
  "glow",
78751
79610
  "halo"
78752
79611
  ],
@@ -78984,8 +79843,24 @@ lookOf({
78984
79843
  idle: INFO,
78985
79844
  standby: MUTED
78986
79845
  });
79846
+ lookOf({
79847
+ icon: "thermometer-sun",
79848
+ on: [
79849
+ "warning",
79850
+ "heat-rise",
79851
+ "rise"
79852
+ ],
79853
+ off: MUTED,
79854
+ running: [
79855
+ "warning",
79856
+ "heat-rise",
79857
+ "rise"
79858
+ ],
79859
+ idle: INFO,
79860
+ standby: MUTED
79861
+ });
78987
79862
  DeviceType.Climate, DeviceType.Thermostat;
78988
- 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;
79863
+ 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;
78989
79864
  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;
78990
79865
  Object.freeze({
78991
79866
  "accessories.getStatus": {
@@ -81151,6 +82026,13 @@ Object.freeze({
81151
82026
  access: "create",
81152
82027
  role: "admin"
81153
82028
  },
82029
+ "deviceManager.checkDeviceTemplates": {
82030
+ capName: "device-manager",
82031
+ capScope: "system",
82032
+ addonId: null,
82033
+ access: "view",
82034
+ role: "admin"
82035
+ },
81154
82036
  "deviceManager.cleanupDeletedDevicesData": {
81155
82037
  capName: "device-manager",
81156
82038
  capScope: "system",
@@ -81550,6 +82432,13 @@ Object.freeze({
81550
82432
  access: "create",
81551
82433
  role: "admin"
81552
82434
  },
82435
+ "deviceManager.renderDeviceTemplates": {
82436
+ capName: "device-manager",
82437
+ capScope: "system",
82438
+ addonId: null,
82439
+ access: "view",
82440
+ role: "admin"
82441
+ },
81553
82442
  "deviceManager.reportDiscoveryObservations": {
81554
82443
  capName: "device-manager",
81555
82444
  capScope: "system",
@@ -82481,6 +83370,111 @@ Object.freeze({
82481
83370
  access: "view",
82482
83371
  role: "viewer"
82483
83372
  },
83373
+ "heatPumpControl.setAdditionalHeaterMode": {
83374
+ capName: "heat-pump-control",
83375
+ capScope: "device",
83376
+ addonId: null,
83377
+ access: "create",
83378
+ role: "viewer"
83379
+ },
83380
+ "heatPumpControl.setAwayMode": {
83381
+ capName: "heat-pump-control",
83382
+ capScope: "device",
83383
+ addonId: null,
83384
+ access: "create",
83385
+ role: "viewer"
83386
+ },
83387
+ "heatPumpControl.setCircuitComfortSetpoint": {
83388
+ capName: "heat-pump-control",
83389
+ capScope: "device",
83390
+ addonId: null,
83391
+ access: "create",
83392
+ role: "viewer"
83393
+ },
83394
+ "heatPumpControl.setCircuitEcoSetpoint": {
83395
+ capName: "heat-pump-control",
83396
+ capScope: "device",
83397
+ addonId: null,
83398
+ access: "create",
83399
+ role: "viewer"
83400
+ },
83401
+ "heatPumpControl.setCircuitHeatCoolMode": {
83402
+ capName: "heat-pump-control",
83403
+ capScope: "device",
83404
+ addonId: null,
83405
+ access: "create",
83406
+ role: "viewer"
83407
+ },
83408
+ "heatPumpControl.setCircuitMaxFlowTemp": {
83409
+ capName: "heat-pump-control",
83410
+ capScope: "device",
83411
+ addonId: null,
83412
+ access: "create",
83413
+ role: "viewer"
83414
+ },
83415
+ "heatPumpControl.setCircuitOperationMode": {
83416
+ capName: "heat-pump-control",
83417
+ capScope: "device",
83418
+ addonId: null,
83419
+ access: "create",
83420
+ role: "viewer"
83421
+ },
83422
+ "heatPumpControl.setCircuitSummerWinter": {
83423
+ capName: "heat-pump-control",
83424
+ capScope: "device",
83425
+ addonId: null,
83426
+ access: "create",
83427
+ role: "viewer"
83428
+ },
83429
+ "heatPumpControl.setDhwChargeDuration": {
83430
+ capName: "heat-pump-control",
83431
+ capScope: "device",
83432
+ addonId: null,
83433
+ access: "create",
83434
+ role: "viewer"
83435
+ },
83436
+ "heatPumpControl.setDhwOperationMode": {
83437
+ capName: "heat-pump-control",
83438
+ capScope: "device",
83439
+ addonId: null,
83440
+ access: "create",
83441
+ role: "viewer"
83442
+ },
83443
+ "heatPumpControl.setDhwTemperatureLevel": {
83444
+ capName: "heat-pump-control",
83445
+ capScope: "device",
83446
+ addonId: null,
83447
+ access: "create",
83448
+ role: "viewer"
83449
+ },
83450
+ "heatPumpControl.setHolidayMode": {
83451
+ capName: "heat-pump-control",
83452
+ capScope: "device",
83453
+ addonId: null,
83454
+ access: "create",
83455
+ role: "viewer"
83456
+ },
83457
+ "heatPumpControl.setSilentMode": {
83458
+ capName: "heat-pump-control",
83459
+ capScope: "device",
83460
+ addonId: null,
83461
+ access: "create",
83462
+ role: "viewer"
83463
+ },
83464
+ "heatPumpControl.startExtraHotWater": {
83465
+ capName: "heat-pump-control",
83466
+ capScope: "device",
83467
+ addonId: null,
83468
+ access: "create",
83469
+ role: "viewer"
83470
+ },
83471
+ "heatPumpStatus.getStatus": {
83472
+ capName: "heat-pump-status",
83473
+ capScope: "device",
83474
+ addonId: null,
83475
+ access: "view",
83476
+ role: "viewer"
83477
+ },
82484
83478
  "heroLayout.getHeroModel": {
82485
83479
  capName: "hero-layout",
82486
83480
  capScope: "system",
@@ -89320,7 +90314,7 @@ function projectAction(cap, action) {
89320
90314
  };
89321
90315
  }
89322
90316
  Object.entries(CAP_VOCABULARY_BY_NAME).flatMap(([cap, entry]) => entry.scope === "device" ? (entry.actions ?? []).map((a) => projectAction(cap, a)) : []);
89323
- 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;
90317
+ 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;
89324
90318
  DeviceFeature.BatteryOperated;
89325
90319
  DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher;
89326
90320
  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.";
@@ -89361,7 +90355,6 @@ function offered(received) {
89361
90355
  };
89362
90356
  }
89363
90357
  offered(HA_AS), withheld(HOMEKIT_REASON), withheld(ALEXA_REASON), withheld(GOOGLE_REASON), withheld(MATTER_REASON);
89364
- string().min(1).max(4096);
89365
90358
  Object.freeze({
89366
90359
  "accessories.getStatus": [{
89367
90360
  name: "deviceId",
@@ -90444,6 +91437,81 @@ Object.freeze({
90444
91437
  form: "single",
90445
91438
  optional: false
90446
91439
  }],
91440
+ "heatPumpControl.setAdditionalHeaterMode": [{
91441
+ name: "deviceId",
91442
+ form: "single",
91443
+ optional: false
91444
+ }],
91445
+ "heatPumpControl.setAwayMode": [{
91446
+ name: "deviceId",
91447
+ form: "single",
91448
+ optional: false
91449
+ }],
91450
+ "heatPumpControl.setCircuitComfortSetpoint": [{
91451
+ name: "deviceId",
91452
+ form: "single",
91453
+ optional: false
91454
+ }],
91455
+ "heatPumpControl.setCircuitEcoSetpoint": [{
91456
+ name: "deviceId",
91457
+ form: "single",
91458
+ optional: false
91459
+ }],
91460
+ "heatPumpControl.setCircuitHeatCoolMode": [{
91461
+ name: "deviceId",
91462
+ form: "single",
91463
+ optional: false
91464
+ }],
91465
+ "heatPumpControl.setCircuitMaxFlowTemp": [{
91466
+ name: "deviceId",
91467
+ form: "single",
91468
+ optional: false
91469
+ }],
91470
+ "heatPumpControl.setCircuitOperationMode": [{
91471
+ name: "deviceId",
91472
+ form: "single",
91473
+ optional: false
91474
+ }],
91475
+ "heatPumpControl.setCircuitSummerWinter": [{
91476
+ name: "deviceId",
91477
+ form: "single",
91478
+ optional: false
91479
+ }],
91480
+ "heatPumpControl.setDhwChargeDuration": [{
91481
+ name: "deviceId",
91482
+ form: "single",
91483
+ optional: false
91484
+ }],
91485
+ "heatPumpControl.setDhwOperationMode": [{
91486
+ name: "deviceId",
91487
+ form: "single",
91488
+ optional: false
91489
+ }],
91490
+ "heatPumpControl.setDhwTemperatureLevel": [{
91491
+ name: "deviceId",
91492
+ form: "single",
91493
+ optional: false
91494
+ }],
91495
+ "heatPumpControl.setHolidayMode": [{
91496
+ name: "deviceId",
91497
+ form: "single",
91498
+ optional: false
91499
+ }],
91500
+ "heatPumpControl.setSilentMode": [{
91501
+ name: "deviceId",
91502
+ form: "single",
91503
+ optional: false
91504
+ }],
91505
+ "heatPumpControl.startExtraHotWater": [{
91506
+ name: "deviceId",
91507
+ form: "single",
91508
+ optional: false
91509
+ }],
91510
+ "heatPumpStatus.getStatus": [{
91511
+ name: "deviceId",
91512
+ form: "single",
91513
+ optional: false
91514
+ }],
90447
91515
  "heroLayout.getHeroModel": [{
90448
91516
  name: "deviceId",
90449
91517
  form: "single",
@@ -93761,7 +94829,7 @@ var AdminUIAddon = class extends BaseAddon {
93761
94829
  capability: adminUiCapability,
93762
94830
  provider: {
93763
94831
  getStaticDir: async () => ({ staticDir: resolveAdminUiDistDir() }),
93764
- getVersion: async () => ({ version: "1.2.627" })
94832
+ getVersion: async () => ({ version: "1.2.629" })
93765
94833
  }
93766
94834
  }];
93767
94835
  }