@camstack/types 1.2.534 → 1.2.535

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 (44) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/addon.js +2 -2
  3. package/dist/addon.mjs +2 -2
  4. package/dist/capabilities/heat-pump-control.cap.d.ts +83 -0
  5. package/dist/capabilities/heat-pump-status.cap.d.ts +517 -0
  6. package/dist/capabilities/hero-layout.cap.d.ts +46 -0
  7. package/dist/capabilities/index.d.ts +5 -1
  8. package/dist/client.js +24 -0
  9. package/dist/client.mjs +24 -0
  10. package/dist/{composition-BjHGoicU.js → composition-BxalDSTt.js} +1 -1
  11. package/dist/{composition-CXCX78IR.mjs → composition-C6TZGqUb.mjs} +1 -1
  12. package/dist/device/cap-vocabulary/entries/heat-pump.d.ts +4 -0
  13. package/dist/device/device-type.d.ts +5 -1
  14. package/dist/device/hero/build-hero-model.d.ts +2 -0
  15. package/dist/device/hero/climate-view.d.ts +4 -0
  16. package/dist/device/hero/hero-contributions-heat-pump.d.ts +2 -0
  17. package/dist/device/hero/hero-fragment.d.ts +4 -0
  18. package/dist/device/hero/hero-layout.d.ts +1 -0
  19. package/dist/device/hero/hero-look.d.ts +6 -0
  20. package/dist/device/hero/hero-model.d.ts +80 -1
  21. package/dist/device/hero/hero-row.d.ts +5 -0
  22. package/dist/device/hero/hero-scene.d.ts +4 -1
  23. package/dist/device/hero/index.d.ts +1 -1
  24. package/dist/{device-type-BaYa0UGS.js → device-type-BfvqqzRp.js} +4 -0
  25. package/dist/{device-type-CbDhVwFP.mjs → device-type-DTTZKB2I.mjs} +4 -0
  26. package/dist/generated/addon-api.d.ts +120 -0
  27. package/dist/generated/addon-cap-facts.d.ts +1 -1
  28. package/dist/generated/cap-status-types.d.ts +3 -1
  29. package/dist/generated/capability-router-map.d.ts +8 -2
  30. package/dist/generated/customize-catalog.d.ts +1 -1
  31. package/dist/generated/device-local-state.d.ts +3 -0
  32. package/dist/generated/device-proxy.d.ts +5 -0
  33. package/dist/generated/device-scoped-caps.d.ts +1 -1
  34. package/dist/generated/history-catalog.d.ts +2 -2
  35. package/dist/generated/method-access-map.d.ts +1 -1
  36. package/dist/generated/method-device-selectors.d.ts +1 -1
  37. package/dist/generated/runtime-state-durability.d.ts +1 -1
  38. package/dist/index.js +1375 -139
  39. package/dist/index.mjs +1361 -140
  40. package/dist/node.js +2 -2
  41. package/dist/node.mjs +2 -2
  42. package/dist/{sleep-DhZXJtPH.js → sleep-CCAQ_PEp.js} +201 -5
  43. package/dist/{sleep-CkinsFFb.mjs → sleep-DnVqHJc4.mjs} +201 -5
  44. package/package.json +1 -1
package/dist/node.js CHANGED
@@ -21,8 +21,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
21
21
  enumerable: true
22
22
  }) : target, mod));
23
23
  //#endregion
24
- const require_device_type = require("./device-type-BaYa0UGS.js");
25
- const require_composition = require("./composition-BjHGoicU.js");
24
+ const require_device_type = require("./device-type-BfvqqzRp.js");
25
+ const require_composition = require("./composition-BxalDSTt.js");
26
26
  let node_crypto = require("node:crypto");
27
27
  let node_fs = require("node:fs");
28
28
  node_fs = __toESM(node_fs);
package/dist/node.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { o as errMsg } from "./device-type-CbDhVwFP.mjs";
2
- import { Fn as getFfmpegArtifact, In as getFfmpegDownloadUrl, Ln as canonicalHash, Mn as chooseFfmpegBinary, Nn as ffmpegBinaryName, Pn as FFMPEG_RELEASE, R as compositionSourceKey, Rn as Fmp4BoxSplitter, Un as buildFfmpegArgs, a as CUSTOMIZATION_BLOCK_NAME_PREFIX, jn as FFMPEG_PATH_ENV, qn as isSoftwareDecode } from "./composition-CXCX78IR.mjs";
1
+ import { o as errMsg } from "./device-type-DTTZKB2I.mjs";
2
+ import { Fn as getFfmpegArtifact, In as getFfmpegDownloadUrl, Ln as canonicalHash, Mn as chooseFfmpegBinary, Nn as ffmpegBinaryName, Pn as FFMPEG_RELEASE, R as compositionSourceKey, Rn as Fmp4BoxSplitter, Un as buildFfmpegArgs, a as CUSTOMIZATION_BLOCK_NAME_PREFIX, jn as FFMPEG_PATH_ENV, qn as isSoftwareDecode } from "./composition-C6TZGqUb.mjs";
3
3
  import { createHash, createHmac, randomUUID, timingSafeEqual } from "node:crypto";
