@camstack/server 1.2.941 → 1.2.943

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 (155) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/api/trpc/generated-cap-mounts.js +19 -1
  3. package/dist/api/trpc/generated-cap-routers.js +676 -596
  4. package/package.json +13 -11
  5. package/system/dist/action-index-B1fgpQBt.mjs +9925 -0
  6. package/system/dist/action-index-B_cLRwXJ.js +9972 -0
  7. package/system/dist/alert-episode-Be--PngO.mjs +64 -0
  8. package/system/dist/alert-episode-Bqktmt-i.js +93 -0
  9. package/system/dist/{base-addon-Md14i7pe.mjs → base-addon-BcS6r1cT.mjs} +20 -7
  10. package/system/dist/{base-addon-DD5dIfcZ.js → base-addon-CRsXtYFG.js} +20 -7
  11. package/system/dist/{base-device-CH8rfD9j.js → base-device-DAdWzDOl.js} +138 -34
  12. package/system/dist/{base-device-BcGO6LTT.mjs → base-device-DJXF5eDN.mjs} +138 -34
  13. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
  14. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
  15. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
  16. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
  17. package/system/dist/builtins/alerts/alert-episode-policy.d.ts +9 -5
  18. package/system/dist/builtins/alerts/alerts.addon.js +30 -80
  19. package/system/dist/builtins/alerts/alerts.addon.mjs +18 -68
  20. package/system/dist/builtins/autotrack/index.js +2 -2
  21. package/system/dist/builtins/autotrack/index.mjs +2 -2
  22. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +1 -1
  23. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +1 -1
  24. package/system/dist/builtins/calendars/calendars.addon.js +1 -1
  25. package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
  26. package/system/dist/builtins/camera-grid/index.js +9 -9
  27. package/system/dist/builtins/camera-grid/index.mjs +6 -6
  28. package/system/dist/builtins/composer/composer.addon.js +99 -99
  29. package/system/dist/builtins/composer/composer.addon.mjs +11 -11
  30. package/system/dist/builtins/console-logging/index.js +1 -1
  31. package/system/dist/builtins/console-logging/index.mjs +1 -1
  32. package/system/dist/builtins/core-blocks/automation-template-instances.d.ts +14 -1
  33. package/system/dist/builtins/core-blocks/core-blocks.addon.d.ts +6 -0
  34. package/system/dist/builtins/core-blocks/core-blocks.addon.js +296 -193
  35. package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +237 -134
  36. package/system/dist/builtins/core-blocks/link-contributions.d.ts +2 -0
  37. package/system/dist/builtins/core-notifier/core-notifier.addon.js +91 -18
  38. package/system/dist/builtins/core-notifier/core-notifier.addon.mjs +91 -18
  39. package/system/dist/builtins/core-notifier/group-notification-output.d.ts +8 -16
  40. package/system/dist/builtins/device-history/device-history.addon.d.ts +8 -0
  41. package/system/dist/builtins/device-history/device-history.addon.js +580 -60
  42. package/system/dist/builtins/device-history/device-history.addon.mjs +569 -49
  43. package/system/dist/builtins/device-history/retention/device-raw-overrides.d.ts +16 -0
  44. package/system/dist/builtins/device-history/retention/retention-knobs.d.ts +14 -0
  45. package/system/dist/builtins/device-history/retention/retention.d.ts +21 -1
  46. package/system/dist/builtins/device-history/transitions/change-coalescing.d.ts +48 -0
  47. package/system/dist/builtins/device-history/transitions/derived-changes.d.ts +49 -0
  48. package/system/dist/builtins/device-history/transitions/history-change-port.d.ts +20 -0
  49. package/system/dist/builtins/device-history/transitions/transitions-service.d.ts +18 -3
  50. package/system/dist/builtins/device-manager/device-config-secrets.d.ts +14 -0
  51. package/system/dist/builtins/device-manager/device-identity-index.d.ts +2 -2
  52. package/system/dist/builtins/device-manager/device-manager.addon.js +226 -479
  53. package/system/dist/builtins/device-manager/device-manager.addon.mjs +218 -471
  54. package/system/dist/builtins/device-manager/device-state-mirror.d.ts +0 -5
  55. package/system/dist/builtins/device-manager/identity-link-reconciler.d.ts +5 -0
  56. package/system/dist/builtins/device-manager/transitions/command-recorder.d.ts +38 -0
  57. package/system/dist/builtins/device-manager/transitions/transitions-wiring.d.ts +8 -9
  58. package/system/dist/builtins/hub-forwarder/index.js +1 -1
  59. package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
  60. package/system/dist/builtins/keychain/index.js +2 -2
  61. package/system/dist/builtins/keychain/index.mjs +2 -2
  62. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +2 -2
  63. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +2 -2
  64. package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
  65. package/system/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
  66. package/system/dist/builtins/local-network/address-book.d.ts +3 -1
  67. package/system/dist/builtins/local-network/local-network.addon.d.ts +26 -1
  68. package/system/dist/builtins/local-network/local-network.addon.js +66 -11
  69. package/system/dist/builtins/local-network/local-network.addon.mjs +66 -11
  70. package/system/dist/builtins/loki-logging/index.js +1 -1
  71. package/system/dist/builtins/loki-logging/index.mjs +1 -1
  72. package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
  73. package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
  74. package/system/dist/builtins/platform-probe/index.js +1 -1
  75. package/system/dist/builtins/platform-probe/index.mjs +1 -1
  76. package/system/dist/builtins/record-entries/index.js +1 -1
  77. package/system/dist/builtins/record-entries/index.mjs +1 -1
  78. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  79. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  80. package/system/dist/builtins/snapshot/index.js +4 -4
  81. package/system/dist/builtins/snapshot/index.mjs +4 -4
  82. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  83. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
  84. package/system/dist/builtins/sqlite-storage/index.js +1 -1
  85. package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
  86. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
  87. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
  88. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
  89. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
  90. package/system/dist/builtins/system-config/system-config.addon.js +1 -1
  91. package/system/dist/builtins/system-config/system-config.addon.mjs +1 -1
  92. package/system/dist/builtins/winston-logging/index.js +1 -1
  93. package/system/dist/builtins/winston-logging/index.mjs +1 -1
  94. package/system/dist/{capture-engine-CUZ3W0oZ.mjs → capture-engine-B2MmoNND.mjs} +1 -1
  95. package/system/dist/{capture-engine-mtDXEBAq.js → capture-engine-D_1IJmMs.js} +1 -1
  96. package/system/dist/command-catalog-C29hVOOg.js +210 -0
  97. package/system/dist/command-catalog-xAeqxbZk.mjs +169 -0
  98. package/system/dist/{error.cap-DCwbIGEF.mjs → compile-OBMHlqD-.mjs} +97 -100
  99. package/system/dist/{error.cap-BxLEHP6z.js → compile-SpeAhaZ6.js} +107 -116
  100. package/system/dist/{composition-sources-B56CU8hi.mjs → composition-sources-C327LGFn.mjs} +2 -2
  101. package/system/dist/{composition-sources-D_Bfwji0.js → composition-sources-Do5qM6EB.js} +17 -17
  102. package/system/dist/{core-blocks.cap-xt5_fK5Z.js → core-blocks.cap-CdTGUKtr.js} +194 -10110
  103. package/system/dist/{core-blocks.cap-DDECcMeI.mjs → core-blocks.cap-DLkEfV5b.mjs} +54 -9910
  104. package/system/dist/{device-kind-BJ2pfsjw.mjs → device-kind-C37Ra2wd.mjs} +4 -2
  105. package/system/dist/{device-kind-CsSiv_YF.js → device-kind-FMhJg8uC.js} +4 -2
  106. package/system/dist/{device-manager.cap-DyHOIh5T.js → device-manager.cap-DJs8izI6.js} +13 -4
  107. package/system/dist/{device-manager.cap-DIBK62-r.mjs → device-manager.cap-eYrj1Ezp.mjs} +13 -4
  108. package/system/dist/{device-provider.cap-BKUGJSo0.js → device-provider.cap-CNlYBQ5D.js} +1 -1
  109. package/system/dist/{device-provider.cap-DU6HMUXH.mjs → device-provider.cap-D8mJllVM.mjs} +1 -1
  110. package/system/dist/{device-row-store-O4mNbp5q.js → device-row-store-C0P2H18h.js} +2 -2
  111. package/system/dist/{device-row-store-C-_R-h1Z.mjs → device-row-store-CTocYKqC.mjs} +2 -2
  112. package/system/dist/{device-type-CbQsnFdC.js → device-type-Cnc0NiSX.js} +13 -0
  113. package/system/dist/{device-type-DgEvK3ch.mjs → device-type-TUGqGmaI.mjs} +13 -0
  114. package/system/dist/error.cap-BuKbL3Ac.js +125 -0
  115. package/system/dist/error.cap-CU1FB6uE.mjs +102 -0
  116. package/system/dist/file-host-worker.js +1 -1
  117. package/system/dist/file-host-worker.mjs +1 -1
  118. package/system/dist/{history-catalog-BwTeQ4Mr.mjs → history-catalog-A_dzXNpv.mjs} +98 -3
  119. package/system/dist/{history-catalog-BKRarIL_.js → history-catalog-CiTMP3-E.js} +98 -3
  120. package/system/dist/index.js +28 -6
  121. package/system/dist/index.mjs +28 -6
  122. package/system/dist/kernel/addon-version-policy.d.ts +10 -0
  123. package/system/dist/{legacy-integration-rows-door-B1nzxxr5.js → legacy-integration-rows-door-CdqYAj-o.js} +1 -1
  124. package/system/dist/{legacy-integration-rows-door-nTvo_6jQ.mjs → legacy-integration-rows-door-LSgpClpX.mjs} +1 -1
  125. package/system/dist/{low-power-sleep.cap-B6mz6ojP.js → low-power-sleep.cap-BJWyAuUQ.js} +1 -1
  126. package/system/dist/{low-power-sleep.cap-C3Vi8Vxj.mjs → low-power-sleep.cap-D9Orx3LS.mjs} +1 -1
  127. package/system/dist/migrations/hub/2026-11-22-device-transitions-commands-only.d.ts +10 -0
  128. package/system/dist/{network-access.cap-BEN_uRVb.js → network-access.cap-CTQ2WQoi.js} +38 -12
  129. package/system/dist/{network-access.cap-Dy8FNNVs.mjs → network-access.cap-Dx5K0I5i.mjs} +33 -13
  130. package/system/dist/{notification-rules.cap-Drwz-A4n.js → notification-rules.cap-BJKUjizS.js} +45 -9
  131. package/system/dist/{notification-rules.cap-0vVvsxQ1.mjs → notification-rules.cap-BUIuYPlQ.mjs} +45 -9
  132. package/system/dist/{notification-targets-DR-D-vIt.mjs → notification-targets-4bGYH5J7.mjs} +2 -2
  133. package/system/dist/{notification-targets-Cc_3OBH9.js → notification-targets-DMW7xgR2.js} +2 -2
  134. package/system/dist/{prefix-walk-CCO_VZVo.js → prefix-walk-BFnw8NBu.js} +5 -5
  135. package/system/dist/{prefix-walk-BhT0ZoKl.mjs → prefix-walk-Mtij0NNT.mjs} +2 -2
  136. package/system/dist/{ptz-autotrack.cap-DOz0xL0O.js → ptz-autotrack.cap-B9eyZU8w.js} +1 -1
  137. package/system/dist/{ptz-autotrack.cap-CDF6FeTK.mjs → ptz-autotrack.cap-Dw2k-po9.mjs} +1 -1
  138. package/system/dist/{recording-archive.cap-RHAN45fa.mjs → recording-archive.cap-CTlm86R8.mjs} +1 -1
  139. package/system/dist/{recording-archive.cap-BPJ7kvnd.js → recording-archive.cap-Wo-hEZhz.js} +1 -1
  140. package/system/dist/{rename-composition-block-DWUkrazx.mjs → rename-composition-block-Cdh-dRmY.mjs} +395 -20
  141. package/system/dist/{rename-composition-block-CH2vRIW7.js → rename-composition-block-D9Uc1AF7.js} +406 -31
  142. package/system/dist/{retention-CUOVI1p7.mjs → retention-CQs8QR1B.mjs} +33 -3
  143. package/system/dist/{device-transitions.cap-DCXP3zwY.mjs → retention-source.cap-550kkyp5.mjs} +98 -21
  144. package/system/dist/{device-transitions.cap-zOGvAIHz.js → retention-source.cap-C6Hy0hlM.js} +103 -20
  145. package/system/dist/{retention-BcOSL6b9.js → retention-xcjk_k1w.js} +33 -3
  146. package/system/dist/{snapshot.cap-Cis6JRwn.js → snapshot.cap-CHm29hBs.js} +1 -1
  147. package/system/dist/{snapshot.cap-BkfHpJVO.mjs → snapshot.cap-CO68YvJU.mjs} +1 -1
  148. package/system/dist/{stream-catalog.cap-D8Y-uXcy.js → stream-catalog.cap-CjEQFknc.js} +2 -2
  149. package/system/dist/{stream-catalog.cap-D1Hy19Yc.mjs → stream-catalog.cap-DVniDdRD.mjs} +2 -2
  150. package/system/dist/{user-management.cap-Ctd4c_im.mjs → user-management.cap-4IEUCSdL.mjs} +2 -2
  151. package/system/dist/{user-management.cap-DyVb68rY.js → user-management.cap-DV9Jfsj3.js} +2 -2
  152. package/system/dist/{wal-maintenance-CjpslZUL.mjs → wal-maintenance-Bey5ChBb.mjs} +0 -0
  153. package/system/dist/{wal-maintenance-DKTXQ7UF.js → wal-maintenance-BgYiAy5b.js} +0 -0
  154. package/system/package.json +4 -1
  155. package/system/dist/builtins/device-manager/transitions/transition-correlator.d.ts +0 -81
