@camstack/addon-provider-homematic 1.2.201 → 1.2.202

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 (18) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/_stub.js +2 -2
  3. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_page-BxV59wdC.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_page-Co16X8r0.mjs} +5 -5
  4. package/dist/_virtual_mf___mfe_internal__addon_provider_homematic_page__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-CSC-ziPZ.mjs +26 -0
  5. package/dist/addon-provider-homematic.css +1 -1
  6. package/dist/addon.js +617 -48
  7. package/dist/addon.mjs +617 -48
  8. package/dist/{hostInit-CNluvxTs.mjs → hostInit-DNi48_tT.mjs} +4 -4
  9. package/dist/remoteEntry.js +1 -1
  10. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_provider_homematic_page__remoteEntry_js-6snx-90f.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_provider_homematic_page__remoteEntry_js-CWpmn0LZ.mjs} +1 -1
  11. package/dist/widgets/_stub.js +1 -1
  12. package/dist/widgets/{_virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_widgets-DHK12kT3.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_widgets-D7OMUSRg.mjs} +3 -3
  13. package/dist/widgets/_virtual_mf___mfe_internal__addon_provider_homematic_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-DCfwscwZ.mjs +26 -0
  14. package/dist/widgets/{hostInit-DTRrkNyS.mjs → hostInit-BADUDAz-.mjs} +3 -3
  15. package/dist/widgets/remoteEntry.js +1 -1
  16. package/package.json +3 -3
  17. package/dist/_virtual_mf___mfe_internal__addon_provider_homematic_page__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-skuvsVHe.mjs +0 -26
  18. package/dist/widgets/_virtual_mf___mfe_internal__addon_provider_homematic_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-DGJJvlsA.mjs +0 -26
package/dist/addon.mjs CHANGED
@@ -833,7 +833,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
833
833
  return EventCategory;
834
834
  }({});
835
835
  //#endregion
836
- //#region ../types/dist/composed-stable-id-COP6zOXx.mjs
836
+ //#region ../types/dist/composed-stable-id-RvQIEpqg.mjs
837
837
  /**
838
838
  import { errMsg } from '@camstack/types'
839
839
  * Extract a human-readable message from an unknown error value.
@@ -915,6 +915,9 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
915
915
  /** Weather provider (HA `weather.*`). Tier-3, low MVP priority.
916
916
  * `weather` cap. */
917
917
  DeviceType["Weather"] = "weather";
918
+ /** A physical weather station (Ecowitt outdoor array). `weather-station`
919
+ * cap. Distinct from {@link Weather}, which is a forecast provider. */
920
+ DeviceType["WeatherStation"] = "weather-station";
918
921
  /** Robot vacuum (HA `vacuum.*`). Tier-3. `vacuum-control` cap. */
919
922
  DeviceType["Vacuum"] = "vacuum";
