@camstack/addon-admin-ui 1.2.627 → 1.2.628

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/assets/Addons-DYXP9Vml.js +5 -0
  3. package/dist/assets/{AdminPage-BGjbZ_DP.js → AdminPage-D8jyd8NK.js} +1 -1
  4. package/dist/assets/{AdminSectionedPage-0BLzsere.js → AdminSectionedPage-BVfSxBNr.js} +1 -1
  5. package/dist/assets/AiProfiles-cx0x2sbl.js +3 -0
  6. package/dist/assets/{Authentication-BANp-rCQ.js → Authentication-C15V7E8r.js} +1 -1
  7. package/dist/assets/Build-goVTGENZ.js +39 -0
  8. package/dist/assets/Calendars-BwAVxLT1.js +1 -0
  9. package/dist/assets/{CameraGrids-BhMnY-U6.js → CameraGrids-DZskmHW3.js} +1 -1
  10. package/dist/assets/Cluster-B1_BYrrA.js +1 -0
  11. package/dist/assets/CompositionBlockEditor-BXmpBbjk.js +2 -0
  12. package/dist/assets/{CompositionEditorPage-Ry64j4qy.js → CompositionEditorPage-ewhTgbIT.js} +1 -1
  13. package/dist/assets/Data-CRPjnR7i.js +2 -0
  14. package/dist/assets/DeviceDetail-B5-2vX2l.js +2 -0
  15. package/dist/assets/{DeviceDoActionFields-fbxUHBmB.js → DeviceDoActionFields-C5X74bZ6.js} +1 -1
  16. package/dist/assets/{Devices-DTyTQ5cG.js → Devices-BZZZzZZt.js} +1 -1
  17. package/dist/assets/{EmbedPlayerPage-BHG81kfU.js → EmbedPlayerPage-B7SerkXI.js} +1 -1
  18. package/dist/assets/History-CB2UV29J.js +1 -0
  19. package/dist/assets/Identity-FncxI-3k.js +1 -0
  20. package/dist/assets/{InstanceSwitchCell-BE6j8roj.js → InstanceSwitchCell-DL1wNRqw.js} +1 -1
  21. package/dist/assets/InstancesTable-C9lW5ahJ.js +1 -0
  22. package/dist/assets/IntegrationDetail-CRgTh0vI.js +1 -0
  23. package/dist/assets/{IntegrationHub-Dh_MHAvj.js → IntegrationHub-itremyka.js} +1 -1
  24. package/dist/assets/Integrations-CKsDYSo_.js +2 -0
  25. package/dist/assets/Integrations-Doe4DOLd.js +1 -0
  26. package/dist/assets/Library-DZAOkZl5.js +1 -0
  27. package/dist/assets/Locations-BWYHqMs1.js +3 -0
  28. package/dist/assets/{Logs-BPm2952O.js → Logs-BtV5zfyp.js} +1 -1
  29. package/dist/assets/{MaskShapeCanvas-CaIwcviU.js → MaskShapeCanvas-C5NPlFTZ.js} +1 -1
  30. package/dist/assets/{MotionZonesSettings-B8humXZO.js → MotionZonesSettings-DBiJiDpA.js} +1 -1
  31. package/dist/assets/{MyAccess-IwGnqYJk.js → MyAccess-Dn6aOrRH.js} +1 -1
  32. package/dist/assets/Network-Bb5q027q.js +1 -0
  33. package/dist/assets/{NodeAddonsSettingsPanel-Ch9_AwqF.js → NodeAddonsSettingsPanel-B2CB5Cql.js} +1 -1
  34. package/dist/assets/Notifications-B96nhFZS.js +1 -0
  35. package/dist/assets/Pipeline-DGVG0VZc.js +1 -0
  36. package/dist/assets/{PrivacyMaskSettings-DdMBB4Li.js → PrivacyMaskSettings-Cxcz6fqW.js} +1 -1
  37. package/dist/assets/Recordings-DwBtl1P7.js +1 -0
  38. package/dist/assets/{ScanSubnetEditor-DEYVzz3F.js → ScanSubnetEditor-Om5o0_fX.js} +1 -1
  39. package/dist/assets/{SceneMonitorEditor-BsbHr1g7.js → SceneMonitorEditor-C3Ht01Y_.js} +1 -1
  40. package/dist/assets/SessionsList-CLJLWiDV.js +2 -0
  41. package/dist/assets/{Showroom-CgyJscUi.js → Showroom-DHls8MSr.js} +1 -1
  42. package/dist/assets/{StorageLocationsTable-DcJtsyAI.js → StorageLocationsTable-Ch3ABRRX.js} +1 -1
  43. package/dist/assets/System-DTVt3mqw.js +1 -0
  44. package/dist/assets/{Templates-lRI27MQE.js → Templates-DSIFW4Sg.js} +1 -1
  45. package/dist/assets/{Terminal-BhSCbzcJ.js → Terminal-DtQsE9UM.js} +3 -3
  46. package/dist/assets/{TrainingProviders-BDa6e9MH.js → TrainingProviders-d3o_ZKQJ.js} +1 -1
  47. package/dist/assets/{Viewer-CkpAWx9q.js → Viewer-630uaAn-.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-CCci1-8S.js} +1 -1
  49. package/dist/assets/{ai-page.helpers-DSmy92dV.js → ai-page.helpers-DYP6h9NO.js} +1 -1
  50. package/dist/assets/{archive-CfaRqsyD.js → archive-JrYGCSml.js} +1 -1
  51. package/dist/assets/{assignment-candidates-BbMu5YB7.js → assignment-candidates-Bg8uFhC2.js} +1 -1
  52. package/dist/assets/{authed-media-BXlwKDeE.js → authed-media-Bf-hw8ZZ.js} +1 -1
  53. package/dist/assets/{bell-off-BxDCQl12.js → bell-off-Bpmfs7A4.js} +1 -1
  54. package/dist/assets/{board-model-I1a0N13b.js → board-model-C4Q-Tf8g.js} +1 -1
  55. package/dist/assets/{boxes-Q4Vaj8rD.js → boxes-li1RD5xe.js} +1 -1
  56. package/dist/assets/{calendar-clock-CXL7OclM.js → calendar-clock-DztRh5OG.js} +1 -1
  57. package/dist/assets/circle-arrow-up-CZgLptGX.js +1 -0
  58. package/dist/assets/circle-slash-xZwqd0BU.js +1 -0
  59. package/dist/assets/client-BGa0ynTX.js +809 -0
  60. package/dist/assets/{create-composition-Dm3hnlaE.js → create-composition-D8ndL58S.js} +2 -2
  61. package/dist/assets/crop-BoVOvHci.js +1 -0
  62. package/dist/assets/{database-zap-By2T-LnV.js → database-zap-D5EwGo_g.js} +1 -1
  63. package/dist/assets/{device-integration-icon-DxdEgan-.js → device-integration-icon-C4Qf-4Rd.js} +1 -1
  64. package/dist/assets/device-picker-model-LnwJcnrH.js +1 -0
  65. package/dist/assets/{dist-Dqaqf70C.js → dist-COIeUAeS.js} +1 -1
  66. package/dist/assets/dist-ClneX5Rj.js +809 -0
  67. package/dist/assets/{eraser-VwId2IQr.js → eraser-CrZ4yaiD.js} +1 -1
  68. package/dist/assets/{file-up-DQifBI2e.js → file-up-CCndGa8K.js} +1 -1
  69. package/dist/assets/{format-CU8vLl_T.js → format-vZthOBDI.js} +1 -1
  70. package/dist/assets/{hard-drive-download-CQruQQxy.js → hard-drive-download-BOts87eq.js} +1 -1
  71. package/dist/assets/{hostInit-D3bru2MD.js → hostInit-KnMePivw.js} +1 -1
  72. package/dist/assets/i18n-CKtnf08g.js +1 -0
  73. package/dist/assets/icons-DzRQ57dB.js +1 -0
  74. package/dist/assets/index-DCQq1ksG.js +4 -0
  75. package/dist/assets/index-cBkBJKJv.css +2 -0
  76. package/dist/assets/{key-B35noUmR.js → key-DlDr1x_1.js} +1 -1
  77. package/dist/assets/{key-square-DzO9u0uD.js → key-square-Dg-fQSMX.js} +1 -1
  78. package/dist/assets/{layers-BG9W-1M5.js → layers-qknQ4SI0.js} +1 -1
  79. package/dist/assets/{link-2-off-Co-R-jQs.js → link-2-off-ClQoCkvl.js} +1 -1
  80. package/dist/assets/{linked-devices-model-uwG0psGj.js → linked-devices-model-BxDwmRW0.js} +1 -1
  81. package/dist/assets/{list-ordered-DIKai4La.js → list-ordered-DK6yrsuq.js} +1 -1
  82. package/dist/assets/{memory-stick-CIR0HAOO.js → memory-stick-4bgTdR1n.js} +1 -1
  83. package/dist/assets/{message-square-plus-DOdNu6ys.js → message-square-plus-Bv2lcMzp.js} +1 -1
  84. package/dist/assets/{mf-entry-bootstrap-0-686859d1.js → mf-entry-bootstrap-0-9a11aec7.js} +2 -2
  85. package/dist/assets/{mic-off-BiujQ8W3.js → mic-off-CwdWl1x4.js} +1 -1
  86. package/dist/assets/{monitor-off-7S_2iZ-C.js → monitor-off-Ccscg8YU.js} +1 -1
  87. package/dist/assets/{monitor-smartphone-BLCTjHAL.js → monitor-smartphone-C8BeBYyf.js} +1 -1
  88. package/dist/assets/mount-LnwJcnrH.js +1 -0
  89. package/dist/assets/{notification-rule-status-Cb4jx34Y.js → notification-rule-status-BrmTbrp9.js} +1 -1
  90. package/dist/assets/player-overlays-BPvPXIk8.js +1 -0
  91. package/dist/assets/remoteEntry-Bfe_8orj.js +1 -0
  92. package/dist/assets/{ruler-BeM-m4O5.js → ruler-CH-94_uK.js} +1 -1
  93. package/dist/assets/{tv-BXIsODbK.js → scan-eye-D_sweDOa.js} +1 -1
  94. package/dist/assets/{scissors-DY0_cgnp.js → scissors-DPQ0H7Hw.js} +1 -1
  95. package/dist/assets/{search-x-_pziDXsR.js → search-x-Bcr_N2Jd.js} +1 -1
  96. package/dist/assets/{send-CUC0A2_t.js → send-dBvBmsQA.js} +1 -1
  97. package/dist/assets/{settings-2-BSRK8TEC.js → settings-2-CUqyfTbY.js} +1 -1
  98. package/dist/assets/{shapes-BN2HBJ_3.js → shapes-1kA4AD87.js} +1 -1
  99. package/dist/assets/{sigma-DfN2Jhy4.js → sigma--1BGzaqj.js} +1 -1
  100. package/dist/assets/src-Bgosi05F.js +169 -0
  101. package/dist/assets/{sso-popup-Ch2mRf6V.js → sso-popup-BGoesDjS.js} +1 -1
  102. package/dist/assets/{step-inspector-model-DKYOqORK.js → step-inspector-model-XS8YChH9.js} +1 -1
  103. package/dist/assets/{table-2-gx6_SlYD.js → table-2-CilKmwQl.js} +1 -1
  104. package/dist/assets/{timer-reset-Iy3ZgMXB.js → timer-reset-D4i4Gq1v.js} +1 -1
  105. package/dist/assets/{unlink-B_U8L0Wx.js → unlink-D4LV8ueN.js} +1 -1
  106. package/dist/assets/{usb-OCXp5uEl.js → usb-CReSdVpL.js} +1 -1
  107. package/dist/assets/{use-device-bound-caps-BOAx-vk3.js → use-device-bound-caps-D1IKyog8.js} +1 -1
  108. package/dist/assets/{use-scenes-feed--8rfo18P.js → use-scenes-feed-Ch0tafaX.js} +1 -1
  109. package/dist/assets/{use-stationary-objects-CZE5lmtm.js → use-stationary-objects-YYdmB4ug.js} +1 -1
  110. package/dist/assets/{useAdminDeviceRemoval-D2MzHW1R.js → useAdminDeviceRemoval-BFZd48u8.js} +1 -1
  111. package/dist/assets/useEventInvalidation-LnwJcnrH.js +1 -0
  112. package/dist/assets/{useNodeUrlSelection-DtbPWifx.js → useNodeUrlSelection-DuUq732x.js} +1 -1
  113. package/dist/assets/useTemplateSave-DB88BNeY.js +1 -0
  114. package/dist/assets/user-round-DeoBP4Ew.js +1 -0
  115. package/dist/assets/{user-x-7OBQLt0v.js → user-x-o0ouhQrV.js} +1 -1
  116. package/dist/assets/{variable-CuVMBdXX.js → variable-BER3ndF7.js} +1 -1
  117. package/dist/assets/{video-Cae__dYz.js → video-Cifrbvwj.js} +1 -1
  118. 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_-ET0QdTsB.js} +2 -2
  119. package/dist/index.html +10 -11
  120. package/dist/server/addon.js +1012 -78
  121. package/package.json +2 -2
  122. package/dist/assets/Addons-cUjIvOvT.js +0 -5
  123. package/dist/assets/AiProfiles-BmCrxSUR.js +0 -3
  124. package/dist/assets/Build-CshYezTz.js +0 -39
  125. package/dist/assets/Calendars-nijSSBBn.js +0 -1
  126. package/dist/assets/Cluster-e11_2684.js +0 -1
  127. package/dist/assets/CompositionBlockEditor-Tlz_skRr.js +0 -2
  128. package/dist/assets/Data-CTbC0GG5.js +0 -2
  129. package/dist/assets/DeviceDetail-D9HCHrZA.js +0 -2
  130. package/dist/assets/History-C4qZ3gqF.js +0 -1
  131. package/dist/assets/Identity-B1OuI6MD.js +0 -1
  132. package/dist/assets/InstancesTable-B7rabb_v.js +0 -1
  133. package/dist/assets/IntegrationDetail-4XDFzceS.js +0 -1
  134. package/dist/assets/Integrations-CEP5cZG6.js +0 -2
  135. package/dist/assets/Integrations-CGNp6nto.js +0 -1
  136. package/dist/assets/Library-DUuHG1yU.js +0 -1
  137. package/dist/assets/Locations-CktpOpxD.js +0 -3
  138. package/dist/assets/Network-Bx8pmtNT.js +0 -1
  139. package/dist/assets/Notifications-C8aadgSQ.js +0 -1
  140. package/dist/assets/Pipeline-Bfx8XPU_.js +0 -1
  141. package/dist/assets/Recordings-hnmLWqEZ.js +0 -1
  142. package/dist/assets/SessionsList-zMHONQk5.js +0 -2
  143. package/dist/assets/System-D5Pndm3I.js +0 -1
  144. package/dist/assets/addon-icons-context-6Mrqvr1U.js +0 -1
  145. package/dist/assets/circle-slash-BXDMKEqg.js +0 -1
  146. package/dist/assets/client-COYx-TFD.js +0 -809
  147. package/dist/assets/crop-BpJdhjaO.js +0 -1
  148. package/dist/assets/device-picker-model-B4F-5cg2.js +0 -1
  149. package/dist/assets/dist-BR3ExdiJ.js +0 -809
  150. package/dist/assets/i18n-CfXX-iuz.js +0 -1
  151. package/dist/assets/icons-BrUjXoAZ.js +0 -1
  152. package/dist/assets/index-BIUMsvsC.js +0 -4
  153. package/dist/assets/index-D4z5SYp_.css +0 -2
  154. package/dist/assets/mount-B4F-5cg2.js +0 -1
  155. package/dist/assets/player-overlays-Dl8i669l.js +0 -1
  156. package/dist/assets/remoteEntry-DWDUtJXh.js +0 -1
  157. package/dist/assets/speaker-CHLYh6wT.js +0 -1
  158. package/dist/assets/src-DzmVXlVl.js +0 -100
  159. package/dist/assets/useEventInvalidation-B4F-5cg2.js +0 -1
  160. package/dist/assets/useTemplateSave-CeQLDKqQ.js +0 -1
  161. package/dist/assets/user-round-B2WYnao7.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
  *
