@camstack/server 1.2.879 → 1.2.881

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 (87) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/package.json +7 -7
  3. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
  4. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
  5. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
  6. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
  7. package/system/dist/builtins/alerts/alerts.addon.js +1 -1
  8. package/system/dist/builtins/alerts/alerts.addon.mjs +1 -1
  9. package/system/dist/builtins/autotrack/index.js +1 -1
  10. package/system/dist/builtins/autotrack/index.mjs +1 -1
  11. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
  12. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
  13. package/system/dist/builtins/calendars/calendars.addon.js +1 -1
  14. package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
  15. package/system/dist/builtins/camera-grid/index.js +1 -1
  16. package/system/dist/builtins/camera-grid/index.mjs +1 -1
  17. package/system/dist/builtins/composer/composer.addon.js +4 -4
  18. package/system/dist/builtins/composer/composer.addon.mjs +4 -4
  19. package/system/dist/builtins/console-logging/index.js +1 -1
  20. package/system/dist/builtins/console-logging/index.mjs +1 -1
  21. package/system/dist/builtins/core-blocks/core-blocks.addon.js +3 -3
  22. package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +3 -3
  23. package/system/dist/builtins/device-history/device-history.addon.js +2 -2
  24. package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
  25. package/system/dist/builtins/device-manager/device-manager.addon.js +2 -2
  26. package/system/dist/builtins/device-manager/device-manager.addon.mjs +2 -2
  27. package/system/dist/builtins/hub-forwarder/index.js +1 -1
  28. package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
  29. package/system/dist/builtins/keychain/index.js +4 -4
  30. package/system/dist/builtins/keychain/index.mjs +4 -4
  31. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
  32. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
  33. package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
  34. package/system/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
  35. package/system/dist/builtins/local-network/local-network.addon.js +3 -3
  36. package/system/dist/builtins/local-network/local-network.addon.mjs +3 -3
  37. package/system/dist/builtins/loki-logging/index.js +1 -1
  38. package/system/dist/builtins/loki-logging/index.mjs +1 -1
  39. package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
  40. package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
  41. package/system/dist/builtins/platform-probe/index.js +1 -1
  42. package/system/dist/builtins/platform-probe/index.mjs +1 -1
  43. package/system/dist/builtins/record-entries/index.js +1 -1
  44. package/system/dist/builtins/record-entries/index.mjs +1 -1
  45. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  46. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  47. package/system/dist/builtins/snapshot/index.js +1 -1
  48. package/system/dist/builtins/snapshot/index.mjs +1 -1
  49. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  50. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
  51. package/system/dist/builtins/sqlite-storage/index.js +1 -1
  52. package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
  53. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
  54. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
  55. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
  56. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
  57. package/system/dist/builtins/system-config/system-config.addon.js +3 -3
  58. package/system/dist/builtins/system-config/system-config.addon.mjs +284 -284
  59. package/system/dist/builtins/winston-logging/index.js +1 -1
  60. package/system/dist/builtins/winston-logging/index.mjs +1 -1
  61. package/system/dist/{capture-engine-DAGmlBmJ.js → capture-engine-D1cSfGu_.js} +1 -1
  62. package/system/dist/{capture-engine-vlouhBCY.mjs → capture-engine-hBdaHSa5.mjs} +1 -1
  63. package/system/dist/{composition-sources-Rm8xDXjA.js → composition-sources-CfKDTis7.js} +1 -1
  64. package/system/dist/{composition-sources-TeHa4THk.mjs → composition-sources-Cpu22JMr.mjs} +1 -1
  65. package/system/dist/{constants-DnUpXvIY.js → constants-CRKNMR3M.js} +1 -1
  66. package/system/dist/{constants-Bq1Xl_Ku.mjs → constants-CTYmEHlW.mjs} +1 -1
  67. package/system/dist/{device-ca-yHLgyutP.mjs → device-ca-Dj6nzcoq.mjs} +1 -1
  68. package/system/dist/{device-ca-DMudhY-2.js → device-ca-wlsnsg3M.js} +1 -1
  69. package/system/dist/{dist-DemZNuSJ.mjs → dist-BbuJa6G4.mjs} +489 -275
  70. package/system/dist/{dist-Bh5JIimH.js → dist-DFeAUBa8.js} +489 -275
  71. package/system/dist/file-host-worker.js +1 -1
  72. package/system/dist/file-host-worker.mjs +1 -1
  73. package/system/dist/{hub-identity-BxaJKDQk.mjs → hub-identity-CcEQJ8el.mjs} +1 -1
  74. package/system/dist/{hub-identity-YfGdAaBm.js → hub-identity-DPKmKOuk.js} +1 -1
  75. package/system/dist/{hub-mdns-ciao-BkWOmG6H.js → hub-mdns-ciao-DP0ReXx8.js} +2 -2
  76. package/system/dist/{hub-mdns-ciao-aIsTpo0F.mjs → hub-mdns-ciao-p1Hky4He.mjs} +2 -2
  77. package/system/dist/index.js +8 -8
  78. package/system/dist/index.mjs +8 -8
  79. package/system/dist/{legacy-integration-rows-door-C9PZZiKH.js → legacy-integration-rows-door-BxlPhgrH.js} +1 -1
  80. package/system/dist/{legacy-integration-rows-door-DrfZZHWq.mjs → legacy-integration-rows-door-DJaNTUpH.mjs} +1 -1
  81. package/system/dist/{rename-composition-block-Qp1dW4FP.js → rename-composition-block-BAiTDZoT.js} +1 -1
  82. package/system/dist/{rename-composition-block-C2KFIOMP.mjs → rename-composition-block-DjyPUZPW.mjs} +1 -1
  83. package/system/dist/{restore-archive-waz532L0.mjs → restore-archive-BLJ9rXBX.mjs} +82 -82
  84. package/system/dist/{restore-archive-DGgj7aqA.js → restore-archive-n-OmTBbN.js} +1 -1
  85. package/system/dist/{wal-maintenance-DD8mfRDn.js → wal-maintenance-CrMVN_qH.js} +0 -0
  86. package/system/dist/{wal-maintenance-BuiSFfF2.mjs → wal-maintenance-DKNovLM_.mjs} +0 -0
  87. package/system/package.json +1 -1