920
923
  /** Robotic lawn mower (HA `lawn_mower.*`). Tier-3.
@@ -6082,7 +6085,7 @@ var ZodIssueCode = {
6082
6085
  var ZodFirstPartyTypeKind;
6083
6086
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
6084
6087
  //#endregion
6085
- //#region ../types/dist/sleep-DEd_klYQ.mjs
6088
+ //#region ../types/dist/sleep-BnR9qGOv.mjs
6086
6089
  /**
6087
6090
  * The audio chunk plane's byte format, and the ONE expansion from a coded
6088
6091
  * window to float samples (D455).
@@ -18620,6 +18623,183 @@ var CAP_VOCABULARY_BY_NAME = {
18620
18623
  }
18621
18624
  ]
18622
18625
  },
18626
+ "weather-station": {
18627
+ scope: "device",
18628
+ noun: {
18629
+ en: "Weather station",
18630
+ it: "Stazione meteo"
18631
+ },
18632
+ state: [
18633
+ {
18634
+ kind: "numeric",
18635
+ field: "temperature",
18636
+ quantity: {
18637
+ en: "the outdoor temperature",
18638
+ it: "la temperatura esterna"
18639
+ },
18640
+ label: {
18641
+ en: "Temperature",
18642
+ it: "Temperatura"
18643
+ },
18644
+ unit: "°C",
18645
+ icon: "thermometer"
18646
+ },
18647
+ {
18648
+ kind: "numeric",
18649
+ field: "humidity",
18650
+ quantity: {
18651
+ en: "the outdoor humidity",
18652
+ it: "l’umidità esterna"
18653
+ },
18654
+ label: {
18655
+ en: "Humidity",
18656
+ it: "Umidità"
18657
+ },
18658
+ unit: "%",
18659
+ icon: "droplets"
18660
+ },
18661
+ {
18662
+ kind: "numeric",
18663
+ field: "pressure",
18664
+ quantity: {
18665
+ en: "the air pressure",
18666
+ it: "la pressione atmosferica"
18667
+ },
18668
+ label: {
18669
+ en: "Pressure",
18670
+ it: "Pressione"
18671
+ },
18672
+ unit: "hPa",
18673
+ icon: "gauge"
18674
+ },
18675
+ {
18676
+ kind: "numeric",
18677
+ field: "windSpeed",
18678
+ quantity: {
18679
+ en: "the wind speed",
18680
+ it: "la velocità del vento"
18681
+ },
18682
+ label: {
18683
+ en: "Wind",
18684
+ it: "Vento"
18685
+ },
18686
+ unit: "m/s",
18687
+ icon: "wind"
18688
+ },
18689
+ {
18690
+ kind: "numeric",
18691
+ field: "windGust",
18692
+ quantity: {
18693
+ en: "the wind gust",
18694
+ it: "la raffica di vento"
18695
+ },
18696
+ label: {
18697
+ en: "Gust",
18698
+ it: "Raffica"
18699
+ },
18700
+ unit: "m/s",
18701
+ icon: "wind"
18702
+ },
18703
+ {
18704
+ kind: "numeric",
18705
+ field: "windBearing",
18706
+ quantity: {
18707
+ en: "the wind bearing",
18708
+ it: "la direzione del vento"
18709
+ },
18710
+ label: {
18711
+ en: "Wind bearing",
18712
+ it: "Direzione del vento"
18713
+ },
18714
+ unit: "°",
18715
+ icon: "wind"
18716
+ },
18717
+ {
18718
+ kind: "numeric",
18719
+ field: "rainRate",
18720
+ quantity: {
18721
+ en: "the rain rate",
18722
+ it: "l’intensità della pioggia"
18723
+ },
18724
+ label: {
18725
+ en: "Rain rate",
18726
+ it: "Intensità pioggia"
18727
+ },
18728
+ unit: "mm/h",
18729
+ icon: "droplets"
18730
+ },
18731
+ {
18732
+ kind: "numeric",
18733
+ field: "rainDaily",
18734
+ quantity: {
18735
+ en: "the rain today",
18736
+ it: "la pioggia di oggi"
18737
+ },
18738
+ label: {
18739
+ en: "Rain today",
18740
+ it: "Pioggia oggi"
18741
+ },
18742
+ unit: "mm",
18743
+ icon: "droplets"
18744
+ },
18745
+ {
18746
+ kind: "numeric",
18747
+ field: "rainEvent",
18748
+ quantity: {
18749
+ en: "the rain this event",
18750
+ it: "la pioggia di questo evento"
18751
+ },
18752
+ label: {
18753
+ en: "Rain event",
18754
+ it: "Evento di pioggia"
18755
+ },
18756
+ unit: "mm",
18757
+ icon: "droplets"
18758
+ },
18759
+ {
18760
+ kind: "numeric",
18761
+ field: "uv",
18762
+ quantity: {
18763
+ en: "the UV index",
18764
+ it: "l’indice UV"
18765
+ },
18766
+ label: {
18767
+ en: "UV",
18768
+ it: "UV"
18769
+ },
18770
+ unit: "",
18771
+ icon: "cloud-sun"
18772
+ },
18773
+ {
18774
+ kind: "numeric",
18775
+ field: "solarRadiation",
18776
+ quantity: {
18777
+ en: "the solar radiation",
18778
+ it: "la radiazione solare"
18779
+ },
18780
+ label: {
18781
+ en: "Solar",
18782
+ it: "Sole"
18783
+ },
18784
+ unit: "W/m²",
18785
+ icon: "cloud-sun"
18786
+ },
18787
+ {
18788
+ kind: "numeric",
18789
+ field: "dewPoint",
18790
+ quantity: {
18791
+ en: "the dew point",
18792
+ it: "il punto di rugiada"
18793
+ },
18794
+ label: {
18795
+ en: "Dew point",
18796
+ it: "Punto di rugiada"
18797
+ },
18798
+ unit: "°C",
18799
+ icon: "thermometer"
18800
+ }
18801
+ ]
18802
+ },
18623
18803
  "battery": {
18624
18804
  scope: "device",
18625
18805
  noun: {
@@ -18844,6 +19024,30 @@ var CAP_VOCABULARY_BY_NAME = {
18844
19024
  icon: "wifi-off"
18845
19025
  }]
18846
19026
  },
19027
+ "error": {
19028
+ scope: "device",
19029
+ noun: {
19030
+ en: "Fault",
19031
+ it: "Guasto"
19032
+ },
19033
+ state: [{
19034
+ kind: "boolean",
19035
+ field: "active",
19036
+ label: {
19037
+ en: "Fault",
19038
+ it: "Guasto"
19039
+ },
19040
+ whenTrue: {
19041
+ en: "When {device} reports a fault",
19042
+ it: "Quando {device} segnala un guasto"
19043
+ },
19044
+ whenFalse: {
19045
+ en: "When the fault of {device} clears",
19046
+ it: "Quando il guasto di {device} si risolve"
19047
+ },
19048
+ icon: "triangle-alert"
19049
+ }]
19050
+ },
18847
19051
  "doorbell": {
18848
19052
  scope: "device",
18849
19053
  noun: {
@@ -19574,6 +19778,7 @@ var CAP_NAMES = Object.freeze([
19574
19778
  "embedding-encoder",
19575
19779
  "energy-system",
19576
19780
  "enum-sensor",
19781
+ "error",
19577
19782
  "event-emitter",
19578
19783
  "face-gallery",
19579
19784
  "failure-contribution",
@@ -19704,6 +19909,7 @@ var CAP_NAMES = Object.freeze([
19704
19909
  "viewer-ui",
19705
19910
  "water-heater",
19706
19911
  "weather",
19912
+ "weather-station",
19707
19913
  "webrtc-session",
19708
19914
  "zone-analytics",
19709
19915
  "zone-rules",
@@ -20463,6 +20669,29 @@ Object.freeze({
20463
20669
  "path": "timestamp",
20464
20670
  "valueType": "boolean"
20465
20671
  }],
20672
+ "error": [
20673
+ {
20674
+ "path": "active",
20675
+ "valueType": "boolean"
20676
+ },
20677
+ {
20678
+ "path": "code",
20679
+ "valueType": "string"
20680
+ },
20681
+ {
20682
+ "path": "label",
20683
+ "valueType": "string"
20684
+ },
20685
+ {
20686
+ "path": "severity",
20687
+ "valueType": "enum",
20688
+ "enumValues": ["warning", "error"]
20689
+ },
20690
+ {
20691
+ "path": "since",
20692
+ "valueType": "number"
20693
+ }
20694
+ ],
20466
20695
  "event-emitter": [
20467
20696
  {
20468
20697
  "path": "lastEvent.deviceId",
@@ -21682,6 +21911,56 @@ Object.freeze({
21682
21911
  "valueType": "number"
21683
21912
  }
21684
21913
  ],
21914
+ "weather-station": [
21915
+ {
21916
+ "path": "temperature",
21917
+ "valueType": "number"
21918
+ },
21919
+ {
21920
+ "path": "humidity",
21921
+ "valueType": "number"
21922
+ },
21923
+ {
21924
+ "path": "pressure",
21925
+ "valueType": "number"
21926
+ },
21927
+ {
21928
+ "path": "windSpeed",
21929
+ "valueType": "number"
21930
+ },
21931
+ {
21932
+ "path": "windGust",
21933
+ "valueType": "number"
21934
+ },
21935
+ {
21936
+ "path": "windBearing",
21937
+ "valueType": "number"
21938
+ },
21939
+ {
21940
+ "path": "rainRate",
21941
+ "valueType": "number"
21942
+ },
21943
+ {
21944
+ "path": "rainDaily",
21945
+ "valueType": "number"
21946
+ },
21947
+ {
21948
+ "path": "rainEvent",
21949
+ "valueType": "number"
21950
+ },
21951
+ {
21952
+ "path": "uv",
21953
+ "valueType": "number"
21954
+ },
21955
+ {
21956
+ "path": "solarRadiation",
21957
+ "valueType": "number"
21958
+ },
21959
+ {
21960
+ "path": "dewPoint",
21961
+ "valueType": "number"
21962
+ }
21963
+ ],
21685
21964
  "zone-analytics": [
21686
21965
  {
21687
21966
  "path": "ts",
@@ -21774,7 +22053,7 @@ Object.freeze({
21774
22053
  }
21775
22054
  });
21776
22055
  //#endregion
21777
- //#region ../types/dist/implemented-methods-0xxMOekw.mjs
22056
+ //#region ../types/dist/implemented-methods-C5FMXLGP.mjs
21778
22057
  /**
21779
22058
  * The ffmpeg build every CamStack node downloads, per platform and arch.
21780
22059
  *
@@ -57767,7 +58046,7 @@ var mediaPlayerCapability = {
57767
58046
  ]
57768
58047
  }
57769
58048
  };
57770
- DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Climate, DeviceType.EventEmitter, DeviceType.Climate, DeviceType.Climate, DeviceType.Camera, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway, DeviceType.HeatPump, DeviceType.EnergySystem, DeviceType.Camera, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Lock, DeviceType.Camera, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Gateway, DeviceType.Camera, DeviceType.Sensor, DeviceType.MediaPlayer, DeviceType.Vacuum, DeviceType.Generic, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.PetFountain, DeviceType.Fan, DeviceType.Humidifier, DeviceType.Climate, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.PetFeeder, DeviceType.MediaPlayer;
58049
+ DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Climate, DeviceType.EventEmitter, DeviceType.Climate, DeviceType.Climate, DeviceType.Camera, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.WeatherStation, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway, DeviceType.HeatPump, DeviceType.EnergySystem, DeviceType.Camera, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Lock, DeviceType.Camera, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Gateway, DeviceType.Camera, DeviceType.Sensor, DeviceType.MediaPlayer, DeviceType.Vacuum, DeviceType.Generic, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.PetFountain, DeviceType.Fan, DeviceType.Humidifier, DeviceType.Climate, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.PetFeeder, DeviceType.MediaPlayer;
57771
58050
  var NUMBER = {
57772
58051
  kind: "fixed",
57773
58052
  result: ["number"]
@@ -57832,7 +58111,7 @@ var CHANGED = {
57832
58111
  fieldPath: "lastChangedAt",
57833
58112
  expr: "now"
57834
58113
  };
57835
- function numeric(input) {
58114
+ function numeric$1(input) {
57836
58115
  const { alsoFrom, ...base } = input;
57837
58116
  return {
57838
58117
  ...base,
@@ -57867,7 +58146,7 @@ function binary(input) {
57867
58146
  };
57868
58147
  }
57869
58148
  var GROUP_TEMPLATES = [
57870
- numeric({
58149
+ numeric$1({
57871
58150
  id: "temperature",
57872
58151
  summary: "Mean, median, min, max or sum of temperatures. Offline and unknown members are left out, never read as 0 °C.",
57873
58152
  role: DeviceRole.TemperatureSensor,
@@ -57885,7 +58164,7 @@ var GROUP_TEMPLATES = [
57885
58164
  }
57886
58165
  }
57887
58166
  }),
57888
- numeric({
58167
+ numeric$1({
57889
58168
  id: "humidity",
57890
58169
  summary: "Humidity in percent. Offline and unknown members are left out, never read as 0 %.",
57891
58170
  role: DeviceRole.HumiditySensor,
@@ -57903,7 +58182,7 @@ var GROUP_TEMPLATES = [
57903
58182
  }
57904
58183
  }
57905
58184
  }),
57906
- numeric({
58185
+ numeric$1({
57907
58186
  id: "pressure",
57908
58187
  summary: "Pressure in hectopascals. Offline and unknown members are left out, never read as 0 hPa.",
57909
58188
  role: DeviceRole.PressureSensor,
@@ -57914,7 +58193,7 @@ var GROUP_TEMPLATES = [
57914
58193
  empty: "null",
57915
58194
  companions: [NOW$3]
57916
58195
  }),
57917
- numeric({
58196
+ numeric$1({
57918
58197
  id: "illuminance",
57919
58198
  summary: "Illuminance in lux. Offline and unknown members are left out, never read as 0 lx.",
57920
58199
  role: DeviceRole.AmbientLightSensor,
@@ -57925,7 +58204,7 @@ var GROUP_TEMPLATES = [
57925
58204
  empty: "null",
57926
58205
  companions: [NOW$3]
57927
58206
  }),
57928
- numeric({
58207
+ numeric$1({
57929
58208
  id: "power",
57930
58209
  summary: "Power in watts, summed by default. Nobody reporting omits the key rather than writing 0 W.",
57931
58210
  role: DeviceRole.PowerSensor,
@@ -57936,7 +58215,7 @@ var GROUP_TEMPLATES = [
57936
58215
  empty: "omit",
57937
58216
  companions: [NOW$3]
57938
58217
  }),
57939
- numeric({
58218
+ numeric$1({
57940
58219
  id: "energy",
57941
58220
  summary: "Energy in kilowatt-hours, summed by default. Nobody reporting omits the key rather than writing 0 kWh.",
57942
58221
  role: DeviceRole.EnergySensor,
@@ -57947,7 +58226,7 @@ var GROUP_TEMPLATES = [
57947
58226
  empty: "omit",
57948
58227
  companions: [NOW$3]
57949
58228
  }),
57950
- numeric({
58229
+ numeric$1({
57951
58230
  id: "battery",
57952
58231
  summary: "Battery charge in percent. Offline and unknown members are left out, never read as 0 %.",
57953
58232
  role: DeviceRole.BatterySensor,
@@ -57971,7 +58250,7 @@ var GROUP_TEMPLATES = [
57971
58250
  }
57972
58251
  ]
57973
58252
  }),
57974
- numeric({
58253
+ numeric$1({
57975
58254
  id: "numeric",
57976
58255
  summary: "A numeric reading in the members’ shared quantity. Mixed quantities are refused. Nobody reporting publishes null, not 0.",
57977
58256
  role: DeviceRole.NumericSensor,
@@ -63575,6 +63854,85 @@ var enumSensorCapability = {
63575
63854
  }]
63576
63855
  }
63577
63856
  };
63857
+ /** How loudly a fault wants the operator. Both tiers raise the attention event. */
63858
+ var DeviceErrorSeveritySchema = _enum(["warning", "error"]);
63859
+ /** One fault of a device that can raise several at once. */
63860
+ var DeviceFaultSchema = object({
63861
+ /** The device's own code, as the vendor names it. */
63862
+ code: string(),
63863
+ /** Already translated by the provider (it owns the vendor vocabulary). */
63864
+ label: string(),
63865
+ severity: DeviceErrorSeveritySchema
63866
+ });
63867
+ /**
63868
+ * The fault a device reports right now. One slice per device.
63869
+ *
63870
+ * `active` is tri-state: `null` is "the provider has not read it yet" and is
63871
+ * never drawn as "no fault" nor as a fault (D315, D393). The provider filters
63872
+ * what is not a fault (a completion or reminder code) BEFORE it writes `true`.
63873
+ *
63874
+ * The cap's name is the key a template reads (`{{ alias.error.label }}`, D1021).
63875
+ */
63876
+ var ErrorStatusSchema = object({
63877
+ active: boolean().nullable(),
63878
+ /** The code of the principal fault; `null` when none (or unknown). */
63879
+ code: string().nullable(),
63880
+ /** The principal fault's words, provider-translated; `null` when none. */
63881
+ label: string().nullable(),
63882
+ severity: DeviceErrorSeveritySchema,
63883
+ /** Ms epoch the current fault started; `null` when none or not known. */
63884
+ since: number$1().nullable(),
63885
+ /** Every fault, for a device that raises several. The principal is the first. */
63886
+ faults: array(DeviceFaultSchema).optional(),
63887
+ /** Ms epoch of the last read the provider made of the fault. */
63888
+ lastFetchedAt: number$1()
63889
+ });
63890
+ /** The slice before the provider has read anything: unknown, not "fine". */
63891
+ var ERROR_STATUS_COLD = {
63892
+ active: null,
63893
+ code: null,
63894
+ label: null,
63895
+ severity: "error",
63896
+ since: null,
63897
+ lastFetchedAt: 0
63898
+ };
63899
+ var errorCapability = {
63900
+ name: "error",
63901
+ scope: "device",
63902
+ deviceNative: true,
63903
+ mode: "singleton",
63904
+ methods: {},
63905
+ status: {
63906
+ schema: ErrorStatusSchema,
63907
+ kind: "push",
63908
+ empty: ERROR_STATUS_COLD
63909
+ },
63910
+ runtimeState: ErrorStatusSchema,
63911
+ /**
63912
+ * Runtime-state durability: **restored** — the previous observation is what
63913
+ * lets the first reading after a restart be a COMPARISON: a fault that was
63914
+ * already open must not announce itself a second time.
63915
+ *
63916
+ * See `RuntimeStateDurability`. Enforced by
63917
+ * `scripts/check-runtime-state-durability.ts`.
63918
+ */
63919
+ durability: "restored",
63920
+ volatileStateFields: ["lastFetchedAt"],
63921
+ /** The fault itself is carried by the attention alerts; no series is recorded. */
63922
+ history: "none",
63923
+ vocabulary: {
63924
+ noun: t("Fault", "Guasto"),
63925
+ order: 5265,
63926
+ state: [{
63927
+ kind: "boolean",
63928
+ field: "active",
63929
+ label: t("Fault", "Guasto"),
63930
+ whenTrue: t("When {device} reports a fault", "Quando {device} segnala un guasto"),
63931
+ whenFalse: t("When the fault of {device} clears", "Quando il guasto di {device} si risolve"),
63932
+ icon: "triangle-alert"
63933
+ }]
63934
+ }
63935
+ };
63578
63936
  var IdentitySchema = object({
63579
63937
  id: string(),
63580
63938
  name: string(),
@@ -66041,7 +66399,7 @@ var HeroSceneSchema = object({
66041
66399
  /** 0..1: volume, cover position, cycle progress. */
66042
66400
  level: number$1().min(0).max(1).nullable()
66043
66401
  });
66044
- DeviceType.Camera, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.HeatPump, DeviceType.EnergySystem, 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;
66402
+ DeviceType.Camera, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.HeatPump, DeviceType.EnergySystem, 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;
66045
66403
  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;
66046
66404
  var HeroRowIdSchema = _enum([
66047
66405
  "progress",
@@ -90525,6 +90883,17 @@ var TerminalOutputEventSchema = discriminatedUnion("kind", [object({
90525
90883
  exitCode: number$1().int(),
90526
90884
  signal: number$1().int().optional()
90527
90885
  })]);
90886
+ var ServerShellRefusalSchema = object({
90887
+ code: literal("server-shell-disabled"),
90888
+ nodeId: string(),
90889
+ message: string()
90890
+ });
90891
+ var ServerShellStatusSchema = object({
90892
+ nodeId: string(),
90893
+ enabled: boolean(),
90894
+ idleMinutes: number$1().int().positive(),
90895
+ refusal: ServerShellRefusalSchema.nullable()
90896
+ });
90528
90897
  var TerminalOutputBatchSchema = object({
90529
90898
  cursor: number$1().int().nonnegative(),
90530
90899
  reset: boolean(),
@@ -90537,7 +90906,7 @@ method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }),
90537
90906
  }), TerminalInstanceInfoSchema, {
90538
90907
  kind: "mutation",
90539
90908
  auth: "admin"
90540
- }), method(_void(), array(TerminalSessionInfoSchema).readonly(), { auth: "admin" }), method(object({
90909
+ }), method(_void(), array(TerminalSessionInfoSchema).readonly(), { auth: "admin" }), method(_void(), ServerShellStatusSchema, { auth: "admin" }), method(object({
90541
90910
  profileId: string(),
90542
90911
  cols: number$1().int().positive(),
90543
90912
  rows: number$1().int().positive(),
@@ -90547,7 +90916,8 @@ method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }),
90547
90916
  environment: array(string().max(4096)).max(64).optional()
90548
90917
  }), TerminalSessionInfoSchema, {
90549
90918
  kind: "mutation",
90550
- auth: "admin"
90919
+ auth: "admin",
90920
+ caller: "required"
90551
90921
  }), method(object({
90552
90922
  sessionId: string(),
90553
90923
  cols: number$1().int().positive(),
@@ -90568,6 +90938,7 @@ method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }),
90568
90938
  }), TerminalOutputBatchSchema, {
90569
90939
  kind: "mutation",
90570
90940
  auth: "admin",
90941
+ caller: "required",
90571
90942
  timeoutMs: 15e3
90572
90943
  }), method(object({
90573
90944
  sessionId: string(),
@@ -90577,7 +90948,8 @@ method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }),
90577
90948
  auth: "admin"
90578
90949
  }), method(object({ sessionId: string() }), _void(), {
90579
90950
  kind: "mutation",
90580
- auth: "admin"
90951
+ auth: "admin",
90952
+ caller: "required"
90581
90953
  }), NOT_A_DEVICE.CLUSTER;