4
4
  import * as fs from "node:fs";
5
5
  import { chmodSync, copyFileSync, createWriteStream, existsSync, mkdirSync, readFileSync, readdirSync, realpathSync, renameSync, rmSync, unlinkSync, writeFileSync } from "node:fs";
@@ -1,5 +1,5 @@
1
1
  const require_event_category = require("./event-category-BC4RRerT.js");
2
- const require_device_type = require("./device-type-BaYa0UGS.js");
2
+ const require_device_type = require("./device-type-BfvqqzRp.js");
3
3
  let zod = require("zod");
4
4
  //#region src/audio/audio-chunk-format.ts
5
5
  /**
@@ -7843,7 +7843,7 @@ function t(en, it) {
7843
7843
  * Things an operator switches, opens, sets or arms: lights, plugs, sirens,
7844
7844
  * covers, valves, locks, climate, fans, alarm panels.
7845
7845
  */
7846
- var ON = t("On", "Acceso");
7846
+ var ON$1 = t("On", "Acceso");
7847
7847
  var PERCENT = t("Percentage", "Percentuale");
7848
7848
  var OPEN_CLOSE_STATES = [
7849
7849
  {
@@ -7903,7 +7903,7 @@ var ACTUATOR_CAP_VOCABULARY = {
7903
7903
  state: [{
7904
7904
  kind: "boolean",
7905
7905
  field: "on",
7906
- label: ON,
7906
+ label: ON$1,
7907
7907
  whenTrue: t("When {device} turns on", "Quando {device} si accende"),
7908
7908
  whenFalse: t("When {device} turns off", "Quando {device} si spegne"),
7909
7909
  icon: "power"
@@ -9069,7 +9069,7 @@ var ACTUATOR_CAP_VOCABULARY = {
9069
9069
  state: [{
9070
9070
  kind: "boolean",
9071
9071
  field: "on",
9072
- label: ON,
9072
+ label: ON$1,
9073
9073
  whenTrue: t("When {device} turns on", "Quando {device} si accende"),
9074
9074
  whenFalse: t("When {device} turns off", "Quando {device} si spegne"),
9075
9075
  icon: "power"
@@ -11485,6 +11485,135 @@ var CAMERA_CAP_VOCABULARY = {
11485
11485
  }
11486
11486
  };
11487
11487
  //#endregion
11488
+ //#region src/device/cap-vocabulary/entries/heat-pump.ts
11489
+ /**
11490
+ * The heat pump (D1026): its system modes are phrased for automations, each with the
11491
+ * values the gateway really accepts; the per-circuit parameters need a circuit and are
11492
+ * set from the device page.
11493
+ */
11494
+ var OFF = {
11495
+ value: "off",
11496
+ label: t("Off", "Off")
11497
+ };
11498
+ var AUTO = {
11499
+ value: "auto",
11500
+ label: t("Auto", "Auto")
11501
+ };
11502
+ var ON = {
11503
+ value: "on",
11504
+ label: t("On", "On")
11505
+ };
11506
+ var MANUAL = {
11507
+ value: "manual",
11508
+ label: t("Manual", "Manuale")
11509
+ };
11510
+ var HOLIDAY_PROGRAMMES = [OFF, ...[
11511
+ 1,
11512
+ 2,
11513
+ 3,
11514
+ 4,
11515
+ 5,
11516
+ 6,
11517
+ 7,
11518
+ 8
11519
+ ].map((n) => ({
11520
+ value: `hm${n}`,
11521
+ label: t(`Programme ${n}`, `Programma ${n}`)
11522
+ }))];
11523
+ var PER_CIRCUIT = "Needs a circuit: set from the device page, not offered to automations";
11524
+ var HEAT_PUMP_CAP_VOCABULARY = {
11525
+ "heat-pump-status": {
11526
+ scope: "device",
11527
+ noun: t("Heat pump", "Pompa di calore")
11528
+ },
11529
+ "heat-pump-control": {
11530
+ scope: "device",
11531
+ noun: t("Heat pump settings", "Impostazioni pompa di calore"),
11532
+ actions: [
11533
+ {
11534
+ id: "heatPump.silent",
11535
+ method: "setSilentMode",
11536
+ label: t("Set silent mode", "Imposta la modalità silenziosa"),
11537
+ phrase: t("Set silent mode of {device} to {mode}", "Imposta la modalità silenziosa di {device} su {mode}"),
11538
+ icon: "volume-x",
11539
+ openArgs: [{
11540
+ key: "mode",
11541
+ label: t("Silent mode", "Modalità silenziosa"),
11542
+ offer: {
11543
+ kind: "enum",
11544
+ values: [
11545
+ OFF,
11546
+ AUTO,
11547
+ ON
11548
+ ]
11549
+ }
11550
+ }]
11551
+ },
11552
+ {
11553
+ id: "heatPump.away",
11554
+ method: "setAwayMode",
11555
+ label: t("Set away mode", "Imposta la modalità assente"),
11556
+ phrase: t("Set away mode of {device} to {mode}", "Imposta la modalità assente di {device} su {mode}"),
11557
+ icon: "plane",
11558
+ openArgs: [{
11559
+ key: "mode",
11560
+ label: t("Away mode", "Modalità assente"),
11561
+ offer: {
11562
+ kind: "enum",
11563
+ values: [OFF, ON]
11564
+ }
11565
+ }]
11566
+ },
11567
+ {
11568
+ id: "heatPump.additionalHeater",
11569
+ method: "setAdditionalHeaterMode",
11570
+ label: t("Set additional heater", "Imposta il riscaldatore aggiuntivo"),
11571
+ phrase: t("Set the additional heater of {device} to {mode}", "Imposta il riscaldatore aggiuntivo di {device} su {mode}"),
11572
+ icon: "flame",
11573
+ openArgs: [{
11574
+ key: "mode",
11575
+ label: t("Additional heater", "Riscaldatore aggiuntivo"),
11576
+ offer: {
11577
+ kind: "enum",
11578
+ values: [
11579
+ OFF,
11580
+ MANUAL,
11581
+ AUTO
11582
+ ]
11583
+ }
11584
+ }]
11585
+ },
11586
+ {
11587
+ id: "heatPump.holiday",
11588
+ method: "setHolidayMode",
11589
+ label: t("Set holiday mode", "Imposta la modalità vacanza"),
11590
+ phrase: t("Set holiday mode of {device} to {mode}", "Imposta la modalità vacanza di {device} su {mode}"),
11591
+ icon: "tree-palm",
11592
+ openArgs: [{
11593
+ key: "mode",
11594
+ label: t("Holiday programme", "Programma vacanza"),
11595
+ offer: {
11596
+ kind: "enum",
11597
+ values: HOLIDAY_PROGRAMMES
11598
+ }
11599
+ }]
11600
+ }
11601
+ ],
11602
+ notOperatorFacing: {
11603
+ setCircuitOperationMode: PER_CIRCUIT,
11604
+ setCircuitHeatCoolMode: PER_CIRCUIT,
11605
+ setCircuitSummerWinter: PER_CIRCUIT,
11606
+ setCircuitComfortSetpoint: PER_CIRCUIT,
11607
+ setCircuitEcoSetpoint: PER_CIRCUIT,
11608
+ setCircuitMaxFlowTemp: PER_CIRCUIT,
11609
+ setDhwOperationMode: PER_CIRCUIT,
11610
+ setDhwTemperatureLevel: PER_CIRCUIT,
11611
+ setDhwChargeDuration: PER_CIRCUIT,
11612
+ startExtraHotWater: PER_CIRCUIT
11613
+ }
11614
+ }
11615
+ };
11616
+ //#endregion
11488
11617
  //#region src/device/cap-vocabulary/entries/sensors.ts
11489
11618
  /**
11490
11619
  * Things an operator WATCHES: contacts, motion, leaks, smoke, measurements,
@@ -12223,6 +12352,7 @@ var CAP_VOCABULARY = {
12223
12352
  ...ACTUATOR_CAP_VOCABULARY,
12224
12353
  ...APPLIANCE_CAP_VOCABULARY,
12225
12354
  ...CAMERA_CAP_VOCABULARY,
12355
+ ...HEAT_PUMP_CAP_VOCABULARY,
12226
12356
  ...SENSOR_CAP_VOCABULARY,
12227
12357
  ...SYSTEM_CAP_VOCABULARY
12228
12358
  };
@@ -12878,6 +13008,8 @@ var CAP_NAMES = Object.freeze([
12878
13008
  "group-active",
12879
13009
  "group-commands",
12880
13010
  "group-status",
13011
+ "heat-pump-control",
13012
+ "heat-pump-status",
12881
13013
  "heating-valve",
12882
13014
  "hero-layout",
12883
13015
  "humidifier",
@@ -13744,6 +13876,48 @@ var CAP_STATE_LEAVES = Object.freeze({
13744
13876
  "valueType": "number"
13745
13877
  }
13746
13878
  ],
13879
+ "heat-pump-status": [
13880
+ {
13881
+ "path": "power.thermalW",
13882
+ "valueType": "number"
13883
+ },
13884
+ {
13885
+ "path": "power.electricalW",
13886
+ "valueType": "number"
13887
+ },
13888
+ {
13889
+ "path": "power.compressorPct",
13890
+ "valueType": "number"
13891
+ },
13892
+ {
13893
+ "path": "temperatures.supply",
13894
+ "valueType": "number"
13895
+ },
13896
+ {
13897
+ "path": "temperatures.return",
13898
+ "valueType": "number"
13899
+ },
13900
+ {
13901
+ "path": "temperatures.outdoor",
13902
+ "valueType": "number"
13903
+ },
13904
+ {
13905
+ "path": "energy.thermalKwh",
13906
+ "valueType": "number"
13907
+ },
13908
+ {
13909
+ "path": "energy.electricalKwh",
13910
+ "valueType": "number"
13911
+ },
13912
+ {
13913
+ "path": "waterPressureBar",
13914
+ "valueType": "number"
13915
+ },
13916
+ {
13917
+ "path": "starts",
13918
+ "valueType": "number"
13919
+ }
13920
+ ],
13747
13921
  "heating-valve": [{
13748
13922
  "path": "position",
13749
13923
  "valueType": "number"
@@ -15516,6 +15690,23 @@ function createDeviceProxy(api, binding, opts) {
15516
15690
  const groupCommandsInterface = { getStatus: (input) => dispatch("group-commands", "groupCommands", "getStatus", "query", input) };
15517
15691
  const groupStatusInterface = { getStatus: (input) => dispatch("group-status", "groupStatus", "getStatus", "query", input) };
15518
15692
  const heatingValveInterface = { getStatus: (input) => dispatch("heating-valve", "heatingValve", "getStatus", "query", input) };
15693
+ const heatPumpControlInterface = {
15694
+ setSilentMode: (input) => dispatch("heat-pump-control", "heatPumpControl", "setSilentMode", "mutation", input),
15695
+ setAwayMode: (input) => dispatch("heat-pump-control", "heatPumpControl", "setAwayMode", "mutation", input),
15696
+ setAdditionalHeaterMode: (input) => dispatch("heat-pump-control", "heatPumpControl", "setAdditionalHeaterMode", "mutation", input),
15697
+ setHolidayMode: (input) => dispatch("heat-pump-control", "heatPumpControl", "setHolidayMode", "mutation", input),
15698
+ setCircuitOperationMode: (input) => dispatch("heat-pump-control", "heatPumpControl", "setCircuitOperationMode", "mutation", input),
15699
+ setCircuitHeatCoolMode: (input) => dispatch("heat-pump-control", "heatPumpControl", "setCircuitHeatCoolMode", "mutation", input),
15700
+ setCircuitSummerWinter: (input) => dispatch("heat-pump-control", "heatPumpControl", "setCircuitSummerWinter", "mutation", input),
15701
+ setCircuitComfortSetpoint: (input) => dispatch("heat-pump-control", "heatPumpControl", "setCircuitComfortSetpoint", "mutation", input),
15702
+ setCircuitEcoSetpoint: (input) => dispatch("heat-pump-control", "heatPumpControl", "setCircuitEcoSetpoint", "mutation", input),
15703
+ setCircuitMaxFlowTemp: (input) => dispatch("heat-pump-control", "heatPumpControl", "setCircuitMaxFlowTemp", "mutation", input),
15704
+ setDhwOperationMode: (input) => dispatch("heat-pump-control", "heatPumpControl", "setDhwOperationMode", "mutation", input),
15705
+ setDhwTemperatureLevel: (input) => dispatch("heat-pump-control", "heatPumpControl", "setDhwTemperatureLevel", "mutation", input),
15706
+ setDhwChargeDuration: (input) => dispatch("heat-pump-control", "heatPumpControl", "setDhwChargeDuration", "mutation", input),
15707
+ startExtraHotWater: (input) => dispatch("heat-pump-control", "heatPumpControl", "startExtraHotWater", "mutation", input)
15708
+ };
15709
+ const heatPumpStatusInterface = { getStatus: (input) => dispatch("heat-pump-status", "heatPumpStatus", "getStatus", "query", input) };
15519
15710
  const humidifierInterface = {
15520
15711
  setOn: (input) => dispatch("humidifier", "humidifier", "setOn", "mutation", input),
15521
15712
  setTargetHumidity: (input) => dispatch("humidifier", "humidifier", "setTargetHumidity", "mutation", input),
@@ -16117,6 +16308,7 @@ function createDeviceProxy(api, binding, opts) {
16117
16308
  groupCommands: createSliceHandle(stateSource, binding.deviceId, "group-commands"),
16118
16309
  groupStatus: createSliceHandle(stateSource, binding.deviceId, "group-status"),
16119
16310
  heatingValve: createSliceHandle(stateSource, binding.deviceId, "heating-valve"),
16311
+ heatPumpStatus: createSliceHandle(stateSource, binding.deviceId, "heat-pump-status"),
16120
16312
  humidifier: createSliceHandle(stateSource, binding.deviceId, "humidifier"),
16121
16313
  humiditySensor: createSliceHandle(stateSource, binding.deviceId, "humidity-sensor"),
16122
16314
  image: createSliceHandle(stateSource, binding.deviceId, "image"),
@@ -16211,6 +16403,8 @@ function createDeviceProxy(api, binding, opts) {
16211
16403
  ...bound("group-commands") ? { groupCommands: groupCommandsInterface } : {},
16212
16404
  ...bound("group-status") ? { groupStatus: groupStatusInterface } : {},
16213
16405
  ...bound("heating-valve") ? { heatingValve: heatingValveInterface } : {},
16406
+ ...bound("heat-pump-control") ? { heatPumpControl: heatPumpControlInterface } : {},
16407
+ ...bound("heat-pump-status") ? { heatPumpStatus: heatPumpStatusInterface } : {},
16214
16408
  ...bound("humidifier") ? { humidifier: humidifierInterface } : {},
16215
16409
  ...bound("humidity-sensor") ? { humiditySensor: humiditySensorInterface } : {},
16216
16410
  ...bound("image") ? { image: imageInterface } : {},
@@ -16300,7 +16494,7 @@ function createDeviceProxy(api, binding, opts) {
16300
16494
  * can answer "may a rule actuate this?" without importing the schema barrel
16301
16495
  * (~144MB RSS per runner, D28).
16302
16496
  *
16303
- * Coverage: 103 device-scoped capabilities.
16497
+ * Coverage: 105 device-scoped capabilities.
16304
16498
  */
16305
16499
  var DEVICE_SCOPED_CAPS = new Set([
16306
16500
  "accessories",
@@ -16347,6 +16541,8 @@ var DEVICE_SCOPED_CAPS = new Set([
16347
16541
  "group-active",
16348
16542
  "group-commands",
16349
16543
  "group-status",
16544
+ "heat-pump-control",
16545
+ "heat-pump-status",
16350
16546
  "heating-valve",
16351
16547
  "humidifier",
16352
16548
  "humidity-sensor",
@@ -1,5 +1,5 @@
1
1
  import { t as EventCategory } from "./event-category-78tcBemo.mjs";
2
- import { i as DeviceType, o as errMsg, r as DeviceRole } from "./device-type-CbDhVwFP.mjs";
2
+ import { i as DeviceType, o as errMsg, r as DeviceRole } from "./device-type-DTTZKB2I.mjs";
3
3
  import { z } from "zod";
4
4
  //#region src/audio/audio-chunk-format.ts
5
5
  /**
@@ -7843,7 +7843,7 @@ function t(en, it) {
7843
7843
  * Things an operator switches, opens, sets or arms: lights, plugs, sirens,
7844
7844
  * covers, valves, locks, climate, fans, alarm panels.
7845
7845
  */
7846
- var ON = t("On", "Acceso");
7846
+ var ON$1 = t("On", "Acceso");
7847
7847
  var PERCENT = t("Percentage", "Percentuale");
7848
7848
  var OPEN_CLOSE_STATES = [
7849
7849
  {
@@ -7903,7 +7903,7 @@ var ACTUATOR_CAP_VOCABULARY = {
7903
7903
  state: [{
7904
7904
  kind: "boolean",
7905
7905
  field: "on",
7906
- label: ON,
7906
+ label: ON$1,
7907
7907
  whenTrue: t("When {device} turns on", "Quando {device} si accende"),
7908
7908
  whenFalse: t("When {device} turns off", "Quando {device} si spegne"),
7909
7909
  icon: "power"
@@ -9069,7 +9069,7 @@ var ACTUATOR_CAP_VOCABULARY = {
9069
9069
  state: [{
9070
9070
  kind: "boolean",
9071
9071
  field: "on",
9072
- label: ON,
9072
+ label: ON$1,
9073
9073
  whenTrue: t("When {device} turns on", "Quando {device} si accende"),
9074
9074
  whenFalse: t("When {device} turns off", "Quando {device} si spegne"),
9075
9075
  icon: "power"
@@ -11485,6 +11485,135 @@ var CAMERA_CAP_VOCABULARY = {
11485
11485
  }
11486
11486
  };
11487
11487
  //#endregion
11488
+ //#region src/device/cap-vocabulary/entries/heat-pump.ts
11489
+ /**
11490
+ * The heat pump (D1026): its system modes are phrased for automations, each with the
11491
+ * values the gateway really accepts; the per-circuit parameters need a circuit and are
11492
+ * set from the device page.
11493
+ */
11494
+ var OFF = {
11495
+ value: "off",
11496
+ label: t("Off", "Off")
11497
+ };
11498
+ var AUTO = {
11499
+ value: "auto",
11500
+ label: t("Auto", "Auto")
11501
+ };
11502
+ var ON = {
11503
+ value: "on",
11504
+ label: t("On", "On")
11505
+ };
11506
+ var MANUAL = {
11507
+ value: "manual",
11508
+ label: t("Manual", "Manuale")
11509
+ };
11510
+ var HOLIDAY_PROGRAMMES = [OFF, ...[
11511
+ 1,
11512
+ 2,
11513
+ 3,
11514
+ 4,
11515
+ 5,
11516
+ 6,
11517
+ 7,
11518
+ 8
11519
+ ].map((n) => ({
11520
+ value: `hm${n}`,
11521
+ label: t(`Programme ${n}`, `Programma ${n}`)
11522
+ }))];
11523
+ var PER_CIRCUIT = "Needs a circuit: set from the device page, not offered to automations";
11524
+ var HEAT_PUMP_CAP_VOCABULARY = {
11525
+ "heat-pump-status": {
11526
+ scope: "device",
11527
+ noun: t("Heat pump", "Pompa di calore")
11528
+ },
11529
+ "heat-pump-control": {
11530
+ scope: "device",
11531
+ noun: t("Heat pump settings", "Impostazioni pompa di calore"),
11532
+ actions: [
11533
+ {
11534
+ id: "heatPump.silent",
11535
+ method: "setSilentMode",
11536
+ label: t("Set silent mode", "Imposta la modalità silenziosa"),
11537
+ phrase: t("Set silent mode of {device} to {mode}", "Imposta la modalità silenziosa di {device} su {mode}"),
11538
+ icon: "volume-x",
11539
+ openArgs: [{
11540
+ key: "mode",
11541
+ label: t("Silent mode", "Modalità silenziosa"),
11542
+ offer: {
11543
+ kind: "enum",
11544
+ values: [
11545
+ OFF,
11546
+ AUTO,
11547
+ ON
11548
+ ]
11549
+ }
11550
+ }]
11551
+ },
11552
+ {
11553
+ id: "heatPump.away",
11554
+ method: "setAwayMode",
11555
+ label: t("Set away mode", "Imposta la modalità assente"),
11556
+ phrase: t("Set away mode of {device} to {mode}", "Imposta la modalità assente di {device} su {mode}"),
11557
+ icon: "plane",
11558
+ openArgs: [{
11559
+ key: "mode",
11560
+ label: t("Away mode", "Modalità assente"),
11561
+ offer: {
11562
+ kind: "enum",
11563
+ values: [OFF, ON]
11564
+ }
11565
+ }]
11566
+ },
11567
+ {
11568
+ id: "heatPump.additionalHeater",
11569
+ method: "setAdditionalHeaterMode",
11570
+ label: t("Set additional heater", "Imposta il riscaldatore aggiuntivo"),
11571
+ phrase: t("Set the additional heater of {device} to {mode}", "Imposta il riscaldatore aggiuntivo di {device} su {mode}"),
11572
+ icon: "flame",
11573
+ openArgs: [{
11574
+ key: "mode",
11575
+ label: t("Additional heater", "Riscaldatore aggiuntivo"),
11576
+ offer: {
11577
+ kind: "enum",
11578
+ values: [
11579
+ OFF,
11580
+ MANUAL,
11581
+ AUTO
11582
+ ]
11583
+ }
11584
+ }]
11585
+ },
11586
+ {
11587
+ id: "heatPump.holiday",
11588
+ method: "setHolidayMode",
11589
+ label: t("Set holiday mode", "Imposta la modalità vacanza"),
11590
+ phrase: t("Set holiday mode of {device} to {mode}", "Imposta la modalità vacanza di {device} su {mode}"),
11591
+ icon: "tree-palm",
11592
+ openArgs: [{
11593
+ key: "mode",
11594
+ label: t("Holiday programme", "Programma vacanza"),
11595
+ offer: {
11596
+ kind: "enum",
11597
+ values: HOLIDAY_PROGRAMMES
11598
+ }
11599
+ }]
11600
+ }
11601
+ ],
11602
+ notOperatorFacing: {
11603
+ setCircuitOperationMode: PER_CIRCUIT,
11604
+ setCircuitHeatCoolMode: PER_CIRCUIT,
11605
+ setCircuitSummerWinter: PER_CIRCUIT,
11606
+ setCircuitComfortSetpoint: PER_CIRCUIT,
11607
+ setCircuitEcoSetpoint: PER_CIRCUIT,
11608
+ setCircuitMaxFlowTemp: PER_CIRCUIT,
11609
+ setDhwOperationMode: PER_CIRCUIT,
11610
+ setDhwTemperatureLevel: PER_CIRCUIT,
11611
+ setDhwChargeDuration: PER_CIRCUIT,
11612
+ startExtraHotWater: PER_CIRCUIT
11613
+ }
11614
+ }
11615
+ };
11616
+ //#endregion
11488
11617
  //#region src/device/cap-vocabulary/entries/sensors.ts
11489
11618
  /**
11490
11619
  * Things an operator WATCHES: contacts, motion, leaks, smoke, measurements,
@@ -12223,6 +12352,7 @@ var CAP_VOCABULARY = {
12223
12352
  ...ACTUATOR_CAP_VOCABULARY,
12224
12353
  ...APPLIANCE_CAP_VOCABULARY,
12225
12354
  ...CAMERA_CAP_VOCABULARY,
12355
+ ...HEAT_PUMP_CAP_VOCABULARY,
12226
12356
  ...SENSOR_CAP_VOCABULARY,
12227
12357
  ...SYSTEM_CAP_VOCABULARY
12228
12358
  };
@@ -12878,6 +13008,8 @@ var CAP_NAMES = Object.freeze([
12878
13008
  "group-active",
12879
13009
  "group-commands",
12880
13010
  "group-status",
13011
+ "heat-pump-control",
13012
+ "heat-pump-status",
12881
13013
  "heating-valve",
12882
13014
  "hero-layout",
12883
13015
  "humidifier",
@@ -13744,6 +13876,48 @@ var CAP_STATE_LEAVES = Object.freeze({
13744
13876
  "valueType": "number"
13745
13877
  }
13746
13878
  ],
13879
+ "heat-pump-status": [
13880
+ {
13881
+ "path": "power.thermalW",
13882
+ "valueType": "number"
13883
+ },
13884
+ {
13885
+ "path": "power.electricalW",
13886
+ "valueType": "number"
13887
+ },
13888
+ {
13889
+ "path": "power.compressorPct",
13890
+ "valueType": "number"
13891
+ },
13892
+ {
13893
+ "path": "temperatures.supply",
13894
+ "valueType": "number"
13895
+ },
13896
+ {
13897
+ "path": "temperatures.return",
13898
+ "valueType": "number"
13899
+ },
13900
+ {
13901
+ "path": "temperatures.outdoor",
13902
+ "valueType": "number"
13903
+ },
13904
+ {
13905
+ "path": "energy.thermalKwh",
13906
+ "valueType": "number"
13907
+ },
13908
+ {
13909
+ "path": "energy.electricalKwh",
13910
+ "valueType": "number"
13911
+ },
13912
+ {
13913
+ "path": "waterPressureBar",
13914
+ "valueType": "number"
13915
+ },
13916
+ {
13917
+ "path": "starts",
13918
+ "valueType": "number"
13919
+ }
13920
+ ],
13747
13921
  "heating-valve": [{
13748
13922
  "path": "position",
13749
13923
  "valueType": "number"
@@ -15516,6 +15690,23 @@ function createDeviceProxy(api, binding, opts) {
15516
15690
  const groupCommandsInterface = { getStatus: (input) => dispatch("group-commands", "groupCommands", "getStatus", "query", input) };
15517
15691
  const groupStatusInterface = { getStatus: (input) => dispatch("group-status", "groupStatus", "getStatus", "query", input) };
15518
15692
  const heatingValveInterface = { getStatus: (input) => dispatch("heating-valve", "heatingValve", "getStatus", "query", input) };
15693
+ const heatPumpControlInterface = {
15694
+ setSilentMode: (input) => dispatch("heat-pump-control", "heatPumpControl", "setSilentMode", "mutation", input),
15695
+ setAwayMode: (input) => dispatch("heat-pump-control", "heatPumpControl", "setAwayMode", "mutation", input),
15696
+ setAdditionalHeaterMode: (input) => dispatch("heat-pump-control", "heatPumpControl", "setAdditionalHeaterMode", "mutation", input),
15697
+ setHolidayMode: (input) => dispatch("heat-pump-control", "heatPumpControl", "setHolidayMode", "mutation", input),
15698
+ setCircuitOperationMode: (input) => dispatch("heat-pump-control", "heatPumpControl", "setCircuitOperationMode", "mutation", input),
15699
+ setCircuitHeatCoolMode: (input) => dispatch("heat-pump-control", "heatPumpControl", "setCircuitHeatCoolMode", "mutation", input),
15700
+ setCircuitSummerWinter: (input) => dispatch("heat-pump-control", "heatPumpControl", "setCircuitSummerWinter", "mutation", input),
15701
+ setCircuitComfortSetpoint: (input) => dispatch("heat-pump-control", "heatPumpControl", "setCircuitComfortSetpoint", "mutation", input),
15702
+ setCircuitEcoSetpoint: (input) => dispatch("heat-pump-control", "heatPumpControl", "setCircuitEcoSetpoint", "mutation", input),
15703
+ setCircuitMaxFlowTemp: (input) => dispatch("heat-pump-control", "heatPumpControl", "setCircuitMaxFlowTemp", "mutation", input),
15704
+ setDhwOperationMode: (input) => dispatch("heat-pump-control", "heatPumpControl", "setDhwOperationMode", "mutation", input),
15705
+ setDhwTemperatureLevel: (input) => dispatch("heat-pump-control", "heatPumpControl", "setDhwTemperatureLevel", "mutation", input),
15706
+ setDhwChargeDuration: (input) => dispatch("heat-pump-control", "heatPumpControl", "setDhwChargeDuration", "mutation", input),
15707
+ startExtraHotWater: (input) => dispatch("heat-pump-control", "heatPumpControl", "startExtraHotWater", "mutation", input)
15708
+ };
15709
+ const heatPumpStatusInterface = { getStatus: (input) => dispatch("heat-pump-status", "heatPumpStatus", "getStatus", "query", input) };
15519
15710
  const humidifierInterface = {
15520
15711
  setOn: (input) => dispatch("humidifier", "humidifier", "setOn", "mutation", input),
15521
15712
  setTargetHumidity: (input) => dispatch("humidifier", "humidifier", "setTargetHumidity", "mutation", input),
@@ -16117,6 +16308,7 @@ function createDeviceProxy(api, binding, opts) {
16117
16308
  groupCommands: createSliceHandle(stateSource, binding.deviceId, "group-commands"),
16118
16309
  groupStatus: createSliceHandle(stateSource, binding.deviceId, "group-status"),
16119
16310
  heatingValve: createSliceHandle(stateSource, binding.deviceId, "heating-valve"),
16311
+ heatPumpStatus: createSliceHandle(stateSource, binding.deviceId, "heat-pump-status"),
16120
16312
  humidifier: createSliceHandle(stateSource, binding.deviceId, "humidifier"),
16121
16313
  humiditySensor: createSliceHandle(stateSource, binding.deviceId, "humidity-sensor"),
16122
16314
  image: createSliceHandle(stateSource, binding.deviceId, "image"),
@@ -16211,6 +16403,8 @@ function createDeviceProxy(api, binding, opts) {
16211
16403
  ...bound("group-commands") ? { groupCommands: groupCommandsInterface } : {},
16212
16404
  ...bound("group-status") ? { groupStatus: groupStatusInterface } : {},
16213
16405
  ...bound("heating-valve") ? { heatingValve: heatingValveInterface } : {},
16406
+ ...bound("heat-pump-control") ? { heatPumpControl: heatPumpControlInterface } : {},
16407
+ ...bound("heat-pump-status") ? { heatPumpStatus: heatPumpStatusInterface } : {},
16214
16408
  ...bound("humidifier") ? { humidifier: humidifierInterface } : {},
16215
16409
  ...bound("humidity-sensor") ? { humiditySensor: humiditySensorInterface } : {},
16216
16410
  ...bound("image") ? { image: imageInterface } : {},
@@ -16300,7 +16494,7 @@ function createDeviceProxy(api, binding, opts) {
16300
16494
  * can answer "may a rule actuate this?" without importing the schema barrel
16301
16495
  * (~144MB RSS per runner, D28).
16302
16496
  *
16303
- * Coverage: 103 device-scoped capabilities.
16497
+ * Coverage: 105 device-scoped capabilities.
16304
16498
  */
16305
16499
  var DEVICE_SCOPED_CAPS = new Set([
16306
16500
  "accessories",
@@ -16347,6 +16541,8 @@ var DEVICE_SCOPED_CAPS = new Set([
16347
16541
  "group-active",
16348
16542
  "group-commands",
16349
16543
  "group-status",
16544
+ "heat-pump-control",
16545
+ "heat-pump-status",
16350
16546
  "heating-valve",
16351
16547
  "humidifier",
16352
16548
  "humidity-sensor",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/types",
3
- "version": "1.2.534",
3
+ "version": "1.2.535",
4
4
  "description": "Shared types, interfaces, and model catalogs for the CamStack detection ecosystem",
5
5
  "keywords": [
6
6
  "camstack",