@camstack/server 1.2.868 → 1.2.870
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.
- package/CHANGELOG.md +13 -1
- package/dist/api/trpc/generated-cap-mounts.js +2 -1
- package/dist/api/trpc/generated-cap-routers.js +79 -1
- package/package.json +12 -9
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/alerts/alerts.addon.js +1 -1
- package/system/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/system/dist/builtins/autotrack/index.js +1 -1
- package/system/dist/builtins/autotrack/index.mjs +1 -1
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
- package/system/dist/builtins/calendars/calendars.addon.js +1 -1
- package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/system/dist/builtins/camera-grid/index.js +1 -1
- package/system/dist/builtins/camera-grid/index.mjs +1 -1
- package/system/dist/builtins/composer/composer.addon.js +4 -4
- package/system/dist/builtins/composer/composer.addon.mjs +4 -4
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +9 -4
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +9 -4
- package/system/dist/builtins/core-blocks/remote-service.d.ts +5 -1
- package/system/dist/builtins/device-history/device-history.addon.js +2 -2
- package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
- package/system/dist/builtins/device-manager/device-manager.addon.js +2 -2
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +2 -2
- package/system/dist/builtins/hub-forwarder/index.js +1 -1
- package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/system/dist/builtins/keychain/index.js +4 -4
- package/system/dist/builtins/keychain/index.mjs +4 -4
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
- package/system/dist/builtins/local-network/local-network.addon.js +3 -3
- package/system/dist/builtins/local-network/local-network.addon.mjs +3 -3
- package/system/dist/builtins/loki-logging/index.js +1 -1
- package/system/dist/builtins/loki-logging/index.mjs +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/system/dist/builtins/platform-probe/index.js +1 -1
- package/system/dist/builtins/platform-probe/index.mjs +1 -1
- package/system/dist/builtins/record-entries/index.js +1 -1
- package/system/dist/builtins/record-entries/index.mjs +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/snapshot/index.js +1 -1
- package/system/dist/builtins/snapshot/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/index.js +1 -1
- package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
- package/system/dist/builtins/storage-orchestrator/drain-ratchet.d.ts +8 -0
- package/system/dist/builtins/storage-orchestrator/storage-drain-event-monitor.d.ts +63 -0
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.d.ts +14 -0
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +152 -2
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +152 -2
- package/system/dist/builtins/system-config/system-config.addon.js +3 -3
- package/system/dist/builtins/system-config/system-config.addon.mjs +3 -3
- package/system/dist/builtins/winston-logging/index.js +1 -1
- package/system/dist/builtins/winston-logging/index.mjs +1 -1
- package/system/dist/{capture-engine-BLvsM_9n.mjs → capture-engine-4BFlpvJV.mjs} +1 -1
- package/system/dist/{capture-engine-CZAoDA8f.js → capture-engine-DvcUjBD4.js} +1 -1
- package/system/dist/{composition-sources-cHTw-yaK.js → composition-sources-CWKwokvg.js} +1 -1
- package/system/dist/{composition-sources-C-JTlA-Z.mjs → composition-sources-DU-LtoTH.mjs} +1 -1
- package/system/dist/{constants-Ja04pgXN.js → constants-BHEbtnlN.js} +1 -1
- package/system/dist/{constants-z053G1cz.mjs → constants-C7shrFbd.mjs} +1 -1
- package/system/dist/{device-ca-CBH-uKco.js → device-ca-CRIb8o13.js} +1 -1
- package/system/dist/{device-ca-CenGkhrx.mjs → device-ca-DN7M71Qy.mjs} +1 -1
- package/system/dist/{dist-DxpO7T7_.mjs → dist-C_8yolmP.mjs} +706 -29
- package/system/dist/{dist-4s3KGwmo.js → dist-Co_TBjrT.js} +706 -29
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-identity-DBlEsrOj.mjs → hub-identity-BoelHayw.mjs} +1 -1
- package/system/dist/{hub-identity-L6pLf8b7.js → hub-identity-D6YKdl9L.js} +1 -1
- package/system/dist/{hub-mdns-ciao-UkoNqaH4.js → hub-mdns-ciao-C7vrLh6K.js} +2 -2
- package/system/dist/{hub-mdns-ciao-Kd4Vk9zo.mjs → hub-mdns-ciao-CFIA6g7n.mjs} +2 -2
- package/system/dist/index.js +8 -8
- package/system/dist/index.mjs +8 -8
- package/system/dist/{legacy-integration-rows-door-7TugpMtZ.js → legacy-integration-rows-door-D3JEzzQB.js} +1 -1
- package/system/dist/{legacy-integration-rows-door-BZknuVEL.mjs → legacy-integration-rows-door-uKx33PTT.mjs} +1 -1
- package/system/dist/{rename-composition-block-B_E0FaEf.js → rename-composition-block-Bqk6u7Q6.js} +1 -1
- package/system/dist/{rename-composition-block-C0sgZZyJ.mjs → rename-composition-block-CvevOCur.mjs} +1 -1
- package/system/dist/{restore-archive-CyGsqv6W.mjs → restore-archive-BZ45H1RA.mjs} +1 -1
- package/system/dist/{restore-archive-QZmJfXLn.js → restore-archive-eHXLFCxW.js} +1 -1
- package/system/dist/{wal-maintenance-DvcEWip3.js → wal-maintenance-BHFm-B-H.js} +0 -0
- package/system/dist/{wal-maintenance-CJaRdr0b.mjs → wal-maintenance-D80Zkary.mjs} +0 -0
- package/system/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
let zod = require("zod");
|
|
2
2
|
require("node:crypto");
|
|
3
|
-
//#region ../types/dist/event-category-
|
|
3
|
+
//#region ../types/dist/event-category-Dhcd0TRH.mjs
|
|
4
4
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
5
5
|
EventCategory["SystemBoot"] = "system.boot";
|
|
6
6
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -274,6 +274,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
274
274
|
EventCategory["StorageLocationCritical"] = "storage.location.critical";
|
|
275
275
|
/** Recovery from low/critical on a storage location. */
|
|
276
276
|
EventCategory["StorageLocationOk"] = "storage.location.ok";
|
|
277
|
+
/**
|
|
278
|
+
* A `drain` location's regular progress ping (#538) — location id + name,
|
|
279
|
+
* bytes remaining, the observed cede rate and the estimated empty date, or
|
|
280
|
+
* `null` fields when the occupancy read that sweep failed (D393: never
|
|
281
|
+
* folded to 0). Cadence is the named constant
|
|
282
|
+
* `DRAIN_PROGRESS_EVENT_INTERVAL_MS` (15 min) plus once on drain start — no
|
|
283
|
+
* operator knob. Telemetry (D8): a lost tick is a stale progress bar the
|
|
284
|
+
* next sweep corrects.
|
|
285
|
+
*/
|
|
286
|
+
EventCategory["StorageDrainProgress"] = "storage.drain.progress";
|
|
287
|
+
/** Fires once when a draining location reaches zero evictable bytes. */
|
|
288
|
+
EventCategory["StorageDrainComplete"] = "storage.drain.complete";
|
|
277
289
|
EventCategory["RecordingSegmentWritten"] = "recording.segment.written";
|
|
278
290
|
EventCategory["RecordingPolicyFallback"] = "recording.policy.fallback";
|
|
279
291
|
EventCategory["RecordingRetentionCompleted"] = "recording.retention.completed";
|
|
@@ -812,7 +824,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
812
824
|
return EventCategory;
|
|
813
825
|
}({});
|
|
814
826
|
//#endregion
|
|
815
|
-
//#region ../types/dist/composed-stable-id-
|
|
827
|
+
//#region ../types/dist/composed-stable-id-RvQIEpqg.mjs
|
|
816
828
|
/**
|
|
817
829
|
import { errMsg } from '@camstack/types'
|
|
818
830
|
* Extract a human-readable message from an unknown error value.
|
|
@@ -894,6 +906,9 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
|
894
906
|
/** Weather provider (HA `weather.*`). Tier-3, low MVP priority.
|
|
895
907
|
* `weather` cap. */
|
|
896
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";
|
|
897
912
|
/** Robot vacuum (HA `vacuum.*`). Tier-3. `vacuum-control` cap. */
|
|
898
913
|
DeviceType["Vacuum"] = "vacuum";
|
|
899
914
|
/** Robotic lawn mower (HA `lawn_mower.*`). Tier-3.
|
|
@@ -1259,7 +1274,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
1259
1274
|
*/
|
|
1260
1275
|
var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
|
|
1261
1276
|
//#endregion
|
|
1262
|
-
//#region ../types/dist/sleep-
|
|
1277
|
+
//#region ../types/dist/sleep-DbhT0DWV.mjs
|
|
1263
1278
|
/**
|
|
1264
1279
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
1265
1280
|
* window to float samples (D455).
|
|
@@ -9410,6 +9425,76 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
9410
9425
|
en: "Control",
|
|
9411
9426
|
it: "Controllo"
|
|
9412
9427
|
},
|
|
9428
|
+
actions: [
|
|
9429
|
+
{
|
|
9430
|
+
id: "select.next",
|
|
9431
|
+
method: "next",
|
|
9432
|
+
label: {
|
|
9433
|
+
en: "Next option",
|
|
9434
|
+
it: "Opzione successiva"
|
|
9435
|
+
},
|
|
9436
|
+
phrase: {
|
|
9437
|
+
en: "Select the next option on {device}",
|
|
9438
|
+
it: "Seleziona l’opzione successiva su {device}"
|
|
9439
|
+
},
|
|
9440
|
+
icon: "skip-forward",
|
|
9441
|
+
openArgs: [{
|
|
9442
|
+
key: "cycle",
|
|
9443
|
+
label: {
|
|
9444
|
+
en: "Wrap to the first option",
|
|
9445
|
+
it: "Ricomincia dalla prima opzione"
|
|
9446
|
+
},
|
|
9447
|
+
offer: { kind: "boolean" }
|
|
9448
|
+
}]
|
|
9449
|
+
},
|
|
9450
|
+
{
|
|
9451
|
+
id: "select.previous",
|
|
9452
|
+
method: "previous",
|
|
9453
|
+
label: {
|
|
9454
|
+
en: "Previous option",
|
|
9455
|
+
it: "Opzione precedente"
|
|
9456
|
+
},
|
|
9457
|
+
phrase: {
|
|
9458
|
+
en: "Select the previous option on {device}",
|
|
9459
|
+
it: "Seleziona l’opzione precedente su {device}"
|
|
9460
|
+
},
|
|
9461
|
+
icon: "skip-back",
|
|
9462
|
+
openArgs: [{
|
|
9463
|
+
key: "cycle",
|
|
9464
|
+
label: {
|
|
9465
|
+
en: "Wrap to the last option",
|
|
9466
|
+
it: "Ricomincia dall’ultima opzione"
|
|
9467
|
+
},
|
|
9468
|
+
offer: { kind: "boolean" }
|
|
9469
|
+
}]
|
|
9470
|
+
},
|
|
9471
|
+
{
|
|
9472
|
+
id: "select.first",
|
|
9473
|
+
method: "first",
|
|
9474
|
+
label: {
|
|
9475
|
+
en: "First option",
|
|
9476
|
+
it: "Prima opzione"
|
|
9477
|
+
},
|
|
9478
|
+
phrase: {
|
|
9479
|
+
en: "Select the first option on {device}",
|
|
9480
|
+
it: "Seleziona la prima opzione su {device}"
|
|
9481
|
+
},
|
|
9482
|
+
icon: "chevron-first"
|
|
9483
|
+
},
|
|
9484
|
+
{
|
|
9485
|
+
id: "select.last",
|
|
9486
|
+
method: "last",
|
|
9487
|
+
label: {
|
|
9488
|
+
en: "Last option",
|
|
9489
|
+
it: "Ultima opzione"
|
|
9490
|
+
},
|
|
9491
|
+
phrase: {
|
|
9492
|
+
en: "Select the last option on {device}",
|
|
9493
|
+
it: "Seleziona l’ultima opzione su {device}"
|
|
9494
|
+
},
|
|
9495
|
+
icon: "chevron-last"
|
|
9496
|
+
}
|
|
9497
|
+
],
|
|
9413
9498
|
notOperatorFacing: { setValue: "the value shape depends on the control kind (numeric / select / text / datetime) read from status; a typed picker for it is a follow-up of the automations rework" },
|
|
9414
9499
|
state: [{
|
|
9415
9500
|
kind: "value",
|
|
@@ -14556,6 +14641,183 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
14556
14641
|
}
|
|
14557
14642
|
]
|
|
14558
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
|
+
},
|
|
14559
14821
|
"battery": {
|
|
14560
14822
|
scope: "device",
|
|
14561
14823
|
noun: {
|
|
@@ -15944,6 +16206,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
15944
16206
|
"viewer-ui",
|
|
15945
16207
|
"water-heater",
|
|
15946
16208
|
"weather",
|
|
16209
|
+
"weather-station",
|
|
15947
16210
|
"webrtc-session",
|
|
15948
16211
|
"zone-analytics",
|
|
15949
16212
|
"zone-rules",
|
|
@@ -16223,6 +16486,18 @@ Object.freeze({
|
|
|
16223
16486
|
"dry"
|
|
16224
16487
|
]
|
|
16225
16488
|
},
|
|
16489
|
+
{
|
|
16490
|
+
"path": "action",
|
|
16491
|
+
"valueType": "enum",
|
|
16492
|
+
"enumValues": [
|
|
16493
|
+
"heating",
|
|
16494
|
+
"cooling",
|
|
16495
|
+
"drying",
|
|
16496
|
+
"fan",
|
|
16497
|
+
"idle",
|
|
16498
|
+
"off"
|
|
16499
|
+
]
|
|
16500
|
+
},
|
|
16226
16501
|
{
|
|
16227
16502
|
"path": "fanMode",
|
|
16228
16503
|
"valueType": "string"
|
|
@@ -17910,6 +18185,56 @@ Object.freeze({
|
|
|
17910
18185
|
"valueType": "number"
|
|
17911
18186
|
}
|
|
17912
18187
|
],
|
|
18188
|
+
"weather-station": [
|
|
18189
|
+
{
|
|
18190
|
+
"path": "temperature",
|
|
18191
|
+
"valueType": "number"
|
|
18192
|
+
},
|
|
18193
|
+
{
|
|
18194
|
+
"path": "humidity",
|
|
18195
|
+
"valueType": "number"
|
|
18196
|
+
},
|
|
18197
|
+
{
|
|
18198
|
+
"path": "pressure",
|
|
18199
|
+
"valueType": "number"
|
|
18200
|
+
},
|
|
18201
|
+
{
|
|
18202
|
+
"path": "windSpeed",
|
|
18203
|
+
"valueType": "number"
|
|
18204
|
+
},
|
|
18205
|
+
{
|
|
18206
|
+
"path": "windGust",
|
|
18207
|
+
"valueType": "number"
|
|
18208
|
+
},
|
|
18209
|
+
{
|
|
18210
|
+
"path": "windBearing",
|
|
18211
|
+
"valueType": "number"
|
|
18212
|
+
},
|
|
18213
|
+
{
|
|
18214
|
+
"path": "rainRate",
|
|
18215
|
+
"valueType": "number"
|
|
18216
|
+
},
|
|
18217
|
+
{
|
|
18218
|
+
"path": "rainDaily",
|
|
18219
|
+
"valueType": "number"
|
|
18220
|
+
},
|
|
18221
|
+
{
|
|
18222
|
+
"path": "rainEvent",
|
|
18223
|
+
"valueType": "number"
|
|
18224
|
+
},
|
|
18225
|
+
{
|
|
18226
|
+
"path": "uv",
|
|
18227
|
+
"valueType": "number"
|
|
18228
|
+
},
|
|
18229
|
+
{
|
|
18230
|
+
"path": "solarRadiation",
|
|
18231
|
+
"valueType": "number"
|
|
18232
|
+
},
|
|
18233
|
+
{
|
|
18234
|
+
"path": "dewPoint",
|
|
18235
|
+
"valueType": "number"
|
|
18236
|
+
}
|
|
18237
|
+
],
|
|
17913
18238
|
"zone-analytics": [
|
|
17914
18239
|
{
|
|
17915
18240
|
"path": "ts",
|
|
@@ -18141,7 +18466,7 @@ function sleep(ms) {
|
|
|
18141
18466
|
return new Promise((resolve) => setTimeout(resolve, Math.max(0, ms)));
|
|
18142
18467
|
}
|
|
18143
18468
|
//#endregion
|
|
18144
|
-
//#region ../types/dist/implemented-methods-
|
|
18469
|
+
//#region ../types/dist/implemented-methods-C5FMXLGP.mjs
|
|
18145
18470
|
var AUDIO_ENCODER_BY_CODEC = {
|
|
18146
18471
|
opus: "libopus",
|
|
18147
18472
|
aac: "aac",
|
|
@@ -59288,9 +59613,26 @@ var HvacModeSchema = zod.z.enum([
|
|
|
59288
59613
|
"fan_only",
|
|
59289
59614
|
"dry"
|
|
59290
59615
|
]);
|
|
59616
|
+
/**
|
|
59617
|
+
* What the device is DOING right now, as opposed to the mode it is set to
|
|
59618
|
+
* (`mode: 'heat'` with the valve shut is `idle`). Optional and nullable: a
|
|
59619
|
+
* device that does not say leaves it absent or null, and a consumer reads that
|
|
59620
|
+
* as "unknown", never as `idle` (D393).
|
|
59621
|
+
*/
|
|
59622
|
+
var ClimateActionSchema = zod.z.enum([
|
|
59623
|
+
"heating",
|
|
59624
|
+
"cooling",
|
|
59625
|
+
"drying",
|
|
59626
|
+
"fan",
|
|
59627
|
+
"idle",
|
|
59628
|
+
"off"
|
|
59629
|
+
]);
|
|
59291
59630
|
var ClimateControlStatusSchema = zod.z.object({
|
|
59292
59631
|
/** Active HVAC mode. */
|
|
59293
59632
|
mode: HvacModeSchema,
|
|
59633
|
+
/** What the device is doing now (`heating` while the valve is open, `idle`
|
|
59634
|
+
* at setpoint). Absent or null = the device does not say; never a guess (D393). */
|
|
59635
|
+
action: ClimateActionSchema.nullable().optional(),
|
|
59294
59636
|
/** Available HVAC modes the device accepts. Subset of HvacMode. */
|
|
59295
59637
|
availableModes: zod.z.array(HvacModeSchema),
|
|
59296
59638
|
/** Active fan mode (`auto` / `low` / `medium` / `high` / `on` / `off`
|
|
@@ -59344,6 +59686,40 @@ var ClimateControlStatusSchema = zod.z.object({
|
|
|
59344
59686
|
/** Ms epoch when the slice was last updated (push or command). */
|
|
59345
59687
|
lastFetchedAt: zod.z.number()
|
|
59346
59688
|
});
|
|
59689
|
+
/**
|
|
59690
|
+
* Linked room sensor (Customize): the OPERATOR may replace the thermostat's own
|
|
59691
|
+
* `currentTemp` / `currentHumidity` with a sensor in the room. Never linked on
|
|
59692
|
+
* its own (D356). Once linked it ALWAYS replaces the native value, a null
|
|
59693
|
+
* native included — the operator chose the better reading.
|
|
59694
|
+
*/
|
|
59695
|
+
var CLIMATE_CUSTOMIZE_DEVICE_TYPES = [DeviceType.Climate];
|
|
59696
|
+
function roomSensorTarget(id, path) {
|
|
59697
|
+
return {
|
|
59698
|
+
id,
|
|
59699
|
+
cardinality: "scalar",
|
|
59700
|
+
vocabulary: {
|
|
59701
|
+
cap: "climate-control",
|
|
59702
|
+
stateField: path
|
|
59703
|
+
},
|
|
59704
|
+
deviceTypes: CLIMATE_CUSTOMIZE_DEVICE_TYPES,
|
|
59705
|
+
apply: "replace",
|
|
59706
|
+
path,
|
|
59707
|
+
sources: [{
|
|
59708
|
+
kind: "numeric",
|
|
59709
|
+
transforms: [{ kind: "identity" }]
|
|
59710
|
+
}],
|
|
59711
|
+
sourceReport: { status: "assignment-status" }
|
|
59712
|
+
};
|
|
59713
|
+
}
|
|
59714
|
+
var CLIMATE_CONTROL_TARGETS = [roomSensorTarget("room-temperature", "currentTemp"), roomSensorTarget("room-humidity", "currentHumidity")];
|
|
59715
|
+
var climateControlCustomize = {
|
|
59716
|
+
version: 1,
|
|
59717
|
+
overridable: CLIMATE_CONTROL_TARGETS.map((target) => ({
|
|
59718
|
+
path: target.path,
|
|
59719
|
+
by: target.id
|
|
59720
|
+
})),
|
|
59721
|
+
targets: CLIMATE_CONTROL_TARGETS
|
|
59722
|
+
};
|
|
59347
59723
|
var climateControlCapability = {
|
|
59348
59724
|
name: "climate-control",
|
|
59349
59725
|
scope: "device",
|
|
@@ -59654,6 +60030,7 @@ var climateControlCapability = {
|
|
|
59654
60030
|
* on every push without re-querying the provider.
|
|
59655
60031
|
*/
|
|
59656
60032
|
runtimeState: ClimateControlStatusSchema,
|
|
60033
|
+
customize: climateControlCustomize,
|
|
59657
60034
|
/**
|
|
59658
60035
|
* Runtime-state durability: **session** — as `brightness`; `currentTemp` moves continuously and is re-published on connect.
|
|
59659
60036
|
*
|
|
@@ -61048,20 +61425,95 @@ var ControlSetValueInputSchema = zod.z.discriminatedUnion("kind", [
|
|
|
61048
61425
|
value: zod.z.string().min(1)
|
|
61049
61426
|
})
|
|
61050
61427
|
]);
|
|
61428
|
+
/**
|
|
61429
|
+
* `next` / `previous` input (#544, operator scripts driving a selector).
|
|
61430
|
+
* `cycle` is a TOP-LEVEL default so a direct `ctx.api.control.next` call
|
|
61431
|
+
* (which skips the tRPC router's Zod parse) still gets `true` via
|
|
61432
|
+
* `CAP_INPUT_DEFAULTS` — matching HA's own `select_next` / `select_previous`
|
|
61433
|
+
* default.
|
|
61434
|
+
*/
|
|
61435
|
+
var ControlStepInputSchema = zod.z.object({
|
|
61436
|
+
deviceId: zod.z.number().int().nonnegative(),
|
|
61437
|
+
cycle: zod.z.boolean().default(true)
|
|
61438
|
+
});
|
|
61439
|
+
/** `first` / `last` input — no `cycle`, there is no boundary to stop at. */
|
|
61440
|
+
var ControlBoundaryInputSchema = zod.z.object({ deviceId: zod.z.number().int().nonnegative() });
|
|
61051
61441
|
var controlCapability = {
|
|
61052
61442
|
name: "control",
|
|
61053
61443
|
scope: "device",
|
|
61054
61444
|
deviceNative: true,
|
|
61055
61445
|
mode: "singleton",
|
|
61056
61446
|
deviceTypes: [DeviceType.Control],
|
|
61057
|
-
methods: {
|
|
61058
|
-
|
|
61059
|
-
|
|
61060
|
-
|
|
61061
|
-
|
|
61062
|
-
|
|
61063
|
-
|
|
61064
|
-
|
|
61447
|
+
methods: {
|
|
61448
|
+
setValue: method(zod.z.object({
|
|
61449
|
+
deviceId: zod.z.number().int().nonnegative(),
|
|
61450
|
+
control: ControlSetValueInputSchema
|
|
61451
|
+
}), zod.z.void(), {
|
|
61452
|
+
kind: "mutation",
|
|
61453
|
+
auth: "protected",
|
|
61454
|
+
notOperatorFacing: "the value shape depends on the control kind (numeric / select / text / datetime) read from status; a typed picker for it is a follow-up of the automations rework"
|
|
61455
|
+
}),
|
|
61456
|
+
/**
|
|
61457
|
+
* Select one step forward through `options` (#544). `providerOptional`
|
|
61458
|
+
* (hence `optionalMethod`): only a `kind: 'select'` provider implements
|
|
61459
|
+
* it — the stepping math is NOT re-derived per provider, it is the one
|
|
61460
|
+
* shared helper `selectNavigationMethods` (`control-select-navigation.ts`)
|
|
61461
|
+
* every select-kind driver spreads in.
|
|
61462
|
+
*/
|
|
61463
|
+
next: optionalMethod(ControlStepInputSchema, zod.z.void(), {
|
|
61464
|
+
kind: "mutation",
|
|
61465
|
+
auth: "protected",
|
|
61466
|
+
actions: [{
|
|
61467
|
+
id: "select.next",
|
|
61468
|
+
label: t("Next option", "Opzione successiva"),
|
|
61469
|
+
phrase: t("Select the next option on {device}", "Seleziona l’opzione successiva su {device}"),
|
|
61470
|
+
icon: "skip-forward",
|
|
61471
|
+
openArgs: [{
|
|
61472
|
+
key: "cycle",
|
|
61473
|
+
label: t("Wrap to the first option", "Ricomincia dalla prima opzione"),
|
|
61474
|
+
offer: { kind: "boolean" }
|
|
61475
|
+
}]
|
|
61476
|
+
}]
|
|
61477
|
+
}),
|
|
61478
|
+
/** Select one step backward through `options` (#544) — mirrors `next`. */
|
|
61479
|
+
previous: optionalMethod(ControlStepInputSchema, zod.z.void(), {
|
|
61480
|
+
kind: "mutation",
|
|
61481
|
+
auth: "protected",
|
|
61482
|
+
actions: [{
|
|
61483
|
+
id: "select.previous",
|
|
61484
|
+
label: t("Previous option", "Opzione precedente"),
|
|
61485
|
+
phrase: t("Select the previous option on {device}", "Seleziona l’opzione precedente su {device}"),
|
|
61486
|
+
icon: "skip-back",
|
|
61487
|
+
openArgs: [{
|
|
61488
|
+
key: "cycle",
|
|
61489
|
+
label: t("Wrap to the last option", "Ricomincia dall’ultima opzione"),
|
|
61490
|
+
offer: { kind: "boolean" }
|
|
61491
|
+
}]
|
|
61492
|
+
}]
|
|
61493
|
+
}),
|
|
61494
|
+
/** Select the first entry of `options` (#544). */
|
|
61495
|
+
first: optionalMethod(ControlBoundaryInputSchema, zod.z.void(), {
|
|
61496
|
+
kind: "mutation",
|
|
61497
|
+
auth: "protected",
|
|
61498
|
+
actions: [{
|
|
61499
|
+
id: "select.first",
|
|
61500
|
+
label: t("First option", "Prima opzione"),
|
|
61501
|
+
phrase: t("Select the first option on {device}", "Seleziona la prima opzione su {device}"),
|
|
61502
|
+
icon: "chevron-first"
|
|
61503
|
+
}]
|
|
61504
|
+
}),
|
|
61505
|
+
/** Select the last entry of `options` (#544). */
|
|
61506
|
+
last: optionalMethod(ControlBoundaryInputSchema, zod.z.void(), {
|
|
61507
|
+
kind: "mutation",
|
|
61508
|
+
auth: "protected",
|
|
61509
|
+
actions: [{
|
|
61510
|
+
id: "select.last",
|
|
61511
|
+
label: t("Last option", "Ultima opzione"),
|
|
61512
|
+
phrase: t("Select the last option on {device}", "Seleziona l’ultima opzione su {device}"),
|
|
61513
|
+
icon: "chevron-last"
|
|
61514
|
+
}]
|
|
61515
|
+
})
|
|
61516
|
+
},
|
|
61065
61517
|
status: {
|
|
61066
61518
|
schema: ControlStatusSchema,
|
|
61067
61519
|
kind: "push"
|
|
@@ -62063,7 +62515,7 @@ var mediaPlayerCapability = {
|
|
|
62063
62515
|
};
|
|
62064
62516
|
/**
|
|
62065
62517
|
* Customize catalog, projected from every `*.cap.ts` `customize` block.
|
|
62066
|
-
*
|
|
62518
|
+
* 12 caps. Field keys are `runtimeState` paths. No Zod.
|
|
62067
62519
|
*/
|
|
62068
62520
|
var CAP_CUSTOMIZE_CATALOG = {
|
|
62069
62521
|
"battery": {
|
|
@@ -62122,6 +62574,51 @@ var CAP_CUSTOMIZE_CATALOG = {
|
|
|
62122
62574
|
]
|
|
62123
62575
|
}]
|
|
62124
62576
|
},
|
|
62577
|
+
"climate-control": {
|
|
62578
|
+
version: 1,
|
|
62579
|
+
targets: [{
|
|
62580
|
+
id: "room-temperature",
|
|
62581
|
+
cardinality: "scalar",
|
|
62582
|
+
deviceTypes: [DeviceType.Climate],
|
|
62583
|
+
apply: "replace",
|
|
62584
|
+
vocabularyCap: "climate-control",
|
|
62585
|
+
vocabularyStateField: "currentTemp",
|
|
62586
|
+
sources: [{
|
|
62587
|
+
kind: "numeric",
|
|
62588
|
+
transformKinds: ["identity"],
|
|
62589
|
+
transforms: [{ kind: "identity" }]
|
|
62590
|
+
}],
|
|
62591
|
+
sourceReport: { status: "assignment-status" },
|
|
62592
|
+
advancedExpression: false,
|
|
62593
|
+
path: "currentTemp",
|
|
62594
|
+
valueKind: "number",
|
|
62595
|
+
nullable: true
|
|
62596
|
+
}, {
|
|
62597
|
+
id: "room-humidity",
|
|
62598
|
+
cardinality: "scalar",
|
|
62599
|
+
deviceTypes: [DeviceType.Climate],
|
|
62600
|
+
apply: "replace",
|
|
62601
|
+
vocabularyCap: "climate-control",
|
|
62602
|
+
vocabularyStateField: "currentHumidity",
|
|
62603
|
+
sources: [{
|
|
62604
|
+
kind: "numeric",
|
|
62605
|
+
transformKinds: ["identity"],
|
|
62606
|
+
transforms: [{ kind: "identity" }]
|
|
62607
|
+
}],
|
|
62608
|
+
sourceReport: { status: "assignment-status" },
|
|
62609
|
+
advancedExpression: false,
|
|
62610
|
+
path: "currentHumidity",
|
|
62611
|
+
valueKind: "number",
|
|
62612
|
+
nullable: true
|
|
62613
|
+
}],
|
|
62614
|
+
overridable: [{
|
|
62615
|
+
path: "currentTemp",
|
|
62616
|
+
by: "room-temperature"
|
|
62617
|
+
}, {
|
|
62618
|
+
path: "currentHumidity",
|
|
62619
|
+
by: "room-humidity"
|
|
62620
|
+
}]
|
|
62621
|
+
},
|
|
62125
62622
|
"consumables": {
|
|
62126
62623
|
version: 1,
|
|
62127
62624
|
targets: [{
|
|
@@ -62152,6 +62649,7 @@ var CAP_CUSTOMIZE_CATALOG = {
|
|
|
62152
62649
|
DeviceType.Control,
|
|
62153
62650
|
DeviceType.Presence,
|
|
62154
62651
|
DeviceType.Weather,
|
|
62652
|
+
DeviceType.WeatherStation,
|
|
62155
62653
|
DeviceType.Vacuum,
|
|
62156
62654
|
DeviceType.LawnMower,
|
|
62157
62655
|
DeviceType.Container,
|
|
@@ -63582,7 +64080,7 @@ var CHANGED = {
|
|
|
63582
64080
|
fieldPath: "lastChangedAt",
|
|
63583
64081
|
expr: "now"
|
|
63584
64082
|
};
|
|
63585
|
-
function numeric(input) {
|
|
64083
|
+
function numeric$1(input) {
|
|
63586
64084
|
const { alsoFrom, ...base } = input;
|
|
63587
64085
|
return {
|
|
63588
64086
|
...base,
|
|
@@ -63617,7 +64115,7 @@ function binary(input) {
|
|
|
63617
64115
|
};
|
|
63618
64116
|
}
|
|
63619
64117
|
var GROUP_TEMPLATES = [
|
|
63620
|
-
numeric({
|
|
64118
|
+
numeric$1({
|
|
63621
64119
|
id: "temperature",
|
|
63622
64120
|
summary: "Mean, median, min, max or sum of temperatures. Offline and unknown members are left out, never read as 0 °C.",
|
|
63623
64121
|
role: DeviceRole.TemperatureSensor,
|
|
@@ -63635,7 +64133,7 @@ var GROUP_TEMPLATES = [
|
|
|
63635
64133
|
}
|
|
63636
64134
|
}
|
|
63637
64135
|
}),
|
|
63638
|
-
numeric({
|
|
64136
|
+
numeric$1({
|
|
63639
64137
|
id: "humidity",
|
|
63640
64138
|
summary: "Humidity in percent. Offline and unknown members are left out, never read as 0 %.",
|
|
63641
64139
|
role: DeviceRole.HumiditySensor,
|
|
@@ -63653,7 +64151,7 @@ var GROUP_TEMPLATES = [
|
|
|
63653
64151
|
}
|
|
63654
64152
|
}
|
|
63655
64153
|
}),
|
|
63656
|
-
numeric({
|
|
64154
|
+
numeric$1({
|
|
63657
64155
|
id: "pressure",
|
|
63658
64156
|
summary: "Pressure in hectopascals. Offline and unknown members are left out, never read as 0 hPa.",
|
|
63659
64157
|
role: DeviceRole.PressureSensor,
|
|
@@ -63664,7 +64162,7 @@ var GROUP_TEMPLATES = [
|
|
|
63664
64162
|
empty: "null",
|
|
63665
64163
|
companions: [NOW$3]
|
|
63666
64164
|
}),
|
|
63667
|
-
numeric({
|
|
64165
|
+
numeric$1({
|
|
63668
64166
|
id: "illuminance",
|
|
63669
64167
|
summary: "Illuminance in lux. Offline and unknown members are left out, never read as 0 lx.",
|
|
63670
64168
|
role: DeviceRole.AmbientLightSensor,
|
|
@@ -63675,7 +64173,7 @@ var GROUP_TEMPLATES = [
|
|
|
63675
64173
|
empty: "null",
|
|
63676
64174
|
companions: [NOW$3]
|
|
63677
64175
|
}),
|
|
63678
|
-
numeric({
|
|
64176
|
+
numeric$1({
|
|
63679
64177
|
id: "power",
|
|
63680
64178
|
summary: "Power in watts, summed by default. Nobody reporting omits the key rather than writing 0 W.",
|
|
63681
64179
|
role: DeviceRole.PowerSensor,
|
|
@@ -63686,7 +64184,7 @@ var GROUP_TEMPLATES = [
|
|
|
63686
64184
|
empty: "omit",
|
|
63687
64185
|
companions: [NOW$3]
|
|
63688
64186
|
}),
|
|
63689
|
-
numeric({
|
|
64187
|
+
numeric$1({
|
|
63690
64188
|
id: "energy",
|
|
63691
64189
|
summary: "Energy in kilowatt-hours, summed by default. Nobody reporting omits the key rather than writing 0 kWh.",
|
|
63692
64190
|
role: DeviceRole.EnergySensor,
|
|
@@ -63697,7 +64195,7 @@ var GROUP_TEMPLATES = [
|
|
|
63697
64195
|
empty: "omit",
|
|
63698
64196
|
companions: [NOW$3]
|
|
63699
64197
|
}),
|
|
63700
|
-
numeric({
|
|
64198
|
+
numeric$1({
|
|
63701
64199
|
id: "battery",
|
|
63702
64200
|
summary: "Battery charge in percent. Offline and unknown members are left out, never read as 0 %.",
|
|
63703
64201
|
role: DeviceRole.BatterySensor,
|
|
@@ -63721,7 +64219,7 @@ var GROUP_TEMPLATES = [
|
|
|
63721
64219
|
}
|
|
63722
64220
|
]
|
|
63723
64221
|
}),
|
|
63724
|
-
numeric({
|
|
64222
|
+
numeric$1({
|
|
63725
64223
|
id: "numeric",
|
|
63726
64224
|
summary: "A numeric reading in the members’ shared quantity. Mixed quantities are refused. Nobody reporting publishes null, not 0.",
|
|
63727
64225
|
role: DeviceRole.NumericSensor,
|
|
@@ -63969,7 +64467,7 @@ function groupTemplate(id) {
|
|
|
63969
64467
|
}
|
|
63970
64468
|
/**
|
|
63971
64469
|
* Cap history catalog, projected from every `*.cap.ts` `history` block.
|
|
63972
|
-
* 45 caps with series (104 series),
|
|
64470
|
+
* 45 caps with series (104 series), 38 caps answered `'none'`.
|
|
63973
64471
|
* Field keys are `runtimeState` paths (`a.b` into fixed objects only).
|
|
63974
64472
|
*/
|
|
63975
64473
|
var HISTORY_CATALOG = {
|
|
@@ -66249,6 +66747,17 @@ var RawSecretMigrationReportSchema = zod.z.object({
|
|
|
66249
66747
|
* so a block that throws or never returns is marked `failed` and visible
|
|
66250
66748
|
* instead of taking the hub with it (D6). Every method here is admin-only, and
|
|
66251
66749
|
* must stay so.
|
|
66750
|
+
*
|
|
66751
|
+
* **Calling a device cap from a block.** `ctx.api.<cap>.<method>.mutate(...)`
|
|
66752
|
+
* is the same call an addon makes — e.g. driving a `select` / `input_select`
|
|
66753
|
+
* device through `control` (#544, a UniFi-triggered script cycling a scene
|
|
66754
|
+
* selector):
|
|
66755
|
+
*
|
|
66756
|
+
* ```ts
|
|
66757
|
+
* await ctx.api.control.next.mutate({ deviceId, cycle: true })
|
|
66758
|
+
* await ctx.api.control.first.mutate({ deviceId })
|
|
66759
|
+
* const status = await ctx.api.control.getStatus.query({ deviceId })
|
|
66760
|
+
* ```
|
|
66252
66761
|
*/
|
|
66253
66762
|
/**
|
|
66254
66763
|
* Prefix for a block's generated addon id AND its runner id — one addon, one
|
|
@@ -75740,6 +76249,7 @@ var HERO_SCENE_BY_TYPE = {
|
|
|
75740
76249
|
[DeviceType.Control]: "control-dial",
|
|
75741
76250
|
[DeviceType.Presence]: "presence",
|
|
75742
76251
|
[DeviceType.Weather]: "weather",
|
|
76252
|
+
[DeviceType.WeatherStation]: "weather",
|
|
75743
76253
|
[DeviceType.Vacuum]: "vacuum",
|
|
75744
76254
|
[DeviceType.LawnMower]: "lawn-mower",
|
|
75745
76255
|
[DeviceType.Container]: "generic",
|
|
@@ -90728,6 +91238,8 @@ var NcSystemEventKindSchema = zod.z.enum([
|
|
|
90728
91238
|
"storage-location-low",
|
|
90729
91239
|
"storage-location-critical",
|
|
90730
91240
|
"storage-location-ok",
|
|
91241
|
+
"storage-drain-progress",
|
|
91242
|
+
"storage-drain-complete",
|
|
90731
91243
|
"addon-crash-loop",
|
|
90732
91244
|
"addon-update-available",
|
|
90733
91245
|
"server-update-available",
|
|
@@ -108417,6 +108929,71 @@ var weatherCapability = {
|
|
|
108417
108929
|
]
|
|
108418
108930
|
}
|
|
108419
108931
|
};
|
|
108932
|
+
var WeatherStationStatusSchema = zod.z.object({
|
|
108933
|
+
temperature: zod.z.number().nullable().meta(readingMeta("temperature", { precision: 1 })),
|
|
108934
|
+
humidity: zod.z.number().min(0).max(100).nullable().meta(readingMeta("humidity")),
|
|
108935
|
+
pressure: zod.z.number().nullable().meta(readingMeta("pressure")),
|
|
108936
|
+
windSpeed: zod.z.number().nullable().meta(readingMeta("speed")),
|
|
108937
|
+
windGust: zod.z.number().nullable().meta(readingMeta("speed")),
|
|
108938
|
+
windBearing: zod.z.number().nullable().meta(readingMeta("angle")),
|
|
108939
|
+
rainRate: zod.z.number().nullable().meta(readingMeta("precipitation-rate", { precision: 1 })),
|
|
108940
|
+
rainDaily: zod.z.number().nullable().meta(readingMeta("precipitation", { precision: 1 })),
|
|
108941
|
+
rainEvent: zod.z.number().nullable().meta(readingMeta("precipitation", { precision: 1 })),
|
|
108942
|
+
uv: zod.z.number().nullable().meta(readingMeta("index", { precision: 1 })),
|
|
108943
|
+
solarRadiation: zod.z.number().nullable().meta(readingMeta("irradiance")),
|
|
108944
|
+
dewPoint: zod.z.number().nullable().meta(readingMeta("temperature", { precision: 1 }))
|
|
108945
|
+
}).extend({
|
|
108946
|
+
/** Ms epoch of the poll that produced this slice. 0 before the first one. */
|
|
108947
|
+
lastFetchedAt: zod.z.number() });
|
|
108948
|
+
var numeric = (field, quantity, label, unit, icon) => ({
|
|
108949
|
+
kind: "numeric",
|
|
108950
|
+
field,
|
|
108951
|
+
quantity,
|
|
108952
|
+
label,
|
|
108953
|
+
unit,
|
|
108954
|
+
icon
|
|
108955
|
+
});
|
|
108956
|
+
var weatherStationCapability = {
|
|
108957
|
+
name: "weather-station",
|
|
108958
|
+
scope: "device",
|
|
108959
|
+
deviceNative: true,
|
|
108960
|
+
mode: "singleton",
|
|
108961
|
+
deviceTypes: [DeviceType.WeatherStation],
|
|
108962
|
+
methods: {},
|
|
108963
|
+
status: {
|
|
108964
|
+
schema: WeatherStationStatusSchema,
|
|
108965
|
+
kind: "push"
|
|
108966
|
+
},
|
|
108967
|
+
runtimeState: WeatherStationStatusSchema,
|
|
108968
|
+
/**
|
|
108969
|
+
* The sensor children already record each reading. The station slice is the
|
|
108970
|
+
* live aggregate a template reads; it does not keep a second series.
|
|
108971
|
+
*/
|
|
108972
|
+
history: "none",
|
|
108973
|
+
/**
|
|
108974
|
+
* Runtime-state durability: **session** — a station reading is stale the
|
|
108975
|
+
* moment the hub is down; the provider re-reads on the next poll.
|
|
108976
|
+
*/
|
|
108977
|
+
durability: "session",
|
|
108978
|
+
vocabulary: {
|
|
108979
|
+
noun: t("Weather station", "Stazione meteo"),
|
|
108980
|
+
order: 5235,
|
|
108981
|
+
state: [
|
|
108982
|
+
numeric("temperature", t("the outdoor temperature", "la temperatura esterna"), t("Temperature", "Temperatura"), "°C", "thermometer"),
|
|
108983
|
+
numeric("humidity", t("the outdoor humidity", "l’umidità esterna"), t("Humidity", "Umidità"), "%", "droplets"),
|
|
108984
|
+
numeric("pressure", t("the air pressure", "la pressione atmosferica"), t("Pressure", "Pressione"), "hPa", "gauge"),
|
|
108985
|
+
numeric("windSpeed", t("the wind speed", "la velocità del vento"), t("Wind", "Vento"), "m/s", "wind"),
|
|
108986
|
+
numeric("windGust", t("the wind gust", "la raffica di vento"), t("Gust", "Raffica"), "m/s", "wind"),
|
|
108987
|
+
numeric("windBearing", t("the wind bearing", "la direzione del vento"), t("Wind bearing", "Direzione del vento"), "°", "wind"),
|
|
108988
|
+
numeric("rainRate", t("the rain rate", "l’intensità della pioggia"), t("Rain rate", "Intensità pioggia"), "mm/h", "droplets"),
|
|
108989
|
+
numeric("rainDaily", t("the rain today", "la pioggia di oggi"), t("Rain today", "Pioggia oggi"), "mm", "droplets"),
|
|
108990
|
+
numeric("rainEvent", t("the rain this event", "la pioggia di questo evento"), t("Rain event", "Evento di pioggia"), "mm", "droplets"),
|
|
108991
|
+
numeric("uv", t("the UV index", "l’indice UV"), t("UV", "UV"), "", "cloud-sun"),
|
|
108992
|
+
numeric("solarRadiation", t("the solar radiation", "la radiazione solare"), t("Solar", "Sole"), "W/m²", "cloud-sun"),
|
|
108993
|
+
numeric("dewPoint", t("the dew point", "il punto di rugiada"), t("Dew point", "Punto di rugiada"), "°C", "thermometer")
|
|
108994
|
+
]
|
|
108995
|
+
}
|
|
108996
|
+
};
|
|
108420
108997
|
/**
|
|
108421
108998
|
* Optional client-side hints sent at session creation to help the provider
|
|
108422
108999
|
* pick the best native source. All fields optional — a viewer that knows
|
|
@@ -109639,6 +110216,7 @@ var ALL_CAPABILITY_DEFINITIONS = [
|
|
|
109639
110216
|
viewerUiCapability,
|
|
109640
110217
|
waterHeaterCapability,
|
|
109641
110218
|
weatherCapability,
|
|
110219
|
+
weatherStationCapability,
|
|
109642
110220
|
webrtcSessionCapability,
|
|
109643
110221
|
zoneAnalyticsCapability,
|
|
109644
110222
|
zoneRulesCapability,
|
|
@@ -112299,6 +112877,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
|
|
|
112299
112877
|
vibration: vibrationCapability,
|
|
112300
112878
|
waterHeater: waterHeaterCapability,
|
|
112301
112879
|
weather: weatherCapability,
|
|
112880
|
+
weatherStation: weatherStationCapability,
|
|
112302
112881
|
zoneAnalytics: zoneAnalyticsCapability,
|
|
112303
112882
|
zoneRules: zoneRulesCapability,
|
|
112304
112883
|
zones: zonesCapability
|
|
@@ -113407,7 +113986,7 @@ var DeclaredDevices = class {
|
|
|
113407
113986
|
return removed;
|
|
113408
113987
|
}
|
|
113409
113988
|
};
|
|
113410
|
-
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;
|
|
113989
|
+
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;
|
|
113411
113990
|
new Set(Object.values(DeviceType));
|
|
113412
113991
|
/** True when a value is a navigable node: a plain object OR a tRPC v11 client
|
|
113413
113992
|
* proxy node (a callable `Proxy(noop)` → `typeof === 'function'`, NOT an
|
|
@@ -114793,6 +115372,17 @@ var SENSORS_FAMILY_CONTRIBUTIONS = {
|
|
|
114793
115372
|
doorbell: doorbellContribution,
|
|
114794
115373
|
meter: meterContribution,
|
|
114795
115374
|
weather: weatherContribution,
|
|
115375
|
+
"weather-station": contribution("weather-station", WeatherStationStatusSchema, (slice) => {
|
|
115376
|
+
if (slice === void 0 || slice.temperature === null) return { reading: reading("weather", "unknown") };
|
|
115377
|
+
const celsius = `${number(slice.temperature)}°C`;
|
|
115378
|
+
const facts = [fact("reading", "thermometer", t(celsius, celsius), "primary")];
|
|
115379
|
+
if (slice.humidity !== null) facts.push(fact("reading", "droplets", t(`${Math.round(slice.humidity)}%`, `${Math.round(slice.humidity)}%`)));
|
|
115380
|
+
if (slice.windSpeed !== null) facts.push(fact("reading", "wind", t(`${number(slice.windSpeed)} m/s`, `${number(slice.windSpeed)} m/s`)));
|
|
115381
|
+
return {
|
|
115382
|
+
reading: reading("weather", "on", false, t(celsius, celsius)),
|
|
115383
|
+
facts
|
|
115384
|
+
};
|
|
115385
|
+
}),
|
|
114796
115386
|
update: updateContribution,
|
|
114797
115387
|
image: imageContribution,
|
|
114798
115388
|
button: buttonContribution,
|
|
@@ -116301,6 +116891,7 @@ var HERO_LAYOUT_BY_TYPE = {
|
|
|
116301
116891
|
[DeviceType.Control]: CONTROL_LAYOUT,
|
|
116302
116892
|
[DeviceType.Presence]: HERO_LAYOUT_DEFAULT,
|
|
116303
116893
|
[DeviceType.Weather]: HERO_LAYOUT_DEFAULT,
|
|
116894
|
+
[DeviceType.WeatherStation]: HERO_LAYOUT_DEFAULT,
|
|
116304
116895
|
[DeviceType.Vacuum]: VACUUM_LAYOUT,
|
|
116305
116896
|
[DeviceType.LawnMower]: MOWER_LAYOUT,
|
|
116306
116897
|
[DeviceType.Container]: HERO_LAYOUT_DEFAULT,
|
|
@@ -117024,6 +117615,7 @@ var HERO_LOOK_BY_TYPE = {
|
|
|
117024
117615
|
[DeviceType.Control]: CONTROL_LOOK,
|
|
117025
117616
|
[DeviceType.Presence]: PRESENCE_LOOK,
|
|
117026
117617
|
[DeviceType.Weather]: WEATHER_LOOK,
|
|
117618
|
+
[DeviceType.WeatherStation]: WEATHER_LOOK,
|
|
117027
117619
|
[DeviceType.Vacuum]: VACUUM_LOOK,
|
|
117028
117620
|
[DeviceType.LawnMower]: MOWER_LOOK,
|
|
117029
117621
|
[DeviceType.Container]: HERO_LOOK_DEFAULT,
|
|
@@ -118704,6 +119296,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
118704
119296
|
access: "view",
|
|
118705
119297
|
role: "viewer"
|
|
118706
119298
|
},
|
|
119299
|
+
"control.first": {
|
|
119300
|
+
capName: "control",
|
|
119301
|
+
capScope: "device",
|
|
119302
|
+
addonId: null,
|
|
119303
|
+
access: "create",
|
|
119304
|
+
role: "viewer"
|
|
119305
|
+
},
|
|
118707
119306
|
"control.getStatus": {
|
|
118708
119307
|
capName: "control",
|
|
118709
119308
|
capScope: "device",
|
|
@@ -118711,6 +119310,27 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
118711
119310
|
access: "view",
|
|
118712
119311
|
role: "viewer"
|
|
118713
119312
|
},
|
|
119313
|
+
"control.last": {
|
|
119314
|
+
capName: "control",
|
|
119315
|
+
capScope: "device",
|
|
119316
|
+
addonId: null,
|
|
119317
|
+
access: "create",
|
|
119318
|
+
role: "viewer"
|
|
119319
|
+
},
|
|
119320
|
+
"control.next": {
|
|
119321
|
+
capName: "control",
|
|
119322
|
+
capScope: "device",
|
|
119323
|
+
addonId: null,
|
|
119324
|
+
access: "create",
|
|
119325
|
+
role: "viewer"
|
|
119326
|
+
},
|
|
119327
|
+
"control.previous": {
|
|
119328
|
+
capName: "control",
|
|
119329
|
+
capScope: "device",
|
|
119330
|
+
addonId: null,
|
|
119331
|
+
access: "create",
|
|
119332
|
+
role: "viewer"
|
|
119333
|
+
},
|
|
118714
119334
|
"control.setValue": {
|
|
118715
119335
|
capName: "control",
|
|
118716
119336
|
capScope: "device",
|
|
@@ -127657,6 +128277,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
127657
128277
|
access: "view",
|
|
127658
128278
|
role: "viewer"
|
|
127659
128279
|
},
|
|
128280
|
+
"weatherStation.getStatus": {
|
|
128281
|
+
capName: "weather-station",
|
|
128282
|
+
capScope: "device",
|
|
128283
|
+
addonId: null,
|
|
128284
|
+
access: "view",
|
|
128285
|
+
role: "viewer"
|
|
128286
|
+
},
|
|
127660
128287
|
"webrtcSession.addIceCandidate": {
|
|
127661
128288
|
capName: "webrtc-session",
|
|
127662
128289
|
capScope: "device",
|
|
@@ -128103,7 +128730,7 @@ function offered(received) {
|
|
|
128103
128730
|
};
|
|
128104
128731
|
}
|
|
128105
128732
|
offered(HA_AS), withheld(HOMEKIT_REASON), withheld(ALEXA_REASON), withheld(GOOGLE_REASON), withheld(MATTER_REASON);
|
|
128106
|
-
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;
|
|
128733
|
+
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;
|
|
128107
128734
|
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;
|
|
128108
128735
|
new Set(Object.values(DeviceType));
|
|
128109
128736
|
new Set(Object.values(DeviceRole));
|
|
@@ -128196,7 +128823,8 @@ var CAP_NAMES_WITH_STATUS = [
|
|
|
128196
128823
|
"valve",
|
|
128197
128824
|
"vibration",
|
|
128198
128825
|
"water-heater",
|
|
128199
|
-
"weather"
|
|
128826
|
+
"weather",
|
|
128827
|
+
"weather-station"
|
|
128200
128828
|
];
|
|
128201
128829
|
Object.freeze({
|
|
128202
128830
|
"accessories.getStatus": [{
|
|
@@ -128533,11 +129161,31 @@ Object.freeze({
|
|
|
128533
129161
|
form: "single",
|
|
128534
129162
|
optional: false
|
|
128535
129163
|
}],
|
|
129164
|
+
"control.first": [{
|
|
129165
|
+
name: "deviceId",
|
|
129166
|
+
form: "single",
|
|
129167
|
+
optional: false
|
|
129168
|
+
}],
|
|
128536
129169
|
"control.getStatus": [{
|
|
128537
129170
|
name: "deviceId",
|
|
128538
129171
|
form: "single",
|
|
128539
129172
|
optional: false
|
|
128540
129173
|
}],
|
|
129174
|
+
"control.last": [{
|
|
129175
|
+
name: "deviceId",
|
|
129176
|
+
form: "single",
|
|
129177
|
+
optional: false
|
|
129178
|
+
}],
|
|
129179
|
+
"control.next": [{
|
|
129180
|
+
name: "deviceId",
|
|
129181
|
+
form: "single",
|
|
129182
|
+
optional: false
|
|
129183
|
+
}],
|
|
129184
|
+
"control.previous": [{
|
|
129185
|
+
name: "deviceId",
|
|
129186
|
+
form: "single",
|
|
129187
|
+
optional: false
|
|
129188
|
+
}],
|
|
128541
129189
|
"control.setValue": [{
|
|
128542
129190
|
name: "deviceId",
|
|
128543
129191
|
form: "single",
|
|
@@ -131203,6 +131851,11 @@ Object.freeze({
|
|
|
131203
131851
|
form: "single",
|
|
131204
131852
|
optional: false
|
|
131205
131853
|
}],
|
|
131854
|
+
"weatherStation.getStatus": [{
|
|
131855
|
+
name: "deviceId",
|
|
131856
|
+
form: "single",
|
|
131857
|
+
optional: false
|
|
131858
|
+
}],
|
|
131206
131859
|
"webrtcSession.addIceCandidate": [{
|
|
131207
131860
|
name: "deviceId",
|
|
131208
131861
|
form: "single",
|
|
@@ -131326,7 +131979,7 @@ Object.freeze({
|
|
|
131326
131979
|
});
|
|
131327
131980
|
/**
|
|
131328
131981
|
* Per-cap runtime-state policy, projected from every `*.cap.ts` that declares
|
|
131329
|
-
* `runtimeState`.
|
|
131982
|
+
* `runtimeState`. 84 caps: 42 `restored`, 42 `session`.
|
|
131330
131983
|
*
|
|
131331
131984
|
* A cap absent from this map has no runtime-state slice at all. A cap PRESENT
|
|
131332
131985
|
* with `durability: 'session'` has one and has decided not to keep it.
|
|
@@ -131654,6 +132307,10 @@ var RUNTIME_STATE_POLICY = {
|
|
|
131654
132307
|
durability: "session",
|
|
131655
132308
|
volatileFields: []
|
|
131656
132309
|
},
|
|
132310
|
+
"weather-station": {
|
|
132311
|
+
durability: "session",
|
|
132312
|
+
volatileFields: []
|
|
132313
|
+
},
|
|
131657
132314
|
"zone-analytics": {
|
|
131658
132315
|
durability: "session",
|
|
131659
132316
|
volatileFields: []
|
|
@@ -131803,6 +132460,8 @@ new Map(Object.entries({
|
|
|
131803
132460
|
"storage-location-low": "system",
|
|
131804
132461
|
"storage-location-critical": "system",
|
|
131805
132462
|
"storage-location-ok": "system",
|
|
132463
|
+
"storage-drain-progress": "system",
|
|
132464
|
+
"storage-drain-complete": "system",
|
|
131806
132465
|
"alarm-triggered": "alarm",
|
|
131807
132466
|
"alarm-armed": "alarm",
|
|
131808
132467
|
"alarm-disarmed": "alarm",
|
|
@@ -131938,6 +132597,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
131938
132597
|
"storage-location-ok"
|
|
131939
132598
|
]
|
|
131940
132599
|
},
|
|
132600
|
+
{
|
|
132601
|
+
id: "storage-drain",
|
|
132602
|
+
family: "system",
|
|
132603
|
+
label: "Storage drain progress",
|
|
132604
|
+
kinds: ["storage-drain-progress", "storage-drain-complete"]
|
|
132605
|
+
},
|
|
131941
132606
|
{
|
|
131942
132607
|
id: "alerts",
|
|
131943
132608
|
family: "system",
|
|
@@ -132174,6 +132839,7 @@ var ALERT_EPISODE = [
|
|
|
132174
132839
|
"alert-error",
|
|
132175
132840
|
"alert-critical-resolved"
|
|
132176
132841
|
];
|
|
132842
|
+
var STORAGE_DRAIN = ["storage-drain-progress", "storage-drain-complete"];
|
|
132177
132843
|
var DEVICE_ATTENTION = ["device-attention-required", "device-attention-resolved"];
|
|
132178
132844
|
var UPDATES = [
|
|
132179
132845
|
"addon-update-available",
|
|
@@ -132397,8 +133063,16 @@ var STATE_SUMMARY_VARS = [
|
|
|
132397
133063
|
([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
|
|
132398
133064
|
([...RULE_TEXT], [...CONSUMABLE]),
|
|
132399
133065
|
[...RULE_TEXT],
|
|
132400
|
-
([...RULE_TEXT], [
|
|
132401
|
-
|
|
133066
|
+
([...RULE_TEXT], [
|
|
133067
|
+
...UPDATES,
|
|
133068
|
+
...STORAGE_DRAIN,
|
|
133069
|
+
...ALERT_EPISODE
|
|
133070
|
+
]),
|
|
133071
|
+
([...RULE_TEXT], [
|
|
133072
|
+
...UPDATES,
|
|
133073
|
+
...STORAGE_DRAIN,
|
|
133074
|
+
...ALERT_EPISODE
|
|
133075
|
+
]),
|
|
132402
133076
|
[...RULE_TEXT],
|
|
132403
133077
|
[...RULE_TEXT],
|
|
132404
133078
|
[...RULE_TEXT],
|
|
@@ -132412,6 +133086,9 @@ var STATE_SUMMARY_VARS = [
|
|
|
132412
133086
|
[...RULE_TEXT],
|
|
132413
133087
|
[...RULE_TEXT],
|
|
132414
133088
|
[...RULE_TEXT],
|
|
133089
|
+
([...RULE_TEXT], [...STORAGE_DRAIN]),
|
|
133090
|
+
([...RULE_TEXT], [...STORAGE_DRAIN]),
|
|
133091
|
+
[...RULE_TEXT],
|
|
132415
133092
|
[...RULE_TEXT],
|
|
132416
133093
|
[...RULE_TEXT],
|
|
132417
133094
|
[...RULE_TEXT],
|