90582
90954
  /**
90583
90955
  * toast — system-scoped singleton capability that streams toast
@@ -92531,6 +92903,71 @@ var weatherCapability = {
92531
92903
  ]
92532
92904
  }
92533
92905
  };
92906
+ var WeatherStationStatusSchema = object({
92907
+ temperature: number$1().nullable().meta(readingMeta("temperature", { precision: 1 })),
92908
+ humidity: number$1().min(0).max(100).nullable().meta(readingMeta("humidity")),
92909
+ pressure: number$1().nullable().meta(readingMeta("pressure")),
92910
+ windSpeed: number$1().nullable().meta(readingMeta("speed")),
92911
+ windGust: number$1().nullable().meta(readingMeta("speed")),
92912
+ windBearing: number$1().nullable().meta(readingMeta("angle")),
92913
+ rainRate: number$1().nullable().meta(readingMeta("precipitation-rate", { precision: 1 })),
92914
+ rainDaily: number$1().nullable().meta(readingMeta("precipitation", { precision: 1 })),
92915
+ rainEvent: number$1().nullable().meta(readingMeta("precipitation", { precision: 1 })),
92916
+ uv: number$1().nullable().meta(readingMeta("index", { precision: 1 })),
92917
+ solarRadiation: number$1().nullable().meta(readingMeta("irradiance")),
92918
+ dewPoint: number$1().nullable().meta(readingMeta("temperature", { precision: 1 }))
92919
+ }).extend({
92920
+ /** Ms epoch of the poll that produced this slice. 0 before the first one. */
92921
+ lastFetchedAt: number$1() });
92922
+ var numeric = (field, quantity, label, unit, icon) => ({
92923
+ kind: "numeric",
92924
+ field,
92925
+ quantity,
92926
+ label,
92927
+ unit,
92928
+ icon
92929
+ });
92930
+ var weatherStationCapability = {
92931
+ name: "weather-station",
92932
+ scope: "device",
92933
+ deviceNative: true,
92934
+ mode: "singleton",
92935
+ deviceTypes: [DeviceType.WeatherStation],
92936
+ methods: {},
92937
+ status: {
92938
+ schema: WeatherStationStatusSchema,
92939
+ kind: "push"
92940
+ },
92941
+ runtimeState: WeatherStationStatusSchema,
92942
+ /**
92943
+ * The sensor children already record each reading. The station slice is the
92944
+ * live aggregate a template reads; it does not keep a second series.
92945
+ */
92946
+ history: "none",
92947
+ /**
92948
+ * Runtime-state durability: **session** — a station reading is stale the
92949
+ * moment the hub is down; the provider re-reads on the next poll.
92950
+ */
92951
+ durability: "session",
92952
+ vocabulary: {
92953
+ noun: t("Weather station", "Stazione meteo"),
92954
+ order: 5235,
92955
+ state: [
92956
+ numeric("temperature", t("the outdoor temperature", "la temperatura esterna"), t("Temperature", "Temperatura"), "°C", "thermometer"),
92957
+ numeric("humidity", t("the outdoor humidity", "l’umidità esterna"), t("Humidity", "Umidità"), "%", "droplets"),
92958
+ numeric("pressure", t("the air pressure", "la pressione atmosferica"), t("Pressure", "Pressione"), "hPa", "gauge"),
92959
+ numeric("windSpeed", t("the wind speed", "la velocità del vento"), t("Wind", "Vento"), "m/s", "wind"),
92960
+ numeric("windGust", t("the wind gust", "la raffica di vento"), t("Gust", "Raffica"), "m/s", "wind"),
92961
+ numeric("windBearing", t("the wind bearing", "la direzione del vento"), t("Wind bearing", "Direzione del vento"), "°", "wind"),
92962
+ numeric("rainRate", t("the rain rate", "l’intensità della pioggia"), t("Rain rate", "Intensità pioggia"), "mm/h", "droplets"),
92963
+ numeric("rainDaily", t("the rain today", "la pioggia di oggi"), t("Rain today", "Pioggia oggi"), "mm", "droplets"),
92964
+ numeric("rainEvent", t("the rain this event", "la pioggia di questo evento"), t("Rain event", "Evento di pioggia"), "mm", "droplets"),
92965
+ numeric("uv", t("the UV index", "l’indice UV"), t("UV", "UV"), "", "cloud-sun"),
92966
+ numeric("solarRadiation", t("the solar radiation", "la radiazione solare"), t("Solar", "Sole"), "W/m²", "cloud-sun"),
92967
+ numeric("dewPoint", t("the dew point", "il punto di rugiada"), t("Dew point", "Punto di rugiada"), "°C", "thermometer")
92968
+ ]
92969
+ }
92970
+ };
92534
92971
  /**
92535
92972
  * Optional client-side hints sent at session creation to help the provider
92536
92973
  * pick the best native source. All fields optional — a viewer that knows
@@ -94096,6 +94533,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
94096
94533
  doorbell: doorbellCapability,
94097
94534
  energySystem: energySystemCapability,
94098
94535
  enumSensor: enumSensorCapability,
94536
+ error: errorCapability,
94099
94537
  eventEmitter: eventEmitterCapability,
94100
94538
  fanControl: fanControlCapability,
94101
94539
  featureProbe: featureProbeCapability,
@@ -94152,10 +94590,59 @@ var DEVICE_LOCAL_STATE_CAPS = {
94152
94590
  vibration: vibrationCapability,
94153
94591
  waterHeater: waterHeaterCapability,
94154
94592
  weather: weatherCapability,
94593
+ weatherStation: weatherStationCapability,
94155
94594
  zoneAnalytics: zoneAnalyticsCapability,
94156
94595
  zoneRules: zoneRulesCapability,
94157
94596
  zones: zonesCapability
94158
94597
  };
94598
+ /**
94599
+ * The edge between two readings, or `null` for no edge.
94600
+ *
94601
+ * - `null`/cold → `true` is a START (a fault already open at boot is one);
94602
+ * - `true` → `false` is a RESOLVE;
94603
+ * - an UNKNOWN reading (`active: null`) is never an edge, in either direction —
94604
+ * a failed read must neither raise nor close an episode (D393, D49);
94605
+ * - `true` → `true` is the same episode, whatever the code did.
94606
+ */
94607
+ function deviceErrorEdge(previous, next) {
94608
+ if (next.active === true && previous?.active !== true) return "start";
94609
+ if (next.active === false && previous?.active === true) return "resolve";
94610
+ return null;
94611
+ }
94612
+ function deviceErrorAlertId(deviceId) {
94613
+ return `device-error:${String(deviceId)}`;
94614
+ }
94615
+ /** The alert that opens an episode. `since` is the fault's own start, else `now`. */
94616
+ function buildDeviceErrorAlert(deviceId, deviceName, status, now) {
94617
+ const label = status.label ?? status.code ?? "Fault";
94618
+ const startedAt = status.since ?? now;
94619
+ const alertId = deviceErrorAlertId(deviceId);
94620
+ return {
94621
+ id: alertId,
94622
+ category: "device.error",
94623
+ severity: "critical",
94624
+ title: `${deviceName}: ${label}`,
94625
+ message: `${deviceName} reports a fault: ${label}.`,
94626
+ action: {
94627
+ label: "Open device",
94628
+ href: `/devices/${String(deviceId)}`,
94629
+ navigation: "app"
94630
+ },
94631
+ status: "active",
94632
+ read: false,
94633
+ createdAt: now,
94634
+ updatedAt: now,
94635
+ source: {
94636
+ type: "device",
94637
+ id: String(deviceId)
94638
+ },
94639
+ metadata: {
94640
+ episodeId: `${alertId}@${String(startedAt)}`,
94641
+ code: status.code,
94642
+ deviceSeverity: status.severity
94643
+ }
94644
+ };
94645
+ }
94159
94646
  var BaseDevice = class {
94160
94647
  id;
94161
94648
  stableId;
@@ -94455,6 +94942,68 @@ var BaseDevice = class {
94455
94942
  } catch (err) {}
94456
94943
  }