@@ -48321,7 +48497,7 @@ DeviceType.MediaPlayer, method(deviceOnly, _void(), {
48321
48497
  kind: "mutation",
48322
48498
  auth: "protected"
48323
48499
  });
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;
48500
+ DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat, DeviceType.EventEmitter, DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Heater, DeviceType.Dryer, DeviceType.Gateway, DeviceType.HeatPump, DeviceType.Camera, DeviceType.Fan, DeviceType.Lock, DeviceType.Camera, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Gateway, DeviceType.Hub, DeviceType.Camera, DeviceType.Sensor, DeviceType.MediaPlayer, DeviceType.Vacuum, DeviceType.Generic, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.PetFountain, DeviceType.Fan, DeviceType.Humidifier, DeviceType.Climate, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.MediaPlayer;
48325
48501
  var NUMBER = {
48326
48502
  kind: "fixed",
48327
48503
  result: ["number"]
@@ -53663,6 +53839,207 @@ var GroupStatusSchema = object({
53663
53839
  }))
53664
53840
  });
53665
53841
  DeviceType.Sensor, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Cover, DeviceType.Valve, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.Thermostat, DeviceType.Climate;
53842
+ /**
53843
+ * Heat pump settable surface (D1026): one typed method per parameter, never a
53844
+ * generic `set(key, value)`. The values a mode takes and the limits of a number
53845
+ * are the ones `heat-pump-status` carries (`allowed`, `min`, `max`, `step`),
53846
+ * read from the gateway; a provider refuses a value outside them. The state is
53847
+ * `heat-pump-status` — this cap has none.
53848
+ */
53849
+ var deviceId = number$1().int().nonnegative();
53850
+ var circuitId = string().min(1);
53851
+ var mode = string().min(1);
53852
+ var temp = number$1().finite();
53853
+ DeviceType.HeatPump, method(object({
53854
+ deviceId,
53855
+ mode
53856
+ }), _void(), {
53857
+ kind: "mutation",
53858
+ auth: "protected"
53859
+ }), method(object({
53860
+ deviceId,
53861
+ mode
53862
+ }), _void(), {
53863
+ kind: "mutation",
53864
+ auth: "protected"
53865
+ }), method(object({
53866
+ deviceId,
53867
+ mode
53868
+ }), _void(), {
53869
+ kind: "mutation",
53870
+ auth: "protected"
53871
+ }), method(object({
53872
+ deviceId,
53873
+ mode
53874
+ }), _void(), {
53875
+ kind: "mutation",
53876
+ auth: "protected"
53877
+ }), method(object({
53878
+ deviceId,
53879
+ circuitId,
53880
+ mode
53881
+ }), _void(), {
53882
+ kind: "mutation",
53883
+ auth: "protected"
53884
+ }), method(object({
53885
+ deviceId,
53886
+ circuitId,
53887
+ mode
53888
+ }), _void(), {
53889
+ kind: "mutation",
53890
+ auth: "protected"
53891
+ }), method(object({
53892
+ deviceId,
53893
+ circuitId,
53894
+ mode
53895
+ }), _void(), {
53896
+ kind: "mutation",
53897
+ auth: "protected"
53898
+ }), method(object({
53899
+ deviceId,
53900
+ circuitId,
53901
+ temp
53902
+ }), _void(), {
53903
+ kind: "mutation",
53904
+ auth: "protected"
53905
+ }), method(object({
53906
+ deviceId,
53907
+ circuitId,
53908
+ temp
53909
+ }), _void(), {
53910
+ kind: "mutation",
53911
+ auth: "protected"
53912
+ }), method(object({
53913
+ deviceId,
53914
+ circuitId,
53915
+ temp
53916
+ }), _void(), {
53917
+ kind: "mutation",
53918
+ auth: "protected"
53919
+ }), method(object({
53920
+ deviceId,
53921
+ circuitId,
53922
+ mode
53923
+ }), _void(), {
53924
+ kind: "mutation",
53925
+ auth: "protected"
53926
+ }), method(object({
53927
+ deviceId,
53928
+ circuitId,
53929
+ level: mode
53930
+ }), _void(), {
53931
+ kind: "mutation",
53932
+ auth: "protected"
53933
+ }), method(object({
53934
+ deviceId,
53935
+ circuitId,
53936
+ minutes: number$1().int().positive()
53937
+ }), _void(), {
53938
+ kind: "mutation",
53939
+ auth: "protected"
53940
+ }), method(object({
53941
+ deviceId,
53942
+ circuitId
53943
+ }), _void(), {
53944
+ kind: "mutation",
53945
+ auth: "protected"
53946
+ });
53947
+ var HeatPumpCircuitKindSchema = _enum([
53948
+ "heating",
53949
+ "dhw",
53950
+ "cooling",
53951
+ "solar"
53952
+ ]);
53953
+ /** A setting that takes one of a list of values the gateway named. */
53954
+ var HeatPumpOptionSettingSchema = object({
53955
+ /** The active value. Null when the gateway did not answer. */
53956
+ value: string().nullable(),
53957
+ /** Values the gateway accepts, in its order. Empty = read-only here. */
53958
+ allowed: array(string())
53959
+ });
53960
+ /** A numeric setting with the limits the gateway named. */
53961
+ var HeatPumpRangeSettingSchema = object({
53962
+ value: number$1().nullable(),
53963
+ min: number$1().nullable(),
53964
+ max: number$1().nullable(),
53965
+ step: number$1().nullable()
53966
+ });
53967
+ var HeatPumpCircuitSchema = object({
53968
+ /** Gateway id of the circuit (`hc1`, `dhw1`): the key of the series. */
53969
+ id: string().min(1),
53970
+ kind: HeatPumpCircuitKindSchema,
53971
+ label: string(),
53972
+ icon: IconKeySchema,
53973
+ /** Measured temperature of the circuit (room, tank, collector). */
53974
+ currentTemp: number$1().nullable().meta(readingMeta("temperature")),
53975
+ /** The setpoint in force now. */
53976
+ targetTemp: number$1().nullable().meta(readingMeta("temperature")),
53977
+ /** The operation mode in force (mirror of `operationMode.value`, for the series). */
53978
+ mode: string().nullable(),
53979
+ /** Whether the circuit is calling for heat right now. Null = unknown. */
53980
+ active: boolean().nullable(),
53981
+ operationMode: HeatPumpOptionSettingSchema.nullable(),
53982
+ /** Heating circuits: heat / cool / heatCool. */
53983
+ heatCoolMode: HeatPumpOptionSettingSchema.nullable(),
53984
+ /** Heating circuits: summer / winter changeover. */
53985
+ summerWinter: HeatPumpOptionSettingSchema.nullable(),
53986
+ comfortSetpoint: HeatPumpRangeSettingSchema.nullable(),
53987
+ ecoSetpoint: HeatPumpRangeSettingSchema.nullable(),
53988
+ maxFlowTemp: HeatPumpRangeSettingSchema.nullable(),
53989
+ /** Hot water: the temperature level (off / low / high / eco). */
53990
+ temperatureLevel: HeatPumpOptionSettingSchema.nullable(),
53991
+ /** Hot water: how long a charge lasts, minutes. */
53992
+ chargeDuration: HeatPumpRangeSettingSchema.nullable(),
53993
+ /** Hot water: whether an extra-hot-water charge is running. Null = no such surface. */
53994
+ extraHotWater: boolean().nullable()
53995
+ });
53996
+ /** The independent system modes, each with its real values. A null mode = the gateway has none. */
53997
+ var HeatPumpSystemSchema = object({
53998
+ silent: HeatPumpOptionSettingSchema.nullable(),
53999
+ away: HeatPumpOptionSettingSchema.nullable(),
54000
+ additionalHeater: HeatPumpOptionSettingSchema.nullable(),
54001
+ holiday: HeatPumpOptionSettingSchema.nullable()
54002
+ });
54003
+ var HeatPumpPowerSchema = object({
54004
+ thermalW: number$1().nullable().meta(readingMeta("power")),
54005
+ electricalW: number$1().nullable().meta(readingMeta("power")),
54006
+ /** Compressor modulation, percent. */
54007
+ compressorPct: number$1().nullable().meta(readingMeta("percentage"))
54008
+ });
54009
+ var HeatPumpTemperaturesSchema = object({
54010
+ supply: number$1().nullable().meta(readingMeta("temperature")),
54011
+ return: number$1().nullable().meta(readingMeta("temperature")),
54012
+ outdoor: number$1().nullable().meta(readingMeta("temperature"))
54013
+ });
54014
+ /** Lifetime meters, kWh: the energy of a period is computed at read time from their difference (D944). */
54015
+ var HeatPumpEnergySchema = object({
54016
+ thermalKwh: number$1().nullable().meta(readingMeta("energy")),
54017
+ electricalKwh: number$1().nullable().meta(readingMeta("energy"))
54018
+ });
54019
+ var HeatPumpStatusSchema = object({
54020
+ circuits: array(HeatPumpCircuitSchema),
54021
+ system: HeatPumpSystemSchema,
54022
+ power: HeatPumpPowerSchema,
54023
+ temperatures: HeatPumpTemperaturesSchema,
54024
+ energy: HeatPumpEnergySchema,
54025
+ /** Water pressure of the heating loop, bar. */
54026
+ waterPressureBar: number$1().nullable(),
54027
+ /** Compressor starts since commissioning. */
54028
+ starts: number$1().nullable(),
54029
+ /** Ms epoch when the slice was last read from the gateway. */
54030
+ lastFetchedAt: number$1()
54031
+ });
54032
+ /**
54033
+ * The instantaneous COP: thermal over electrical power. Null unless BOTH powers
54034
+ * are known and the unit draws power — a missing reading is never a 0 or a
54035
+ * division by it (D393). Computed on every read; there is no stored value.
54036
+ */
54037
+ function heatPumpInstantCop(power) {
54038
+ const { thermalW, electricalW } = power;
54039
+ if (thermalW === null || electricalW === null || electricalW <= 0) return null;
54040
+ return thermalW / electricalW;
54041
+ }
54042
+ DeviceType.HeatPump;
53666
54043
  var HeatingValveStatusSchema = object({
53667
54044
  /** Radiator valve opening 0 (closed) .. 100 (open). Null = not yet known. */
53668
54045
  position: number$1().min(0).max(100).nullable().meta(readingMeta("percentage")),
@@ -53820,6 +54197,7 @@ var HeroSceneSchema = object({
53820
54197
  "ac",
53821
54198
  "thermostat",
53822
54199
  "heater",
54200
+ "heat-pump",
53823
54201
  "fan",
53824
54202
  "washer",
53825
54203
  "dryer",
@@ -53862,7 +54240,7 @@ var HeroSceneSchema = object({
53862
54240
  /** 0..1: volume, cover position, cycle progress. */
53863
54241
  level: number$1().min(0).max(1).nullable()
53864
54242
  });
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;
54243
+ DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.HeatPump, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Heater, DeviceType.Dryer, DeviceType.Gateway;
53866
54244
  DeviceRole.Siren, DeviceRole.Floodlight, DeviceRole.Spotlight, DeviceRole.PirSensor, DeviceRole.Chime, DeviceRole.Autotrack, DeviceRole.Nightvision, DeviceRole.PrivacyMask, DeviceRole.Doorbell, DeviceRole.CoverBlind, DeviceRole.CoverShutter, DeviceRole.CoverAwning, DeviceRole.CoverCurtain, DeviceRole.CoverGarage, DeviceRole.CoverGate, DeviceRole.CoverDoor, DeviceRole.CoverWindow, DeviceRole.BinaryHelper, DeviceRole.Outlet, DeviceRole.MotionSensor, DeviceRole.ContactSensor, DeviceRole.LeakSensor, DeviceRole.SmokeSensor, DeviceRole.COSensor, DeviceRole.GasSensor, DeviceRole.TamperSensor, DeviceRole.VibrationSensor, DeviceRole.ConnectivitySensor, DeviceRole.SoundSensor, DeviceRole.BinarySensor, DeviceRole.TemperatureSensor, DeviceRole.HumiditySensor, DeviceRole.AmbientLightSensor, DeviceRole.PressureSensor, DeviceRole.WindSensor, DeviceRole.RainSensor, DeviceRole.UvSensor, DeviceRole.SolarRadiationSensor, DeviceRole.SoilMoistureSensor, DeviceRole.PowerSensor, DeviceRole.EnergySensor, DeviceRole.VoltageSensor, DeviceRole.CurrentSensor, DeviceRole.AirQualitySensor, DeviceRole.BatterySensor, DeviceRole.NumericSensor, DeviceRole.EnumSensor, DeviceRole.DateTimeSensor, DeviceRole.GenericSensor, DeviceRole.NumericControl, DeviceRole.SelectControl, DeviceRole.TextControl, DeviceRole.DateTimeControl, DeviceRole.MobilePushNotifier, DeviceRole.MessagingNotifier, DeviceRole.EmailNotifier, DeviceRole.GenericNotifier, DeviceRole.IrTransmitter;
53867
54245
  /** A string in both languages, as the cap vocabulary writes it (D920): no `t()` in the model. */
53868
54246
  var HeroTextSchema = object({
@@ -53870,6 +54248,7 @@ var HeroTextSchema = object({
53870
54248
  it: string()
53871
54249
  });
53872
54250
  var HeroRowIdSchema = _enum([
54251
+ "progress",
53873
54252
  "run-for",
53874
54253
  "cycle",
53875
54254
  "program",
@@ -53884,6 +54263,7 @@ var HeroRowIdSchema = _enum([
53884
54263
  "alarm",
53885
54264
  "fan",
53886
54265
  "vacuum",
54266
+ "vacuum-suction",
53887
54267
  "mower",
53888
54268
  "feeder",
53889
54269
  "fountain",
@@ -53902,7 +54282,10 @@ var HeroRowIdSchema = _enum([
53902
54282
  "climate-fan",
53903
54283
  "setpoint",
53904
54284
  "channel",
53905
- "control"
54285
+ "control",
54286
+ "circuit",
54287
+ "heat-pump-power",
54288
+ "system-mode"
53906
54289
  ]);
53907
54290
  var HeroArgValueSchema = lazy(() => union([
53908
54291
  string(),
@@ -53967,16 +54350,32 @@ var HeroControlSchema = discriminatedUnion("kind", [
53967
54350
  label: HeroTextSchema,
53968
54351
  current: string().nullable(),
53969
54352
  options: array(string()),
54353
+ /** A readable label per option value; an option without one is drawn as its raw value. */
54354
+ optionLabels: record(string(), HeroTextSchema).optional(),
53970
54355
  call: HeroCallSchema,
53971
54356
  valueArg: string()
53972
54357
  })
53973
54358
  ]);
54359
+ /** Declared by its interface: a `z.infer` of one more icon union pushes the cap's inferred type past what the compiler can print. */
54360
+ var HeroPillSchema = object({
54361
+ icon: IconKeySchema.nullable(),
54362
+ text: HeroTextSchema,
54363
+ tone: HeroToneSchema
54364
+ });
53974
54365
  var HeroRowSchema = object({
53975
54366
  id: HeroRowIdSchema,
54367
+ /** The row's own name when the kind's label would not tell rows of one kind apart (a circuit's label). */
54368
+ label: HeroTextSchema.optional(),
54369
+ /** A group header drawn above the row when it differs from the previous row's ("System"). */
54370
+ group: HeroTextSchema.optional(),
54371
+ /** Values drawn as pills across the row (a heat pump's powers). */
54372
+ pills: array(HeroPillSchema).optional(),
53976
54373
  icon: IconKeySchema,
53977
54374
  /** The row's status, in words. `null` = nothing to say. */
53978
54375
  status: HeroTextSchema.nullable(),
53979
- controls: array(HeroControlSchema)
54376
+ controls: array(HeroControlSchema),
54377
+ /** A bar under the row's label, 0..1; `null` / absent = no bar. */
54378
+ progress: number$1().min(0).max(1).nullable().optional()
53980
54379
  });
53981
54380
  var HeroDetailSchema = object({
53982
54381
  label: HeroTextSchema,
@@ -53984,7 +54383,11 @@ var HeroDetailSchema = object({
53984
54383
  unit: string().nullable()
53985
54384
  });
53986
54385
  var HeroBadgeSchema = object({
53987
- id: _enum(["battery", "network-link"]),
54386
+ id: _enum([
54387
+ "battery",
54388
+ "network-link",
54389
+ "integration"
54390
+ ]),
53988
54391
  icon: IconKeySchema,
53989
54392
  tone: HeroToneSchema,
53990
54393
  /** Percent for a battery, link quality for a link; `null` = not known. */
@@ -54084,7 +54487,12 @@ var HeroFactSchema = object({
54084
54487
  var HeroSideTileSchema = object({
54085
54488
  label: HeroTextSchema,
54086
54489
  value: HeroTextSchema,
54087
- tone: HeroToneSchema.optional()
54490
+ tone: HeroToneSchema.optional(),
54491
+ /**
54492
+ * Epoch ms when the tile reads a clock time (an appliance's end): a client prints it in
54493
+ * the viewer's own time zone; `value` is the fallback for one that cannot.
54494
+ */
54495
+ at: number$1().optional()
54088
54496
  });
54089
54497
  var HeroSideTilesSchema = object({
54090
54498
  left: array(HeroSideTileSchema).max(2),
@@ -54120,8 +54528,12 @@ var HeroModelSchema = object({
54120
54528
  sideTiles: HeroSideTilesSchema,
54121
54529
  /** The status line under the main icon. */
54122
54530
  title: HeroTextSchema,
54531
+ /** The scene's top line when it says more than `title`; absent = draw the title. */
54532
+ caption: HeroTextSchema.optional(),
54123
54533
  badges: array(HeroBadgeSchema),
54124
54534
  remote: HeroRemoteSlotSchema.nullable(),
54535
+ /** The foot button that opens the device's history: "History", "Cycles", "Meals", "Access". */
54536
+ historyLabel: HeroTextSchema,
54125
54537
  consumables: HeroConsumablesSlotSchema.nullable(),
54126
54538
  consumption: HeroConsumptionSlotSchema.nullable(),
54127
54539
  ownPower: HeroOwnPowerSlotSchema.nullable(),
@@ -76682,7 +77094,7 @@ var AccessoryKind = {
76682
77094
  PrivacyMask: DeviceRole.PrivacyMask
76683
77095
  };
76684
77096
  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;
77097
+ DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.HeatPump, DeviceType.Camera, DeviceType.Hub, DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Heater, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway;
76686
77098
  new Set(Object.values(DeviceType));
76687
77099
  /** Parses the raw slice with the cap's own schema; `undefined` when it does not parse. */
76688
77100
  function contribution(cap, schema, build) {
@@ -76818,6 +77230,13 @@ var lockContribution = contribution("lock-control", LockControlStatusSchema, (sl
76818
77230
  reading: reading("lock-control", words?.state ?? "unknown", false, words?.title),
76819
77231
  rows: [row$1("lock", state === "locked" || state === "locking" ? "lock" : "lock-open", joinText([title, since]), lockControls(state, ctx.features.includes(DeviceFeature.LockOpen)))],
76820
77232
  ...since === null || words === null ? {} : { facts: [fact("since", "clock", since, "muted")] },
77233
+ ...words === null ? {} : { tiles: { left: [{
77234
+ label: t("Door", "Porta"),
77235
+ value: title
77236
+ }, ...since === null ? [] : [{
77237
+ label: t("Since", "Da"),
77238
+ value: since
77239
+ }]] } },
76821
77240
  ...words?.door == null ? {} : { scene: { mode: words.door } }
76822
77241
  };
76823
77242
  });
@@ -76899,7 +77318,17 @@ var ACCESS_FAMILY_CONTRIBUTIONS = {
76899
77318
  return {
76900
77319
  reading: reading("alarm-panel", words?.state ?? "unknown", false, words?.title),
76901
77320
  rows: [row$1("alarm", state === "triggered" ? "shield-alert" : state === "disarmed" ? "shield-off" : "shield-check", joinText([words?.title ?? t("Unknown", "Sconosciuto"), since]), alarmControls(state, modes, slice?.requiresCode ?? false))],
76902
- ...since === null || words === null ? {} : { facts: [fact("since", "clock", since, state === "triggered" ? "danger" : "muted")] }
77321
+ ...since === null || words === null ? {} : { facts: [fact("since", "clock", since, state === "triggered" ? "danger" : "muted")] },
77322
+ ...words === null ? {} : { tiles: {
77323
+ left: [{
77324
+ label: t("Mode", "Modalità"),
77325
+ value: words.title
77326
+ }],
77327
+ ...since === null ? {} : { right: [{
77328
+ label: t("Since", "Da"),
77329
+ value: since
77330
+ }] }
77331
+ } }
76903
77332
  };
76904
77333
  }),
76905
77334
  "automation-control": contribution("automation-control", AutomationControlStatusSchema, (slice, ctx) => {
@@ -76963,7 +77392,7 @@ var ACCESS_FAMILY_CONTRIBUTIONS = {
76963
77392
  */
76964
77393
  var has$3 = (ctx, f) => ctx.features.includes(f);
76965
77394
  var unknownText = t("Unknown", "Sconosciuto");
76966
- var pct$1 = (n) => t(`${Math.round(n)}%`, `${Math.round(n)}%`);
77395
+ var pct$2 = (n) => t(`${Math.round(n)}%`, `${Math.round(n)}%`);
76967
77396
  var unit = (n) => Math.min(1, Math.max(0, n / 100));
76968
77397
  /** Battery as a fact, unless the device is also bound to the `battery` cap (it already says so). */
76969
77398
  function ownBattery(level, ctx) {
@@ -77025,7 +77454,7 @@ var fanContribution = contribution("fan-control", FanControlStatusSchema, (slice
77025
77454
  },
77026
77455
  valueArg: "direction"
77027
77456
  });
77028
- const speedText = speed === null ? null : pct$1(speed);
77457
+ const speedText = speed === null ? null : pct$2(speed);
77029
77458
  const preset = slice?.preset ?? "";
77030
77459
  const status = speed === null ? unknownText : joinText([speed === 0 ? t("Off", "Spento") : t(`Speed ${speed}%`, `Velocità ${speed}%`), preset === "" ? null : t(preset, preset)]);
77031
77460
  return {
@@ -77038,10 +77467,16 @@ var fanContribution = contribution("fan-control", FanControlStatusSchema, (slice
77038
77467
  }],
77039
77468
  ...speedText === null ? {} : {
77040
77469
  facts: [fact("speed", "fan", speedText, speed === 0 ? "muted" : "primary")],
77041
- tiles: { right: [{
77042
- label: t("Speed", "Velocità"),
77043
- value: speedText
77044
- }] },
77470
+ tiles: {
77471
+ ...slice?.oscillating == null ? {} : { left: [{
77472
+ label: t("Oscillation", "Oscilla"),
77473
+ value: slice.oscillating ? t("Yes", "Sì") : t("No", "No")
77474
+ }] },
77475
+ ...preset === "" ? {} : { right: [{
77476
+ label: t("Mode", "Modalità"),
77477
+ value: t(preset, preset)
77478
+ }] }
77479
+ },
77045
77480
  scene: { level: unit(speed ?? 0) }
77046
77481
  }
77047
77482
  };
@@ -77105,7 +77540,8 @@ var vacuumContribution = contribution("vacuum-control", VacuumControlStatusSchem
77105
77540
  const words = state === null ? null : VACUUM_WORDS[state];
77106
77541
  const title = state === "error" && slice?.errorLabel ? t(slice.errorLabel, slice.errorLabel) : words?.title;
77107
77542
  const controls = vacuumControls(state);
77108
- if (slice !== void 0 && slice.availableFanSpeeds.length > 0) controls.push({
77543
+ const suctionControls = [];
77544
+ if (slice !== void 0 && slice.availableFanSpeeds.length > 0) suctionControls.push({
77109
77545
  kind: "picker",
77110
77546
  id: "vacuum.suction",
77111
77547
  label: t("Suction", "Aspirazione"),
@@ -77120,22 +77556,31 @@ var vacuumContribution = contribution("vacuum-control", VacuumControlStatusSchem
77120
77556
  });
77121
77557
  if (state !== null) controls.push(vac("locate", "Locate", "Trova", "map-pin", "locate"));
77122
77558
  const progress = state === "cleaning" ? slice?.progress ?? null : null;
77559
+ const suction = slice?.fanSpeed == null || slice.fanSpeed === "" ? [] : [{
77560
+ label: t("Suction", "Aspirazione"),
77561
+ value: t(slice.fanSpeed, slice.fanSpeed)
77562
+ }];
77563
+ const suctionRows = suctionControls.length === 0 ? [] : [{
77564
+ id: "vacuum-suction",
77565
+ icon: "bot",
77566
+ status: null,
77567
+ controls: suctionControls
77568
+ }];
77569
+ const vacuumRows = [{
77570
+ id: "vacuum",
77571
+ icon: "bot",
77572
+ status: title ?? unknownText,
77573
+ controls
77574
+ }, ...suctionRows];
77123
77575
  return {
77124
77576
  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
- }
77577
+ rows: vacuumRows,
77578
+ facts: [...ownBattery(slice?.batteryLevel ?? null, ctx), ...progress === null ? [] : [fact("progress", "activity", pct$2(progress), "primary")]],
77579
+ ...suction.length === 0 && progress === null ? {} : { tiles: { right: [...suction, ...progress === null ? [] : [{
77580
+ label: t("Progress", "Avanzamento"),
77581
+ value: pct$2(progress)
77582
+ }]] } },
77583
+ ...progress === null ? {} : { scene: { level: unit(progress) } }
77139
77584
  };
77140
77585
  });
77141
77586
  var MOWER_WORDS = {
@@ -77191,11 +77636,11 @@ var mowerContribution = contribution("lawn-mower-control", LawnMowerControlStatu
77191
77636
  status: title ?? unknownText,
77192
77637
  controls: mowerControls(activity)
77193
77638
  }],
77194
- facts: [...ownBattery(slice?.batteryLevel ?? null, ctx), ...progress === null ? [] : [fact("progress", "activity", pct$1(progress), "primary")]],
77639
+ facts: [...ownBattery(slice?.batteryLevel ?? null, ctx), ...progress === null ? [] : [fact("progress", "activity", pct$2(progress), "primary")]],
77195
77640
  ...progress === null ? {} : {
77196
77641
  tiles: { right: [{
77197
77642
  label: t("Progress", "Avanzamento"),
77198
- value: pct$1(progress)
77643
+ value: pct$2(progress)
77199
77644
  }] },
77200
77645
  scene: { level: unit(progress) }
77201
77646
  }
@@ -77266,10 +77711,13 @@ var feederContribution = contribution("pet-feeder", PetFeederStatusSchema, (slic
77266
77711
  ...last === null ? [] : [fact("last-run", "clock", t(`Last ${last} g`, `Ultimo ${last} g`))],
77267
77712
  ...ownBattery(slice?.powerSource === "battery" ? slice.batteryPower : null, ctx)
77268
77713
  ],
77269
- ...last === null ? {} : { tiles: { right: [{
77714
+ tiles: { left: [...slice?.foodLevel == null ? [] : [{
77715
+ label: t("Tank", "Serbatoio"),
77716
+ value: pct$2(slice.foodLevel)
77717
+ }], ...last === null ? [] : [{
77270
77718
  label: t("Last portion", "Ultima porzione"),
77271
77719
  value: t(`${last} g`, `${last} g`)
77272
- }] } }
77720
+ }]] }
77273
77721
  };
77274
77722
  });
77275
77723
  var fountainContribution = contribution("pet-fountain", PetFountainStatusSchema, (slice) => {
@@ -77297,10 +77745,13 @@ var fountainContribution = contribution("pet-fountain", PetFountainStatusSchema,
77297
77745
  }],
77298
77746
  ...level === null ? {} : {
77299
77747
  facts: [fact("level", "droplets", t(`Water ${Math.round(level)}%`, `Acqua ${Math.round(level)}%`), level <= 20 ? "warning" : "primary")],
77300
- tiles: { right: [{
77748
+ tiles: { left: [{
77301
77749
  label: t("Water", "Acqua"),
77302
- value: pct$1(level)
77303
- }] },
77750
+ value: pct$2(level)
77751
+ }, ...slice?.waterVolume == null ? [] : [{
77752
+ label: t("Volume", "Volume"),
77753
+ value: t(`${Math.round(slice.waterVolume)} ml`, `${Math.round(slice.waterVolume)} ml`)
77754
+ }]] },
77304
77755
  scene: { level: unit(level) }
77305
77756
  }
77306
77757
  };
@@ -77332,14 +77783,18 @@ var DEVICES_FAMILY_CONTRIBUTIONS = {
77332
77783
  * that does not parse reads `unknown`, never closed or off (D315/D393).
77333
77784
  */
77334
77785
  var has$2 = (ctx, f) => ctx.features.includes(f);
77335
- var pct = (n) => t(`${Math.round(n)}%`, `${Math.round(n)}%`);
77786
+ var pct$1 = (n) => t(`${Math.round(n)}%`, `${Math.round(n)}%`);
77336
77787
  var brightnessContribution = contribution("brightness", BrightnessStatusSchema, (slice) => {
77337
77788
  const level = slice?.level ?? null;
77338
77789
  return {
77339
77790
  ...level === null ? {} : { reading: reading("brightness", level > 0 ? "on" : "off") },
77340
77791
  ...level === null ? {} : {
77341
- facts: [fact("level", "sun-dim", pct(level), level > 0 ? "primary" : "muted")],
77342
- scene: { level: level / 100 }
77792
+ facts: [fact("level", "sun-dim", pct$1(level), level > 0 ? "primary" : "muted")],
77793
+ scene: { level: level / 100 },
77794
+ tiles: { left: [{
77795
+ label: t("Brightness", "Luminosità"),
77796
+ value: pct$1(level)
77797
+ }] }
77343
77798
  },
77344
77799
  rows: [row$1("brightness", "sun-dim", level === null ? null : t(`Brightness ${Math.round(level)}%`, `Luminosità ${Math.round(level)}%`), [{
77345
77800
  kind: "slider",
@@ -77548,12 +78003,16 @@ function travelFragment(s, state, position, tilt, ctx) {
77548
78003
  });
77549
78004
  return {
77550
78005
  reading: reading(s.source, words.state, false, words.title),
77551
- ...position === null ? {} : { facts: [fact("level", "arrow-up-down", pct(position))] },
78006
+ ...position === null ? {} : { facts: [fact("level", "arrow-up-down", pct$1(position))] },
78007
+ ...position === null ? {} : { tiles: { left: [{
78008
+ label: t("Opening", "Apertura"),
78009
+ value: pct$1(position)
78010
+ }] } },
77552
78011
  scene: {
77553
78012
  ...words.mode === null ? {} : { mode: words.mode },
77554
78013
  ...position === null ? {} : { level: position / 100 }
77555
78014
  },
77556
- rows: [row$1(s.rowId, "arrow-up-down", joinText([words.title, position !== null && state !== "open" ? pct(position) : null]), controls)]
78015
+ rows: [row$1(s.rowId, "arrow-up-down", joinText([words.title, position !== null && state !== "open" ? pct$1(position) : null]), controls)]
77557
78016
  };
77558
78017
  }
77559
78018
  var ACTUATORS_FAMILY_CONTRIBUTIONS = {
@@ -77631,10 +78090,10 @@ var ACTUATORS_FAMILY_CONTRIBUTIONS = {
77631
78090
  const now = slice.currentHumidity;
77632
78091
  return {
77633
78092
  reading: reading("humidifier", state, false, title),
77634
- ...now === null ? {} : { facts: [fact("level", "droplets", pct(now), "info")] },
78093
+ ...now === null ? {} : { facts: [fact("level", "droplets", pct$1(now), "info")] },
77635
78094
  ...slice.targetHumidity === null ? {} : { tiles: { right: [{
77636
78095
  label: t("Target", "Obiettivo"),
77637
- value: pct(slice.targetHumidity)
78096
+ value: pct$1(slice.targetHumidity)
77638
78097
  }] } },
77639
78098
  ...now === null ? {} : { scene: { level: now / 100 } },
77640
78099
  rows: [row$1("humidifier", "droplets", joinText([title, slice.mode === null ? null : t(slice.mode, slice.mode)]), controls)]
@@ -77882,17 +78341,16 @@ var weatherContribution = contribution("weather", WeatherStatusSchema, (slice, c
77882
78341
  });
77883
78342
  var updateContribution = contribution("update", UpdateStatusSchema, (slice) => {
77884
78343
  if (slice === void 0) return { reading: reading("update", "unknown") };
77885
- const { currentVersion, availableVersion, inProgress, updatable } = slice;
78344
+ const { currentVersion, availableVersion, inProgress } = slice;
77886
78345
  const pending = availableVersion !== null && availableVersion !== "" && availableVersion !== currentVersion;
77887
78346
  if (!pending && currentVersion === null && !inProgress) return { reading: reading("update", "unknown") };
77888
78347
  const state = inProgress ? "running" : pending ? "standby" : "idle";
77889
78348
  const title = inProgress ? t("Updating", "Aggiornamento in corso") : pending ? t("Update available", "Aggiornamento disponibile") : t("Up to date", "Aggiornato");
77890
78349
  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
78350
  return {
77893
78351
  reading: reading("update", state, false, title),
77894
78352
  facts: versions === null ? [] : [fact("reading", "download", versions, pending ? "warning" : "muted")],
77895
- rows: [row$1("update", "download", versions, install)]
78353
+ rows: [row$1("update", "download", versions, [])]
77896
78354
  };
77897
78355
  });
77898
78356
  var imageContribution = contribution("image", ImageStatusSchema, (slice, ctx) => {
@@ -78000,6 +78458,33 @@ var ON_MODE_PREFERENCE = [
78000
78458
  "heat",
78001
78459
  "cool"
78002
78460
  ];
78461
+ var FAN_LABEL = {
78462
+ auto: t("Auto", "Auto"),
78463
+ quiet: t("Quiet", "Silenziosa"),
78464
+ low: t("Low", "Bassa"),
78465
+ medium: t("Medium", "Media"),
78466
+ high: t("High", "Alta"),
78467
+ turbo: t("Turbo", "Turbo"),
78468
+ off: t("Off", "Spenta")
78469
+ };
78470
+ /** A readable label for a fan speed name; an unknown one is shown as the device reported it. */
78471
+ function fanLabelOf(fan) {
78472
+ return FAN_LABEL[fan] ?? t(fan, fan);
78473
+ }
78474
+ /** Short labels for a segmented control: one word each, so the segments stay on a line. */
78475
+ var MODE_SEGMENT_LABEL = {
78476
+ off: t("Off", "Spento"),
78477
+ heat: t("Heat", "Caldo"),
78478
+ cool: t("Cool", "Freddo"),
78479
+ auto: t("Auto", "Auto"),
78480
+ heat_cool: t("Heat/Cool", "Caldo/Freddo"),
78481
+ fan_only: t("Fan", "Vent."),
78482
+ dry: t("Dry", "Deum.")
78483
+ };
78484
+ /** The segment label of every available HVAC mode, keyed by the mode value. */
78485
+ function modeLabelsOf(modes) {
78486
+ return Object.fromEntries(modes.map((m) => [m, MODE_SEGMENT_LABEL[m]]));
78487
+ }
78003
78488
  /** 22 -> "22", 22.3 -> "22.3": a trailing zero is noise on a thermostat. */
78004
78489
  function formatDegrees(value) {
78005
78490
  return `${Number(value.toFixed(1))}°`;
@@ -78064,11 +78549,11 @@ function rangeFrom(min, max, step) {
78064
78549
  * contribute, types never do (D14). A slice that is absent or does not parse is
78065
78550
  * "not answered": the state reads unknown, no row is drawn (D315, D393).
78066
78551
  */
78067
- var same = (text) => t(text, text);
78068
- function tile(en, it, value) {
78552
+ var same$1 = (text) => t(text, text);
78553
+ function tile$1(en, it, value) {
78069
78554
  return {
78070
78555
  label: t(en, it),
78071
- value: same(value)
78556
+ value: same$1(value)
78072
78557
  };
78073
78558
  }
78074
78559
  function setpointSlider(id, cap, method, valueArg, value, range) {
@@ -78103,18 +78588,19 @@ var climateContribution = contribution("climate-control", ClimateControlStatusSc
78103
78588
  const status = climateStatusText(view);
78104
78589
  const facts = [];
78105
78590
  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)}%`)));
78591
+ if (view.humidity !== null) facts.push(fact("humidity", "droplets", same$1(`${Math.round(view.humidity)}%`)));
78592
+ if (view.targetHumidity !== null) facts.push(fact("humidity", "droplets", same$1(`→ ${Math.round(view.targetHumidity)}%`)));
78108
78593
  const left = [];
78109
78594
  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)}%`));
78595
+ if (view.measured !== null) left.push(tile$1("Indoor", "In casa", formatDegrees(view.measured)));
78596
+ if (view.humidity !== null) left.push(tile$1("Humidity", "Umidità", `${Math.round(view.humidity)}%`));
78112
78597
  const modeControls = [{
78113
78598
  kind: "picker",
78114
78599
  id: "climate.mode",
78115
78600
  label: t("Mode", "Modalità"),
78116
78601
  current: view.mode,
78117
- options: [...view.availableModes],
78602
+ options: [...view.availableModes.filter((m) => m !== "off"), ...view.availableModes.filter((m) => m === "off")],
78603
+ optionLabels: modeLabelsOf(view.availableModes),
78118
78604
  call: {
78119
78605
  cap: "climate-control",
78120
78606
  method: "setMode",
@@ -78142,6 +78628,7 @@ var climateContribution = contribution("climate-control", ClimateControlStatusSc
78142
78628
  label: t("Fan", "Ventola"),
78143
78629
  current: slice.fanMode === "" ? null : slice.fanMode,
78144
78630
  options: [...slice.availableFanModes],
78631
+ optionLabels: Object.fromEntries(slice.availableFanModes.map((m) => [m, fanLabelOf(m)])),
78145
78632
  call: {
78146
78633
  cap: "climate-control",
78147
78634
  method: "setFanMode",
@@ -78167,14 +78654,15 @@ var climateContribution = contribution("climate-control", ClimateControlStatusSc
78167
78654
  if (fanControls.length > 0) rows.push({
78168
78655
  id: "climate-fan",
78169
78656
  icon: "fan",
78170
- status: slice.fanMode === "" ? null : same(slice.fanMode),
78657
+ status: slice.fanMode === "" ? null : same$1(slice.fanMode),
78171
78658
  controls: fanControls
78172
78659
  });
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)));
78660
+ rows.push(...setpointRow(view.target === null ? null : same$1(formatDegrees(view.target)), view.range === null || view.target === null ? null : setpointSlider("climate.target", "climate-control", "setTarget", "target", view.target, view.range)));
78174
78661
  const sceneMode = view.sceneMode;
78175
78662
  return {
78176
78663
  reading: reading("climate-control", view.isOff ? "off" : "on"),
78177
78664
  title: view.modeLabel,
78665
+ ...view.isOff || slice.fanMode === "" ? {} : { caption: t(`${view.modeLabel.en} · fan ${fanLabelOf(slice.fanMode).en}`, `${view.modeLabel.it} · ventola ${fanLabelOf(slice.fanMode).it}`) },
78178
78666
  facts,
78179
78667
  ...left.length === 0 && right.length === 0 ? {} : { tiles: {
78180
78668
  left,
@@ -78201,7 +78689,7 @@ var WATER_ON_PREFERENCE = [
78201
78689
  "performance"
78202
78690
  ];
78203
78691
  function capitalised(word) {
78204
- return same(word.charAt(0).toUpperCase() + word.slice(1).replace(/_/g, " "));
78692
+ return same$1(word.charAt(0).toUpperCase() + word.slice(1).replace(/_/g, " "));
78205
78693
  }
78206
78694
  var waterHeaterContribution = contribution("water-heater", WaterHeaterStatusSchema, (slice) => {
78207
78695
  if (slice === void 0 || slice.operationMode === null) return { reading: reading("climate-control", "unknown") };
@@ -78238,13 +78726,13 @@ var waterHeaterContribution = contribution("water-heater", WaterHeaterStatusSche
78238
78726
  icon: "flame",
78239
78727
  status: label,
78240
78728
  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))];
78729
+ }, ...setpointRow(slice.targetTemp === null ? null : same$1(formatDegrees(slice.targetTemp)), range === null || slice.targetTemp === null ? null : setpointSlider("water-heater.target", "water-heater", "setTargetTemp", "temp", slice.targetTemp, range))];
78242
78730
  const level = levelWithin(slice.targetTemp, range);
78243
78731
  return {
78244
78732
  reading: reading("climate-control", isOff ? "off" : "on"),
78245
78733
  title: label,
78246
78734
  facts: status === null ? [] : [fact("climate", "flame", status)],
78247
- ...slice.currentTemp === null ? {} : { tiles: { left: [tile("Water", "Acqua", formatDegrees(slice.currentTemp))] } },
78735
+ ...slice.currentTemp === null ? {} : { tiles: { left: [tile$1("Water", "Acqua", formatDegrees(slice.currentTemp))] } },
78248
78736
  scene: {
78249
78737
  ...isOff ? {} : { mode: "heat" },
78250
78738
  ...level === null ? {} : { level }
@@ -78262,11 +78750,12 @@ var waterHeaterContribution = contribution("water-heater", WaterHeaterStatusSche
78262
78750
  var heatingValveContribution = contribution("heating-valve", HeatingValveStatusSchema, (slice) => {
78263
78751
  const position = slice?.position ?? null;
78264
78752
  if (position === null) return { reading: reading("sensor", "unknown") };
78265
- const text = same(`${Math.round(position)}%`);
78753
+ const text = same$1(`${Math.round(position)}%`);
78266
78754
  return {
78267
78755
  reading: reading("sensor", position > 0 ? "running" : "idle"),
78268
78756
  facts: [fact("valve", "gauge", t(`Valve ${text.en}`, `Valvola ${text.it}`))],
78269
- tiles: { right: [tile("Valve", "Valvola", text.en)] },
78757
+ tiles: { right: [tile$1("Valve", "Valvola", text.en)] },
78758
+ ...position > 0 ? { caption: t(`Heating · valve ${text.en}`, `Riscalda · valvola ${text.it}`) } : {},
78270
78759
  scene: { level: position / 100 }
78271
78760
  };
78272
78761
  });
@@ -78275,9 +78764,9 @@ function sensorFragment(value, id, icon, en, it, text) {
78275
78764
  if (value === null) return { reading: reading("sensor", "unknown") };
78276
78765
  return {
78277
78766
  reading: reading("sensor", "on"),
78278
- title: same(text),
78279
- facts: [fact(id, icon, same(text))],
78280
- tiles: { right: [tile(en, it, text)] }
78767
+ title: same$1(text),
78768
+ facts: [fact(id, icon, same$1(text))],
78769
+ tiles: { right: [tile$1(en, it, text)] }
78281
78770
  };
78282
78771
  }
78283
78772
  var temperatureContribution = contribution("temperature-sensor", TemperatureSensorStatusSchema, (slice) => sensorFragment(slice?.temperature ?? null, "temperature", "thermometer", "Temperature", "Temperatura", formatDegrees(slice?.temperature ?? 0)));
@@ -78332,8 +78821,8 @@ var CLIMATE_FAMILY_CONTRIBUTIONS = {
78332
78821
  return {
78333
78822
  reading: reading("sensor", "on"),
78334
78823
  ...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)) }
78824
+ facts: parts.map((p) => fact("air-quality", "wind", same$1(`${p.label} ${p.value}`))),
78825
+ tiles: { right: parts.slice(0, 2).map((p) => tile$1(p.label, p.label, p.value)) }
78337
78826
  };
78338
78827
  }),
78339
78828
  "carbon-monoxide": contribution("carbon-monoxide", CarbonMonoxideStatusSchema, (slice) => {
@@ -78348,15 +78837,264 @@ var CLIMATE_FAMILY_CONTRIBUTIONS = {
78348
78837
  "numeric-sensor": numericContribution,
78349
78838
  "enum-sensor": enumContribution
78350
78839
  };
78840
+ /**
78841
+ * The heat pump's contribution to a hero (D1026): the compressor scene, every
78842
+ * circuit as a row with its own label and icon, the powers as pills (the
78843
+ * instantaneous COP only when both powers are known) and a "System" group with
78844
+ * one selector per mode. Values and their limits come from the slice, which the
78845
+ * gateway filled: a selector with no allowed value is not drawn, a missing
78846
+ * reading is never a 0 (D393).
78847
+ */
78848
+ var CAP = "heat-pump-control";
78849
+ var same = (text) => t(text, text);
78850
+ /** The words of the values the gateway names; a value not listed is drawn as the gateway wrote it. */
78851
+ var VALUE_LABELS = {
78852
+ off: t("Off", "Off"),
78853
+ on: t("On", "On"),
78854
+ auto: t("Auto", "Auto"),
78855
+ manual: t("Manual", "Manuale"),
78856
+ low: t("Low", "Bassa"),
78857
+ high: t("High", "Alta"),
78858
+ eco: t("Eco", "Eco"),
78859
+ heat: t("Heat", "Caldo"),
78860
+ cool: t("Cool", "Freddo"),
78861
+ heatCool: t("Heat/cool", "Caldo/freddo"),
78862
+ ownprogram: t("Programme", "Programma")
78863
+ };
78864
+ function valueLabel(value) {
78865
+ const known = VALUE_LABELS[value];
78866
+ if (known !== void 0) return known;
78867
+ const holiday = /^hm(\d+)$/.exec(value);
78868
+ if (holiday?.[1] !== void 0) return t(`Programme ${holiday[1]}`, `Programma ${holiday[1]}`);
78869
+ return same(value);
78870
+ }
78871
+ function optionLabels(allowed) {
78872
+ return Object.fromEntries(allowed.map((value) => [value, valueLabel(value)]));
78873
+ }
78874
+ function picker(id, label, setting, method, args, valueArg = "mode") {
78875
+ return {
78876
+ kind: "picker",
78877
+ id,
78878
+ label,
78879
+ current: setting.value,
78880
+ options: [...setting.allowed],
78881
+ optionLabels: optionLabels(setting.allowed),
78882
+ call: {
78883
+ cap: CAP,
78884
+ method,
78885
+ args: { ...args }
78886
+ },
78887
+ valueArg
78888
+ };
78889
+ }
78890
+ /** A selector exists only where the gateway named values to choose from. */
78891
+ function choosable(setting) {
78892
+ return setting !== null && setting.allowed.length > 0;
78893
+ }
78894
+ function circuitControl(circuit) {
78895
+ const args = { circuitId: circuit.id };
78896
+ if (circuit.kind === "dhw" && choosable(circuit.temperatureLevel)) return picker(`heat-pump.${circuit.id}.level`, t("Level", "Livello"), circuit.temperatureLevel, "setDhwTemperatureLevel", args, "level");
78897
+ if (!choosable(circuit.operationMode)) return null;
78898
+ const method = circuit.kind === "dhw" ? "setDhwOperationMode" : "setCircuitOperationMode";
78899
+ return picker(`heat-pump.${circuit.id}.mode`, t("Mode", "Modalità"), circuit.operationMode, method, args);
78900
+ }
78901
+ /** A circuit with no reading is still a row: it shows that nothing is known, not nothing. */
78902
+ var UNKNOWN_STATUS = same("—");
78903
+ function circuitRow(circuit) {
78904
+ const control = circuitControl(circuit);
78905
+ const status = thermalStatusText(circuit.targetTemp, circuit.currentTemp) ?? UNKNOWN_STATUS;
78906
+ return {
78907
+ id: "circuit",
78908
+ label: same(circuit.label),
78909
+ icon: circuit.icon,
78910
+ status,
78911
+ controls: control === null ? [] : [control]
78912
+ };
78913
+ }
78914
+ var kilowatts = (watts) => `${Number((watts / 1e3).toFixed(2))} kW`;
78915
+ function powerPills(status) {
78916
+ const { thermalW, electricalW } = status.power;
78917
+ const cop = heatPumpInstantCop(status.power);
78918
+ const pills = [];
78919
+ if (thermalW !== null) pills.push({
78920
+ icon: "flame",
78921
+ text: t(`Thermal ${kilowatts(thermalW)}`, `Termica ${kilowatts(thermalW)}`),
78922
+ tone: "muted"
78923
+ });
78924
+ if (electricalW !== null) pills.push({
78925
+ icon: "zap",
78926
+ text: t(`Electrical ${kilowatts(electricalW)}`, `Elettrica ${kilowatts(electricalW)}`),
78927
+ tone: "muted"
78928
+ });
78929
+ if (cop !== null) {
78930
+ const text = String(Number(cop.toFixed(1)));
78931
+ pills.push({
78932
+ icon: "gauge",
78933
+ text: t(`Instantaneous COP ${text}`, `COP istantaneo ${text}`),
78934
+ tone: "success"
78935
+ });
78936
+ }
78937
+ return pills;
78938
+ }
78939
+ /** The independent system modes, in the order the card draws them. */
78940
+ var SYSTEM_MODES = [
78941
+ {
78942
+ key: "silent",
78943
+ label: t("Silent", "Silenzioso"),
78944
+ icon: "volume-x",
78945
+ method: "setSilentMode"
78946
+ },
78947
+ {
78948
+ key: "away",
78949
+ label: t("Away", "Assente"),
78950
+ icon: "plane",
78951
+ method: "setAwayMode"
78952
+ },
78953
+ {
78954
+ key: "additionalHeater",
78955
+ label: t("Additional heater", "Riscaldatore aggiuntivo"),
78956
+ icon: "flame",
78957
+ method: "setAdditionalHeaterMode"
78958
+ },
78959
+ {
78960
+ key: "holiday",
78961
+ label: t("Holiday", "Vacanza"),
78962
+ icon: "tree-palm",
78963
+ method: "setHolidayMode"
78964
+ }
78965
+ ];
78966
+ var SYSTEM_GROUP = t("System", "Sistema");
78967
+ var PROGRAMME = /^hm\d+$/;
78968
+ /**
78969
+ * Holiday is two segments, off / programme. Choosing "programme" keeps the programme
78970
+ * that is set, else the first one the gateway allowed, so a write never leaves
78971
+ * `allowed`. The full hm1..hm8 pick is not in the hero (D1026). A holiday whose values
78972
+ * are not programmes keeps the plain selector.
78973
+ */
78974
+ function holidayRow(def, setting) {
78975
+ if (!setting.allowed.includes("off")) return null;
78976
+ const current = setting.value !== null && PROGRAMME.test(setting.value) ? setting.value : null;
78977
+ const programme = current ?? setting.allowed.find((v) => PROGRAMME.test(v));
78978
+ if (programme === void 0) return null;
78979
+ const control = picker("heat-pump.system.holiday", def.label, {
78980
+ value: setting.value,
78981
+ allowed: ["off", programme]
78982
+ }, def.method, {});
78983
+ const number = programme.slice(2);
78984
+ return {
78985
+ id: "system-mode",
78986
+ label: def.label,
78987
+ group: SYSTEM_GROUP,
78988
+ icon: def.icon,
78989
+ status: current === null ? null : t(`Programme ${number}`, `Programma ${number}`),
78990
+ controls: [control.kind === "picker" ? {
78991
+ ...control,
78992
+ optionLabels: {
78993
+ off: t("Off", "Off"),
78994
+ [programme]: t("Programme", "Programma")
78995
+ }
78996
+ } : control]
78997
+ };
78998
+ }
78999
+ function systemRows(status) {
79000
+ const rows = [];
79001
+ for (const def of SYSTEM_MODES) {
79002
+ const setting = status.system[def.key];
79003
+ if (!choosable(setting)) continue;
79004
+ if (def.key === "holiday") {
79005
+ const holiday = holidayRow(def, setting);
79006
+ if (holiday !== null) {
79007
+ rows.push(holiday);
79008
+ continue;
79009
+ }
79010
+ }
79011
+ rows.push({
79012
+ id: "system-mode",
79013
+ label: def.label,
79014
+ group: SYSTEM_GROUP,
79015
+ icon: def.icon,
79016
+ status: null,
79017
+ controls: [picker(`heat-pump.system.${def.key}`, def.label, setting, def.method, {})]
79018
+ });
79019
+ }
79020
+ return rows;
79021
+ }
79022
+ function tile(en, it, value) {
79023
+ return {
79024
+ label: t(en, it),
79025
+ value: same(value)
79026
+ };
79027
+ }
79028
+ function tilesOf$1(status) {
79029
+ const { supply, return: back, outdoor } = status.temperatures;
79030
+ const left = [];
79031
+ const right = [];
79032
+ if (supply !== null) left.push(tile("Supply", "Mandata", formatDegrees(supply)));
79033
+ if (back !== null) left.push(tile("Return", "Ritorno", formatDegrees(back)));
79034
+ if (outdoor !== null) right.push(tile("Outdoor", "Esterna", formatDegrees(outdoor)));
79035
+ if (status.waterPressureBar !== null) right.push(tile("Pressure", "Pressione", `${Number(status.waterPressureBar.toFixed(1))} bar`));
79036
+ return {
79037
+ left,
79038
+ right
79039
+ };
79040
+ }
79041
+ function isRunning(status) {
79042
+ const { compressorPct, electricalW } = status.power;
79043
+ if (compressorPct !== null) return compressorPct > 0;
79044
+ if (electricalW !== null) return electricalW > 0;
79045
+ return null;
79046
+ }
79047
+ var HEAT_PUMP_FAMILY_CONTRIBUTIONS = { "heat-pump-status": contribution("heat-pump-status", HeatPumpStatusSchema, (slice) => {
79048
+ if (slice === void 0) return { reading: reading("climate-control", "unknown") };
79049
+ const running = isRunning(slice);
79050
+ const facts = [];
79051
+ if (slice.power.electricalW !== null) facts.push(fact("power", "zap", same(`${Math.round(slice.power.electricalW)} W`)));
79052
+ if (slice.power.compressorPct !== null) facts.push(fact("level", "gauge", t(`Compressor ${Math.round(slice.power.compressorPct)} %`, `Compressore ${Math.round(slice.power.compressorPct)} %`)));
79053
+ const charging = slice.circuits.find((c) => c.active === true);
79054
+ const tiles = tilesOf$1(slice);
79055
+ const pills = powerPills(slice);
79056
+ const rows = [
79057
+ ...slice.circuits.map(circuitRow),
79058
+ ...pills.length === 0 ? [] : [{
79059
+ id: "heat-pump-power",
79060
+ icon: "zap",
79061
+ status: null,
79062
+ controls: [],
79063
+ pills: [...pills]
79064
+ }],
79065
+ ...systemRows(slice)
79066
+ ];
79067
+ return {
79068
+ reading: reading("climate-control", running === true ? "running" : running === false ? "idle" : "on"),
79069
+ title: t("Heat pump", "Pompa di calore"),
79070
+ ...charging === void 0 ? {} : { caption: t(`${charging.label} · heating`.toUpperCase(), `${charging.label} · in riscaldamento`.toUpperCase()) },
79071
+ facts,
79072
+ ...tiles.left.length === 0 && tiles.right.length === 0 ? {} : { tiles },
79073
+ ...slice.power.electricalW === null ? {} : { consumption: {
79074
+ priority: 1,
79075
+ slot: {
79076
+ kind: "power",
79077
+ watts: slice.power.electricalW,
79078
+ detail: slice.power.thermalW === null ? [] : [{
79079
+ label: t("Thermal", "Termica"),
79080
+ value: Math.round(slice.power.thermalW),
79081
+ unit: "W"
79082
+ }]
79083
+ }
79084
+ } },
79085
+ rows
79086
+ };
79087
+ }) };
78351
79088
  [
78352
79089
  ...Object.values(ACCESS_FAMILY_CONTRIBUTIONS),
78353
79090
  ...Object.values(DEVICES_FAMILY_CONTRIBUTIONS),
78354
79091
  ...Object.values(GROUPS_FAMILY_CONTRIBUTIONS),
78355
79092
  ...Object.values(ACTUATORS_FAMILY_CONTRIBUTIONS),
78356
79093
  ...Object.values(SENSORS_FAMILY_CONTRIBUTIONS),
78357
- ...Object.values(CLIMATE_FAMILY_CONTRIBUTIONS)
79094
+ ...Object.values(CLIMATE_FAMILY_CONTRIBUTIONS),
79095
+ ...Object.values(HEAT_PUMP_FAMILY_CONTRIBUTIONS)
78358
79096
  ];
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;
79097
+ DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.HeatPump, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Heater, DeviceType.Dryer, DeviceType.Gateway;
78360
79098
  /**
78361
79099
  * Who looks like what (D1023). One look per {@link DeviceType}, refined by a
78362
79100
  * {@link DeviceRole} where the role changes how the device reads (a leak
@@ -78746,7 +79484,7 @@ lookOf({
78746
79484
  ({ ...lookOf({
78747
79485
  icon: "shield-check",
78748
79486
  on: [
78749
- "success",
79487
+ "danger",
78750
79488
  "glow",
78751
79489
  "halo"
78752
79490
  ],
@@ -78984,8 +79722,24 @@ lookOf({
78984
79722
  idle: INFO,
78985
79723
  standby: MUTED
78986
79724
  });
79725
+ lookOf({
79726
+ icon: "thermometer-sun",
79727
+ on: [
79728
+ "warning",
79729
+ "heat-rise",
79730
+ "rise"
79731
+ ],
79732
+ off: MUTED,
79733
+ running: [
79734
+ "warning",
79735
+ "heat-rise",
79736
+ "rise"
79737
+ ],
79738
+ idle: INFO,
79739
+ standby: MUTED
79740
+ });
78987
79741
  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;
79742
+ DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.HeatPump, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Heater, DeviceType.Dryer, DeviceType.Gateway;
78989
79743
  DeviceRole.Siren, DeviceRole.Floodlight, DeviceRole.Spotlight, DeviceRole.PirSensor, DeviceRole.Chime, DeviceRole.Autotrack, DeviceRole.Nightvision, DeviceRole.PrivacyMask, DeviceRole.Doorbell, DeviceRole.CoverBlind, DeviceRole.CoverShutter, DeviceRole.CoverAwning, DeviceRole.CoverCurtain, DeviceRole.CoverGarage, DeviceRole.CoverGate, DeviceRole.CoverDoor, DeviceRole.CoverWindow, DeviceRole.BinaryHelper, DeviceRole.Outlet, DeviceRole.MotionSensor, DeviceRole.ContactSensor, DeviceRole.LeakSensor, DeviceRole.SmokeSensor, DeviceRole.COSensor, DeviceRole.GasSensor, DeviceRole.TamperSensor, DeviceRole.VibrationSensor, DeviceRole.ConnectivitySensor, DeviceRole.SoundSensor, DeviceRole.BinarySensor, DeviceRole.TemperatureSensor, DeviceRole.HumiditySensor, DeviceRole.AmbientLightSensor, DeviceRole.PressureSensor, DeviceRole.WindSensor, DeviceRole.RainSensor, DeviceRole.UvSensor, DeviceRole.SolarRadiationSensor, DeviceRole.SoilMoistureSensor, DeviceRole.PowerSensor, DeviceRole.EnergySensor, DeviceRole.VoltageSensor, DeviceRole.CurrentSensor, DeviceRole.AirQualitySensor, DeviceRole.BatterySensor, DeviceRole.NumericSensor, DeviceRole.EnumSensor, DeviceRole.DateTimeSensor, DeviceRole.GenericSensor, DeviceRole.NumericControl, DeviceRole.SelectControl, DeviceRole.TextControl, DeviceRole.DateTimeControl, DeviceRole.MobilePushNotifier, DeviceRole.MessagingNotifier, DeviceRole.EmailNotifier, DeviceRole.GenericNotifier, DeviceRole.IrTransmitter;
78990
79744
  Object.freeze({
78991
79745
  "accessories.getStatus": {
@@ -82481,6 +83235,111 @@ Object.freeze({
82481
83235
  access: "view",
82482
83236
  role: "viewer"
82483
83237
  },
83238
+ "heatPumpControl.setAdditionalHeaterMode": {
83239
+ capName: "heat-pump-control",
83240
+ capScope: "device",
83241
+ addonId: null,
83242
+ access: "create",
83243
+ role: "viewer"
83244
+ },
83245
+ "heatPumpControl.setAwayMode": {
83246
+ capName: "heat-pump-control",
83247
+ capScope: "device",
83248
+ addonId: null,
83249
+ access: "create",
83250
+ role: "viewer"
83251
+ },
83252
+ "heatPumpControl.setCircuitComfortSetpoint": {
83253
+ capName: "heat-pump-control",
83254
+ capScope: "device",
83255
+ addonId: null,
83256
+ access: "create",
83257
+ role: "viewer"
83258
+ },
83259
+ "heatPumpControl.setCircuitEcoSetpoint": {
83260
+ capName: "heat-pump-control",
83261
+ capScope: "device",
83262
+ addonId: null,
83263
+ access: "create",
83264
+ role: "viewer"
83265
+ },
83266
+ "heatPumpControl.setCircuitHeatCoolMode": {
83267
+ capName: "heat-pump-control",
83268
+ capScope: "device",
83269
+ addonId: null,
83270
+ access: "create",
83271
+ role: "viewer"
83272
+ },
83273
+ "heatPumpControl.setCircuitMaxFlowTemp": {
83274
+ capName: "heat-pump-control",
83275
+ capScope: "device",
83276
+ addonId: null,
83277
+ access: "create",
83278
+ role: "viewer"
83279
+ },
83280
+ "heatPumpControl.setCircuitOperationMode": {
83281
+ capName: "heat-pump-control",
83282
+ capScope: "device",
83283
+ addonId: null,
83284
+ access: "create",
83285
+ role: "viewer"
83286
+ },
83287
+ "heatPumpControl.setCircuitSummerWinter": {
83288
+ capName: "heat-pump-control",
83289
+ capScope: "device",
83290
+ addonId: null,
83291
+ access: "create",
83292
+ role: "viewer"
83293
+ },
83294
+ "heatPumpControl.setDhwChargeDuration": {
83295
+ capName: "heat-pump-control",
83296
+ capScope: "device",
83297
+ addonId: null,
83298
+ access: "create",
83299
+ role: "viewer"
83300
+ },
83301
+ "heatPumpControl.setDhwOperationMode": {
83302
+ capName: "heat-pump-control",
83303
+ capScope: "device",
83304
+ addonId: null,
83305
+ access: "create",
83306
+ role: "viewer"
83307
+ },
83308
+ "heatPumpControl.setDhwTemperatureLevel": {
83309
+ capName: "heat-pump-control",
83310
+ capScope: "device",
83311
+ addonId: null,
83312
+ access: "create",
83313
+ role: "viewer"
83314
+ },
83315
+ "heatPumpControl.setHolidayMode": {
83316
+ capName: "heat-pump-control",
83317
+ capScope: "device",
83318
+ addonId: null,
83319
+ access: "create",
83320
+ role: "viewer"
83321
+ },
83322
+ "heatPumpControl.setSilentMode": {
83323
+ capName: "heat-pump-control",
83324
+ capScope: "device",
83325
+ addonId: null,
83326
+ access: "create",
83327
+ role: "viewer"
83328
+ },
83329
+ "heatPumpControl.startExtraHotWater": {
83330
+ capName: "heat-pump-control",
83331
+ capScope: "device",
83332
+ addonId: null,
83333
+ access: "create",
83334
+ role: "viewer"
83335
+ },
83336
+ "heatPumpStatus.getStatus": {
83337
+ capName: "heat-pump-status",
83338
+ capScope: "device",
83339
+ addonId: null,
83340
+ access: "view",
83341
+ role: "viewer"
83342
+ },
82484
83343
  "heroLayout.getHeroModel": {
82485
83344
  capName: "hero-layout",
82486
83345
  capScope: "system",
@@ -89320,7 +90179,7 @@ function projectAction(cap, action) {
89320
90179
  };
89321
90180
  }
89322
90181
  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;
90182
+ DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.HeatPump, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Heater, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway;
89324
90183
  DeviceFeature.BatteryOperated;
89325
90184
  DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher;
89326
90185
  var HA_AS = "a power sensor (device_class power). Home Assistant has no laundry domain. running-state stays unexported until a null reading can be published as unavailable.";
@@ -90444,6 +91303,81 @@ Object.freeze({
90444
91303
  form: "single",
90445
91304
  optional: false
90446
91305
  }],
91306
+ "heatPumpControl.setAdditionalHeaterMode": [{
91307
+ name: "deviceId",
91308
+ form: "single",
91309
+ optional: false
91310
+ }],
91311
+ "heatPumpControl.setAwayMode": [{
91312
+ name: "deviceId",
91313
+ form: "single",
91314
+ optional: false
91315
+ }],
91316
+ "heatPumpControl.setCircuitComfortSetpoint": [{
91317
+ name: "deviceId",
91318
+ form: "single",
91319
+ optional: false
91320
+ }],
91321
+ "heatPumpControl.setCircuitEcoSetpoint": [{
91322
+ name: "deviceId",
91323
+ form: "single",
91324
+ optional: false
91325
+ }],
91326
+ "heatPumpControl.setCircuitHeatCoolMode": [{
91327
+ name: "deviceId",
91328
+ form: "single",
91329
+ optional: false
91330
+ }],
91331
+ "heatPumpControl.setCircuitMaxFlowTemp": [{
91332
+ name: "deviceId",
91333
+ form: "single",
91334
+ optional: false
91335
+ }],
91336
+ "heatPumpControl.setCircuitOperationMode": [{
91337
+ name: "deviceId",
91338
+ form: "single",
91339
+ optional: false
91340
+ }],
91341
+ "heatPumpControl.setCircuitSummerWinter": [{
91342
+ name: "deviceId",
91343
+ form: "single",
91344
+ optional: false
91345
+ }],
91346
+ "heatPumpControl.setDhwChargeDuration": [{
91347
+ name: "deviceId",
91348
+ form: "single",
91349
+ optional: false
91350
+ }],
91351
+ "heatPumpControl.setDhwOperationMode": [{
91352
+ name: "deviceId",
91353
+ form: "single",
91354
+ optional: false
91355
+ }],
91356
+ "heatPumpControl.setDhwTemperatureLevel": [{
91357
+ name: "deviceId",
91358
+ form: "single",
91359
+ optional: false
91360
+ }],
91361
+ "heatPumpControl.setHolidayMode": [{
91362
+ name: "deviceId",
91363
+ form: "single",
91364
+ optional: false
91365
+ }],
91366
+ "heatPumpControl.setSilentMode": [{
91367
+ name: "deviceId",
91368
+ form: "single",
91369
+ optional: false
91370
+ }],
91371
+ "heatPumpControl.startExtraHotWater": [{
91372
+ name: "deviceId",
91373
+ form: "single",
91374
+ optional: false
91375
+ }],
91376
+ "heatPumpStatus.getStatus": [{
91377
+ name: "deviceId",
91378
+ form: "single",
91379
+ optional: false
91380
+ }],
90447
91381
  "heroLayout.getHeroModel": [{
90448
91382
  name: "deviceId",
90449
91383
  form: "single",
@@ -93761,7 +94695,7 @@ var AdminUIAddon = class extends BaseAddon {
93761
94695
  capability: adminUiCapability,
93762
94696
  provider: {
93763
94697
  getStaticDir: async () => ({ staticDir: resolveAdminUiDistDir() }),
93764
- getVersion: async () => ({ version: "1.2.627" })
94698
+ getVersion: async () => ({ version: "1.2.628" })
93765
94699
  }
93766
94700
  }];
93767
94701
  }