@@ -21910,19 +21910,43 @@ var DEVICE_TEMPLATE_CATALOGUE_CATEGORIES = [
21910
21910
  "loop",
21911
21911
  "variable"
21912
21912
  ];
21913
+ var DEVICE_TEMPLATE_PARAM_TYPES = [
21914
+ "string",
21915
+ "number",
21916
+ "boolean"
21917
+ ];
21918
+ /**
21919
+ * Where the values a parameter takes come from, when a fixed set makes sense.
21920
+ * `units-of-field` is the units in the dimension of the piped field's unit;
21921
+ * `choices` is a named list (a time pattern); `range` is the numbers
21922
+ * `min…max` by `step`. An absent source means free input.
21923
+ */
21924
+ var deviceTemplateParamValuesSchemaValue = zod.z.discriminatedUnion("kind", [
21925
+ zod.z.object({ kind: zod.z.literal("units-of-field") }),
21926
+ zod.z.object({
21927
+ kind: zod.z.literal("choices"),
21928
+ options: zod.z.array(zod.z.object({
21929
+ value: zod.z.string(),
21930
+ labelKey: zod.z.string().min(1)
21931
+ })).min(1)
21932
+ }),
21933
+ zod.z.object({
21934
+ kind: zod.z.literal("range"),
21935
+ min: zod.z.number(),
21936
+ max: zod.z.number(),
21937
+ step: zod.z.number().positive()
21938
+ })
21939
+ ]);
21913
21940
  var deviceTemplateParamSchema = zod.z.object({
21914
21941
  name: zod.z.string().min(1),
21915
- type: zod.z.enum([
21916
- "string",
21917
- "number",
21918
- "boolean"
21919
- ]),
21942
+ type: zod.z.enum(DEVICE_TEMPLATE_PARAM_TYPES),
21920
21943
  optional: zod.z.boolean(),
21921
21944
  default: zod.z.union([
21922
21945
  zod.z.string(),
21923
21946
  zod.z.number(),
21924
21947
  zod.z.boolean()
21925
- ]).optional()
21948
+ ]).optional(),
21949
+ values: deviceTemplateParamValuesSchemaValue.optional()
21926
21950
  });