94457
94944
  /**
94945
+ * Declare that this device can report a fault (the `error` cap). The slice
94946
+ * starts UNKNOWN — a restored slice is kept, so a fault that was open before
94947
+ * a restart is compared, not announced again.
94948
+ */
94949
+ registerErrorCap() {
94950
+ this.ctx.registerNativeCap?.(errorCapability, {});
94951
+ if (this.runtimeState.getCapState(errorCapability.name) === void 0) this.setCapSlice(errorCapability, ERROR_STATUS_COLD);
94952
+ }
94953
+ /**
94954
+ * Publish the device's fault. The slice is written; on an EDGE (a fault
94955
+ * starts, or one resolves) an attention episode opens or closes through the
94956
+ * alerts cap, which the notification center announces as
94957
+ * `device-attention-required` / `-resolved`. An unknown reading is never an
94958
+ * edge. No rule exists by default: it notifies when the operator makes one.
94959
+ */
94960
+ async publishError(reading) {
94961
+ const previous = this.getCapSlice(errorCapability);
94962
+ if (reading.active === null && previous !== null && previous.active !== null) return;
94963
+ const now = Date.now();
94964
+ const edge = deviceErrorEdge(previous, reading);
94965
+ const next = edge === "start" && reading.since === null ? {
94966
+ ...reading,
94967
+ since: now
94968
+ } : reading;
94969
+ this.setCapSlice(errorCapability, next);
94970
+ if (edge === null) return;
94971
+ const alerts = this.ctx.api.alerts;
94972
+ if (alerts === void 0) {
94973
+ this.ctx.logger.warn("device error: attention event skipped — alerts capability missing", {
94974
+ tags: { deviceId: this.id },
94975
+ meta: { edge }
94976
+ });
94977
+ return;
94978
+ }
94979
+ try {
94980
+ if (edge === "start") await alerts.emit.mutate(buildDeviceErrorAlert(this.id, this.name, next, now));
94981
+ else await alerts.update.mutate({
94982
+ alertId: deviceErrorAlertId(this.id),
94983
+ patch: {
94984
+ status: "completed",
94985
+ read: true,
94986
+ updatedAt: now
94987
+ }
94988
+ });
94989
+ this.ctx.logger.info(`device error: ${edge === "start" ? "raised" : "resolved"}`, {
94990
+ tags: { deviceId: this.id },
94991
+ meta: {
94992
+ code: next.code,
94993
+ label: next.label
94994
+ }
94995
+ });
94996
+ } catch (err) {
94997
+ this.ctx.logger.warn("device error: attention event failed", {
94998
+ tags: { deviceId: this.id },
94999
+ meta: {
95000
+ edge,
95001
+ error: errMsg(err)
95002
+ }
95003
+ });
95004
+ }
95005
+ }
95006
+ /**
94458
95007
  * Typed read-through to a cap-keyed runtime-state slice. Drivers
94459
95008
  * call `this.getCapSlice(batteryCapability)` and the return type
94460
95009
  * is inferred from the cap's `runtimeState` Zod schema — no string
@@ -95402,7 +95951,7 @@ var BaseDeviceProvider = class extends BaseAddon {
95402
95951
  }
95403
95952
  };
95404
95953
  DeviceType.HeatPump;
95405
- 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;
95954
+ 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;
95406
95955
  new Set(Object.values(DeviceType));
95407
95956
  /** Parses the raw slice with the cap's own schema; `undefined` when it does not parse. */
