@camstack/server 1.2.869 → 1.2.871

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 (90) hide show
  1. package/CHANGELOG.md +12 -2
  2. package/dist/api/trpc/generated-cap-mounts.js +3 -1
  3. package/dist/api/trpc/generated-cap-routers.js +29 -1
  4. package/package.json +14 -21
  5. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
  6. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
  7. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
  8. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
  9. package/system/dist/builtins/alerts/alerts.addon.js +1 -1
  10. package/system/dist/builtins/alerts/alerts.addon.mjs +1 -1
  11. package/system/dist/builtins/autotrack/index.js +1 -1
  12. package/system/dist/builtins/autotrack/index.mjs +1 -1
  13. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
  14. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
  15. package/system/dist/builtins/calendars/calendars.addon.js +1 -1
  16. package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
  17. package/system/dist/builtins/camera-grid/index.js +1 -1
  18. package/system/dist/builtins/camera-grid/index.mjs +1 -1
  19. package/system/dist/builtins/composer/composer.addon.js +4 -4
  20. package/system/dist/builtins/composer/composer.addon.mjs +4 -4
  21. package/system/dist/builtins/console-logging/index.js +1 -1
  22. package/system/dist/builtins/console-logging/index.mjs +1 -1
  23. package/system/dist/builtins/core-blocks/core-blocks.addon.js +9 -4
  24. package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +9 -4
  25. package/system/dist/builtins/core-blocks/remote-service.d.ts +5 -1
  26. package/system/dist/builtins/device-history/device-history.addon.js +2 -2
  27. package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
  28. package/system/dist/builtins/device-manager/device-manager.addon.js +2 -2
  29. package/system/dist/builtins/device-manager/device-manager.addon.mjs +2 -2
  30. package/system/dist/builtins/hub-forwarder/index.js +1 -1
  31. package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
  32. package/system/dist/builtins/keychain/index.js +4 -4
  33. package/system/dist/builtins/keychain/index.mjs +4 -4
  34. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
  35. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
  36. package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
  37. package/system/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
  38. package/system/dist/builtins/local-network/local-network.addon.js +3 -3
  39. package/system/dist/builtins/local-network/local-network.addon.mjs +3 -3
  40. package/system/dist/builtins/loki-logging/index.js +1 -1
  41. package/system/dist/builtins/loki-logging/index.mjs +1 -1
  42. package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
  43. package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
  44. package/system/dist/builtins/platform-probe/index.js +1 -1
  45. package/system/dist/builtins/platform-probe/index.mjs +1 -1
  46. package/system/dist/builtins/record-entries/index.js +1 -1
  47. package/system/dist/builtins/record-entries/index.mjs +1 -1
  48. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  49. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  50. package/system/dist/builtins/snapshot/index.js +1 -1
  51. package/system/dist/builtins/snapshot/index.mjs +1 -1
  52. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  53. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
  54. package/system/dist/builtins/sqlite-storage/index.js +1 -1
  55. package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
  56. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
  57. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
  58. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
  59. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
  60. package/system/dist/builtins/system-config/system-config.addon.js +3 -3
  61. package/system/dist/builtins/system-config/system-config.addon.mjs +284 -284
  62. package/system/dist/builtins/winston-logging/index.js +1 -1
  63. package/system/dist/builtins/winston-logging/index.mjs +1 -1
  64. package/system/dist/{capture-engine-Bwhwpy3T.js → capture-engine-BNeKmvyo.js} +1 -1
  65. package/system/dist/{capture-engine-hLbiQm2r.mjs → capture-engine-BYuDoU5P.mjs} +1 -1
  66. package/system/dist/{composition-sources-DqGVEx12.js → composition-sources-52ZtkEBw.js} +1 -1
  67. package/system/dist/{composition-sources-CXd5ydxk.mjs → composition-sources-DQwbBMG1.mjs} +1 -1
  68. package/system/dist/{constants-BxOTlPMv.mjs → constants-RWobCEGs.mjs} +1 -1
  69. package/system/dist/{constants-hVovxKZz.js → constants-jwecWQuN.js} +1 -1
  70. package/system/dist/{device-ca-1vqFIP_t.js → device-ca-Bkujp9Cx.js} +1 -1
  71. package/system/dist/{device-ca-B-yM5jiy.mjs → device-ca-DFi1axk5.mjs} +1 -1
  72. package/system/dist/{dist-uTbt3Yxy.js → dist-8pvVkKh4.js} +603 -17
  73. package/system/dist/{dist-D1LOSOS0.mjs → dist-B15a2506.mjs} +603 -17
  74. package/system/dist/file-host-worker.js +1 -1
  75. package/system/dist/file-host-worker.mjs +1 -1
  76. package/system/dist/{hub-identity-Dx3Jbhnp.mjs → hub-identity-3uLEvGsn.mjs} +1 -1
  77. package/system/dist/{hub-identity-TBo0Xrxk.js → hub-identity-C3ijBf-E.js} +1 -1
  78. package/system/dist/{hub-mdns-ciao-C0xzb8jM.js → hub-mdns-ciao-BUL3yLqz.js} +2 -2
  79. package/system/dist/{hub-mdns-ciao-Br5Vlcf0.mjs → hub-mdns-ciao-Ch6HwlRl.mjs} +2 -2
  80. package/system/dist/index.js +8 -8
  81. package/system/dist/index.mjs +8 -8
  82. package/system/dist/{legacy-integration-rows-door-c8pHSqwA.js → legacy-integration-rows-door-BtRtvXfK.js} +1 -1
  83. package/system/dist/{legacy-integration-rows-door-CqsM5HcW.mjs → legacy-integration-rows-door-ChF97F5x.mjs} +1 -1
  84. package/system/dist/{rename-composition-block-DNgRnLHV.js → rename-composition-block-CHIIBly8.js} +1 -1
  85. package/system/dist/{rename-composition-block-Bbu4W1mg.mjs → rename-composition-block-DfsNTQ2H.mjs} +1 -1
  86. package/system/dist/{restore-archive-D48JPP0d.js → restore-archive-8o1pcPFB.js} +1 -1
  87. package/system/dist/{restore-archive-DcS4GDfw.mjs → restore-archive-B3y3I9SV.mjs} +82 -82
  88. package/system/dist/{wal-maintenance-D3s8jnax.js → wal-maintenance-Cv6MfFm9.js} +0 -0
  89. package/system/dist/{wal-maintenance-BoxO0tlN.mjs → wal-maintenance-DxtgYuYM.mjs} +0 -0
  90. package/system/package.json +1 -1