@@ -1,4 +1,4 @@
1
- import { n as DeviceRole, r as DeviceType } from "./device-type-DgEvK3ch.mjs";
1
+ import { n as DeviceRole, r as DeviceType } from "./device-type-TUGqGmaI.mjs";
2
2
  import "zod";
3
3
  //#region ../types/dist/esm/device/device-kind.mjs
4
4
  /**
@@ -30,7 +30,8 @@ var CLIMATE_ROLES = [
30
30
  DeviceRole.ClimateRadiator,
31
31
  DeviceRole.ClimateFloor,
32
32
  DeviceRole.ClimateHeater,
33
- DeviceRole.ClimateHeatPumpCircuit
33
+ DeviceRole.ClimateHeatPumpCircuit,
34
+ DeviceRole.ClimateVehicle
34
35
  ];
35
36
  function isClimateRole(role) {
36
37
  return CLIMATE_ROLES.some((candidate) => candidate === role);
@@ -47,6 +48,7 @@ function climateRoleOf(role) {
47
48
  function isAirConditioner(type, role) {
48
49
  return type === DeviceType.Climate && climateRoleOf(role) === DeviceRole.ClimateAc;
49
50
  }
51
+ DeviceRole.MediaPlayerTv;
50
52
  /**
51
53
  * A relay driving an on/off-only lamp (a `switch` with role `switch-light`):
52
54
  * drawn and exported as a light, with the switch's power only. The one place
@@ -1,4 +1,4 @@
1
- const require_device_type = require("./device-type-CbQsnFdC.js");
1
+ const require_device_type = require("./device-type-Cnc0NiSX.js");
2
2
  require("zod");
3
3
  //#region ../types/dist/esm/device/device-kind.mjs
4
4
  /**
@@ -30,7 +30,8 @@ var CLIMATE_ROLES = [
30
30
  require_device_type.DeviceRole.ClimateRadiator,
31
31
  require_device_type.DeviceRole.ClimateFloor,
32
32
  require_device_type.DeviceRole.ClimateHeater,
33
- require_device_type.DeviceRole.ClimateHeatPumpCircuit
33
+ require_device_type.DeviceRole.ClimateHeatPumpCircuit,
34
+ require_device_type.DeviceRole.ClimateVehicle
34
35
  ];
35
36
  function isClimateRole(role) {
36
37
  return CLIMATE_ROLES.some((candidate) => candidate === role);
@@ -47,6 +48,7 @@ function climateRoleOf(role) {
47
48
  function isAirConditioner(type, role) {
48
49
  return type === require_device_type.DeviceType.Climate && climateRoleOf(role) === require_device_type.DeviceRole.ClimateAc;
49
50
  }
51
+ require_device_type.DeviceRole.MediaPlayerTv;
50
52
  /**
51
53
  * A relay driving an on/off-only lamp (a `switch` with role `switch-light`):
52
54
  * drawn and exported as a light, with the switch's power only. The one place
@@ -3,10 +3,10 @@ const require_capability_definition = require("./capability-definition-BEVd01Xj.
3
3
  const require_device_identifiers = require("./device-identifiers-BQg9EQi1.js");
4
4
  const require_quantity = require("./quantity-lY1KiTSZ.js");
5
5
  const require_tag = require("./tag-BxLazvVb.js");
6
- const require_device_type = require("./device-type-CbQsnFdC.js");
6
+ const require_device_type = require("./device-type-Cnc0NiSX.js");
7
7
  const require_addon_settings_cap = require("./addon-settings.cap-DrLdMFIe.js");
8
8
  const require_source_info = require("./source-info-DtWf4k2j.js");
9
- const require_device_provider_cap = require("./device-provider.cap-BKUGJSo0.js");
9
+ const require_device_provider_cap = require("./device-provider.cap-CNlYBQ5D.js");
10
10
  let zod = require("zod");
11
11
  //#region ../types/dist/esm/interfaces/adoption-job.mjs
12
12
  /**
@@ -976,9 +976,10 @@ var IdentityLinksReadSchema = /* @__PURE__ */ zod.z.discriminatedUnion("status",
976
976
  var IdentityLinkDecisionRefusalSchema = /* @__PURE__ */ zod.z.enum([
977
977
  "not-loaded",
978
978
  "unknown-link",
979
- "wrong-state"
979
+ "wrong-state",
980
+ "evidence-gone"
980
981
  ]);
981
- /** The answer of `confirmIdentityLink` / `dismissIdentityLink` / `unlinkIdentity`. */
982
+ /** The answer of `confirmIdentityLink` / `dismissIdentityLink` / `unlinkIdentity` / `relinkIdentity`. */
982
983
  var IdentityLinkDecisionSchema = /* @__PURE__ */ zod.z.discriminatedUnion("ok", [/* @__PURE__ */ zod.z.object({
983
984
  ok: /* @__PURE__ */ zod.z.literal(true),
984
985
  link: IdentityLinkSchema
@@ -1958,6 +1959,14 @@ var deviceManagerCapability = {
1958
1959
  kind: "mutation",
1959
1960
  auth: "admin"
1960
1961
  }),
1962
+ /** Relink a `dismissed` link: it becomes `linked` by the operator and its
1963
+ * default contributions are added, exactly as on a confirm. Refused by name
1964
+ * when the link is unknown (`unknown-link`), not dismissed (`wrong-state`),
1965
+ * or its devices no longer declare the pair (`evidence-gone`). */
1966
+ relinkIdentity: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ linkId: /* @__PURE__ */ zod.z.string().min(1) }), IdentityLinkDecisionSchema, {
1967
+ kind: "mutation",
1968
+ auth: "admin"
1969
+ }),
1961
1970
  /** Operator-curated location registry. Returns the union of:
1962
1971
  * (1) labels persisted in the registry via `addLocation`, and
1963
1972
  * (2) labels currently in use on at least one device's
@@ -3,10 +3,10 @@ import { c as method } from "./capability-definition-C1TLUVJR.mjs";
3
3
  import { d as CameraSwitchIdSchema, n as DeviceIdentifierKeySchema, r as DeviceIdentifiersSchema } from "./device-identifiers-iSuQCKmK.mjs";
4
4
  import { t as ReadingQuantitySchema } from "./quantity-D3g5SxsZ.mjs";
5
5
  import { i as TagsFieldSchema, u as IconKeySchema } from "./tag-uZBAq6ox.mjs";
6
- import { n as DeviceRole, r as DeviceType } from "./device-type-DgEvK3ch.mjs";
6
+ import { n as DeviceRole, r as DeviceType } from "./device-type-TUGqGmaI.mjs";
7
7
  import { c as LocationDescriptionAssignmentSchema, l as LocationIconAssignmentSchema, n as SettingsSchemaWithValuesSchema } from "./addon-settings.cap-CZ4MC7ha.mjs";
8
8
  import { n as SourceInfoSchema } from "./source-info-DGB7SdB_.mjs";
9
- import { a as FieldProbeResultSchema, n as DiscoveryCandidateSchema, t as DeviceSummarySchema } from "./device-provider.cap-DU6HMUXH.mjs";
9
+ import { a as FieldProbeResultSchema, n as DiscoveryCandidateSchema, t as DeviceSummarySchema } from "./device-provider.cap-D8mJllVM.mjs";
10
10
  import { z } from "zod";
11
11
  //#region ../types/dist/esm/interfaces/adoption-job.mjs
12
12
  /**
@@ -976,9 +976,10 @@ var IdentityLinksReadSchema = /* @__PURE__ */ z.discriminatedUnion("status", [/*
976
976
  var IdentityLinkDecisionRefusalSchema = /* @__PURE__ */ z.enum([
977
977
  "not-loaded",
978
978
  "unknown-link",
979
- "wrong-state"
979
+ "wrong-state",
980
+ "evidence-gone"
980
981
  ]);
981
- /** The answer of `confirmIdentityLink` / `dismissIdentityLink` / `unlinkIdentity`. */
982
+ /** The answer of `confirmIdentityLink` / `dismissIdentityLink` / `unlinkIdentity` / `relinkIdentity`. */
982
983
  var IdentityLinkDecisionSchema = /* @__PURE__ */ z.discriminatedUnion("ok", [/* @__PURE__ */ z.object({
983
984
  ok: /* @__PURE__ */ z.literal(true),
984
985
  link: IdentityLinkSchema
@@ -1958,6 +1959,14 @@ var deviceManagerCapability = {
1958
1959
  kind: "mutation",
1959
1960
  auth: "admin"
1960
1961
  }),
1962
+ /** Relink a `dismissed` link: it becomes `linked` by the operator and its
1963
+ * default contributions are added, exactly as on a confirm. Refused by name
1964
+ * when the link is unknown (`unknown-link`), not dismissed (`wrong-state`),
1965
+ * or its devices no longer declare the pair (`evidence-gone`). */
1966
+ relinkIdentity: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ linkId: /* @__PURE__ */ z.string().min(1) }), IdentityLinkDecisionSchema, {
1967
+ kind: "mutation",
1968
+ auth: "admin"
1969
+ }),
1961
1970
  /** Operator-curated location registry. Returns the union of:
1962
1971
  * (1) labels persisted in the registry via `addLocation`, and
1963
1972
  * (2) labels currently in use on at least one device's
@@ -1,6 +1,6 @@
1
1
  const require_capability_definition = require("./capability-definition-BEVd01Xj.js");
2
2
  const require_system_reasons = require("./system-reasons-Be_k1W8g.js");
3
- const require_device_type = require("./device-type-CbQsnFdC.js");
3
+ const require_device_type = require("./device-type-Cnc0NiSX.js");
4
4
  const require_source_info = require("./source-info-DtWf4k2j.js");
5
5
  let zod = require("zod");
6
6
  //#region ../types/dist/esm/capabilities/device-provider.cap.mjs
@@ -1,6 +1,6 @@
1
1
  import { c as method } from "./capability-definition-C1TLUVJR.mjs";
2
2
  import { t as NOT_A_DEVICE } from "./system-reasons-CYj4qwyS.mjs";
3
- import { r as DeviceType } from "./device-type-DgEvK3ch.mjs";
3
+ import { r as DeviceType } from "./device-type-TUGqGmaI.mjs";
4
4
  import { n as SourceInfoSchema } from "./source-info-DGB7SdB_.mjs";
5
5
  import { z } from "zod";
6
6
  //#region ../types/dist/esm/capabilities/device-provider.cap.mjs
@@ -1,7 +1,7 @@
1
1
  const require_record_kind = require("./record-kind-DoBfYHCs.js");
2
- const require_device_manager_cap = require("./device-manager.cap-DyHOIh5T.js");
2
+ const require_device_manager_cap = require("./device-manager.cap-DJs8izI6.js");
3
3
  const require_device_identifiers = require("./device-identifiers-BQg9EQi1.js");
4
- const require_device_kind = require("./device-kind-CsSiv_YF.js");
4
+ const require_device_kind = require("./device-kind-FMhJg8uC.js");
5
5
  //#region src/builtins/device-manager/migration-refused.ts
6
6
  /**
7
7
  * A migration step that REFUSED with nothing moved.
@@ -1,7 +1,7 @@
1
1
  import { s as defineRecordKinds } from "./record-kind-ub6NXqfh.mjs";
2
- import { c as IdentityLinkBodySchema, n as DeviceTombstoneSchema, o as DiscoveryProposalBodySchema } from "./device-manager.cap-DIBK62-r.mjs";
2
+ import { c as IdentityLinkBodySchema, n as DeviceTombstoneSchema, o as DiscoveryProposalBodySchema } from "./device-manager.cap-eYrj1Ezp.mjs";
3
3
  import { n as DeviceIdentifierKeySchema, r as DeviceIdentifiersSchema } from "./device-identifiers-iSuQCKmK.mjs";
4
- import { t as canonicalStoredDeviceType } from "./device-kind-BJ2pfsjw.mjs";
4
+ import { t as canonicalStoredDeviceType } from "./device-kind-C37Ra2wd.mjs";
5
5
  //#region src/builtins/device-manager/migration-refused.ts
6
6
  /**
7
7
  * A migration step that REFUSED with nothing moved.
@@ -116,6 +116,11 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
116
116
  * water, cooling, solar), its system modes and its power. One main read-only
117
117
  * `heat-pump-status` cap carries all of it; `heat-pump-control` sets it (D1026). */
118
118
  DeviceType["HeatPump"] = "heat-pump";
119
+ /** A road vehicle reached through its maker's connected-car account: odometer, range,
120
+ * openings, tyre warnings and the 12 V battery in one read-only `vehicle` cap; where it
121
+ * is in `location`; fuel, fluids and service in `consumables`. Its lock and its cabin
122
+ * climate are accessory children (`lock-vehicle`, `climate-vehicle`). */
123
+ DeviceType["Vehicle"] = "vehicle";
119
124
  /** A home energy installation (any vendor): solar, grid, house, a metered heat pump
120
125
  * and the storage as branches of one bus. One read-only `energy-system` cap carries
121
126
  * every value; the storage is a field of it, never the `battery` cap (#513, #522). */
@@ -367,6 +372,14 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
367
372
  /** One heating/cooling circuit of a heat pump: a water loop with comfort /
368
373
  * eco setpoints and a heat/cool mode, no room sensor. */
369
374
  DeviceRole["ClimateHeatPumpCircuit"] = "climate-heat-pump-circuit";
375
+ /** A car's cabin: pre-conditioning (start / stop, target temperature) through the
376
+ * maker's connected-car account. An accessory child of a vehicle. */
377
+ DeviceRole["ClimateVehicle"] = "climate-vehicle";
378
+ /** A car's central locking, an accessory child of a vehicle. Slow, cloud-held
379
+ * commands; exports decide by `isVehicleLock`. */
380
+ DeviceRole["LockVehicle"] = "lock-vehicle";
381
+ /** A television: power, volume, channel, source and apps. */
382
+ DeviceRole["MediaPlayerTv"] = "media-player-tv";
370
383
  /** Generic motion / occupancy / moving event source. Distinct from
371
384
  * the camera accessory PirSensor role: that one is a camera child;
372
385
  * this is a standalone HA / 3rd-party motion sensor. */
@@ -116,6 +116,11 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
116
116
  * water, cooling, solar), its system modes and its power. One main read-only
117
117
  * `heat-pump-status` cap carries all of it; `heat-pump-control` sets it (D1026). */
118
118
  DeviceType["HeatPump"] = "heat-pump";
119
+ /** A road vehicle reached through its maker's connected-car account: odometer, range,
120
+ * openings, tyre warnings and the 12 V battery in one read-only `vehicle` cap; where it
121
+ * is in `location`; fuel, fluids and service in `consumables`. Its lock and its cabin
122
+ * climate are accessory children (`lock-vehicle`, `climate-vehicle`). */
123
+ DeviceType["Vehicle"] = "vehicle";
119
124
  /** A home energy installation (any vendor): solar, grid, house, a metered heat pump
120
125
  * and the storage as branches of one bus. One read-only `energy-system` cap carries
121
126
  * every value; the storage is a field of it, never the `battery` cap (#513, #522). */
@@ -367,6 +372,14 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
367
372
  /** One heating/cooling circuit of a heat pump: a water loop with comfort /
368
373
  * eco setpoints and a heat/cool mode, no room sensor. */
369
374
  DeviceRole["ClimateHeatPumpCircuit"] = "climate-heat-pump-circuit";
375
+ /** A car's cabin: pre-conditioning (start / stop, target temperature) through the
376
+ * maker's connected-car account. An accessory child of a vehicle. */
377
+ DeviceRole["ClimateVehicle"] = "climate-vehicle";
378
+ /** A car's central locking, an accessory child of a vehicle. Slow, cloud-held
379
+ * commands; exports decide by `isVehicleLock`. */
380
+ DeviceRole["LockVehicle"] = "lock-vehicle";
381
+ /** A television: power, volume, channel, source and apps. */
382
+ DeviceRole["MediaPlayerTv"] = "media-player-tv";
370
383
  /** Generic motion / occupancy / moving event source. Distinct from
371
384
  * the camera accessory PirSensor role: that one is a camera child;
372
385
  * this is a standalone HA / 3rd-party motion sensor. */
@@ -0,0 +1,125 @@
1
+ const require_capability_definition = require("./capability-definition-BEVd01Xj.js");
2
+ const require_l10n = require("./l10n-CGMvp7NF.js");
3
+ let zod = require("zod");
4
+ //#region ../types/dist/esm/capabilities/error.cap.mjs
5
+ /**
6
+ * How loudly a fault wants the operator. An `error` raises the attention event;
7
+ * a `warning` is shown on the device and opens a warning alert, nothing more.
8
+ */
9
+ var DeviceErrorSeveritySchema = /* @__PURE__ */ zod.z.enum(["warning", "error"]);
10
+ /** One fault of a device that can raise several at once. */
11
+ var DeviceFaultSchema = /* @__PURE__ */ zod.z.object({
12
+ /** The device's own code, as the vendor names it. */
13
+ code: /* @__PURE__ */ zod.z.string(),
14
+ /** Already translated by the provider (it owns the vendor vocabulary). */
15
+ label: /* @__PURE__ */ zod.z.string(),
16
+ severity: DeviceErrorSeveritySchema
17
+ });
18
+ /** One kind of fault a device CAN raise: the integration's own declared catalog entry. */
19
+ var DeviceFaultTypeSchema = DeviceFaultSchema;
20
+ /**
21
+ * The fault catalog of a device, declared by its integration at runtime (never a
22
+ * code enum). A fault outside the catalog is still published and still matches
23
+ * a rule that names no code.
24
+ */
25
+ var ListFaultTypesInputSchema = /* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative() });
26
+ var FaultTypesSchema = /* @__PURE__ */ zod.z.object({ types: /* @__PURE__ */ zod.z.array(DeviceFaultTypeSchema) });
27
+ /**
28
+ * The fault a device reports right now. One slice per device.
29
+ *
30
+ * `active` is tri-state: `null` is "the provider has not read it yet" and is
31
+ * never drawn as "no fault" nor as a fault (D315, D393). The provider filters
32
+ * what is not a fault (a completion or reminder code) BEFORE it writes `true`.
33
+ *
34
+ * The cap's name is the key a template reads (`{{ alias.error.label }}`, D1021).
35
+ */
36
+ var ErrorStatusSchema = /* @__PURE__ */ zod.z.object({
37
+ active: /* @__PURE__ */ zod.z.boolean().nullable(),
38
+ /** The code of the principal fault; `null` when none (or unknown). */
39
+ code: /* @__PURE__ */ zod.z.string().nullable(),
40
+ /** The principal fault's words, provider-translated; `null` when none. */
41
+ label: /* @__PURE__ */ zod.z.string().nullable(),
42
+ severity: DeviceErrorSeveritySchema,
43
+ /** Ms epoch the current fault started; `null` when none or not known. */
44
+ since: /* @__PURE__ */ zod.z.number().nullable(),
45
+ /** Every fault, for a device that raises several. The principal is the first. */
46
+ faults: /* @__PURE__ */ zod.z.array(DeviceFaultSchema).optional(),
47
+ /** Ms epoch of the last read the provider made of the fault. */
48
+ lastFetchedAt: /* @__PURE__ */ zod.z.number()
49
+ });
50
+ /** The slice before the provider has read anything: unknown, not "fine". */
51
+ var ERROR_STATUS_COLD = {
52
+ active: null,
53
+ code: null,
54
+ label: null,
55
+ severity: "error",
56
+ since: null,
57
+ lastFetchedAt: 0
58
+ };
59
+ var errorCapability = {
60
+ name: "error",
61
+ scope: "device",
62
+ deviceNative: true,
63
+ mode: "singleton",
64
+ methods: {
65
+ /** The fault codes this device's integration can raise; `[]` when it declares none. */
66
+ listFaultTypes: /* @__PURE__ */ require_capability_definition.method(ListFaultTypesInputSchema, FaultTypesSchema, {
67
+ kind: "query",
68
+ auth: "protected"
69
+ }) },
70
+ status: {
71
+ schema: ErrorStatusSchema,
72
+ kind: "push",
73
+ empty: ERROR_STATUS_COLD
74
+ },
75
+ runtimeState: ErrorStatusSchema,
76
+ /**
77
+ * Runtime-state durability: **restored** — the previous observation is what
78
+ * lets the first reading after a restart be a COMPARISON: a fault that was
79
+ * already open must not announce itself a second time.
80
+ *
81
+ * See `RuntimeStateDurability`. Enforced by
82
+ * `scripts/check-runtime-state-durability.ts`.
83
+ */
84
+ durability: "restored",
85
+ volatileStateFields: ["lastFetchedAt"],
86
+ /** The fault itself is carried by the attention alerts; no series is recorded. */
87
+ history: "none",
88
+ vocabulary: {
89
+ noun: /* @__PURE__ */ require_l10n.t("Fault", "Guasto"),
90
+ order: 5265,
91
+ state: [{
92
+ kind: "boolean",
93
+ field: "active",
94
+ label: /* @__PURE__ */ require_l10n.t("Fault", "Guasto"),
95
+ whenTrue: /* @__PURE__ */ require_l10n.t("When {device} reports a fault", "Quando {device} segnala un guasto"),
96
+ whenFalse: /* @__PURE__ */ require_l10n.t("When the fault of {device} clears", "Quando il guasto di {device} si risolve"),
97
+ icon: "triangle-alert"
98
+ }]
99
+ }
100
+ };
101
+ //#endregion
102
+ Object.defineProperty(exports, "DeviceErrorSeveritySchema", {
103
+ enumerable: true,
104
+ get: function() {
105
+ return DeviceErrorSeveritySchema;
106
+ }
107
+ });
108
+ Object.defineProperty(exports, "DeviceFaultSchema", {
109
+ enumerable: true,
110
+ get: function() {
111
+ return DeviceFaultSchema;
112
+ }
113
+ });
114
+ Object.defineProperty(exports, "ERROR_STATUS_COLD", {
115
+ enumerable: true,
116
+ get: function() {
117
+ return ERROR_STATUS_COLD;
118
+ }
119
+ });
120
+ Object.defineProperty(exports, "errorCapability", {
121
+ enumerable: true,
122
+ get: function() {
123
+ return errorCapability;
124
+ }
125
+ });
@@ -0,0 +1,102 @@
1
+ import { c as method } from "./capability-definition-C1TLUVJR.mjs";
2
+ import { t } from "./l10n-Bu6aUvSY.mjs";
3
+ import { z } from "zod";
4
+ //#region ../types/dist/esm/capabilities/error.cap.mjs
5
+ /**
6
+ * How loudly a fault wants the operator. An `error` raises the attention event;
7
+ * a `warning` is shown on the device and opens a warning alert, nothing more.
8
+ */
9
+ var DeviceErrorSeveritySchema = /* @__PURE__ */ z.enum(["warning", "error"]);
10
+ /** One fault of a device that can raise several at once. */
11
+ var DeviceFaultSchema = /* @__PURE__ */ z.object({
12
+ /** The device's own code, as the vendor names it. */
13
+ code: /* @__PURE__ */ z.string(),
14
+ /** Already translated by the provider (it owns the vendor vocabulary). */
15
+ label: /* @__PURE__ */ z.string(),
16
+ severity: DeviceErrorSeveritySchema
17
+ });
18
+ /** One kind of fault a device CAN raise: the integration's own declared catalog entry. */
19
+ var DeviceFaultTypeSchema = DeviceFaultSchema;
20
+ /**
21
+ * The fault catalog of a device, declared by its integration at runtime (never a
22
+ * code enum). A fault outside the catalog is still published and still matches
23
+ * a rule that names no code.
24
+ */
25
+ var ListFaultTypesInputSchema = /* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number().int().nonnegative() });
26
+ var FaultTypesSchema = /* @__PURE__ */ z.object({ types: /* @__PURE__ */ z.array(DeviceFaultTypeSchema) });
27
+ /**
28
+ * The fault a device reports right now. One slice per device.
29
+ *
30
+ * `active` is tri-state: `null` is "the provider has not read it yet" and is
31
+ * never drawn as "no fault" nor as a fault (D315, D393). The provider filters
32
+ * what is not a fault (a completion or reminder code) BEFORE it writes `true`.
33
+ *
34
+ * The cap's name is the key a template reads (`{{ alias.error.label }}`, D1021).
35
+ */
36
+ var ErrorStatusSchema = /* @__PURE__ */ z.object({
37
+ active: /* @__PURE__ */ z.boolean().nullable(),
38
+ /** The code of the principal fault; `null` when none (or unknown). */
39
+ code: /* @__PURE__ */ z.string().nullable(),
40
+ /** The principal fault's words, provider-translated; `null` when none. */
41
+ label: /* @__PURE__ */ z.string().nullable(),
42
+ severity: DeviceErrorSeveritySchema,
43
+ /** Ms epoch the current fault started; `null` when none or not known. */
44
+ since: /* @__PURE__ */ z.number().nullable(),
45
+ /** Every fault, for a device that raises several. The principal is the first. */
46
+ faults: /* @__PURE__ */ z.array(DeviceFaultSchema).optional(),
47
+ /** Ms epoch of the last read the provider made of the fault. */
48
+ lastFetchedAt: /* @__PURE__ */ z.number()
49
+ });
50
+ /** The slice before the provider has read anything: unknown, not "fine". */
51
+ var ERROR_STATUS_COLD = {
52
+ active: null,
53
+ code: null,
54
+ label: null,
55
+ severity: "error",
56
+ since: null,
57
+ lastFetchedAt: 0
58
+ };
59
+ var errorCapability = {
60
+ name: "error",
61
+ scope: "device",
62
+ deviceNative: true,
63
+ mode: "singleton",
64
+ methods: {
65
+ /** The fault codes this device's integration can raise; `[]` when it declares none. */
66
+ listFaultTypes: /* @__PURE__ */ method(ListFaultTypesInputSchema, FaultTypesSchema, {
67
+ kind: "query",
68
+ auth: "protected"
69
+ }) },
70
+ status: {
71
+ schema: ErrorStatusSchema,
72
+ kind: "push",
73
+ empty: ERROR_STATUS_COLD
74
+ },
75
+ runtimeState: ErrorStatusSchema,
76
+ /**
77
+ * Runtime-state durability: **restored** — the previous observation is what
78
+ * lets the first reading after a restart be a COMPARISON: a fault that was
79
+ * already open must not announce itself a second time.
80
+ *
81
+ * See `RuntimeStateDurability`. Enforced by
82
+ * `scripts/check-runtime-state-durability.ts`.
83
+ */
84
+ durability: "restored",
85
+ volatileStateFields: ["lastFetchedAt"],
86
+ /** The fault itself is carried by the attention alerts; no series is recorded. */
87
+ history: "none",
88
+ vocabulary: {
89
+ noun: /* @__PURE__ */ t("Fault", "Guasto"),
90
+ order: 5265,
91
+ state: [{
92
+ kind: "boolean",
93
+ field: "active",
94
+ label: /* @__PURE__ */ t("Fault", "Guasto"),
95
+ whenTrue: /* @__PURE__ */ t("When {device} reports a fault", "Quando {device} segnala un guasto"),
96
+ whenFalse: /* @__PURE__ */ t("When the fault of {device} clears", "Quando il guasto di {device} si risolve"),
97
+ icon: "triangle-alert"
98
+ }]
99
+ }
100
+ };
101
+ //#endregion
102
+ export { errorCapability as i, DeviceFaultSchema as n, ERROR_STATUS_COLD as r, DeviceErrorSeveritySchema as t };
@@ -1,5 +1,5 @@
1
1
  require("./chunk-Cek0wNdY.js");
2
- const require_wal_maintenance = require("./wal-maintenance-DKTXQ7UF.js");
2
+ const require_wal_maintenance = require("./wal-maintenance-BgYiAy5b.js");
3
3
  let node_worker_threads = require("node:worker_threads");
4
4
  //#region src/builtins/sqlite-storage/file-host-worker.ts
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { A as callRecords, C as isFileHostWorkerData, D as RecordsEngine, M as controlTargetOf, O as callControl, S as isFileHostRequest, a as WalMaintenance, b as collectTransferables, d as callMigrate, f as migrateTargetOf, j as callVector, k as callData, l as SqliteSettingsBackend, o as createVectorIndex, s as vectorProviderOf, u as HUB_MIGRATIONS, v as serializeError, w as trustInput } from "./wal-maintenance-CjpslZUL.mjs";
1
+ import { A as callRecords, C as isFileHostWorkerData, D as RecordsEngine, M as controlTargetOf, O as callControl, S as isFileHostRequest, a as WalMaintenance, b as collectTransferables, d as callMigrate, f as migrateTargetOf, j as callVector, k as callData, l as SqliteSettingsBackend, o as createVectorIndex, s as vectorProviderOf, u as HUB_MIGRATIONS, v as serializeError, w as trustInput } from "./wal-maintenance-Bey5ChBb.mjs";
2
2
  import { parentPort, threadId, workerData } from "node:worker_threads";
3
3
  //#region src/builtins/sqlite-storage/file-host-worker.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { r as DeviceType } from "./device-type-DgEvK3ch.mjs";
1
+ import { r as DeviceType } from "./device-type-TUGqGmaI.mjs";
2
2
  //#region ../types/dist/esm/composition/helpers/energy.mjs
3
3
  /**
4
4
  * Watts integrated over time, in kWh (D944).
@@ -14,7 +14,7 @@ function wattMillisecondsToKwh(wattMilliseconds) {
14
14
  //#region ../types/dist/esm/generated/history-catalog.mjs
15
15
  /**
16
16
  * Cap history catalog, projected from every `*.cap.ts` `history` block.
17
- * 47 caps with series (132 series), 40 caps answered `'none'`.
17
+ * 49 caps with series (150 series), 40 caps answered `'none'`.
18
18
  * Field keys are `runtimeState` paths (`a.b` into fixed objects only).
19
19
  */
20
20
  var HISTORY_CATALOG = {
@@ -353,6 +353,28 @@ var HISTORY_CATALOG = {
353
353
  unit: "%",
354
354
  deadband: 2
355
355
  } },
356
+ "location": {
357
+ "latitude": {
358
+ group: "position",
359
+ kind: "gauge",
360
+ unit: "°",
361
+ deadband: 2e-4,
362
+ displayName: "Latitude"
363
+ },
364
+ "longitude": {
365
+ group: "position",
366
+ kind: "gauge",
367
+ unit: "°",
368
+ deadband: 2e-4,
369
+ displayName: "Longitude"
370
+ },
371
+ "speed": {
372
+ kind: "gauge",
373
+ unit: "m/s",
374
+ deadband: .5,
375
+ displayName: "Speed"
376
+ }
377
+ },
356
378
  "lock-control": { "state": {
357
379
  kind: "enum",
358
380
  values: [
@@ -511,6 +533,75 @@ var HISTORY_CATALOG = {
511
533
  unit: "%",
512
534
  minIntervalMs: 0
513
535
  } },
536
+ "vehicle": {
537
+ "odometer": {
538
+ kind: "counter",
539
+ unit: "m",
540
+ displayName: "Distance driven"
541
+ },
542
+ "range": {
543
+ kind: "gauge",
544
+ unit: "m",
545
+ deadband: 1e3,
546
+ displayName: "Range"
547
+ },
548
+ "engineOn": {
549
+ kind: "boolean",
550
+ displayName: "Engine"
551
+ },
552
+ "auxBatteryLevel": {
553
+ kind: "gauge",
554
+ unit: "%",
555
+ deadband: 1,
556
+ displayName: "12 V battery"
557
+ },
558
+ "auxBatteryVoltage": {
559
+ kind: "gauge",
560
+ unit: "V",
561
+ deadband: .1,
562
+ displayName: "12 V voltage"
563
+ },
564
+ "doors.frontLeft": {
565
+ kind: "boolean",
566
+ displayName: "Front left door"
567
+ },
568
+ "doors.frontRight": {
569
+ kind: "boolean",
570
+ displayName: "Front right door"
571
+ },
572
+ "doors.rearLeft": {
573
+ kind: "boolean",
574
+ displayName: "Rear left door"
575
+ },
576
+ "doors.rearRight": {
577
+ kind: "boolean",
578
+ displayName: "Rear right door"
579
+ },
580
+ "tyreWarnings.frontLeft": {
581
+ kind: "boolean",
582
+ displayName: "Front left tyre warning"
583
+ },
584
+ "tyreWarnings.frontRight": {
585
+ kind: "boolean",
586
+ displayName: "Front right tyre warning"
587
+ },
588
+ "tyreWarnings.rearLeft": {
589
+ kind: "boolean",
590
+ displayName: "Rear left tyre warning"
591
+ },
592
+ "tyreWarnings.rearRight": {
593
+ kind: "boolean",
594
+ displayName: "Rear right tyre warning"
595
+ },
596
+ "trunkOpen": {
597
+ kind: "boolean",
598
+ displayName: "Trunk"
599
+ },
600
+ "hoodOpen": {
601
+ kind: "boolean",
602
+ displayName: "Hood"
603
+ }
604
+ },
514
605
  "vibration": { "detected": { kind: "boolean" } },
515
606
  "water-heater": {
516
607
  "currentTemp": {
@@ -762,7 +853,7 @@ var HISTORY_ITEM_CATALOG = {
762
853
  };
763
854
  /**
764
855
  * The series a device card trends, per cap (`history.primary` + `history.priority`):
765
- * 7 caps. The card shows the primary of the enabled cap with the highest priority.
856
+ * 8 caps. The card shows the primary of the enabled cap with the highest priority.
766
857
  */
767
858
  var HISTORY_PRIMARY = {
768
859
  "climate-control": {
@@ -785,6 +876,10 @@ var HISTORY_PRIMARY = {
785
876
  field: "temperature",
786
877
  priority: 100
787
878
  },
879
+ "vehicle": {
880
+ field: "range",
881
+ priority: 30
882
+ },
788
883
  "weather-station": {
789
884
  field: "temperature",
790
885
  priority: 60