95408
95957
  function contribution(cap, schema, build) {
@@ -96771,6 +97320,17 @@ var SENSORS_FAMILY_CONTRIBUTIONS = {
96771
97320
  doorbell: doorbellContribution,
96772
97321
  meter: meterContribution,
96773
97322
  weather: weatherContribution,
97323
+ "weather-station": contribution("weather-station", WeatherStationStatusSchema, (slice) => {
97324
+ if (slice === void 0 || slice.temperature === null) return { reading: reading$1("weather", "unknown") };
97325
+ const celsius = `${number(slice.temperature)}°C`;
97326
+ const facts = [fact("reading", "thermometer", t(celsius, celsius), "primary")];
97327
+ if (slice.humidity !== null) facts.push(fact("reading", "droplets", t(`${Math.round(slice.humidity)}%`, `${Math.round(slice.humidity)}%`)));
97328
+ if (slice.windSpeed !== null) facts.push(fact("reading", "wind", t(`${number(slice.windSpeed)} m/s`, `${number(slice.windSpeed)} m/s`)));
97329
+ return {
97330
+ reading: reading$1("weather", "on", false, t(celsius, celsius)),
97331
+ facts
97332
+ };
97333
+ }),
96774
97334
  update: updateContribution,
96775
97335
  image: imageContribution,
96776
97336
  button: buttonContribution,
@@ -97447,7 +98007,7 @@ var HEAT_PUMP_FAMILY_CONTRIBUTIONS = { "heat-pump-status": contribution("heat-pu
97447
98007
  ...Object.values(CLIMATE_FAMILY_CONTRIBUTIONS),
97448
98008
  ...Object.values(HEAT_PUMP_FAMILY_CONTRIBUTIONS)
97449
98009
  ];
97450
- DeviceType.Camera, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.HeatPump, DeviceType.EnergySystem, 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;
98010
+ DeviceType.Camera, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.HeatPump, DeviceType.EnergySystem, 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;
97451
98011
  /**
97452
98012
  * Who looks like what (D1023). One look per {@link DeviceType}, refined by a
97453
98013
  * {@link DeviceRole} where the role changes how the device reads (a leak
@@ -98091,7 +98651,7 @@ lookOf({
98091
98651
  standby: MUTED
98092
98652
  });
98093
98653
  DeviceType.Climate;
98094
- DeviceType.Camera, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.HeatPump, DeviceType.EnergySystem, 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;
98654
+ DeviceType.Camera, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.HeatPump, DeviceType.EnergySystem, 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;
98095
98655
  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;
98096
98656
  Object.freeze({
98097
98657
  "accessories.getStatus": {
@@ -101384,6 +101944,13 @@ Object.freeze({
101384
101944
  access: "view",
101385
101945
  role: "viewer"
101386
101946
  },
101947
+ "error.getStatus": {
101948
+ capName: "error",
101949
+ capScope: "device",
101950
+ addonId: null,
101951
+ access: "view",
101952
+ role: "viewer"
101953
+ },
101387
101954
  "eventEmitter.getStatus": {
101388
101955
  capName: "event-emitter",
101389
101956
  capScope: "device",
@@ -107642,6 +108209,13 @@ Object.freeze({
107642
108209
  access: "create",
107643
108210
  role: "admin"
107644
108211
  },
108212
+ "terminalSession.serverShellStatus": {
108213
+ capName: "terminal-session",
108214
+ capScope: "system",
108215
+ addonId: null,
108216
+ access: "view",
108217
+ role: "admin"
108218
+ },
107645
108219
  "terminalSession.writeInput": {
107646
108220
  capName: "terminal-session",
107647
108221
  capScope: "system",
@@ -108377,6 +108951,13 @@ Object.freeze({
108377
108951
  access: "view",
108378
108952
  role: "viewer"
108379
108953
  },
108954
+ "weatherStation.getStatus": {
108955
+ capName: "weather-station",
108956
+ capScope: "device",
108957
+ addonId: null,
108958
+ access: "view",
108959
+ role: "viewer"
108960
+ },
108380
108961
  "webrtcSession.addIceCandidate": {
108381
108962
  capName: "webrtc-session",
108382
108963
  capScope: "device",
@@ -108590,7 +109171,7 @@ function offered(received) {
108590
109171
  };
108591
109172
  }
108592
109173
  offered(HA_AS), withheld(HOMEKIT_REASON), withheld(ALEXA_REASON), withheld(GOOGLE_REASON), withheld(MATTER_REASON);
108593
- 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;
109174
+ 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;
108594
109175
  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;
108595
109176
  new Set(Object.values(DeviceType));
108596
109177
  new Set(Object.values(DeviceRole));
@@ -109721,6 +110302,11 @@ Object.freeze({
109721
110302
  form: "single",
109722
110303
  optional: false
109723
110304
  }],
110305
+ "error.getStatus": [{
110306
+ name: "deviceId",
110307
+ form: "single",
110308
+ optional: false
110309
+ }],
109724
110310
  "eventEmitter.getStatus": [{
109725
110311
  name: "deviceId",
109726
110312
  form: "single",
@@ -111762,6 +112348,11 @@ Object.freeze({
111762
112348
  form: "single",
111763
112349
  optional: false
111764
112350
  }],
112351
+ "weatherStation.getStatus": [{
112352
+ name: "deviceId",
112353
+ form: "single",
112354
+ optional: false
112355
+ }],
111765
112356
  "webrtcSession.addIceCandidate": [{
111766
112357
  name: "deviceId",
111767
112358
  form: "single",
@@ -112547,6 +113138,7 @@ var STATE_SUMMARY_VARS = [
112547
113138
  [...RULE_TEXT],
112548
113139
  [...RULE_TEXT],
112549
113140
  [...RULE_TEXT],
113141
+ [...RULE_TEXT],
112550
113142
  [...RULE_BODY_ONLY],
112551
113143
  [...RULE_TEXT],
112552
113144
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
@@ -113551,7 +114143,10 @@ object({
113551
114143
  * duplicating them. Pure: no `BaseDevice` / facade dependency.
113552
114144
  */
113553
114145
  /**
113554
- * Cold-start defaults so reads never miss a slice before the first push.
114146
+ * Cold-start defaults so reads never miss a slice before the first push. They
114147
+ * are READ fallbacks (`getCapState(...) ?? COLD_X`), never written: a placeholder
114148
+ * published at construction overwrote the hydrated slice and diffed against the
114149
+ * CCU replay as phantom device transitions after every boot (planning#561).
113555
114150
  * `lastChangedAt: 0` marks each as a PLACEHOLDER — the value is a guess, and
113556
114151
  * consumers read it as unknown. A replayed CCU value is stamped
113557
114152
  * `HM_SEEDED_CHANGED_AT` instead (`hm-change-stamp.ts`).
@@ -113575,20 +114170,6 @@ var COLD_MOTION = {
113575
114170
  lastDetectedAt: null,
113576
114171
  autoClearAfterMs: null
113577
114172
  };
113578
- /**
113579
- * The motion seed a constructor writes OVER the slice hydrated from the
113580
- * persisted runtime state. The level is a placeholder (`false`) until the
113581
- * CCU says otherwise, but a stored rise is a fact: `lastDetectedAt: null`
113582
- * means "never detected" (`motion.cap.ts`), and a restart must not turn
113583
- * "fired an hour ago" into that.
113584
- */
113585
- function coldMotionKeepingRise(stored) {
113586
- const rise = stored?.lastDetectedAt;
113587
- return {
113588
- ...COLD_MOTION,
113589
- lastDetectedAt: typeof rise === "number" && Number.isFinite(rise) && rise > 0 ? rise : null
113590
- };
113591
- }
113592
114173
  var COLD_CLIMATE = {
113593
114174
  mode: "auto",
113594
114175
  availableModes: [...[
@@ -141340,7 +141921,6 @@ var HmActuatorDevice = class HmActuatorDevice extends HmChildDevice {
141340
141921
  else await facade.switchTurnOff(this.address, channel);
141341
141922
  }
141342
141923
  });
141343
- this.runtimeState.setCapState("switch", COLD_SWITCH);
141344
141924
  this.registeredCap = "switch";
141345
141925
  }
141346
141926
  registerCoverCap() {
@@ -141361,7 +141941,6 @@ var HmActuatorDevice = class HmActuatorDevice extends HmChildDevice {
141361
141941
  },
141362
141942
  setTiltPosition: async () => this.unsupported("cover tilt")
141363
141943
  });
141364
- this.runtimeState.setCapState("cover", COLD_COVER);
141365
141944
  this.registeredCap = "cover";
141366
141945
  }
141367
141946
  registerLockCap() {
@@ -141378,7 +141957,6 @@ var HmActuatorDevice = class HmActuatorDevice extends HmChildDevice {
141378
141957
  await this.requireFacade().lockOpen(this.address, channel);
141379
141958
  }
141380
141959
  });