@@ -824,7 +824,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
824
824
  return EventCategory;
825
825
  }({});
826
826
  //#endregion
827
- //#region ../types/dist/composed-stable-id-COP6zOXx.mjs
827
+ //#region ../types/dist/composed-stable-id-RvQIEpqg.mjs
828
828
  /**
829
829
  import { errMsg } from '@camstack/types'
830
830
  * Extract a human-readable message from an unknown error value.
@@ -906,6 +906,9 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
906
906
  /** Weather provider (HA `weather.*`). Tier-3, low MVP priority.
907
907
  * `weather` cap. */
908
908
  DeviceType["Weather"] = "weather";
909
+ /** A physical weather station (Ecowitt outdoor array). `weather-station`
910
+ * cap. Distinct from {@link Weather}, which is a forecast provider. */
911
+ DeviceType["WeatherStation"] = "weather-station";
909
912
  /** Robot vacuum (HA `vacuum.*`). Tier-3. `vacuum-control` cap. */
910
913
  DeviceType["Vacuum"] = "vacuum";
911
914
  /** Robotic lawn mower (HA `lawn_mower.*`). Tier-3.
@@ -1271,7 +1274,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
1271
1274
  */
1272
1275
  var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
1273
1276
  //#endregion
1274
- //#region ../types/dist/sleep-DEd_klYQ.mjs
1277
+ //#region ../types/dist/sleep-BnR9qGOv.mjs
1275
1278
  /**
1276
1279
  * The audio chunk plane's byte format, and the ONE expansion from a coded
1277
1280
  * window to float samples (D455).
@@ -14638,6 +14641,183 @@ var CAP_VOCABULARY_BY_NAME = {
14638
14641
  }
14639
14642
  ]
14640
14643
  },
14644
+ "weather-station": {
14645
+ scope: "device",
14646
+ noun: {
14647
+ en: "Weather station",
14648
+ it: "Stazione meteo"
14649
+ },
14650
+ state: [
14651
+ {
14652
+ kind: "numeric",
14653
+ field: "temperature",
14654
+ quantity: {
14655
+ en: "the outdoor temperature",
14656
+ it: "la temperatura esterna"
14657
+ },
14658
+ label: {
14659
+ en: "Temperature",
14660
+ it: "Temperatura"
14661
+ },
14662
+ unit: "°C",
14663
+ icon: "thermometer"
14664
+ },
14665
+ {
14666
+ kind: "numeric",
14667
+ field: "humidity",
14668
+ quantity: {
14669
+ en: "the outdoor humidity",
14670
+ it: "l’umidità esterna"
14671
+ },
14672
+ label: {
14673
+ en: "Humidity",
14674
+ it: "Umidità"
14675
+ },
14676
+ unit: "%",
14677
+ icon: "droplets"
14678
+ },
14679
+ {
14680
+ kind: "numeric",
14681
+ field: "pressure",
14682
+ quantity: {
14683
+ en: "the air pressure",
14684
+ it: "la pressione atmosferica"
14685
+ },
14686
+ label: {
14687
+ en: "Pressure",
14688
+ it: "Pressione"
14689
+ },
14690
+ unit: "hPa",
14691
+ icon: "gauge"
14692
+ },
14693
+ {
14694
+ kind: "numeric",
14695
+ field: "windSpeed",
14696
+ quantity: {
14697
+ en: "the wind speed",
14698
+ it: "la velocità del vento"
14699
+ },
14700
+ label: {
14701
+ en: "Wind",
14702
+ it: "Vento"
14703
+ },
14704
+ unit: "m/s",
14705
+ icon: "wind"
14706
+ },
14707
+ {
14708
+ kind: "numeric",
14709
+ field: "windGust",
14710
+ quantity: {
14711
+ en: "the wind gust",
14712
+ it: "la raffica di vento"
14713
+ },
14714
+ label: {
14715
+ en: "Gust",
14716
+ it: "Raffica"
14717
+ },
14718
+ unit: "m/s",
14719
+ icon: "wind"
14720
+ },
14721
+ {
14722
+ kind: "numeric",
14723
+ field: "windBearing",
14724
+ quantity: {
14725
+ en: "the wind bearing",
14726
+ it: "la direzione del vento"
14727
+ },
14728
+ label: {
14729
+ en: "Wind bearing",
14730
+ it: "Direzione del vento"
14731
+ },
14732
+ unit: "°",
14733
+ icon: "wind"
14734
+ },
14735
+ {
14736
+ kind: "numeric",
14737
+ field: "rainRate",
14738
+ quantity: {
14739
+ en: "the rain rate",
14740
+ it: "l’intensità della pioggia"
14741
+ },
14742
+ label: {
14743
+ en: "Rain rate",
14744
+ it: "Intensità pioggia"
14745
+ },
14746
+ unit: "mm/h",
14747
+ icon: "droplets"
14748
+ },
14749
+ {
14750
+ kind: "numeric",
14751
+ field: "rainDaily",
14752
+ quantity: {
14753
+ en: "the rain today",
14754
+ it: "la pioggia di oggi"
14755
+ },
14756
+ label: {
14757
+ en: "Rain today",
14758
+ it: "Pioggia oggi"
14759
+ },
14760
+ unit: "mm",
14761
+ icon: "droplets"
14762
+ },
14763
+ {
14764
+ kind: "numeric",
14765
+ field: "rainEvent",
14766
+ quantity: {
14767
+ en: "the rain this event",
14768
+ it: "la pioggia di questo evento"
14769
+ },
14770
+ label: {
14771
+ en: "Rain event",
14772
+ it: "Evento di pioggia"
14773
+ },
14774
+ unit: "mm",
14775
+ icon: "droplets"
14776
+ },
14777
+ {
14778
+ kind: "numeric",
14779
+ field: "uv",
14780
+ quantity: {
14781
+ en: "the UV index",
14782
+ it: "l’indice UV"
14783
+ },
14784
+ label: {
14785
+ en: "UV",
14786
+ it: "UV"
14787
+ },
14788
+ unit: "",
14789
+ icon: "cloud-sun"
14790
+ },
14791
+ {
14792
+ kind: "numeric",
14793
+ field: "solarRadiation",
14794
+ quantity: {
14795
+ en: "the solar radiation",
14796
+ it: "la radiazione solare"
14797
+ },
14798
+ label: {
14799
+ en: "Solar",
14800
+ it: "Sole"
14801
+ },
14802
+ unit: "W/m²",
14803
+ icon: "cloud-sun"
14804
+ },
14805
+ {
14806
+ kind: "numeric",
14807
+ field: "dewPoint",
14808
+ quantity: {
14809
+ en: "the dew point",
14810
+ it: "il punto di rugiada"
14811
+ },
14812
+ label: {
14813
+ en: "Dew point",
14814
+ it: "Punto di rugiada"
14815
+ },
14816
+ unit: "°C",
14817
+ icon: "thermometer"
14818
+ }
14819
+ ]
14820
+ },
14641
14821
  "battery": {
14642
14822
  scope: "device",
14643
14823
  noun: {
@@ -14862,6 +15042,30 @@ var CAP_VOCABULARY_BY_NAME = {
14862
15042
  icon: "wifi-off"
14863
15043
  }]
14864
15044
  },
15045
+ "error": {
15046
+ scope: "device",
15047
+ noun: {
15048
+ en: "Fault",
15049
+ it: "Guasto"
15050
+ },
15051
+ state: [{
15052
+ kind: "boolean",
15053
+ field: "active",
15054
+ label: {
15055
+ en: "Fault",
15056
+ it: "Guasto"
15057
+ },
15058
+ whenTrue: {
15059
+ en: "When {device} reports a fault",
15060
+ it: "Quando {device} segnala un guasto"
15061
+ },
15062
+ whenFalse: {
15063
+ en: "When the fault of {device} clears",
15064
+ it: "Quando il guasto di {device} si risolve"
15065
+ },
15066
+ icon: "triangle-alert"
15067
+ }]
15068
+ },
14865
15069
  "doorbell": {
14866
15070
  scope: "device",
14867
15071
  noun: {
@@ -15896,6 +16100,7 @@ var CAP_NAMES = Object.freeze([
15896
16100
  "embedding-encoder",
15897
16101
  "energy-system",
15898
16102
  "enum-sensor",
16103
+ "error",
15899
16104
  "event-emitter",
15900
16105
  "face-gallery",
15901
16106
  "failure-contribution",
@@ -16026,6 +16231,7 @@ var CAP_NAMES = Object.freeze([
16026
16231
  "viewer-ui",
16027
16232
  "water-heater",
16028
16233
  "weather",
16234
+ "weather-station",
16029
16235
  "webrtc-session",
16030
16236
  "zone-analytics",
16031
16237
  "zone-rules",
@@ -16785,6 +16991,29 @@ Object.freeze({
16785
16991
  "path": "timestamp",
16786
16992
  "valueType": "boolean"
16787
16993
  }],
16994
+ "error": [
16995
+ {
16996
+ "path": "active",
16997
+ "valueType": "boolean"
16998
+ },
16999
+ {
17000
+ "path": "code",
17001
+ "valueType": "string"
17002
+ },
17003
+ {
17004
+ "path": "label",
17005
+ "valueType": "string"
17006
+ },
17007
+ {
17008
+ "path": "severity",
17009
+ "valueType": "enum",
17010
+ "enumValues": ["warning", "error"]
17011
+ },
17012
+ {
17013
+ "path": "since",
17014
+ "valueType": "number"
17015
+ }
17016
+ ],
16788
17017
  "event-emitter": [
16789
17018
  {
16790
17019
  "path": "lastEvent.deviceId",
@@ -18004,6 +18233,56 @@ Object.freeze({
18004
18233
  "valueType": "number"
18005
18234
  }
18006
18235
  ],
18236
+ "weather-station": [
18237
+ {
18238
+ "path": "temperature",
18239
+ "valueType": "number"
18240
+ },
18241
+ {
18242
+ "path": "humidity",
18243
+ "valueType": "number"
18244
+ },
18245
+ {
18246
+ "path": "pressure",
18247
+ "valueType": "number"
18248
+ },
18249
+ {
18250
+ "path": "windSpeed",
18251
+ "valueType": "number"
18252
+ },
18253
+ {
18254
+ "path": "windGust",
18255
+ "valueType": "number"
18256
+ },
18257
+ {
18258
+ "path": "windBearing",
18259
+ "valueType": "number"
18260
+ },
18261
+ {
18262
+ "path": "rainRate",
18263
+ "valueType": "number"
18264
+ },
18265
+ {
18266
+ "path": "rainDaily",
18267
+ "valueType": "number"
18268
+ },
18269
+ {
18270
+ "path": "rainEvent",
18271
+ "valueType": "number"
18272
+ },
18273
+ {
18274
+ "path": "uv",
18275
+ "valueType": "number"
18276
+ },
18277
+ {
18278
+ "path": "solarRadiation",
18279
+ "valueType": "number"
18280
+ },
18281
+ {
18282
+ "path": "dewPoint",
18283
+ "valueType": "number"
18284
+ }
18285
+ ],
18007
18286
  "zone-analytics": [
18008
18287
  {
18009
18288
  "path": "ts",
@@ -18235,7 +18514,7 @@ function sleep(ms) {
18235
18514
  return new Promise((resolve) => setTimeout(resolve, Math.max(0, ms)));
18236
18515
  }
18237
18516
  //#endregion
18238
- //#region ../types/dist/implemented-methods-0xxMOekw.mjs
18517
+ //#region ../types/dist/implemented-methods-C5FMXLGP.mjs
18239
18518
  var AUDIO_ENCODER_BY_CODEC = {
18240
18519
  opus: "libopus",
18241
18520
  aac: "aac",
@@ -62418,6 +62697,7 @@ var CAP_CUSTOMIZE_CATALOG = {
62418
62697
  DeviceType.Control,
62419
62698
  DeviceType.Presence,
62420
62699
  DeviceType.Weather,
62700
+ DeviceType.WeatherStation,
62421
62701
  DeviceType.Vacuum,
62422
62702
  DeviceType.LawnMower,
62423
62703
  DeviceType.Container,
@@ -63848,7 +64128,7 @@ var CHANGED = {
63848
64128
  fieldPath: "lastChangedAt",
63849
64129
  expr: "now"
63850
64130
  };
63851
- function numeric(input) {
64131
+ function numeric$1(input) {
63852
64132
  const { alsoFrom, ...base } = input;
63853
64133
  return {
63854
64134
  ...base,
@@ -63883,7 +64163,7 @@ function binary(input) {
63883
64163
  };
63884
64164
  }
63885
64165
  var GROUP_TEMPLATES = [
63886
- numeric({
64166
+ numeric$1({
63887
64167
  id: "temperature",
63888
64168
  summary: "Mean, median, min, max or sum of temperatures. Offline and unknown members are left out, never read as 0 °C.",
63889
64169
  role: DeviceRole.TemperatureSensor,
@@ -63901,7 +64181,7 @@ var GROUP_TEMPLATES = [
63901
64181
  }
63902
64182
  }
63903
64183
  }),
63904
- numeric({
64184
+ numeric$1({
63905
64185
  id: "humidity",
63906
64186
  summary: "Humidity in percent. Offline and unknown members are left out, never read as 0 %.",
63907
64187
  role: DeviceRole.HumiditySensor,
@@ -63919,7 +64199,7 @@ var GROUP_TEMPLATES = [
63919
64199
  }
63920
64200
  }
63921
64201
  }),
63922
- numeric({
64202
+ numeric$1({
63923
64203
  id: "pressure",
63924
64204
  summary: "Pressure in hectopascals. Offline and unknown members are left out, never read as 0 hPa.",
63925
64205
  role: DeviceRole.PressureSensor,
@@ -63930,7 +64210,7 @@ var GROUP_TEMPLATES = [
63930
64210
  empty: "null",
63931
64211
  companions: [NOW$3]
63932
64212
  }),
63933
- numeric({
64213
+ numeric$1({
63934
64214
  id: "illuminance",
63935
64215
  summary: "Illuminance in lux. Offline and unknown members are left out, never read as 0 lx.",
63936
64216
  role: DeviceRole.AmbientLightSensor,
@@ -63941,7 +64221,7 @@ var GROUP_TEMPLATES = [
63941
64221
  empty: "null",
63942
64222
  companions: [NOW$3]
63943
64223
  }),
63944
- numeric({
64224
+ numeric$1({
63945
64225
  id: "power",
63946
64226
  summary: "Power in watts, summed by default. Nobody reporting omits the key rather than writing 0 W.",
63947
64227
  role: DeviceRole.PowerSensor,
@@ -63952,7 +64232,7 @@ var GROUP_TEMPLATES = [
63952
64232
  empty: "omit",
63953
64233
  companions: [NOW$3]
63954
64234
  }),
63955
- numeric({
64235
+ numeric$1({
63956
64236
  id: "energy",
63957
64237
  summary: "Energy in kilowatt-hours, summed by default. Nobody reporting omits the key rather than writing 0 kWh.",
63958
64238
  role: DeviceRole.EnergySensor,
@@ -63963,7 +64243,7 @@ var GROUP_TEMPLATES = [
63963
64243
  empty: "omit",
63964
64244
  companions: [NOW$3]
63965
64245
  }),
63966
- numeric({
64246
+ numeric$1({
63967
64247
  id: "battery",
63968
64248
  summary: "Battery charge in percent. Offline and unknown members are left out, never read as 0 %.",
63969
64249
  role: DeviceRole.BatterySensor,
@@ -63987,7 +64267,7 @@ var GROUP_TEMPLATES = [
63987
64267
  }
63988
64268
  ]
63989
64269
  }),
63990
- numeric({
64270
+ numeric$1({
63991
64271
  id: "numeric",
63992
64272
  summary: "A numeric reading in the members’ shared quantity. Mixed quantities are refused. Nobody reporting publishes null, not 0.",
63993
64273
  role: DeviceRole.NumericSensor,
@@ -64235,7 +64515,7 @@ function groupTemplate(id) {
64235
64515
  }
64236
64516
  /**
64237
64517
  * Cap history catalog, projected from every `*.cap.ts` `history` block.
64238
- * 45 caps with series (104 series), 37 caps answered `'none'`.
64518
+ * 45 caps with series (104 series), 39 caps answered `'none'`.
64239
64519
  * Field keys are `runtimeState` paths (`a.b` into fixed objects only).
64240
64520
  */