21927
21951
  zod.z.object({
21928
21952
  name: zod.z.string().min(1),
@@ -21932,8 +21956,8 @@ zod.z.object({
21932
21956
  descriptionKey: zod.z.string().min(1),
21933
21957
  exampleKey: zod.z.string().min(1)
21934
21958
  });
21935
- function param(name, type, optional, fallback) {
21936
- return fallback === void 0 ? {
21959
+ function param(name, type, optional, fallback, values) {
21960
+ const base = fallback === void 0 ? {
21937
21961
  name,
21938
21962
  type,
21939
21963
  optional
@@ -21943,6 +21967,10 @@ function param(name, type, optional, fallback) {
21943
21967
  optional,
21944
21968
  default: fallback
21945
21969
  };
21970
+ return values === void 0 ? base : {
21971
+ ...base,
21972
+ values
21973
+ };
21946
21974
  }
21947
21975
  function entry(name, kind, category, params) {
21948
21976
  return {
@@ -21954,12 +21982,71 @@ function entry(name, kind, category, params) {
21954
21982
  exampleKey: `uiLibrary.deviceTemplateCatalogue.${name}.example`
21955
21983
  };
21956
21984
  }
21957
- var DIGITS = param("digits", "number", true, 0);
21985
+ var DIGITS = param("digits", "number", true, 0, {
21986
+ kind: "range",
21987
+ min: 0,
21988
+ max: 4,
21989
+ step: 1
21990
+ });
21991
+ var UNITS_OF_FIELD = { kind: "units-of-field" };
21992
+ /** Named time patterns: the engine's tokens are `YYYY MM DD HH mm ss`. */
21993
+ var TIME_PATTERNS = [
21994
+ [
21995
+ "hm",
21996
+ "HH:mm",
21997
+ "Hours and minutes (14:05)",
21998
+ "Ore e minuti (14:05)"
21999
+ ],
22000
+ [
22001
+ "hms",
22002
+ "HH:mm:ss",
22003
+ "Hours, minutes, seconds (14:05:09)",
22004
+ "Ore, minuti, secondi (14:05:09)"
22005
+ ],
22006
+ [
22007
+ "dm",
22008
+ "DD/MM",
22009
+ "Day and month (31/12)",
22010
+ "Giorno e mese (31/12)"
22011
+ ],
22012
+ [
22013
+ "dmy",
22014
+ "DD/MM/YYYY",
22015
+ "Day, month, year (31/12/2026)",
22016
+ "Giorno, mese, anno (31/12/2026)"
22017
+ ],
22018
+ [
22019
+ "dmyhm",
22020
+ "DD/MM/YYYY HH:mm",
22021
+ "Date and time (31/12/2026 14:05)",
22022
+ "Data e ora (31/12/2026 14:05)"
22023
+ ],
22024
+ [
22025
+ "iso",
22026
+ "YYYY-MM-DD",
22027
+ "ISO date (2026-12-31)",
22028
+ "Data ISO (2026-12-31)"
22029
+ ],
22030
+ [
22031
+ "isohms",
22032
+ "YYYY-MM-DD HH:mm:ss",
22033
+ "ISO date and time (2026-12-31 14:05:09)",
22034
+ "Data e ora ISO (2026-12-31 14:05:09)"
22035
+ ]
22036
+ ];
22037
+ var TIME_PATTERN_KEY = (id) => `uiLibrary.deviceTemplateCatalogue.choice.time.${id}`;
22038
+ var TIME_PATTERN_VALUES = {
22039
+ kind: "choices",
22040
+ options: TIME_PATTERNS.map(([id, pattern]) => ({
22041
+ value: pattern,
22042
+ labelKey: TIME_PATTERN_KEY(id)
22043
+ }))
22044
+ };
21958
22045
  var FALLBACK_TEXT = param("fallback", "string", false);
21959
22046
  var FALSY = param("falsy", "boolean", true, false);
21960
22047
  /** Every name the engine allows, in the order operators meet them. */
21961
22048
  var DEVICE_TEMPLATE_CATALOGUE = [
21962
- entry("unit", "filter", "unit", [param("symbol", "string", false), param("from", "string", true)]),
22049
+ entry("unit", "filter", "unit", [param("symbol", "string", false, void 0, UNITS_OF_FIELD), param("from", "string", true, void 0, UNITS_OF_FIELD)]),
21963
22050
  entry("round", "filter", "number", [DIGITS]),
21964
22051
  entry("trunc", "filter", "number", [DIGITS]),
21965
22052
  entry("onoff", "filter", "state", []),
@@ -21995,7 +22082,7 @@ var DEVICE_TEMPLATE_CATALOGUE = [
21995
22082
  param("killwords", "boolean", true, false),
21996
22083
  param("end", "string", true, "…")
21997
22084
  ]),
21998
- entry("time", "filter", "time", [param("pattern", "string", false)]),
22085
+ entry("time", "filter", "time", [param("pattern", "string", false, void 0, TIME_PATTERN_VALUES)]),
21999
22086
  entry("range", "global", "loop", [
22000
22087
  param("stop", "number", false),
22001
22088
  param("start", "number", true, 0),
@@ -22163,6 +22250,10 @@ function buildText() {
22163
22250
  it: row.example[1]
22164
22251
  };
22165
22252
  }
22253
+ for (const [id, , en, it] of TIME_PATTERNS) out[TIME_PATTERN_KEY(id)] = {
22254
+ en,
22255
+ it
22256
+ };
22166
22257
  return out;
22167
22258
  }
22168
22259
  buildText();
@@ -55840,11 +55931,13 @@ var airQualitySensorCapability = {
55840
55931
  deadband: 5
55841
55932
  },
55842
55933
  pm25: {
55934
+ group: "particulates",
55843
55935
  kind: "gauge",
55844
55936
  unit: "µg/m³",
55845
55937
  deadband: 1
55846
55938
  },
55847
55939
  pm10: {
55940
+ group: "particulates",
55848
55941
  kind: "gauge",
55849
55942
  unit: "µg/m³",
55850
55943
  deadband: 1
@@ -60599,33 +60692,41 @@ var climateControlCapability = {
60599
60692
  /**
60600
60693
  * History (D850): recorded series. Celsius by contract; setpoints keep every change (`minIntervalMs: 0`).
60601
60694
  */
60602
- history: { fields: {
60603
- currentTemp: {
60604
- kind: "gauge",
60605
- unit: "°C",
60606
- deadband: .1
60607
- },
60608
- currentHumidity: {
60609
- kind: "gauge",
60610
- unit: "%",
60611
- deadband: .5
60612
- },
60613
- target: {
60614
- kind: "gauge",
60615
- unit: "°C",
60616
- minIntervalMs: 0
60617
- },
60618
- targetHigh: {
60619
- kind: "gauge",
60620
- unit: "°C",
60621
- minIntervalMs: 0
60622
- },
60623
- targetLow: {
60624
- kind: "gauge",
60625
- unit: "°C",
60626
- minIntervalMs: 0
60695
+ history: {
60696
+ primary: "currentTemp",
60697
+ priority: 70,
60698
+ fields: {
60699
+ currentTemp: {
60700
+ group: "temperature",
60701
+ kind: "gauge",
60702
+ unit: "°C",
60703
+ deadband: .1
60704
+ },
60705
+ currentHumidity: {
60706
+ kind: "gauge",
60707
+ unit: "%",
60708
+ deadband: .5
60709
+ },
60710
+ target: {
60711
+ group: "temperature",
60712
+ kind: "gauge",
60713
+ unit: "°C",
60714
+ minIntervalMs: 0
60715
+ },
60716
+ targetHigh: {
60717
+ group: "target-range",
60718
+ kind: "gauge",
60719
+ unit: "°C",
60720
+ minIntervalMs: 0
60721
+ },
60722
+ targetLow: {
60723
+ group: "target-range",
60724
+ kind: "gauge",
60725
+ unit: "°C",
60726
+ minIntervalMs: 0
60727
+ }
60627
60728
  }
60628
- } },
60729
+ },
60629
60730
  vocabulary: {
60630
60731
  noun: t("Climate", "Clima"),
60631
60732
  order: 1070,
@@ -65599,11 +65700,13 @@ var HISTORY_CATALOG = {
65599
65700
  deadband: 5
65600
65701
  },
65601
65702
  "pm25": {
65703
+ group: "particulates",
65602
65704
  kind: "gauge",
65603
65705
  unit: "µg/m³",
65604
65706
  deadband: 1
65605
65707
  },
65606
65708
  "pm10": {
65709
+ group: "particulates",
65607
65710
  kind: "gauge",
65608
65711
  unit: "µg/m³",
65609
65712
  deadband: 1
@@ -65654,6 +65757,7 @@ var HISTORY_CATALOG = {
65654
65757
  "carbon-monoxide": { "detected": { kind: "boolean" } },
65655
65758
  "climate-control": {
65656
65759
  "currentTemp": {
65760
+ group: "temperature",
65657
65761
  kind: "gauge",
65658
65762
  unit: "°C",
65659
65763
  deadband: .1
@@ -65664,16 +65768,19 @@ var HISTORY_CATALOG = {
65664
65768
  deadband: .5
65665
65769
  },
65666
65770
  "target": {
65771
+ group: "temperature",
65667
65772
  kind: "gauge",
65668
65773
  unit: "°C",
65669
65774
  minIntervalMs: 0
65670
65775
  },
65671
65776
  "targetHigh": {
65777
+ group: "target-range",
65672
65778
  kind: "gauge",
65673
65779
  unit: "°C",
65674
65780
  minIntervalMs: 0
65675
65781
  },
65676
65782
  "targetLow": {
65783
+ group: "target-range",
65677
65784
  kind: "gauge",
65678
65785
  unit: "°C",
65679
65786
  minIntervalMs: 0
@@ -65729,6 +65836,7 @@ var HISTORY_CATALOG = {
65729
65836
  "do-not-disturb": { "enabled": { kind: "boolean" } },
65730
65837
  "energy-system": {
65731
65838
  "solar.powerW": {
65839
+ group: "power-flow",
65732
65840
  kind: "gauge",
65733
65841
  unit: "W",
65734
65842
  deadband: 50,
@@ -65740,6 +65848,7 @@ var HISTORY_CATALOG = {
65740
65848
  displayName: "Solar energy"
65741
65849
  },
65742
65850
  "grid.powerW": {
65851
+ group: "power-flow",
65743
65852
  kind: "gauge",
65744
65853
  unit: "W",
65745
65854
  deadband: 50,
@@ -65756,6 +65865,7 @@ var HISTORY_CATALOG = {
65756
65865
  displayName: "Grid export"
65757
65866
  },
65758
65867
  "house.powerW": {
65868
+ group: "power-flow",
65759
65869
  kind: "gauge",
65760
65870
  unit: "W",
65761
65871
  deadband: 50,
@@ -65767,6 +65877,7 @@ var HISTORY_CATALOG = {
65767
65877
  displayName: "House energy"
65768
65878
  },
65769
65879
  "heatPump.powerW": {
65880
+ group: "power-flow",
65770
65881
  kind: "gauge",
65771
65882
  unit: "W",
65772
65883
  deadband: 50,
@@ -65790,6 +65901,7 @@ var HISTORY_CATALOG = {
65790
65901
  displayName: "Stored energy"
65791
65902
  },
65792
65903
  "storage.powerW": {
65904
+ group: "power-flow",
65793
65905
  kind: "gauge",
65794
65906
  unit: "W",
65795
65907
  deadband: 50,
@@ -65828,12 +65940,14 @@ var HISTORY_CATALOG = {
65828
65940
  "gas": { "detected": { kind: "boolean" } },
65829
65941
  "heat-pump-status": {
65830
65942
  "power.thermalW": {
65943
+ group: "power",
65831
65944
  kind: "gauge",
65832
65945
  unit: "W",
65833
65946
  deadband: 50,
65834
65947
  displayName: "Thermal power"
65835
65948
  },
65836
65949
  "power.electricalW": {
65950
+ group: "power",
65837
65951
  kind: "gauge",
65838
65952
  unit: "W",
65839
65953
  deadband: 50,
@@ -65846,12 +65960,14 @@ var HISTORY_CATALOG = {
65846
65960
  displayName: "Compressor"
65847
65961
  },
65848
65962
  "temperatures.supply": {
65963
+ group: "loop",
65849
65964
  kind: "gauge",
65850
65965
  unit: "°C",
65851
65966
  deadband: .5,
65852
65967
  displayName: "Supply"
65853
65968
  },
65854
65969
  "temperatures.return": {
65970
+ group: "loop",
65855
65971
  kind: "gauge",
65856
65972
  unit: "°C",
65857
65973
  deadband: .5,
@@ -66018,18 +66134,22 @@ var HISTORY_CATALOG = {
66018
66134
  "smoke": { "detected": { kind: "boolean" } },
66019
66135
  "stream-params": {
66020
66136
  "main.bitrate": {
66137
+ group: "bitrate",
66021
66138
  kind: "gauge",
66022
66139
  unit: "kbps"
66023
66140
  },
66024
66141
  "main.framerate": {
66142
+ group: "framerate",
66025
66143
  kind: "gauge",
66026
66144
  unit: "fps"
66027
66145
  },
66028
66146
  "sub.bitrate": {
66147
+ group: "bitrate",
66029
66148
  kind: "gauge",
66030
66149
  unit: "kbps"
66031
66150
  },
66032
66151
  "sub.framerate": {
66152
+ group: "framerate",
66033
66153
  kind: "gauge",
66034
66154
  unit: "fps"
66035
66155
  }
@@ -66054,11 +66174,13 @@ var HISTORY_CATALOG = {
66054
66174
  "vibration": { "detected": { kind: "boolean" } },
66055
66175
  "water-heater": {
66056
66176
  "currentTemp": {
66177
+ group: "temperature",
66057
66178
  kind: "gauge",
66058
66179
  unit: "°C",
66059
66180
  deadband: .5
66060
66181
  },
66061
66182
  "targetTemp": {
66183
+ group: "temperature",
66062
66184
  kind: "gauge",
66063
66185
  unit: "°C",
66064
66186
  minIntervalMs: 0
@@ -66088,6 +66210,7 @@ var HISTORY_CATALOG = {
66088
66210
  },
66089
66211
  "weather-station": {
66090
66212
  "temperature": {
66213
+ group: "temperature",
66091
66214
  kind: "gauge",
66092
66215
  unit: "°C",
66093
66216
  deadband: .1
@@ -66103,16 +66226,19 @@ var HISTORY_CATALOG = {
66103
66226
  deadband: .2
66104
66227
  },
66105
66228
  "windSpeed": {
66229
+ group: "wind-speed",
66106
66230
  kind: "gauge",
66107
66231
  unit: "m/s",
66108
66232
  deadband: .2
66109
66233
  },
66110
66234
  "windGust": {
66235
+ group: "wind-speed",
66111
66236
  kind: "gauge",
66112
66237
  unit: "m/s",
66113
66238
  deadband: .2
66114
66239
  },
66115
66240
  "windBearing": {
66241
+ group: "wind-bearing",
66116
66242
  kind: "gauge",
66117
66243
  unit: "°",
66118
66244
  deadband: 5
@@ -66143,11 +66269,13 @@ var HISTORY_CATALOG = {
66143
66269
  deadband: 5
66144
66270
  },
66145
66271
  "dewPoint": {
66272
+ group: "temperature",
66146
66273
  kind: "gauge",
66147
66274
  unit: "°C",
66148
66275
  deadband: .1
66149
66276
  },
66150
66277
  "feelsLike": {
66278
+ group: "temperature",
66151
66279
  kind: "gauge",
66152
66280
  unit: "°C",
66153
66281
  deadband: .1
@@ -66158,11 +66286,13 @@ var HISTORY_CATALOG = {
66158
66286
  deadband: .05
66159
66287
  },
66160
66288
  "windGustMax": {
66289
+ group: "wind-speed",
66161
66290
  kind: "gauge",
66162
66291
  unit: "m/s",
66163
66292
  deadband: .2
66164
66293
  },
66165
66294
  "windBearingAvg": {
66295
+ group: "wind-bearing",
66166
66296
  kind: "gauge",
66167
66297
  unit: "°",
66168
66298
  deadband: 5
@@ -66248,6 +66378,36 @@ var HISTORY_ITEM_CATALOG = {
66248
66378
  }
66249
66379
  }
66250
66380
  };
66381
+ /**
66382
+ * The series a device card trends, per cap (`history.primary` + `history.priority`):
66383
+ * 6 caps. The card shows the primary of the enabled cap with the highest priority.
66384
+ */
66385
+ var HISTORY_PRIMARY = {
66386
+ "climate-control": {
66387
+ field: "currentTemp",
66388
+ priority: 70
66389
+ },
66390
+ "energy-system": {
66391
+ field: "house.powerW",
66392
+ priority: 50
66393
+ },
66394
+ "humidity-sensor": {
66395
+ field: "humidity",
66396
+ priority: 90
66397
+ },
66398
+ "power-meter": {
66399
+ field: "power",
66400
+ priority: 80
66401
+ },
66402
+ "temperature-sensor": {
66403
+ field: "temperature",
66404
+ priority: 100
66405
+ },
66406
+ "weather-station": {
66407
+ field: "temperature",
66408
+ priority: 60
66409
+ }
66410
+ };
66251
66411
  /** The series specs of `capName`; empty for a `'none'` cap or an unknown one. */
66252
66412
  function historyFieldsFor(capName) {
66253
66413
  return HISTORY_CATALOG[capName] ?? {};
@@ -74565,91 +74725,100 @@ var energySystemCapability = {
74565
74725
  * have is null and records nothing. Day totals are not recorded: they are the
74566
74726
  * counters' difference over the day.
74567
74727
  */
74568
- history: { fields: {
74569
- "solar.powerW": {
74570
- kind: "gauge",
74571
- unit: "W",
74572
- deadband: 50,
74573
- displayName: "Solar power"
74574
- },
74575
- "solar.energyKwh": {
74576
- kind: "counter",
74577
- unit: "kWh",
74578
- displayName: "Solar energy"
74579
- },
74580
- "grid.powerW": {
74581
- kind: "gauge",
74582
- unit: "W",
74583
- deadband: 50,
74584
- displayName: "Grid power"
74585
- },
74586
- "grid.importKwh": {
74587
- kind: "counter",
74588
- unit: "kWh",
74589
- displayName: "Grid import"
74590
- },
74591
- "grid.exportKwh": {
74592
- kind: "counter",
74593
- unit: "kWh",
74594
- displayName: "Grid export"
74595
- },
74596
- "house.powerW": {
74597
- kind: "gauge",
74598
- unit: "W",
74599
- deadband: 50,
74600
- displayName: "House power"
74601
- },
74602
- "house.energyKwh": {
74603
- kind: "counter",
74604
- unit: "kWh",
74605
- displayName: "House energy"
74606
- },
74607
- "heatPump.powerW": {
74608
- kind: "gauge",
74609
- unit: "W",
74610
- deadband: 50,
74611
- displayName: "Heat pump power"
74612
- },
74613
- "heatPump.energyKwh": {
74614
- kind: "counter",
74615
- unit: "kWh",
74616
- displayName: "Heat pump energy"
74617
- },
74618
- "storage.stateOfChargePct": {
74619
- kind: "gauge",
74620
- unit: "%",
74621
- deadband: 1,
74622
- displayName: "Storage charge"
74623
- },
74624
- "storage.storedKwh": {
74625
- kind: "gauge",
74626
- unit: "kWh",
74627
- deadband: .05,
74628
- displayName: "Stored energy"
74629
- },
74630
- "storage.powerW": {
74631
- kind: "gauge",
74632
- unit: "W",
74633
- deadband: 50,
74634
- displayName: "Storage power"
74635
- },
74636
- "storage.chargedKwh": {
74637
- kind: "counter",
74638
- unit: "kWh",
74639
- displayName: "Storage charged"
74640
- },
74641
- "storage.dischargedKwh": {
74642
- kind: "counter",
74643
- unit: "kWh",
74644
- displayName: "Storage discharged"
74645
- },
74646
- "storage.healthPct": {
74647
- kind: "gauge",
74648
- unit: "%",
74649
- deadband: 1,
74650
- displayName: "Storage health"
74728
+ history: {
74729
+ primary: "house.powerW",
74730
+ priority: 50,
74731
+ fields: {
74732
+ "solar.powerW": {
74733
+ group: "power-flow",
74734
+ kind: "gauge",
74735
+ unit: "W",
74736
+ deadband: 50,
74737
+ displayName: "Solar power"
74738
+ },
74739
+ "solar.energyKwh": {
74740
+ kind: "counter",
74741
+ unit: "kWh",
74742
+ displayName: "Solar energy"
74743
+ },
74744
+ "grid.powerW": {
74745
+ group: "power-flow",
74746
+ kind: "gauge",
74747
+ unit: "W",
74748
+ deadband: 50,
74749
+ displayName: "Grid power"
74750
+ },
74751
+ "grid.importKwh": {
74752
+ kind: "counter",
74753
+ unit: "kWh",
74754
+ displayName: "Grid import"
74755
+ },
74756
+ "grid.exportKwh": {
74757
+ kind: "counter",
74758
+ unit: "kWh",
74759
+ displayName: "Grid export"
74760
+ },
74761
+ "house.powerW": {
74762
+ group: "power-flow",
74763
+ kind: "gauge",
74764
+ unit: "W",
74765
+ deadband: 50,
74766
+ displayName: "House power"
74767
+ },
74768
+ "house.energyKwh": {
74769
+ kind: "counter",
74770
+ unit: "kWh",
74771
+ displayName: "House energy"
74772
+ },
74773
+ "heatPump.powerW": {
74774
+ group: "power-flow",
74775
+ kind: "gauge",
74776
+ unit: "W",
74777
+ deadband: 50,
74778
+ displayName: "Heat pump power"
74779
+ },
74780
+ "heatPump.energyKwh": {
74781
+ kind: "counter",
74782
+ unit: "kWh",
74783
+ displayName: "Heat pump energy"
74784
+ },
74785
+ "storage.stateOfChargePct": {
74786
+ kind: "gauge",
74787
+ unit: "%",
74788
+ deadband: 1,
74789
+ displayName: "Storage charge"
74790
+ },
74791
+ "storage.storedKwh": {
74792
+ kind: "gauge",
74793
+ unit: "kWh",
74794
+ deadband: .05,
74795
+ displayName: "Stored energy"
74796
+ },
74797
+ "storage.powerW": {
74798
+ group: "power-flow",
74799
+ kind: "gauge",
74800
+ unit: "W",
74801
+ deadband: 50,
74802
+ displayName: "Storage power"
74803
+ },
74804
+ "storage.chargedKwh": {
74805
+ kind: "counter",
74806
+ unit: "kWh",
74807
+ displayName: "Storage charged"
74808
+ },
74809
+ "storage.dischargedKwh": {
74810
+ kind: "counter",
74811
+ unit: "kWh",
74812
+ displayName: "Storage discharged"
74813
+ },
74814
+ "storage.healthPct": {
74815
+ kind: "gauge",
74816
+ unit: "%",
74817
+ deadband: 1,
74818
+ displayName: "Storage health"
74819
+ }
74651
74820
  }
74652
- } },
74821
+ },
74653
74822
  volatileStateFields: ["lastFetchedAt"],
74654
74823
  vocabulary: {
74655
74824
  noun: t("Energy system", "Sistema energetico"),
@@ -76850,12 +77019,14 @@ var heatPumpStatusCapability = {
76850
77019
  history: {
76851
77020
  fields: {
76852
77021
  "power.thermalW": {
77022
+ group: "power",
76853
77023
  kind: "gauge",
76854
77024
  unit: "W",
76855
77025
  deadband: 50,
76856
77026
  displayName: "Thermal power"
76857
77027
  },
76858
77028
  "power.electricalW": {
77029
+ group: "power",
76859
77030
  kind: "gauge",
76860
77031
  unit: "W",
76861
77032
  deadband: 50,
@@ -76868,12 +77039,14 @@ var heatPumpStatusCapability = {
76868
77039
  displayName: "Compressor"
76869
77040
  },
76870
77041
  "temperatures.supply": {
77042
+ group: "loop",
76871
77043
  kind: "gauge",
76872
77044
  unit: "°C",
76873
77045
  deadband: .5,
76874
77046
  displayName: "Supply"
76875
77047
  },
76876
77048
  "temperatures.return": {
77049
+ group: "loop",
76877
77050
  kind: "gauge",
76878
77051
  unit: "°C",
76879
77052
  deadband: .5,
@@ -77251,6 +77424,17 @@ var StateLookSchema = zod.z.object({
77251
77424
  background: HeroBackgroundTokenSchema,
77252
77425
  animation: HeroAnimationSchema
77253
77426
  });
77427
+ /**
77428
+ * Which history series a device card trends. Each cap declares its own
77429
+ * (`history.primary` + `history.priority`, projected into `HISTORY_PRIMARY`);
77430
+ * a device shows the primary of the ENABLED cap with the highest priority that
77431
+ * has data, falling back to the next.
77432
+ */
77433
+ /** The history series key of a cap's declared primary field; `null` when it declares none. */
77434
+ function primarySeriesKey(cap) {
77435
+ const primary = HISTORY_PRIMARY[cap];
77436
+ return primary === void 0 ? null : `cap:${cap}.${primary.field}`;
77437
+ }
77254
77438
  /** A string in both languages, as the cap vocabulary writes it (D920): no `t()` in the model. */
77255
77439
  var HeroTextSchema = zod.z.object({
77256
77440
  en: zod.z.string(),
@@ -77344,7 +77528,7 @@ function temperatureMeasurement(celsius, since) {
77344
77528
  tone: BAND_TONE[band],
77345
77529
  since,
77346
77530
  sinceKind: "updated",
77347
- historyKey: "cap:temperature-sensor.temperature"
77531
+ historyKey: primarySeriesKey("temperature-sensor")
77348
77532
  };
77349
77533
  }
77350
77534
  function humidityMeasurement(percent, since) {
@@ -77365,7 +77549,7 @@ function humidityMeasurement(percent, since) {
77365
77549
  tone: dry || humid ? "warning" : "info",
77366
77550
  since,
77367
77551
  sinceKind: "updated",
77368
- historyKey: "cap:humidity-sensor.humidity"
77552
+ historyKey: primarySeriesKey("humidity-sensor")
77369
77553
  };
77370
77554
  }
77371
77555
  function powerMeasurement(watts, since) {
@@ -77385,7 +77569,7 @@ function powerMeasurement(watts, since) {
77385
77569
  tone: active ? "primary" : "muted",
77386
77570
  since,
77387
77571
  sinceKind: "updated",
77388
- historyKey: "cap:power-meter.power"
77572
+ historyKey: primarySeriesKey("power-meter")
77389
77573
  };
77390
77574
  }
77391
77575
  function contactMeasurement(open, since) {
@@ -77426,19 +77610,19 @@ var QUANTITY_FACE = {
77426
77610
  icon: "thermometer",
77427
77611
  unit: "°C",
77428
77612
  sinceKind: "updated",
77429
- historyKey: "cap:temperature-sensor.temperature"
77613
+ historyKey: primarySeriesKey("temperature-sensor")
77430
77614
  },
77431
77615
  humidity: {
77432
77616
  icon: "droplets",
77433
77617
  unit: "%",
77434
77618
  sinceKind: "updated",
77435
- historyKey: "cap:humidity-sensor.humidity"
77619
+ historyKey: primarySeriesKey("humidity-sensor")
77436
77620
  },
77437
77621
  power: {
77438
77622
  icon: "zap",
77439
77623
  unit: "W",
77440
77624
  sinceKind: "updated",
77441
- historyKey: "cap:power-meter.power"
77625
+ historyKey: primarySeriesKey("power-meter")
77442
77626
  },
77443
77627
  contact: {
77444
77628
  icon: null,
@@ -78501,11 +78685,15 @@ var humiditySensorCapability = {
78501
78685
  /**
78502
78686
  * History (D850): recorded series.
78503
78687
  */
78504
- history: { fields: { humidity: {
78505
- kind: "gauge",
78506
- unit: "%",
78507
- deadband: .5
78508
- } } },
78688
+ history: {
78689
+ primary: "humidity",
78690
+ priority: 90,
78691
+ fields: { humidity: {
78692
+ kind: "gauge",
78693
+ unit: "%",
78694
+ deadband: .5
78695
+ } }
78696
+ },
78509
78697
  /** Clock fields: written, but excluded from the compare that decides
78510
78698
  * whether persisting is worth a SQLite commit. */
78511
78699
  volatileStateFields: ["lastFetchedAt"],
@@ -98433,44 +98621,48 @@ var powerMeterCapability = {
98433
98621
  /**
98434
98622
  * History (D850): recorded series. Gauges are floored at 30 s; `energy` is the one monotonic meter (counter).
98435
98623
  */
98436
- history: { fields: {
98437
- power: {
98438
- kind: "gauge",
98439
- unit: "W",
98440
- deadband: 1,
98441
- minIntervalMs: 3e4
98442
- },
98443
- energy: {
98444
- kind: "counter",
98445
- unit: "kWh",
98446
- deadband: .01,
98447
- minIntervalMs: 6e4
98448
- },
98449
- voltage: {
98450
- kind: "gauge",
98451
- unit: "V",
98452
- deadband: 1,
98453
- minIntervalMs: 3e4
98454
- },
98455
- current: {
98456
- kind: "gauge",
98457
- unit: "A",
98458
- deadband: .05,
98459
- minIntervalMs: 3e4
98460
- },
98461
- apparentPower: {
98462
- kind: "gauge",
98463
- unit: "VA",
98464
- deadband: 1,
98465
- minIntervalMs: 3e4
98466
- },
98467
- powerFactor: {
98468
- kind: "gauge",
98469
- unit: "ratio",
98470
- deadband: .01,
98471
- minIntervalMs: 6e4
98624
+ history: {
98625
+ primary: "power",
98626
+ priority: 80,
98627
+ fields: {
98628
+ power: {
98629
+ kind: "gauge",
98630
+ unit: "W",
98631
+ deadband: 1,
98632
+ minIntervalMs: 3e4
98633
+ },
98634
+ energy: {
98635
+ kind: "counter",
98636
+ unit: "kWh",
98637
+ deadband: .01,
98638
+ minIntervalMs: 6e4
98639
+ },
98640
+ voltage: {
98641
+ kind: "gauge",
98642
+ unit: "V",
98643
+ deadband: 1,
98644
+ minIntervalMs: 3e4
98645
+ },
98646
+ current: {
98647
+ kind: "gauge",
98648
+ unit: "A",
98649
+ deadband: .05,
98650
+ minIntervalMs: 3e4
98651
+ },
98652
+ apparentPower: {
98653
+ kind: "gauge",
98654
+ unit: "VA",
98655
+ deadband: 1,
98656
+ minIntervalMs: 3e4
98657
+ },
98658
+ powerFactor: {
98659
+ kind: "gauge",
98660
+ unit: "ratio",
98661
+ deadband: .01,
98662
+ minIntervalMs: 6e4
98663
+ }
98472
98664
  }
98473
- } },
98665
+ },
98474
98666
  /** Clock fields: written, but excluded from the compare that decides
98475
98667
  * whether persisting is worth a SQLite commit. */
98476
98668
  volatileStateFields: ["lastFetchedAt"],
@@ -105844,18 +106036,22 @@ var streamParamsCapability = {
105844
106036
  */
105845
106037
  history: { fields: {
105846
106038
  "main.bitrate": {
106039
+ group: "bitrate",
105847
106040
  kind: "gauge",
105848
106041
  unit: "kbps"
105849
106042
  },
105850
106043
  "main.framerate": {
106044
+ group: "framerate",
105851
106045
  kind: "gauge",
105852
106046
  unit: "fps"
105853
106047
  },
105854
106048
  "sub.bitrate": {
106049
+ group: "bitrate",
105855
106050
  kind: "gauge",
105856
106051
  unit: "kbps"
105857
106052
  },
105858
106053
  "sub.framerate": {
106054
+ group: "framerate",
105859
106055
  kind: "gauge",
105860
106056
  unit: "fps"
105861
106057
  }
@@ -107090,11 +107286,15 @@ var temperatureSensorCapability = {
107090
107286
  /**
107091
107287
  * History (D850): recorded series.
107092
107288
  */
107093
- history: { fields: { temperature: {
107094
- kind: "gauge",
107095
- unit: "°C",
107096
- deadband: .1
107097
- } } },
107289
+ history: {
107290
+ primary: "temperature",
107291
+ priority: 100,
107292
+ fields: { temperature: {
107293
+ kind: "gauge",
107294
+ unit: "°C",
107295
+ deadband: .1
107296
+ } }
107297
+ },
107098
107298
  /** Clock fields: written, but excluded from the compare that decides
107099
107299
  * whether persisting is worth a SQLite commit. */
107100
107300
  volatileStateFields: ["lastFetchedAt"],
@@ -110196,11 +110396,13 @@ var waterHeaterCapability = {
110196
110396
  */
110197
110397
  history: { fields: {
110198
110398
  currentTemp: {
110399
+ group: "temperature",
110199
110400
  kind: "gauge",
110200
110401
  unit: "°C",
110201
110402
  deadband: .5
110202
110403
  },
110203
110404
  targetTemp: {
110405
+ group: "temperature",
110204
110406
  kind: "gauge",
110205
110407
  unit: "°C",
110206
110408
  minIntervalMs: 0
@@ -110491,108 +110693,120 @@ var weatherStationCapability = {
110491
110693
  * reset (event, day, week, month, year) and the sliding 24 h total are
110492
110694
  * levels, so `gauge`; `counter` is for a monotonic meter only.
110493
110695
  */
110494
- history: { fields: {
110495
- temperature: {
110496
- kind: "gauge",
110497
- unit: "°C",
110498
- deadband: .1
110499
- },
110500
- humidity: {
110501
- kind: "gauge",
110502
- unit: "%",
110503
- deadband: 1
110504
- },
110505
- pressure: {
110506
- kind: "gauge",
110507
- unit: "hPa",
110508
- deadband: .2
110509
- },
110510
- windSpeed: {
110511
- kind: "gauge",
110512
- unit: "m/s",
110513
- deadband: .2
110514
- },
110515
- windGust: {
110516
- kind: "gauge",
110517
- unit: "m/s",
110518
- deadband: .2
110519
- },
110520
- windBearing: {
110521
- kind: "gauge",
110522
- unit: "°",
110523
- deadband: 5
110524
- },
110525
- rainRate: {
110526
- kind: "gauge",
110527
- unit: "mm/h",
110528
- deadband: .1
110529
- },
110530
- rainDaily: {
110531
- kind: "gauge",
110532
- unit: "mm",
110533
- deadband: .1
110534
- },
110535
- rainEvent: {
110536
- kind: "gauge",
110537
- unit: "mm",
110538
- deadband: .1
110539
- },
110540
- uv: {
110541
- kind: "gauge",
110542
- unit: "index",
110543
- deadband: .1
110544
- },
110545
- solarRadiation: {
110546
- kind: "gauge",
110547
- unit: "W/m²",
110548
- deadband: 5
110549
- },
110550
- dewPoint: {
110551
- kind: "gauge",
110552
- unit: "°C",
110553
- deadband: .1
110554
- },
110555
- feelsLike: {
110556
- kind: "gauge",
110557
- unit: "°C",
110558
- deadband: .1
110559
- },
110560
- vpd: {
110561
- kind: "gauge",
110562
- unit: "kPa",
110563
- deadband: .05
110564
- },
110565
- windGustMax: {
110566
- kind: "gauge",
110567
- unit: "m/s",
110568
- deadband: .2
110569
- },
110570
- windBearingAvg: {
110571
- kind: "gauge",
110572
- unit: "°",
110573
- deadband: 5
110574
- },
110575
- rain24h: {
110576
- kind: "gauge",
110577
- unit: "mm",
110578
- deadband: .1
110579
- },
110580
- rainWeekly: {
110581
- kind: "gauge",
110582
- unit: "mm",
110583
- deadband: .1
110584
- },
110585
- rainMonthly: {
110586
- kind: "gauge",
110587
- unit: "mm",
110588
- deadband: .1
110589
- },
110590
- rainYearly: {
110591
- kind: "gauge",
110592
- unit: "mm",
110593
- deadband: .1
110696
+ history: {
110697
+ primary: "temperature",
110698
+ priority: 60,
110699
+ fields: {
110700
+ temperature: {
110701
+ group: "temperature",
110702
+ kind: "gauge",
110703
+ unit: "°C",
110704
+ deadband: .1
110705
+ },
110706
+ humidity: {
110707
+ kind: "gauge",
110708
+ unit: "%",
110709
+ deadband: 1
110710
+ },
110711
+ pressure: {
110712
+ kind: "gauge",
110713
+ unit: "hPa",
110714
+ deadband: .2
110715
+ },
110716
+ windSpeed: {
110717
+ group: "wind-speed",
110718
+ kind: "gauge",
110719
+ unit: "m/s",
110720
+ deadband: .2
110721
+ },
110722
+ windGust: {
110723
+ group: "wind-speed",
110724
+ kind: "gauge",
110725
+ unit: "m/s",
110726
+ deadband: .2
110727
+ },
110728
+ windBearing: {
110729
+ group: "wind-bearing",
110730
+ kind: "gauge",
110731
+ unit: "°",
110732
+ deadband: 5
110733
+ },
110734
+ rainRate: {
110735
+ kind: "gauge",
110736
+ unit: "mm/h",
110737
+ deadband: .1
110738
+ },
110739
+ rainDaily: {
110740
+ kind: "gauge",
110741
+ unit: "mm",
110742
+ deadband: .1
110743
+ },
110744
+ rainEvent: {
110745
+ kind: "gauge",
110746
+ unit: "mm",
110747
+ deadband: .1
110748
+ },
110749
+ uv: {
110750
+ kind: "gauge",
110751
+ unit: "index",
110752
+ deadband: .1
110753
+ },
110754
+ solarRadiation: {
110755
+ kind: "gauge",
110756
+ unit: "W/m²",
110757
+ deadband: 5
110758
+ },
110759
+ dewPoint: {
110760
+ group: "temperature",
110761
+ kind: "gauge",
110762
+ unit: "°C",
110763
+ deadband: .1
110764
+ },
110765
+ feelsLike: {
110766
+ group: "temperature",
110767
+ kind: "gauge",
110768
+ unit: "°C",
110769
+ deadband: .1
110770
+ },
110771
+ vpd: {
110772
+ kind: "gauge",
110773
+ unit: "kPa",
110774
+ deadband: .05
110775
+ },
110776
+ windGustMax: {
110777
+ group: "wind-speed",
110778
+ kind: "gauge",
110779
+ unit: "m/s",
110780
+ deadband: .2
110781
+ },
110782
+ windBearingAvg: {
110783
+ group: "wind-bearing",
110784
+ kind: "gauge",
110785
+ unit: "°",
110786
+ deadband: 5
110787
+ },
110788
+ rain24h: {
110789
+ kind: "gauge",
110790
+ unit: "mm",
110791
+ deadband: .1
110792
+ },
110793
+ rainWeekly: {
110794
+ kind: "gauge",
110795
+ unit: "mm",
110796
+ deadband: .1
110797
+ },
110798
+ rainMonthly: {
110799
+ kind: "gauge",
110800
+ unit: "mm",
110801
+ deadband: .1
110802
+ },
110803
+ rainYearly: {
110804
+ kind: "gauge",
110805
+ unit: "mm",
110806
+ deadband: .1
110807
+ }
110594
110808
  }
110595
- } },
110809
+ },
110596
110810
  customize: weatherStationCustomize,
110597
110811
  /** The poll clock is written but is no reason to commit a row. */
110598
110812
  volatileStateFields: ["lastFetchedAt"],