141381
- this.runtimeState.setCapState("lock-control", COLD_LOCK);
141382
141960
  this.registeredCap = "lock-control";
141383
141961
  }
141384
141962
  registerClimateCap() {
@@ -141413,7 +141991,6 @@ var HmActuatorDevice = class HmActuatorDevice extends HmChildDevice {
141413
141991
  };
141414
141992
  this.ctx.registerNativeCap(climateControlCapability, provider);
141415
141993
  registerPowerSwitch(this, climateControlCapability, provider);
141416
- this.runtimeState.setCapState("climate-control", COLD_CLIMATE);
141417
141994
  this.registeredCap = "climate-control";
141418
141995
  }
141419
141996
  /**
@@ -141547,19 +142124,15 @@ var COLD_AMBIENT_LIGHT = {
141547
142124
  var COLD_POWER = { lastFetchedAt: 0 };
141548
142125
  function registerTemperatureCap(ctx, runtimeState) {
141549
142126
  ctx.registerNativeCap(temperatureSensorCapability, { getStatus: async () => runtimeState.getCapState("temperature-sensor") ?? COLD_TEMPERATURE });
141550
- runtimeState.setCapState("temperature-sensor", COLD_TEMPERATURE);
141551
142127
  }
141552
142128
  function registerHumidityCap(ctx, runtimeState) {
141553
142129
  ctx.registerNativeCap(humiditySensorCapability, { getStatus: async () => runtimeState.getCapState("humidity-sensor") ?? COLD_HUMIDITY });
141554
- runtimeState.setCapState("humidity-sensor", COLD_HUMIDITY);
141555
142130
  }
141556
142131
  function registerAmbientLightCap(ctx, runtimeState) {
141557
142132
  ctx.registerNativeCap(ambientLightSensorCapability, { getStatus: async () => runtimeState.getCapState("ambient-light-sensor") ?? COLD_AMBIENT_LIGHT });
141558
- runtimeState.setCapState("ambient-light-sensor", COLD_AMBIENT_LIGHT);
141559
142133
  }
141560
142134
  function registerPowerMeterCap(ctx, runtimeState) {
141561
142135
  ctx.registerNativeCap(powerMeterCapability, { getStatus: async () => runtimeState.getCapState("power-meter") ?? COLD_POWER });
141562
- runtimeState.setCapState("power-meter", COLD_POWER);
141563
142136
  }
141564
142137
  //#endregion
141565
142138
  //#region src/devices/hm-sensor-device.ts
@@ -141615,7 +142188,6 @@ var HmSensorDevice = class extends HmChildDevice {
141615
142188
  getStatus: async () => this.runtimeState.getCapState("motion") ?? COLD_MOTION,
141616
142189
  isDetected: async () => (this.runtimeState.getCapState("motion") ?? COLD_MOTION).detected
141617
142190
  });
141618
- this.runtimeState.setCapState("motion", coldMotionKeepingRise(this.runtimeState.getCapState("motion")));
141619
142191
  }
141620
142192
  handleValueChanged(event, origin) {
141621
142193
  const now = event.ts || Date.now();
@@ -142072,16 +142644,13 @@ var HmDiagnosticDevice = class extends HmChildDevice {
142072
142644
  switch (this.capName) {
142073
142645
  case "binary":
142074
142646
  this.ctx.registerNativeCap(binaryCapability, { getStatus: async () => this.runtimeState.getCapState("binary") ?? COLD_BINARY });
142075
- this.runtimeState.setCapState("binary", COLD_BINARY);
142076
142647
  return;
142077
142648
  case "temperature-sensor":
142078
142649
  this.ctx.registerNativeCap(temperatureSensorCapability, { getStatus: async () => this.runtimeState.getCapState("temperature-sensor") ?? COLD_TEMP });
142079
- this.runtimeState.setCapState("temperature-sensor", COLD_TEMP);
142080
142650
  return;
142081
142651
  default: {
142082
142652
  const cold = COLD_NUMERIC;
142083
142653
  this.ctx.registerNativeCap(numericSensorCapability, { getStatus: async () => this.runtimeState.getCapState("numeric-sensor") ?? cold });
142084
- this.runtimeState.setCapState("numeric-sensor", cold);
142085
142654
  return;
142086
142655
  }
142087
142656
  }