64241
64521
  var HISTORY_CATALOG = {
@@ -73266,6 +73546,85 @@ var enumSensorCapability = {
73266
73546
  }]
73267
73547
  }
73268
73548
  };
73549
+ /** How loudly a fault wants the operator. Both tiers raise the attention event. */
73550
+ var DeviceErrorSeveritySchema = z.enum(["warning", "error"]);
73551
+ /** One fault of a device that can raise several at once. */
73552
+ var DeviceFaultSchema = z.object({
73553
+ /** The device's own code, as the vendor names it. */
73554
+ code: z.string(),
73555
+ /** Already translated by the provider (it owns the vendor vocabulary). */
73556
+ label: z.string(),
73557
+ severity: DeviceErrorSeveritySchema
73558
+ });
73559
+ /**
73560
+ * The fault a device reports right now. One slice per device.
73561
+ *
73562
+ * `active` is tri-state: `null` is "the provider has not read it yet" and is
73563
+ * never drawn as "no fault" nor as a fault (D315, D393). The provider filters
73564
+ * what is not a fault (a completion or reminder code) BEFORE it writes `true`.
73565
+ *
73566
+ * The cap's name is the key a template reads (`{{ alias.error.label }}`, D1021).
73567
+ */
73568
+ var ErrorStatusSchema = z.object({
73569
+ active: z.boolean().nullable(),
73570
+ /** The code of the principal fault; `null` when none (or unknown). */
73571
+ code: z.string().nullable(),
73572
+ /** The principal fault's words, provider-translated; `null` when none. */
73573
+ label: z.string().nullable(),
73574
+ severity: DeviceErrorSeveritySchema,
73575
+ /** Ms epoch the current fault started; `null` when none or not known. */
73576
+ since: z.number().nullable(),
73577
+ /** Every fault, for a device that raises several. The principal is the first. */
73578
+ faults: z.array(DeviceFaultSchema).optional(),
73579
+ /** Ms epoch of the last read the provider made of the fault. */
73580
+ lastFetchedAt: z.number()
73581
+ });
73582
+ /** The slice before the provider has read anything: unknown, not "fine". */
73583
+ var ERROR_STATUS_COLD = {
73584
+ active: null,
73585
+ code: null,
73586
+ label: null,
73587
+ severity: "error",
73588
+ since: null,
73589
+ lastFetchedAt: 0
73590
+ };
73591
+ var errorCapability = {
73592
+ name: "error",
73593
+ scope: "device",
73594
+ deviceNative: true,
73595
+ mode: "singleton",
73596
+ methods: {},
73597
+ status: {
73598
+ schema: ErrorStatusSchema,
73599
+ kind: "push",
73600
+ empty: ERROR_STATUS_COLD
73601
+ },
73602
+ runtimeState: ErrorStatusSchema,
73603
+ /**
73604
+ * Runtime-state durability: **restored** — the previous observation is what
73605
+ * lets the first reading after a restart be a COMPARISON: a fault that was
73606
+ * already open must not announce itself a second time.
73607
+ *
73608
+ * See `RuntimeStateDurability`. Enforced by
73609
+ * `scripts/check-runtime-state-durability.ts`.
73610
+ */
73611
+ durability: "restored",
73612
+ volatileStateFields: ["lastFetchedAt"],
73613
+ /** The fault itself is carried by the attention alerts; no series is recorded. */
73614
+ history: "none",
73615
+ vocabulary: {
73616
+ noun: t("Fault", "Guasto"),
73617
+ order: 5265,
73618
+ state: [{
73619
+ kind: "boolean",
73620
+ field: "active",
73621
+ label: t("Fault", "Guasto"),
73622
+ whenTrue: t("When {device} reports a fault", "Quando {device} segnala un guasto"),
73623
+ whenFalse: t("When the fault of {device} clears", "Quando il guasto di {device} si risolve"),
73624
+ icon: "triangle-alert"
73625
+ }]
73626
+ }
73627
+ };
73269
73628
  var IdentitySchema = z.object({
73270
73629
  id: z.string(),
73271
73630
  name: z.string(),
@@ -76017,6 +76376,7 @@ var HERO_SCENE_BY_TYPE = {
76017
76376
  [DeviceType.Control]: "control-dial",
76018
76377
  [DeviceType.Presence]: "presence",
76019
76378
  [DeviceType.Weather]: "weather",
76379
+ [DeviceType.WeatherStation]: "weather",
76020
76380
  [DeviceType.Vacuum]: "vacuum",
76021
76381
  [DeviceType.LawnMower]: "lawn-mower",
76022
76382
  [DeviceType.Container]: "generic",
@@ -108696,6 +109056,71 @@ var weatherCapability = {
108696
109056
  ]
108697
109057
  }
108698
109058
  };
109059
+ var WeatherStationStatusSchema = z.object({
109060
+ temperature: z.number().nullable().meta(readingMeta("temperature", { precision: 1 })),
109061
+ humidity: z.number().min(0).max(100).nullable().meta(readingMeta("humidity")),
109062
+ pressure: z.number().nullable().meta(readingMeta("pressure")),
109063
+ windSpeed: z.number().nullable().meta(readingMeta("speed")),
109064
+ windGust: z.number().nullable().meta(readingMeta("speed")),
109065
+ windBearing: z.number().nullable().meta(readingMeta("angle")),
109066
+ rainRate: z.number().nullable().meta(readingMeta("precipitation-rate", { precision: 1 })),
109067
+ rainDaily: z.number().nullable().meta(readingMeta("precipitation", { precision: 1 })),
109068
+ rainEvent: z.number().nullable().meta(readingMeta("precipitation", { precision: 1 })),
109069
+ uv: z.number().nullable().meta(readingMeta("index", { precision: 1 })),
109070
+ solarRadiation: z.number().nullable().meta(readingMeta("irradiance")),
109071
+ dewPoint: z.number().nullable().meta(readingMeta("temperature", { precision: 1 }))
109072
+ }).extend({
109073
+ /** Ms epoch of the poll that produced this slice. 0 before the first one. */
109074
+ lastFetchedAt: z.number() });
109075
+ var numeric = (field, quantity, label, unit, icon) => ({
109076
+ kind: "numeric",
109077
+ field,
109078
+ quantity,
109079
+ label,
109080
+ unit,
109081
+ icon
109082
+ });
109083
+ var weatherStationCapability = {
109084
+ name: "weather-station",
109085
+ scope: "device",
109086
+ deviceNative: true,
109087
+ mode: "singleton",
109088
+ deviceTypes: [DeviceType.WeatherStation],
109089
+ methods: {},
109090
+ status: {
109091
+ schema: WeatherStationStatusSchema,
109092
+ kind: "push"
109093
+ },
109094
+ runtimeState: WeatherStationStatusSchema,
109095
+ /**
109096
+ * The sensor children already record each reading. The station slice is the
109097
+ * live aggregate a template reads; it does not keep a second series.
109098
+ */
109099
+ history: "none",
109100
+ /**
109101
+ * Runtime-state durability: **session** — a station reading is stale the
109102
+ * moment the hub is down; the provider re-reads on the next poll.
109103
+ */
109104
+ durability: "session",
109105
+ vocabulary: {
109106
+ noun: t("Weather station", "Stazione meteo"),
109107
+ order: 5235,
109108
+ state: [
109109
+ numeric("temperature", t("the outdoor temperature", "la temperatura esterna"), t("Temperature", "Temperatura"), "°C", "thermometer"),
109110
+ numeric("humidity", t("the outdoor humidity", "l’umidità esterna"), t("Humidity", "Umidità"), "%", "droplets"),
109111
+ numeric("pressure", t("the air pressure", "la pressione atmosferica"), t("Pressure", "Pressione"), "hPa", "gauge"),
109112
+ numeric("windSpeed", t("the wind speed", "la velocità del vento"), t("Wind", "Vento"), "m/s", "wind"),
109113
+ numeric("windGust", t("the wind gust", "la raffica di vento"), t("Gust", "Raffica"), "m/s", "wind"),
109114
+ numeric("windBearing", t("the wind bearing", "la direzione del vento"), t("Wind bearing", "Direzione del vento"), "°", "wind"),
109115
+ numeric("rainRate", t("the rain rate", "l’intensità della pioggia"), t("Rain rate", "Intensità pioggia"), "mm/h", "droplets"),
109116
+ numeric("rainDaily", t("the rain today", "la pioggia di oggi"), t("Rain today", "Pioggia oggi"), "mm", "droplets"),
109117
+ numeric("rainEvent", t("the rain this event", "la pioggia di questo evento"), t("Rain event", "Evento di pioggia"), "mm", "droplets"),
109118
+ numeric("uv", t("the UV index", "l’indice UV"), t("UV", "UV"), "", "cloud-sun"),
109119
+ numeric("solarRadiation", t("the solar radiation", "la radiazione solare"), t("Solar", "Sole"), "W/m²", "cloud-sun"),
109120
+ numeric("dewPoint", t("the dew point", "il punto di rugiada"), t("Dew point", "Punto di rugiada"), "°C", "thermometer")
109121
+ ]
109122
+ }
109123
+ };
108699
109124
  /**
108700
109125
  * Optional client-side hints sent at session creation to help the provider
108701
109126
  * pick the best native source. All fields optional — a viewer that knows
@@ -109788,6 +110213,7 @@ var ALL_CAPABILITY_DEFINITIONS = [
109788
110213
  embeddingEncoderCapability,
109789
110214
  energySystemCapability,
109790
110215
  enumSensorCapability,
110216
+ errorCapability,
109791
110217
  eventEmitterCapability,
109792
110218
  faceGalleryCapability,
109793
110219
  failureContributionCapability,
@@ -109918,6 +110344,7 @@ var ALL_CAPABILITY_DEFINITIONS = [
109918
110344
  viewerUiCapability,
109919
110345
  waterHeaterCapability,
109920
110346
  weatherCapability,
110347
+ weatherStationCapability,
109921
110348
  webrtcSessionCapability,
109922
110349
  zoneAnalyticsCapability,
109923
110350
  zoneRulesCapability,
@@ -112522,6 +112949,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
112522
112949
  doorbell: doorbellCapability,
112523
112950
  energySystem: energySystemCapability,
112524
112951
  enumSensor: enumSensorCapability,
112952
+ error: errorCapability,
112525
112953
  eventEmitter: eventEmitterCapability,
112526
112954
  fanControl: fanControlCapability,
112527
112955
  featureProbe: featureProbeCapability,
@@ -112578,10 +113006,59 @@ var DEVICE_LOCAL_STATE_CAPS = {
112578
113006
  vibration: vibrationCapability,
112579
113007
  waterHeater: waterHeaterCapability,
112580
113008
  weather: weatherCapability,
113009
+ weatherStation: weatherStationCapability,
112581
113010
  zoneAnalytics: zoneAnalyticsCapability,
112582
113011
  zoneRules: zoneRulesCapability,
112583
113012
  zones: zonesCapability
112584
113013
  };
113014
+ /**
113015
+ * The edge between two readings, or `null` for no edge.
113016
+ *
113017
+ * - `null`/cold → `true` is a START (a fault already open at boot is one);
113018
+ * - `true` → `false` is a RESOLVE;
113019
+ * - an UNKNOWN reading (`active: null`) is never an edge, in either direction —
113020
+ * a failed read must neither raise nor close an episode (D393, D49);
113021
+ * - `true` → `true` is the same episode, whatever the code did.
113022
+ */
113023
+ function deviceErrorEdge(previous, next) {
113024
+ if (next.active === true && previous?.active !== true) return "start";
113025
+ if (next.active === false && previous?.active === true) return "resolve";
113026
+ return null;
113027
+ }
113028
+ function deviceErrorAlertId(deviceId) {
113029
+ return `device-error:${String(deviceId)}`;
113030
+ }
113031
+ /** The alert that opens an episode. `since` is the fault's own start, else `now`. */
113032
+ function buildDeviceErrorAlert(deviceId, deviceName, status, now) {
113033
+ const label = status.label ?? status.code ?? "Fault";
113034
+ const startedAt = status.since ?? now;
113035
+ const alertId = deviceErrorAlertId(deviceId);
113036
+ return {
113037
+ id: alertId,
113038
+ category: "device.error",
113039
+ severity: "critical",
113040
+ title: `${deviceName}: ${label}`,
113041
+ message: `${deviceName} reports a fault: ${label}.`,
113042
+ action: {
113043
+ label: "Open device",
113044
+ href: `/devices/${String(deviceId)}`,
113045
+ navigation: "app"
113046
+ },
113047
+ status: "active",
113048
+ read: false,
113049
+ createdAt: now,
113050
+ updatedAt: now,
113051
+ source: {
113052
+ type: "device",
113053
+ id: String(deviceId)
113054
+ },
113055
+ metadata: {
113056
+ episodeId: `${alertId}@${String(startedAt)}`,
113057
+ code: status.code,
113058
+ deviceSeverity: status.severity
113059
+ }
113060
+ };
113061
+ }
112585
113062
  var BaseDevice = class {
112586
113063
  id;
112587
113064
  stableId;
@@ -112881,6 +113358,68 @@ var BaseDevice = class {
112881
113358
  } catch (err) {}
112882
113359
  }
112883
113360
  /**
113361
+ * Declare that this device can report a fault (the `error` cap). The slice
113362
+ * starts UNKNOWN — a restored slice is kept, so a fault that was open before
113363
+ * a restart is compared, not announced again.
113364
+ */
113365
+ registerErrorCap() {
113366
+ this.ctx.registerNativeCap?.(errorCapability, {});
113367
+ if (this.runtimeState.getCapState(errorCapability.name) === void 0) this.setCapSlice(errorCapability, ERROR_STATUS_COLD);
113368
+ }
113369
+ /**
113370
+ * Publish the device's fault. The slice is written; on an EDGE (a fault
113371
+ * starts, or one resolves) an attention episode opens or closes through the
113372
+ * alerts cap, which the notification center announces as
113373
+ * `device-attention-required` / `-resolved`. An unknown reading is never an
113374
+ * edge. No rule exists by default: it notifies when the operator makes one.
113375
+ */
113376
+ async publishError(reading) {
113377
+ const previous = this.getCapSlice(errorCapability);
113378
+ if (reading.active === null && previous !== null && previous.active !== null) return;
113379
+ const now = Date.now();
113380
+ const edge = deviceErrorEdge(previous, reading);
113381
+ const next = edge === "start" && reading.since === null ? {
113382
+ ...reading,
113383
+ since: now
113384
+ } : reading;
113385
+ this.setCapSlice(errorCapability, next);
113386
+ if (edge === null) return;
113387
+ const alerts = this.ctx.api.alerts;
113388
+ if (alerts === void 0) {
113389
+ this.ctx.logger.warn("device error: attention event skipped — alerts capability missing", {
113390
+ tags: { deviceId: this.id },
113391
+ meta: { edge }
113392
+ });
113393
+ return;
113394
+ }
113395
+ try {
113396
+ if (edge === "start") await alerts.emit.mutate(buildDeviceErrorAlert(this.id, this.name, next, now));
113397
+ else await alerts.update.mutate({
113398
+ alertId: deviceErrorAlertId(this.id),
113399
+ patch: {
113400
+ status: "completed",
113401
+ read: true,
113402
+ updatedAt: now
113403
+ }
113404
+ });
113405
+ this.ctx.logger.info(`device error: ${edge === "start" ? "raised" : "resolved"}`, {
113406
+ tags: { deviceId: this.id },
113407
+ meta: {
113408
+ code: next.code,
113409
+ label: next.label
113410
+ }
113411
+ });
113412
+ } catch (err) {
113413
+ this.ctx.logger.warn("device error: attention event failed", {
113414
+ tags: { deviceId: this.id },
113415
+ meta: {
113416
+ edge,
113417
+ error: errMsg(err)
113418
+ }
113419
+ });
113420
+ }
113421
+ }
113422
+ /**
112884
113423
  * Typed read-through to a cap-keyed runtime-state slice. Drivers
112885
113424
  * call `this.getCapSlice(batteryCapability)` and the return type
112886
113425
  * is inferred from the cap's `runtimeState` Zod schema — no string
@@ -113686,7 +114225,7 @@ var DeclaredDevices = class {
113686
114225
  return removed;
113687
114226
  }
113688
114227
  };
113689
- DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.HeatPump, DeviceType.EnergySystem, DeviceType.Camera, DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, DeviceType.Sensor, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway;
114228
+ DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.HeatPump, DeviceType.EnergySystem, DeviceType.Camera, DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, DeviceType.Sensor, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.WeatherStation, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway;
113690
114229
  new Set(Object.values(DeviceType));
113691
114230
  /** True when a value is a navigable node: a plain object OR a tRPC v11 client
113692
114231
  * proxy node (a callable `Proxy(noop)` → `typeof === 'function'`, NOT an
@@ -115072,6 +115611,17 @@ var SENSORS_FAMILY_CONTRIBUTIONS = {
115072
115611
  doorbell: doorbellContribution,
115073
115612
  meter: meterContribution,
115074
115613
  weather: weatherContribution,
115614
+ "weather-station": contribution("weather-station", WeatherStationStatusSchema, (slice) => {
115615
+ if (slice === void 0 || slice.temperature === null) return { reading: reading("weather", "unknown") };
115616
+ const celsius = `${number(slice.temperature)}°C`;
115617
+ const facts = [fact("reading", "thermometer", t(celsius, celsius), "primary")];
115618
+ if (slice.humidity !== null) facts.push(fact("reading", "droplets", t(`${Math.round(slice.humidity)}%`, `${Math.round(slice.humidity)}%`)));
115619
+ if (slice.windSpeed !== null) facts.push(fact("reading", "wind", t(`${number(slice.windSpeed)} m/s`, `${number(slice.windSpeed)} m/s`)));
115620
+ return {
115621
+ reading: reading("weather", "on", false, t(celsius, celsius)),
115622
+ facts
115623
+ };
115624
+ }),
115075
115625
  update: updateContribution,
115076
115626
  image: imageContribution,
115077
115627
  button: buttonContribution,
@@ -116580,6 +117130,7 @@ var HERO_LAYOUT_BY_TYPE = {
116580
117130
  [DeviceType.Control]: CONTROL_LAYOUT,
116581
117131
  [DeviceType.Presence]: HERO_LAYOUT_DEFAULT,
116582
117132
  [DeviceType.Weather]: HERO_LAYOUT_DEFAULT,
117133
+ [DeviceType.WeatherStation]: HERO_LAYOUT_DEFAULT,
116583
117134
  [DeviceType.Vacuum]: VACUUM_LAYOUT,
116584
117135
  [DeviceType.LawnMower]: MOWER_LAYOUT,
116585
117136
  [DeviceType.Container]: HERO_LAYOUT_DEFAULT,
@@ -117303,6 +117854,7 @@ var HERO_LOOK_BY_TYPE = {
117303
117854
  [DeviceType.Control]: CONTROL_LOOK,
117304
117855
  [DeviceType.Presence]: PRESENCE_LOOK,
117305
117856
  [DeviceType.Weather]: WEATHER_LOOK,
117857
+ [DeviceType.WeatherStation]: WEATHER_LOOK,
117306
117858
  [DeviceType.Vacuum]: VACUUM_LOOK,
117307
117859
  [DeviceType.LawnMower]: MOWER_LOOK,
117308
117860
  [DeviceType.Container]: HERO_LOOK_DEFAULT,
@@ -120971,6 +121523,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
120971
121523
  access: "view",
120972
121524
  role: "viewer"
120973
121525
  },
121526
+ "error.getStatus": {
121527
+ capName: "error",
121528
+ capScope: "device",
121529
+ addonId: null,
121530
+ access: "view",
121531
+ role: "viewer"
121532
+ },
120974
121533
  "eventEmitter.getStatus": {
120975
121534
  capName: "event-emitter",
120976
121535
  capScope: "device",
@@ -127964,6 +128523,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
127964
128523
  access: "view",
127965
128524
  role: "viewer"
127966
128525
  },
128526
+ "weatherStation.getStatus": {
128527
+ capName: "weather-station",
128528
+ capScope: "device",
128529
+ addonId: null,
128530
+ access: "view",
128531
+ role: "viewer"
128532
+ },
127967
128533
  "webrtcSession.addIceCandidate": {
127968
128534
  capName: "webrtc-session",
127969
128535
  capScope: "device",
@@ -128410,7 +128976,7 @@ function offered(received) {
128410
128976
  };
128411
128977
  }
128412
128978
  offered(HA_AS), withheld(HOMEKIT_REASON), withheld(ALEXA_REASON), withheld(GOOGLE_REASON), withheld(MATTER_REASON);
128413
- DeviceType.Camera, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.HeatPump, DeviceType.EnergySystem, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway;
128979
+ DeviceType.Camera, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.HeatPump, DeviceType.EnergySystem, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.WeatherStation, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway;
128414
128980
  DeviceRole.Siren, DeviceRole.Floodlight, DeviceRole.Spotlight, DeviceRole.PirSensor, DeviceRole.Chime, DeviceRole.Autotrack, DeviceRole.Nightvision, DeviceRole.PrivacyMask, DeviceRole.Doorbell, DeviceRole.CoverBlind, DeviceRole.CoverShutter, DeviceRole.CoverAwning, DeviceRole.CoverCurtain, DeviceRole.CoverGarage, DeviceRole.CoverGate, DeviceRole.CoverDoor, DeviceRole.CoverWindow, DeviceRole.BinaryHelper, DeviceRole.Outlet, DeviceRole.SwitchHeater, DeviceRole.SwitchFan, DeviceRole.SwitchLight, DeviceRole.ClimateAc, DeviceRole.ClimateThermostat, DeviceRole.ClimateFloor, DeviceRole.ClimateRadiator, DeviceRole.ClimateHeater, DeviceRole.ClimateHeatPumpCircuit, DeviceRole.MotionSensor, DeviceRole.ContactSensor, DeviceRole.LeakSensor, DeviceRole.SmokeSensor, DeviceRole.COSensor, DeviceRole.GasSensor, DeviceRole.TamperSensor, DeviceRole.VibrationSensor, DeviceRole.ConnectivitySensor, DeviceRole.SoundSensor, DeviceRole.BinarySensor, DeviceRole.TemperatureSensor, DeviceRole.HumiditySensor, DeviceRole.AmbientLightSensor, DeviceRole.PressureSensor, DeviceRole.WindSensor, DeviceRole.RainSensor, DeviceRole.UvSensor, DeviceRole.SolarRadiationSensor, DeviceRole.SoilMoistureSensor, DeviceRole.PowerSensor, DeviceRole.EnergySensor, DeviceRole.VoltageSensor, DeviceRole.CurrentSensor, DeviceRole.AirQualitySensor, DeviceRole.BatterySensor, DeviceRole.NumericSensor, DeviceRole.EnumSensor, DeviceRole.DateTimeSensor, DeviceRole.GenericSensor, DeviceRole.NumericControl, DeviceRole.SelectControl, DeviceRole.TextControl, DeviceRole.DateTimeControl, DeviceRole.MobilePushNotifier, DeviceRole.MessagingNotifier, DeviceRole.EmailNotifier, DeviceRole.GenericNotifier, DeviceRole.IrTransmitter;
128415
128981
  new Set(Object.values(DeviceType));
128416
128982
  new Set(Object.values(DeviceRole));
@@ -128447,6 +129013,7 @@ var CAP_NAMES_WITH_STATUS = [
128447
129013
  "doorbell",
128448
129014
  "energy-system",
128449
129015
  "enum-sensor",
129016
+ "error",
128450
129017
  "event-emitter",
128451
129018
  "fan-control",
128452
129019
  "feature-probe",
@@ -128503,7 +129070,8 @@ var CAP_NAMES_WITH_STATUS = [
128503
129070
  "valve",
128504
129071
  "vibration",
128505
129072
  "water-heater",
128506
- "weather"
129073
+ "weather",
129074
+ "weather-station"
128507
129075
  ];
128508
129076
  Object.freeze({
128509
129077
  "accessories.getStatus": [{
@@ -129489,6 +130057,11 @@ Object.freeze({
129489
130057
  form: "single",
129490
130058
  optional: false
129491
130059
  }],
130060
+ "error.getStatus": [{
130061
+ name: "deviceId",
130062
+ form: "single",
130063
+ optional: false
130064
+ }],
129492
130065
  "eventEmitter.getStatus": [{
129493
130066
  name: "deviceId",
129494
130067
  form: "single",
@@ -131530,6 +132103,11 @@ Object.freeze({
131530
132103
  form: "single",
131531
132104
  optional: false
131532
132105
  }],
132106
+ "weatherStation.getStatus": [{
132107
+ name: "deviceId",
132108
+ form: "single",
132109
+ optional: false
132110
+ }],
131533
132111
  "webrtcSession.addIceCandidate": [{
131534
132112
  name: "deviceId",
131535
132113
  form: "single",
@@ -131653,7 +132231,7 @@ Object.freeze({
131653
132231
  });
131654
132232
  /**
131655
132233
  * Per-cap runtime-state policy, projected from every `*.cap.ts` that declares
131656
- * `runtimeState`. 83 caps: 42 `restored`, 41 `session`.
132234
+ * `runtimeState`. 85 caps: 43 `restored`, 42 `session`.
131657
132235
  *
131658
132236
  * A cap absent from this map has no runtime-state slice at all. A cap PRESENT
131659
132237
  * with `durability: 'session'` has one and has decided not to keep it.
@@ -131756,6 +132334,10 @@ var RUNTIME_STATE_POLICY = {
131756
132334
  durability: "restored",
131757
132335
  volatileFields: ["lastFetchedAt", "timestamp"]
131758
132336
  },
132337
+ "error": {
132338
+ durability: "restored",
132339
+ volatileFields: ["lastFetchedAt"]
132340
+ },
131759
132341
  "event-emitter": {
131760
132342
  durability: "session",
131761
132343
  volatileFields: []
@@ -131981,6 +132563,10 @@ var RUNTIME_STATE_POLICY = {
131981
132563
  durability: "session",
131982
132564
  volatileFields: []
131983
132565
  },
132566
+ "weather-station": {
132567
+ durability: "session",
132568
+ volatileFields: []
132569
+ },
131984
132570
  "zone-analytics": {
131985
132571
  durability: "session",
131986
132572
  volatileFields: []