@camstack/addon-provider-hikvision 1.2.173 → 1.2.174
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/dist/addon.js +2979 -147
- package/dist/addon.mjs +2979 -147
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -34,7 +34,7 @@ let node_os = require("node:os");
|
|
|
34
34
|
let node_net = require("node:net");
|
|
35
35
|
let node_http = require("node:http");
|
|
36
36
|
let node_https = require("node:https");
|
|
37
|
-
//#region ../types/dist/event-category-
|
|
37
|
+
//#region ../types/dist/event-category-DHXxB8t9.mjs
|
|
38
38
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
39
39
|
EventCategory["SystemBoot"] = "system.boot";
|
|
40
40
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -330,7 +330,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
330
330
|
* TRANSITION into that state (never per dispatch), and the node is dropped
|
|
331
331
|
* from the placement candidate set for as long as it holds.
|
|
332
332
|
*
|
|
333
|
-
* This exists because the state was previously invisible:
|
|
333
|
+
* This exists because the state was previously invisible: agent-a
|
|
334
334
|
* absorbed 283k inference errors in a day while still being handed cameras,
|
|
335
335
|
* and nothing in the system said so.
|
|
336
336
|
*
|
|
@@ -5469,7 +5469,7 @@ var ZodIssueCode = {
|
|
|
5469
5469
|
var ZodFirstPartyTypeKind;
|
|
5470
5470
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5471
5471
|
//#endregion
|
|
5472
|
-
//#region ../types/dist/sleep-
|
|
5472
|
+
//#region ../types/dist/sleep-BErAxhul.mjs
|
|
5473
5473
|
/**
|
|
5474
5474
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5475
5475
|
* window to float samples (D455).
|
|
@@ -8504,6 +8504,1980 @@ method(object({ deviceId: number() }), array(StreamSourceEntrySchema)), method(o
|
|
|
8504
8504
|
kind: "mutation",
|
|
8505
8505
|
auth: "admin"
|
|
8506
8506
|
}), method(object({ deviceId: number() }), unknown().nullable()), method(object({ deviceId: number() }), RawStateResultSchema.nullable(), { auth: "protected" });
|
|
8507
|
+
Object.freeze({ "doorbell": "lastPressedAt" });
|
|
8508
|
+
/** Every capability name, so addon code can check a name without the schema graph. */
|
|
8509
|
+
var CAP_NAMES = Object.freeze([
|
|
8510
|
+
"accessories",
|
|
8511
|
+
"addon-pages",
|
|
8512
|
+
"addon-pages-source",
|
|
8513
|
+
"addon-routes",
|
|
8514
|
+
"addon-settings",
|
|
8515
|
+
"addon-widgets",
|
|
8516
|
+
"addon-widgets-source",
|
|
8517
|
+
"addons",
|
|
8518
|
+
"admin-ui",
|
|
8519
|
+
"air-quality-sensor",
|
|
8520
|
+
"alarm-panel",
|
|
8521
|
+
"alerts",
|
|
8522
|
+
"ambient-light-sensor",
|
|
8523
|
+
"audio-analysis",
|
|
8524
|
+
"audio-analyzer",
|
|
8525
|
+
"audio-codec",
|
|
8526
|
+
"audio-metrics",
|
|
8527
|
+
"auth-provider",
|
|
8528
|
+
"automation-control",
|
|
8529
|
+
"backup",
|
|
8530
|
+
"battery",
|
|
8531
|
+
"binary",
|
|
8532
|
+
"brightness",
|
|
8533
|
+
"broker",
|
|
8534
|
+
"button",
|
|
8535
|
+
"calendar-source",
|
|
8536
|
+
"calendars",
|
|
8537
|
+
"camera-credentials",
|
|
8538
|
+
"camera-grid-layout",
|
|
8539
|
+
"camera-pipeline-config",
|
|
8540
|
+
"camera-streams",
|
|
8541
|
+
"carbon-monoxide",
|
|
8542
|
+
"climate-control",
|
|
8543
|
+
"color",
|
|
8544
|
+
"composer",
|
|
8545
|
+
"connection-test",
|
|
8546
|
+
"connectivity",
|
|
8547
|
+
"consumables",
|
|
8548
|
+
"contact",
|
|
8549
|
+
"control",
|
|
8550
|
+
"core-blocks",
|
|
8551
|
+
"cover",
|
|
8552
|
+
"custom-model-registry",
|
|
8553
|
+
"data-store-provider",
|
|
8554
|
+
"database-snapshot",
|
|
8555
|
+
"day-night",
|
|
8556
|
+
"decoder",
|
|
8557
|
+
"detection-pipeline",
|
|
8558
|
+
"device-admin-link",
|
|
8559
|
+
"device-adoption",
|
|
8560
|
+
"device-credentials",
|
|
8561
|
+
"device-discovery",
|
|
8562
|
+
"device-export",
|
|
8563
|
+
"device-extension",
|
|
8564
|
+
"device-history",
|
|
8565
|
+
"device-manager",
|
|
8566
|
+
"device-ops",
|
|
8567
|
+
"device-provider",
|
|
8568
|
+
"device-removal-hook",
|
|
8569
|
+
"device-state",
|
|
8570
|
+
"device-status",
|
|
8571
|
+
"dishwasher",
|
|
8572
|
+
"display-palette",
|
|
8573
|
+
"doorbell",
|
|
8574
|
+
"embedding-encoder",
|
|
8575
|
+
"enum-sensor",
|
|
8576
|
+
"event-emitter",
|
|
8577
|
+
"face-gallery",
|
|
8578
|
+
"failure-contribution",
|
|
8579
|
+
"fan-control",
|
|
8580
|
+
"feature-probe",
|
|
8581
|
+
"filesystem-browse",
|
|
8582
|
+
"flood",
|
|
8583
|
+
"gas",
|
|
8584
|
+
"heating-valve",
|
|
8585
|
+
"humidifier",
|
|
8586
|
+
"humidity-sensor",
|
|
8587
|
+
"image",
|
|
8588
|
+
"image-settings",
|
|
8589
|
+
"integrations",
|
|
8590
|
+
"intercom",
|
|
8591
|
+
"keychain",
|
|
8592
|
+
"keychain-admin",
|
|
8593
|
+
"lawn-mower-control",
|
|
8594
|
+
"llm",
|
|
8595
|
+
"llm-runtime",
|
|
8596
|
+
"load-contribution",
|
|
8597
|
+
"local-network",
|
|
8598
|
+
"lock-control",
|
|
8599
|
+
"log-channels",
|
|
8600
|
+
"log-destination",
|
|
8601
|
+
"login-method",
|
|
8602
|
+
"media-player",
|
|
8603
|
+
"mesh-network",
|
|
8604
|
+
"metrics-provider",
|
|
8605
|
+
"model-convert",
|
|
8606
|
+
"model-distributor",
|
|
8607
|
+
"motion",
|
|
8608
|
+
"motion-detection",
|
|
8609
|
+
"motion-trigger",
|
|
8610
|
+
"motion-zones",
|
|
8611
|
+
"mqtt-broker",
|
|
8612
|
+
"native-object-detection",
|
|
8613
|
+
"navigation",
|
|
8614
|
+
"network-access",
|
|
8615
|
+
"network-link",
|
|
8616
|
+
"network-quality",
|
|
8617
|
+
"node-certificates",
|
|
8618
|
+
"nodes",
|
|
8619
|
+
"notification-output",
|
|
8620
|
+
"notification-rules",
|
|
8621
|
+
"notifier",
|
|
8622
|
+
"numeric-sensor",
|
|
8623
|
+
"oauth-integration",
|
|
8624
|
+
"oidc-connections",
|
|
8625
|
+
"osd",
|
|
8626
|
+
"osd-manager",
|
|
8627
|
+
"pet-feeder",
|
|
8628
|
+
"pipeline-analytics",
|
|
8629
|
+
"pipeline-executor",
|
|
8630
|
+
"pipeline-orchestrator",
|
|
8631
|
+
"pipeline-runner",
|
|
8632
|
+
"plate-gallery",
|
|
8633
|
+
"platform-probe",
|
|
8634
|
+
"power-meter",
|
|
8635
|
+
"presence",
|
|
8636
|
+
"pressure-sensor",
|
|
8637
|
+
"privacy-mask",
|
|
8638
|
+
"ptz",
|
|
8639
|
+
"ptz-autotrack",
|
|
8640
|
+
"reboot",
|
|
8641
|
+
"record-entries",
|
|
8642
|
+
"recording",
|
|
8643
|
+
"recording-archive",
|
|
8644
|
+
"recording-export",
|
|
8645
|
+
"recording-onboard",
|
|
8646
|
+
"recording-signal",
|
|
8647
|
+
"records",
|
|
8648
|
+
"running-state",
|
|
8649
|
+
"scene-monitor",
|
|
8650
|
+
"script-runner",
|
|
8651
|
+
"server-management",
|
|
8652
|
+
"settings-store",
|
|
8653
|
+
"smoke",
|
|
8654
|
+
"smtp-provider",
|
|
8655
|
+
"snapshot",
|
|
8656
|
+
"sso-bridge",
|
|
8657
|
+
"storage",
|
|
8658
|
+
"storage-admin",
|
|
8659
|
+
"storage-evictable",
|
|
8660
|
+
"storage-migration",
|
|
8661
|
+
"storage-occupancy",
|
|
8662
|
+
"storage-provider",
|
|
8663
|
+
"stream-broker",
|
|
8664
|
+
"stream-catalog",
|
|
8665
|
+
"stream-params",
|
|
8666
|
+
"stream-signals",
|
|
8667
|
+
"switch",
|
|
8668
|
+
"system",
|
|
8669
|
+
"tamper",
|
|
8670
|
+
"temperature-sensor",
|
|
8671
|
+
"terminal-session",
|
|
8672
|
+
"toast",
|
|
8673
|
+
"training",
|
|
8674
|
+
"training-provider",
|
|
8675
|
+
"turn-provider",
|
|
8676
|
+
"update",
|
|
8677
|
+
"user-management",
|
|
8678
|
+
"user-passkeys",
|
|
8679
|
+
"vacuum-control",
|
|
8680
|
+
"valve",
|
|
8681
|
+
"vector-store",
|
|
8682
|
+
"vibration",
|
|
8683
|
+
"videoclips",
|
|
8684
|
+
"viewer-ui",
|
|
8685
|
+
"water-heater",
|
|
8686
|
+
"weather",
|
|
8687
|
+
"webrtc-session",
|
|
8688
|
+
"zone-analytics",
|
|
8689
|
+
"zone-rules",
|
|
8690
|
+
"zones"
|
|
8691
|
+
]);
|
|
8692
|
+
Object.freeze({
|
|
8693
|
+
"air-quality-sensor": [
|
|
8694
|
+
{
|
|
8695
|
+
"path": "co2Ppm",
|
|
8696
|
+
"valueType": "number"
|
|
8697
|
+
},
|
|
8698
|
+
{
|
|
8699
|
+
"path": "vocPpb",
|
|
8700
|
+
"valueType": "number"
|
|
8701
|
+
},
|
|
8702
|
+
{
|
|
8703
|
+
"path": "pm25",
|
|
8704
|
+
"valueType": "number"
|
|
8705
|
+
},
|
|
8706
|
+
{
|
|
8707
|
+
"path": "pm10",
|
|
8708
|
+
"valueType": "number"
|
|
8709
|
+
},
|
|
8710
|
+
{
|
|
8711
|
+
"path": "aqi",
|
|
8712
|
+
"valueType": "number"
|
|
8713
|
+
},
|
|
8714
|
+
{
|
|
8715
|
+
"path": "unit",
|
|
8716
|
+
"valueType": "string"
|
|
8717
|
+
},
|
|
8718
|
+
{
|
|
8719
|
+
"path": "precision",
|
|
8720
|
+
"valueType": "number"
|
|
8721
|
+
}
|
|
8722
|
+
],
|
|
8723
|
+
"alarm-panel": [
|
|
8724
|
+
{
|
|
8725
|
+
"path": "state",
|
|
8726
|
+
"valueType": "enum",
|
|
8727
|
+
"enumValues": [
|
|
8728
|
+
"disarmed",
|
|
8729
|
+
"armed_home",
|
|
8730
|
+
"armed_away",
|
|
8731
|
+
"armed_night",
|
|
8732
|
+
"armed_vacation",
|
|
8733
|
+
"armed_custom_bypass",
|
|
8734
|
+
"arming",
|
|
8735
|
+
"disarming",
|
|
8736
|
+
"pending",
|
|
8737
|
+
"triggered"
|
|
8738
|
+
]
|
|
8739
|
+
},
|
|
8740
|
+
{
|
|
8741
|
+
"path": "targetMode",
|
|
8742
|
+
"valueType": "enum",
|
|
8743
|
+
"enumValues": [
|
|
8744
|
+
"home",
|
|
8745
|
+
"away",
|
|
8746
|
+
"night",
|
|
8747
|
+
"vacation",
|
|
8748
|
+
"custom_bypass"
|
|
8749
|
+
]
|
|
8750
|
+
},
|
|
8751
|
+
{
|
|
8752
|
+
"path": "requiresCode",
|
|
8753
|
+
"valueType": "boolean"
|
|
8754
|
+
}
|
|
8755
|
+
],
|
|
8756
|
+
"ambient-light-sensor": [
|
|
8757
|
+
{
|
|
8758
|
+
"path": "lux",
|
|
8759
|
+
"valueType": "number"
|
|
8760
|
+
},
|
|
8761
|
+
{
|
|
8762
|
+
"path": "unit",
|
|
8763
|
+
"valueType": "string"
|
|
8764
|
+
},
|
|
8765
|
+
{
|
|
8766
|
+
"path": "precision",
|
|
8767
|
+
"valueType": "number"
|
|
8768
|
+
}
|
|
8769
|
+
],
|
|
8770
|
+
"audio-metrics": [
|
|
8771
|
+
{
|
|
8772
|
+
"path": "ts",
|
|
8773
|
+
"valueType": "number"
|
|
8774
|
+
},
|
|
8775
|
+
{
|
|
8776
|
+
"path": "windowSec",
|
|
8777
|
+
"valueType": "number"
|
|
8778
|
+
},
|
|
8779
|
+
{
|
|
8780
|
+
"path": "level.rms",
|
|
8781
|
+
"valueType": "number"
|
|
8782
|
+
},
|
|
8783
|
+
{
|
|
8784
|
+
"path": "level.dbfs",
|
|
8785
|
+
"valueType": "number"
|
|
8786
|
+
},
|
|
8787
|
+
{
|
|
8788
|
+
"path": "peakDbfs",
|
|
8789
|
+
"valueType": "number"
|
|
8790
|
+
},
|
|
8791
|
+
{
|
|
8792
|
+
"path": "avgDbfs",
|
|
8793
|
+
"valueType": "number"
|
|
8794
|
+
},
|
|
8795
|
+
{
|
|
8796
|
+
"path": "current.className",
|
|
8797
|
+
"valueType": "string"
|
|
8798
|
+
},
|
|
8799
|
+
{
|
|
8800
|
+
"path": "current.score",
|
|
8801
|
+
"valueType": "number"
|
|
8802
|
+
},
|
|
8803
|
+
{
|
|
8804
|
+
"path": "current.timestamp",
|
|
8805
|
+
"valueType": "number"
|
|
8806
|
+
}
|
|
8807
|
+
],
|
|
8808
|
+
"automation-control": [
|
|
8809
|
+
{
|
|
8810
|
+
"path": "enabled",
|
|
8811
|
+
"valueType": "boolean"
|
|
8812
|
+
},
|
|
8813
|
+
{
|
|
8814
|
+
"path": "isRunning",
|
|
8815
|
+
"valueType": "boolean"
|
|
8816
|
+
},
|
|
8817
|
+
{
|
|
8818
|
+
"path": "lastTriggeredAt",
|
|
8819
|
+
"valueType": "number"
|
|
8820
|
+
},
|
|
8821
|
+
{
|
|
8822
|
+
"path": "lastError",
|
|
8823
|
+
"valueType": "string"
|
|
8824
|
+
}
|
|
8825
|
+
],
|
|
8826
|
+
"battery": [
|
|
8827
|
+
{
|
|
8828
|
+
"path": "percentage",
|
|
8829
|
+
"valueType": "number"
|
|
8830
|
+
},
|
|
8831
|
+
{
|
|
8832
|
+
"path": "charging",
|
|
8833
|
+
"valueType": "enum",
|
|
8834
|
+
"enumValues": [
|
|
8835
|
+
"dc",
|
|
8836
|
+
"solar",
|
|
8837
|
+
"none",
|
|
8838
|
+
"unknown"
|
|
8839
|
+
]
|
|
8840
|
+
},
|
|
8841
|
+
{
|
|
8842
|
+
"path": "sleeping",
|
|
8843
|
+
"valueType": "boolean"
|
|
8844
|
+
},
|
|
8845
|
+
{
|
|
8846
|
+
"path": "lastUpdated",
|
|
8847
|
+
"valueType": "number"
|
|
8848
|
+
},
|
|
8849
|
+
{
|
|
8850
|
+
"path": "lastContactAt",
|
|
8851
|
+
"valueType": "number"
|
|
8852
|
+
},
|
|
8853
|
+
{
|
|
8854
|
+
"path": "lastFullRefreshAt",
|
|
8855
|
+
"valueType": "number"
|
|
8856
|
+
},
|
|
8857
|
+
{
|
|
8858
|
+
"path": "binary",
|
|
8859
|
+
"valueType": "boolean"
|
|
8860
|
+
}
|
|
8861
|
+
],
|
|
8862
|
+
"binary": [{
|
|
8863
|
+
"path": "on",
|
|
8864
|
+
"valueType": "boolean"
|
|
8865
|
+
}],
|
|
8866
|
+
"brightness": [{
|
|
8867
|
+
"path": "percentage",
|
|
8868
|
+
"valueType": "number"
|
|
8869
|
+
}],
|
|
8870
|
+
"broker": [{
|
|
8871
|
+
"path": "brokerCount",
|
|
8872
|
+
"valueType": "number"
|
|
8873
|
+
}, {
|
|
8874
|
+
"path": "connectedCount",
|
|
8875
|
+
"valueType": "number"
|
|
8876
|
+
}],
|
|
8877
|
+
"camera-credentials": [
|
|
8878
|
+
{
|
|
8879
|
+
"path": "host",
|
|
8880
|
+
"valueType": "string"
|
|
8881
|
+
},
|
|
8882
|
+
{
|
|
8883
|
+
"path": "port",
|
|
8884
|
+
"valueType": "number"
|
|
8885
|
+
},
|
|
8886
|
+
{
|
|
8887
|
+
"path": "onvifPort",
|
|
8888
|
+
"valueType": "number"
|
|
8889
|
+
},
|
|
8890
|
+
{
|
|
8891
|
+
"path": "rtspPort",
|
|
8892
|
+
"valueType": "number"
|
|
8893
|
+
},
|
|
8894
|
+
{
|
|
8895
|
+
"path": "https",
|
|
8896
|
+
"valueType": "boolean"
|
|
8897
|
+
},
|
|
8898
|
+
{
|
|
8899
|
+
"path": "hasUsername",
|
|
8900
|
+
"valueType": "boolean"
|
|
8901
|
+
},
|
|
8902
|
+
{
|
|
8903
|
+
"path": "hasPassword",
|
|
8904
|
+
"valueType": "boolean"
|
|
8905
|
+
},
|
|
8906
|
+
{
|
|
8907
|
+
"path": "onvifProfile",
|
|
8908
|
+
"valueType": "string"
|
|
8909
|
+
}
|
|
8910
|
+
],
|
|
8911
|
+
"camera-streams": [
|
|
8912
|
+
{
|
|
8913
|
+
"path": "online",
|
|
8914
|
+
"valueType": "boolean"
|
|
8915
|
+
},
|
|
8916
|
+
{
|
|
8917
|
+
"path": "slotStatuses.high",
|
|
8918
|
+
"valueType": "enum",
|
|
8919
|
+
"enumValues": [
|
|
8920
|
+
"unassigned",
|
|
8921
|
+
"idle",
|
|
8922
|
+
"connecting",
|
|
8923
|
+
"streaming",
|
|
8924
|
+
"error"
|
|
8925
|
+
]
|
|
8926
|
+
},
|
|
8927
|
+
{
|
|
8928
|
+
"path": "slotStatuses.mid",
|
|
8929
|
+
"valueType": "enum",
|
|
8930
|
+
"enumValues": [
|
|
8931
|
+
"unassigned",
|
|
8932
|
+
"idle",
|
|
8933
|
+
"connecting",
|
|
8934
|
+
"streaming",
|
|
8935
|
+
"error"
|
|
8936
|
+
]
|
|
8937
|
+
},
|
|
8938
|
+
{
|
|
8939
|
+
"path": "slotStatuses.low",
|
|
8940
|
+
"valueType": "enum",
|
|
8941
|
+
"enumValues": [
|
|
8942
|
+
"unassigned",
|
|
8943
|
+
"idle",
|
|
8944
|
+
"connecting",
|
|
8945
|
+
"streaming",
|
|
8946
|
+
"error"
|
|
8947
|
+
]
|
|
8948
|
+
},
|
|
8949
|
+
{
|
|
8950
|
+
"path": "slotErrors.high",
|
|
8951
|
+
"valueType": "string"
|
|
8952
|
+
},
|
|
8953
|
+
{
|
|
8954
|
+
"path": "slotErrors.mid",
|
|
8955
|
+
"valueType": "string"
|
|
8956
|
+
},
|
|
8957
|
+
{
|
|
8958
|
+
"path": "slotErrors.low",
|
|
8959
|
+
"valueType": "string"
|
|
8960
|
+
}
|
|
8961
|
+
],
|
|
8962
|
+
"carbon-monoxide": [{
|
|
8963
|
+
"path": "detected",
|
|
8964
|
+
"valueType": "boolean"
|
|
8965
|
+
}],
|
|
8966
|
+
"climate-control": [
|
|
8967
|
+
{
|
|
8968
|
+
"path": "mode",
|
|
8969
|
+
"valueType": "enum",
|
|
8970
|
+
"enumValues": [
|
|
8971
|
+
"off",
|
|
8972
|
+
"heat",
|
|
8973
|
+
"cool",
|
|
8974
|
+
"auto",
|
|
8975
|
+
"heat_cool",
|
|
8976
|
+
"fan_only",
|
|
8977
|
+
"dry"
|
|
8978
|
+
]
|
|
8979
|
+
},
|
|
8980
|
+
{
|
|
8981
|
+
"path": "fanMode",
|
|
8982
|
+
"valueType": "string"
|
|
8983
|
+
},
|
|
8984
|
+
{
|
|
8985
|
+
"path": "preset",
|
|
8986
|
+
"valueType": "string"
|
|
8987
|
+
},
|
|
8988
|
+
{
|
|
8989
|
+
"path": "target",
|
|
8990
|
+
"valueType": "number"
|
|
8991
|
+
},
|
|
8992
|
+
{
|
|
8993
|
+
"path": "targetHigh",
|
|
8994
|
+
"valueType": "number"
|
|
8995
|
+
},
|
|
8996
|
+
{
|
|
8997
|
+
"path": "targetLow",
|
|
8998
|
+
"valueType": "number"
|
|
8999
|
+
},
|
|
9000
|
+
{
|
|
9001
|
+
"path": "targetHumidity",
|
|
9002
|
+
"valueType": "number"
|
|
9003
|
+
},
|
|
9004
|
+
{
|
|
9005
|
+
"path": "currentTemp",
|
|
9006
|
+
"valueType": "number"
|
|
9007
|
+
},
|
|
9008
|
+
{
|
|
9009
|
+
"path": "currentHumidity",
|
|
9010
|
+
"valueType": "number"
|
|
9011
|
+
},
|
|
9012
|
+
{
|
|
9013
|
+
"path": "swingVertical",
|
|
9014
|
+
"valueType": "boolean"
|
|
9015
|
+
},
|
|
9016
|
+
{
|
|
9017
|
+
"path": "swingHorizontal",
|
|
9018
|
+
"valueType": "boolean"
|
|
9019
|
+
},
|
|
9020
|
+
{
|
|
9021
|
+
"path": "minTemp",
|
|
9022
|
+
"valueType": "number"
|
|
9023
|
+
},
|
|
9024
|
+
{
|
|
9025
|
+
"path": "maxTemp",
|
|
9026
|
+
"valueType": "number"
|
|
9027
|
+
},
|
|
9028
|
+
{
|
|
9029
|
+
"path": "tempStep",
|
|
9030
|
+
"valueType": "number"
|
|
9031
|
+
}
|
|
9032
|
+
],
|
|
9033
|
+
"color": [
|
|
9034
|
+
{
|
|
9035
|
+
"path": "mode",
|
|
9036
|
+
"valueType": "enum",
|
|
9037
|
+
"enumValues": [
|
|
9038
|
+
"rgb",
|
|
9039
|
+
"hsv",
|
|
9040
|
+
"mired"
|
|
9041
|
+
]
|
|
9042
|
+
},
|
|
9043
|
+
{
|
|
9044
|
+
"path": "rgb.r",
|
|
9045
|
+
"valueType": "number"
|
|
9046
|
+
},
|
|
9047
|
+
{
|
|
9048
|
+
"path": "rgb.g",
|
|
9049
|
+
"valueType": "number"
|
|
9050
|
+
},
|
|
9051
|
+
{
|
|
9052
|
+
"path": "rgb.b",
|
|
9053
|
+
"valueType": "number"
|
|
9054
|
+
},
|
|
9055
|
+
{
|
|
9056
|
+
"path": "hsv.h",
|
|
9057
|
+
"valueType": "number"
|
|
9058
|
+
},
|
|
9059
|
+
{
|
|
9060
|
+
"path": "hsv.s",
|
|
9061
|
+
"valueType": "number"
|
|
9062
|
+
},
|
|
9063
|
+
{
|
|
9064
|
+
"path": "hsv.v",
|
|
9065
|
+
"valueType": "number"
|
|
9066
|
+
},
|
|
9067
|
+
{
|
|
9068
|
+
"path": "mireds",
|
|
9069
|
+
"valueType": "number"
|
|
9070
|
+
}
|
|
9071
|
+
],
|
|
9072
|
+
"connectivity": [{
|
|
9073
|
+
"path": "connected",
|
|
9074
|
+
"valueType": "boolean"
|
|
9075
|
+
}],
|
|
9076
|
+
"contact": [{
|
|
9077
|
+
"path": "entryOpen",
|
|
9078
|
+
"valueType": "boolean"
|
|
9079
|
+
}],
|
|
9080
|
+
"control": [
|
|
9081
|
+
{
|
|
9082
|
+
"path": "kind",
|
|
9083
|
+
"valueType": "enum",
|
|
9084
|
+
"enumValues": [
|
|
9085
|
+
"numeric",
|
|
9086
|
+
"select",
|
|
9087
|
+
"text",
|
|
9088
|
+
"datetime"
|
|
9089
|
+
]
|
|
9090
|
+
},
|
|
9091
|
+
{
|
|
9092
|
+
"path": "unit",
|
|
9093
|
+
"valueType": "string"
|
|
9094
|
+
},
|
|
9095
|
+
{
|
|
9096
|
+
"path": "min",
|
|
9097
|
+
"valueType": "number"
|
|
9098
|
+
},
|
|
9099
|
+
{
|
|
9100
|
+
"path": "max",
|
|
9101
|
+
"valueType": "number"
|
|
9102
|
+
},
|
|
9103
|
+
{
|
|
9104
|
+
"path": "step",
|
|
9105
|
+
"valueType": "number"
|
|
9106
|
+
},
|
|
9107
|
+
{
|
|
9108
|
+
"path": "precision",
|
|
9109
|
+
"valueType": "number"
|
|
9110
|
+
},
|
|
9111
|
+
{
|
|
9112
|
+
"path": "format",
|
|
9113
|
+
"valueType": "enum",
|
|
9114
|
+
"enumValues": [
|
|
9115
|
+
"date",
|
|
9116
|
+
"time",
|
|
9117
|
+
"datetime"
|
|
9118
|
+
]
|
|
9119
|
+
}
|
|
9120
|
+
],
|
|
9121
|
+
"cover": [
|
|
9122
|
+
{
|
|
9123
|
+
"path": "state",
|
|
9124
|
+
"valueType": "enum",
|
|
9125
|
+
"enumValues": [
|
|
9126
|
+
"open",
|
|
9127
|
+
"opening",
|
|
9128
|
+
"closing",
|
|
9129
|
+
"closed",
|
|
9130
|
+
"stopped"
|
|
9131
|
+
]
|
|
9132
|
+
},
|
|
9133
|
+
{
|
|
9134
|
+
"path": "position",
|
|
9135
|
+
"valueType": "number"
|
|
9136
|
+
},
|
|
9137
|
+
{
|
|
9138
|
+
"path": "tiltPosition",
|
|
9139
|
+
"valueType": "number"
|
|
9140
|
+
}
|
|
9141
|
+
],
|
|
9142
|
+
"day-night": [
|
|
9143
|
+
{
|
|
9144
|
+
"path": "mode",
|
|
9145
|
+
"valueType": "enum",
|
|
9146
|
+
"enumValues": [
|
|
9147
|
+
"auto",
|
|
9148
|
+
"day",
|
|
9149
|
+
"night",
|
|
9150
|
+
"schedule"
|
|
9151
|
+
]
|
|
9152
|
+
},
|
|
9153
|
+
{
|
|
9154
|
+
"path": "sensitivity",
|
|
9155
|
+
"valueType": "number"
|
|
9156
|
+
},
|
|
9157
|
+
{
|
|
9158
|
+
"path": "switchDelaySec",
|
|
9159
|
+
"valueType": "number"
|
|
9160
|
+
}
|
|
9161
|
+
],
|
|
9162
|
+
"device-adoption": [
|
|
9163
|
+
{
|
|
9164
|
+
"path": "lastDiscoveryAt",
|
|
9165
|
+
"valueType": "number"
|
|
9166
|
+
},
|
|
9167
|
+
{
|
|
9168
|
+
"path": "candidateCount",
|
|
9169
|
+
"valueType": "number"
|
|
9170
|
+
},
|
|
9171
|
+
{
|
|
9172
|
+
"path": "adoptedCount",
|
|
9173
|
+
"valueType": "number"
|
|
9174
|
+
},
|
|
9175
|
+
{
|
|
9176
|
+
"path": "lastError",
|
|
9177
|
+
"valueType": "string"
|
|
9178
|
+
}
|
|
9179
|
+
],
|
|
9180
|
+
"device-discovery": [{
|
|
9181
|
+
"path": "lastDiscoveryAt",
|
|
9182
|
+
"valueType": "number"
|
|
9183
|
+
}, {
|
|
9184
|
+
"path": "lastError",
|
|
9185
|
+
"valueType": "string"
|
|
9186
|
+
}],
|
|
9187
|
+
"device-export": [
|
|
9188
|
+
{
|
|
9189
|
+
"path": "linkState",
|
|
9190
|
+
"valueType": "enum",
|
|
9191
|
+
"enumValues": [
|
|
9192
|
+
"unlinked",
|
|
9193
|
+
"linked",
|
|
9194
|
+
"error"
|
|
9195
|
+
]
|
|
9196
|
+
},
|
|
9197
|
+
{
|
|
9198
|
+
"path": "exposedDeviceCount",
|
|
9199
|
+
"valueType": "number"
|
|
9200
|
+
},
|
|
9201
|
+
{
|
|
9202
|
+
"path": "error",
|
|
9203
|
+
"valueType": "string"
|
|
9204
|
+
},
|
|
9205
|
+
{
|
|
9206
|
+
"path": "setup.qr",
|
|
9207
|
+
"valueType": "string"
|
|
9208
|
+
},
|
|
9209
|
+
{
|
|
9210
|
+
"path": "setup.note",
|
|
9211
|
+
"valueType": "string"
|
|
9212
|
+
}
|
|
9213
|
+
],
|
|
9214
|
+
"device-status": [{
|
|
9215
|
+
"path": "online",
|
|
9216
|
+
"valueType": "boolean"
|
|
9217
|
+
}],
|
|
9218
|
+
"dishwasher": [
|
|
9219
|
+
{
|
|
9220
|
+
"path": "availability",
|
|
9221
|
+
"valueType": "enum",
|
|
9222
|
+
"enumValues": [
|
|
9223
|
+
"available",
|
|
9224
|
+
"offline",
|
|
9225
|
+
"description-missing"
|
|
9226
|
+
]
|
|
9227
|
+
},
|
|
9228
|
+
{
|
|
9229
|
+
"path": "state",
|
|
9230
|
+
"valueType": "enum",
|
|
9231
|
+
"enumValues": [
|
|
9232
|
+
"idle",
|
|
9233
|
+
"running",
|
|
9234
|
+
"paused",
|
|
9235
|
+
"finished",
|
|
9236
|
+
"error",
|
|
9237
|
+
"unavailable"
|
|
9238
|
+
]
|
|
9239
|
+
},
|
|
9240
|
+
{
|
|
9241
|
+
"path": "operationState",
|
|
9242
|
+
"valueType": "enum",
|
|
9243
|
+
"enumValues": [
|
|
9244
|
+
"Inactive",
|
|
9245
|
+
"Ready",
|
|
9246
|
+
"DelayedStart",
|
|
9247
|
+
"Run",
|
|
9248
|
+
"Pause",
|
|
9249
|
+
"ActionRequired",
|
|
9250
|
+
"Finished",
|
|
9251
|
+
"Error",
|
|
9252
|
+
"Aborting"
|
|
9253
|
+
]
|
|
9254
|
+
},
|
|
9255
|
+
{
|
|
9256
|
+
"path": "program",
|
|
9257
|
+
"valueType": "string"
|
|
9258
|
+
},
|
|
9259
|
+
{
|
|
9260
|
+
"path": "selectedProgram",
|
|
9261
|
+
"valueType": "string"
|
|
9262
|
+
},
|
|
9263
|
+
{
|
|
9264
|
+
"path": "remainingSeconds",
|
|
9265
|
+
"valueType": "number"
|
|
9266
|
+
},
|
|
9267
|
+
{
|
|
9268
|
+
"path": "delayedStartSeconds",
|
|
9269
|
+
"valueType": "number"
|
|
9270
|
+
},
|
|
9271
|
+
{
|
|
9272
|
+
"path": "progressPercent",
|
|
9273
|
+
"valueType": "number"
|
|
9274
|
+
},
|
|
9275
|
+
{
|
|
9276
|
+
"path": "doorOpen",
|
|
9277
|
+
"valueType": "boolean"
|
|
9278
|
+
},
|
|
9279
|
+
{
|
|
9280
|
+
"path": "doorLocked",
|
|
9281
|
+
"valueType": "boolean"
|
|
9282
|
+
},
|
|
9283
|
+
{
|
|
9284
|
+
"path": "remoteStartAllowed",
|
|
9285
|
+
"valueType": "boolean"
|
|
9286
|
+
},
|
|
9287
|
+
{
|
|
9288
|
+
"path": "remoteControlActive",
|
|
9289
|
+
"valueType": "boolean"
|
|
9290
|
+
},
|
|
9291
|
+
{
|
|
9292
|
+
"path": "localControlActive",
|
|
9293
|
+
"valueType": "boolean"
|
|
9294
|
+
},
|
|
9295
|
+
{
|
|
9296
|
+
"path": "powerOn",
|
|
9297
|
+
"valueType": "boolean"
|
|
9298
|
+
},
|
|
9299
|
+
{
|
|
9300
|
+
"path": "powerState",
|
|
9301
|
+
"valueType": "string"
|
|
9302
|
+
},
|
|
9303
|
+
{
|
|
9304
|
+
"path": "filterCleaningDue",
|
|
9305
|
+
"valueType": "boolean"
|
|
9306
|
+
},
|
|
9307
|
+
{
|
|
9308
|
+
"path": "machineCareDue",
|
|
9309
|
+
"valueType": "boolean"
|
|
9310
|
+
},
|
|
9311
|
+
{
|
|
9312
|
+
"path": "machineCareRemainingRuns",
|
|
9313
|
+
"valueType": "number"
|
|
9314
|
+
},
|
|
9315
|
+
{
|
|
9316
|
+
"path": "halfLoad",
|
|
9317
|
+
"valueType": "boolean"
|
|
9318
|
+
},
|
|
9319
|
+
{
|
|
9320
|
+
"path": "hygienePlus",
|
|
9321
|
+
"valueType": "boolean"
|
|
9322
|
+
},
|
|
9323
|
+
{
|
|
9324
|
+
"path": "extraDry",
|
|
9325
|
+
"valueType": "boolean"
|
|
9326
|
+
},
|
|
9327
|
+
{
|
|
9328
|
+
"path": "intensiveZone",
|
|
9329
|
+
"valueType": "boolean"
|
|
9330
|
+
},
|
|
9331
|
+
{
|
|
9332
|
+
"path": "varioSpeedPlus",
|
|
9333
|
+
"valueType": "boolean"
|
|
9334
|
+
},
|
|
9335
|
+
{
|
|
9336
|
+
"path": "childLock",
|
|
9337
|
+
"valueType": "boolean"
|
|
9338
|
+
},
|
|
9339
|
+
{
|
|
9340
|
+
"path": "errorCode",
|
|
9341
|
+
"valueType": "number"
|
|
9342
|
+
},
|
|
9343
|
+
{
|
|
9344
|
+
"path": "errorLabel",
|
|
9345
|
+
"valueType": "string"
|
|
9346
|
+
}
|
|
9347
|
+
],
|
|
9348
|
+
"doorbell": [{
|
|
9349
|
+
"path": "lastPressedAt",
|
|
9350
|
+
"valueType": "number"
|
|
9351
|
+
}, {
|
|
9352
|
+
"path": "pressCountSinceStart",
|
|
9353
|
+
"valueType": "number"
|
|
9354
|
+
}],
|
|
9355
|
+
"enum-sensor": [{
|
|
9356
|
+
"path": "value",
|
|
9357
|
+
"valueType": "string"
|
|
9358
|
+
}, {
|
|
9359
|
+
"path": "format",
|
|
9360
|
+
"valueType": "enum",
|
|
9361
|
+
"enumValues": [
|
|
9362
|
+
"date",
|
|
9363
|
+
"time",
|
|
9364
|
+
"datetime"
|
|
9365
|
+
]
|
|
9366
|
+
}],
|
|
9367
|
+
"event-emitter": [
|
|
9368
|
+
{
|
|
9369
|
+
"path": "lastEvent.deviceId",
|
|
9370
|
+
"valueType": "number"
|
|
9371
|
+
},
|
|
9372
|
+
{
|
|
9373
|
+
"path": "lastEvent.eventType",
|
|
9374
|
+
"valueType": "string"
|
|
9375
|
+
},
|
|
9376
|
+
{
|
|
9377
|
+
"path": "lastEvent.timestamp",
|
|
9378
|
+
"valueType": "number"
|
|
9379
|
+
},
|
|
9380
|
+
{
|
|
9381
|
+
"path": "lastEvent.seq",
|
|
9382
|
+
"valueType": "number"
|
|
9383
|
+
},
|
|
9384
|
+
{
|
|
9385
|
+
"path": "eventCountSinceStart",
|
|
9386
|
+
"valueType": "number"
|
|
9387
|
+
}
|
|
9388
|
+
],
|
|
9389
|
+
"fan-control": [
|
|
9390
|
+
{
|
|
9391
|
+
"path": "percentage",
|
|
9392
|
+
"valueType": "number"
|
|
9393
|
+
},
|
|
9394
|
+
{
|
|
9395
|
+
"path": "percentageStep",
|
|
9396
|
+
"valueType": "number"
|
|
9397
|
+
},
|
|
9398
|
+
{
|
|
9399
|
+
"path": "preset",
|
|
9400
|
+
"valueType": "string"
|
|
9401
|
+
},
|
|
9402
|
+
{
|
|
9403
|
+
"path": "direction",
|
|
9404
|
+
"valueType": "enum",
|
|
9405
|
+
"enumValues": ["forward", "reverse"]
|
|
9406
|
+
},
|
|
9407
|
+
{
|
|
9408
|
+
"path": "oscillating",
|
|
9409
|
+
"valueType": "boolean"
|
|
9410
|
+
}
|
|
9411
|
+
],
|
|
9412
|
+
"feature-probe": [
|
|
9413
|
+
{
|
|
9414
|
+
"path": "deviceType",
|
|
9415
|
+
"valueType": "string"
|
|
9416
|
+
},
|
|
9417
|
+
{
|
|
9418
|
+
"path": "model",
|
|
9419
|
+
"valueType": "string"
|
|
9420
|
+
},
|
|
9421
|
+
{
|
|
9422
|
+
"path": "channelCount",
|
|
9423
|
+
"valueType": "number"
|
|
9424
|
+
},
|
|
9425
|
+
{
|
|
9426
|
+
"path": "lastProbedAt",
|
|
9427
|
+
"valueType": "number"
|
|
9428
|
+
}
|
|
9429
|
+
],
|
|
9430
|
+
"flood": [{
|
|
9431
|
+
"path": "flooded",
|
|
9432
|
+
"valueType": "boolean"
|
|
9433
|
+
}],
|
|
9434
|
+
"gas": [{
|
|
9435
|
+
"path": "detected",
|
|
9436
|
+
"valueType": "boolean"
|
|
9437
|
+
}],
|
|
9438
|
+
"heating-valve": [{
|
|
9439
|
+
"path": "position",
|
|
9440
|
+
"valueType": "number"
|
|
9441
|
+
}],
|
|
9442
|
+
"humidifier": [
|
|
9443
|
+
{
|
|
9444
|
+
"path": "on",
|
|
9445
|
+
"valueType": "boolean"
|
|
9446
|
+
},
|
|
9447
|
+
{
|
|
9448
|
+
"path": "currentHumidity",
|
|
9449
|
+
"valueType": "number"
|
|
9450
|
+
},
|
|
9451
|
+
{
|
|
9452
|
+
"path": "targetHumidity",
|
|
9453
|
+
"valueType": "number"
|
|
9454
|
+
},
|
|
9455
|
+
{
|
|
9456
|
+
"path": "mode",
|
|
9457
|
+
"valueType": "string"
|
|
9458
|
+
},
|
|
9459
|
+
{
|
|
9460
|
+
"path": "action",
|
|
9461
|
+
"valueType": "string"
|
|
9462
|
+
},
|
|
9463
|
+
{
|
|
9464
|
+
"path": "minHumidity",
|
|
9465
|
+
"valueType": "number"
|
|
9466
|
+
},
|
|
9467
|
+
{
|
|
9468
|
+
"path": "maxHumidity",
|
|
9469
|
+
"valueType": "number"
|
|
9470
|
+
}
|
|
9471
|
+
],
|
|
9472
|
+
"humidity-sensor": [
|
|
9473
|
+
{
|
|
9474
|
+
"path": "percent",
|
|
9475
|
+
"valueType": "number"
|
|
9476
|
+
},
|
|
9477
|
+
{
|
|
9478
|
+
"path": "unit",
|
|
9479
|
+
"valueType": "string"
|
|
9480
|
+
},
|
|
9481
|
+
{
|
|
9482
|
+
"path": "precision",
|
|
9483
|
+
"valueType": "number"
|
|
9484
|
+
}
|
|
9485
|
+
],
|
|
9486
|
+
"image": [{
|
|
9487
|
+
"path": "url",
|
|
9488
|
+
"valueType": "string"
|
|
9489
|
+
}, {
|
|
9490
|
+
"path": "lastUpdated",
|
|
9491
|
+
"valueType": "number"
|
|
9492
|
+
}],
|
|
9493
|
+
"image-settings": [
|
|
9494
|
+
{
|
|
9495
|
+
"path": "brightness",
|
|
9496
|
+
"valueType": "number"
|
|
9497
|
+
},
|
|
9498
|
+
{
|
|
9499
|
+
"path": "contrast",
|
|
9500
|
+
"valueType": "number"
|
|
9501
|
+
},
|
|
9502
|
+
{
|
|
9503
|
+
"path": "saturation",
|
|
9504
|
+
"valueType": "number"
|
|
9505
|
+
},
|
|
9506
|
+
{
|
|
9507
|
+
"path": "sharpness",
|
|
9508
|
+
"valueType": "number"
|
|
9509
|
+
},
|
|
9510
|
+
{
|
|
9511
|
+
"path": "mirror",
|
|
9512
|
+
"valueType": "boolean"
|
|
9513
|
+
},
|
|
9514
|
+
{
|
|
9515
|
+
"path": "flip",
|
|
9516
|
+
"valueType": "boolean"
|
|
9517
|
+
},
|
|
9518
|
+
{
|
|
9519
|
+
"path": "rotate",
|
|
9520
|
+
"valueType": "enum",
|
|
9521
|
+
"enumValues": [
|
|
9522
|
+
"0",
|
|
9523
|
+
"90",
|
|
9524
|
+
"180",
|
|
9525
|
+
"270"
|
|
9526
|
+
]
|
|
9527
|
+
},
|
|
9528
|
+
{
|
|
9529
|
+
"path": "whiteBalance",
|
|
9530
|
+
"valueType": "enum",
|
|
9531
|
+
"enumValues": ["auto", "manual"]
|
|
9532
|
+
},
|
|
9533
|
+
{
|
|
9534
|
+
"path": "warmth",
|
|
9535
|
+
"valueType": "number"
|
|
9536
|
+
},
|
|
9537
|
+
{
|
|
9538
|
+
"path": "exposureMode",
|
|
9539
|
+
"valueType": "enum",
|
|
9540
|
+
"enumValues": ["auto", "manual"]
|
|
9541
|
+
},
|
|
9542
|
+
{
|
|
9543
|
+
"path": "backlightMode",
|
|
9544
|
+
"valueType": "enum",
|
|
9545
|
+
"enumValues": [
|
|
9546
|
+
"off",
|
|
9547
|
+
"blc",
|
|
9548
|
+
"wdr",
|
|
9549
|
+
"hlc"
|
|
9550
|
+
]
|
|
9551
|
+
}
|
|
9552
|
+
],
|
|
9553
|
+
"intercom": [
|
|
9554
|
+
{
|
|
9555
|
+
"path": "talking",
|
|
9556
|
+
"valueType": "boolean"
|
|
9557
|
+
},
|
|
9558
|
+
{
|
|
9559
|
+
"path": "lastSessionAt",
|
|
9560
|
+
"valueType": "number"
|
|
9561
|
+
},
|
|
9562
|
+
{
|
|
9563
|
+
"path": "ability.sampleRate",
|
|
9564
|
+
"valueType": "number"
|
|
9565
|
+
},
|
|
9566
|
+
{
|
|
9567
|
+
"path": "ability.duplex",
|
|
9568
|
+
"valueType": "enum",
|
|
9569
|
+
"enumValues": ["half", "full"]
|
|
9570
|
+
},
|
|
9571
|
+
{
|
|
9572
|
+
"path": "ability.maxBacklogMs",
|
|
9573
|
+
"valueType": "number"
|
|
9574
|
+
}
|
|
9575
|
+
],
|
|
9576
|
+
"lawn-mower-control": [
|
|
9577
|
+
{
|
|
9578
|
+
"path": "activity",
|
|
9579
|
+
"valueType": "enum",
|
|
9580
|
+
"enumValues": [
|
|
9581
|
+
"idle",
|
|
9582
|
+
"mowing",
|
|
9583
|
+
"paused",
|
|
9584
|
+
"docked",
|
|
9585
|
+
"error"
|
|
9586
|
+
]
|
|
9587
|
+
},
|
|
9588
|
+
{
|
|
9589
|
+
"path": "batteryLevel",
|
|
9590
|
+
"valueType": "number"
|
|
9591
|
+
},
|
|
9592
|
+
{
|
|
9593
|
+
"path": "progressPercent",
|
|
9594
|
+
"valueType": "number"
|
|
9595
|
+
},
|
|
9596
|
+
{
|
|
9597
|
+
"path": "currentCode",
|
|
9598
|
+
"valueType": "number"
|
|
9599
|
+
},
|
|
9600
|
+
{
|
|
9601
|
+
"path": "currentCodeLabel",
|
|
9602
|
+
"valueType": "string"
|
|
9603
|
+
},
|
|
9604
|
+
{
|
|
9605
|
+
"path": "severity",
|
|
9606
|
+
"valueType": "enum",
|
|
9607
|
+
"enumValues": [
|
|
9608
|
+
"info",
|
|
9609
|
+
"warning",
|
|
9610
|
+
"error"
|
|
9611
|
+
]
|
|
9612
|
+
}
|
|
9613
|
+
],
|
|
9614
|
+
"lock-control": [{
|
|
9615
|
+
"path": "state",
|
|
9616
|
+
"valueType": "enum",
|
|
9617
|
+
"enumValues": [
|
|
9618
|
+
"locked",
|
|
9619
|
+
"unlocked",
|
|
9620
|
+
"locking",
|
|
9621
|
+
"unlocking",
|
|
9622
|
+
"jammed"
|
|
9623
|
+
]
|
|
9624
|
+
}],
|
|
9625
|
+
"media-player": [
|
|
9626
|
+
{
|
|
9627
|
+
"path": "state",
|
|
9628
|
+
"valueType": "enum",
|
|
9629
|
+
"enumValues": [
|
|
9630
|
+
"off",
|
|
9631
|
+
"on",
|
|
9632
|
+
"idle",
|
|
9633
|
+
"playing",
|
|
9634
|
+
"paused",
|
|
9635
|
+
"buffering",
|
|
9636
|
+
"standby"
|
|
9637
|
+
]
|
|
9638
|
+
},
|
|
9639
|
+
{
|
|
9640
|
+
"path": "volumeLevel",
|
|
9641
|
+
"valueType": "number"
|
|
9642
|
+
},
|
|
9643
|
+
{
|
|
9644
|
+
"path": "isMuted",
|
|
9645
|
+
"valueType": "boolean"
|
|
9646
|
+
},
|
|
9647
|
+
{
|
|
9648
|
+
"path": "source",
|
|
9649
|
+
"valueType": "string"
|
|
9650
|
+
},
|
|
9651
|
+
{
|
|
9652
|
+
"path": "currentMedia.type",
|
|
9653
|
+
"valueType": "string"
|
|
9654
|
+
},
|
|
9655
|
+
{
|
|
9656
|
+
"path": "currentMedia.title",
|
|
9657
|
+
"valueType": "string"
|
|
9658
|
+
},
|
|
9659
|
+
{
|
|
9660
|
+
"path": "currentMedia.artist",
|
|
9661
|
+
"valueType": "string"
|
|
9662
|
+
},
|
|
9663
|
+
{
|
|
9664
|
+
"path": "currentMedia.album",
|
|
9665
|
+
"valueType": "string"
|
|
9666
|
+
},
|
|
9667
|
+
{
|
|
9668
|
+
"path": "currentMedia.imageUrl",
|
|
9669
|
+
"valueType": "string"
|
|
9670
|
+
},
|
|
9671
|
+
{
|
|
9672
|
+
"path": "positionMs",
|
|
9673
|
+
"valueType": "number"
|
|
9674
|
+
},
|
|
9675
|
+
{
|
|
9676
|
+
"path": "durationMs",
|
|
9677
|
+
"valueType": "number"
|
|
9678
|
+
},
|
|
9679
|
+
{
|
|
9680
|
+
"path": "shuffle",
|
|
9681
|
+
"valueType": "boolean"
|
|
9682
|
+
},
|
|
9683
|
+
{
|
|
9684
|
+
"path": "repeat",
|
|
9685
|
+
"valueType": "enum",
|
|
9686
|
+
"enumValues": [
|
|
9687
|
+
"off",
|
|
9688
|
+
"all",
|
|
9689
|
+
"one"
|
|
9690
|
+
]
|
|
9691
|
+
}
|
|
9692
|
+
],
|
|
9693
|
+
"motion": [
|
|
9694
|
+
{
|
|
9695
|
+
"path": "detected",
|
|
9696
|
+
"valueType": "boolean"
|
|
9697
|
+
},
|
|
9698
|
+
{
|
|
9699
|
+
"path": "lastDetectedAt",
|
|
9700
|
+
"valueType": "number"
|
|
9701
|
+
},
|
|
9702
|
+
{
|
|
9703
|
+
"path": "autoClearAfterMs",
|
|
9704
|
+
"valueType": "number"
|
|
9705
|
+
}
|
|
9706
|
+
],
|
|
9707
|
+
"motion-trigger": [{
|
|
9708
|
+
"path": "enabled",
|
|
9709
|
+
"valueType": "boolean"
|
|
9710
|
+
}],
|
|
9711
|
+
"motion-zones": [{
|
|
9712
|
+
"path": "enabled",
|
|
9713
|
+
"valueType": "boolean"
|
|
9714
|
+
}, {
|
|
9715
|
+
"path": "sensitivity",
|
|
9716
|
+
"valueType": "number"
|
|
9717
|
+
}],
|
|
9718
|
+
"mqtt-broker": [{
|
|
9719
|
+
"path": "brokerCount",
|
|
9720
|
+
"valueType": "number"
|
|
9721
|
+
}, {
|
|
9722
|
+
"path": "embeddedRunning",
|
|
9723
|
+
"valueType": "boolean"
|
|
9724
|
+
}],
|
|
9725
|
+
"native-object-detection": [{
|
|
9726
|
+
"path": "enabled",
|
|
9727
|
+
"valueType": "boolean"
|
|
9728
|
+
}],
|
|
9729
|
+
"navigation": [
|
|
9730
|
+
{
|
|
9731
|
+
"path": "mode",
|
|
9732
|
+
"valueType": "enum",
|
|
9733
|
+
"enumValues": [
|
|
9734
|
+
"idle",
|
|
9735
|
+
"cleaning",
|
|
9736
|
+
"spot",
|
|
9737
|
+
"following",
|
|
9738
|
+
"goto",
|
|
9739
|
+
"returning",
|
|
9740
|
+
"paused",
|
|
9741
|
+
"unknown"
|
|
9742
|
+
]
|
|
9743
|
+
},
|
|
9744
|
+
{
|
|
9745
|
+
"path": "following",
|
|
9746
|
+
"valueType": "boolean"
|
|
9747
|
+
},
|
|
9748
|
+
{
|
|
9749
|
+
"path": "flash",
|
|
9750
|
+
"valueType": "boolean"
|
|
9751
|
+
},
|
|
9752
|
+
{
|
|
9753
|
+
"path": "lightMode",
|
|
9754
|
+
"valueType": "enum",
|
|
9755
|
+
"enumValues": ["auto", "manual"]
|
|
9756
|
+
},
|
|
9757
|
+
{
|
|
9758
|
+
"path": "lightLevel",
|
|
9759
|
+
"valueType": "number"
|
|
9760
|
+
}
|
|
9761
|
+
],
|
|
9762
|
+
"network-link": [
|
|
9763
|
+
{
|
|
9764
|
+
"path": "type",
|
|
9765
|
+
"valueType": "enum",
|
|
9766
|
+
"enumValues": [
|
|
9767
|
+
"wifi",
|
|
9768
|
+
"ethernet",
|
|
9769
|
+
"cellular",
|
|
9770
|
+
"unknown"
|
|
9771
|
+
]
|
|
9772
|
+
},
|
|
9773
|
+
{
|
|
9774
|
+
"path": "signalPercent",
|
|
9775
|
+
"valueType": "number"
|
|
9776
|
+
},
|
|
9777
|
+
{
|
|
9778
|
+
"path": "rssiDbm",
|
|
9779
|
+
"valueType": "number"
|
|
9780
|
+
},
|
|
9781
|
+
{
|
|
9782
|
+
"path": "ssid",
|
|
9783
|
+
"valueType": "string"
|
|
9784
|
+
},
|
|
9785
|
+
{
|
|
9786
|
+
"path": "lastUpdated",
|
|
9787
|
+
"valueType": "number"
|
|
9788
|
+
}
|
|
9789
|
+
],
|
|
9790
|
+
"notifier": [
|
|
9791
|
+
{
|
|
9792
|
+
"path": "lastSentAt",
|
|
9793
|
+
"valueType": "number"
|
|
9794
|
+
},
|
|
9795
|
+
{
|
|
9796
|
+
"path": "lastError",
|
|
9797
|
+
"valueType": "string"
|
|
9798
|
+
},
|
|
9799
|
+
{
|
|
9800
|
+
"path": "queueDepth",
|
|
9801
|
+
"valueType": "number"
|
|
9802
|
+
},
|
|
9803
|
+
{
|
|
9804
|
+
"path": "supports.image",
|
|
9805
|
+
"valueType": "boolean"
|
|
9806
|
+
},
|
|
9807
|
+
{
|
|
9808
|
+
"path": "supports.priority",
|
|
9809
|
+
"valueType": "boolean"
|
|
9810
|
+
},
|
|
9811
|
+
{
|
|
9812
|
+
"path": "supports.data",
|
|
9813
|
+
"valueType": "boolean"
|
|
9814
|
+
},
|
|
9815
|
+
{
|
|
9816
|
+
"path": "supports.actions",
|
|
9817
|
+
"valueType": "boolean"
|
|
9818
|
+
},
|
|
9819
|
+
{
|
|
9820
|
+
"path": "supports.recipients",
|
|
9821
|
+
"valueType": "boolean"
|
|
9822
|
+
}
|
|
9823
|
+
],
|
|
9824
|
+
"numeric-sensor": [
|
|
9825
|
+
{
|
|
9826
|
+
"path": "value",
|
|
9827
|
+
"valueType": "number"
|
|
9828
|
+
},
|
|
9829
|
+
{
|
|
9830
|
+
"path": "unit",
|
|
9831
|
+
"valueType": "string"
|
|
9832
|
+
},
|
|
9833
|
+
{
|
|
9834
|
+
"path": "precision",
|
|
9835
|
+
"valueType": "number"
|
|
9836
|
+
}
|
|
9837
|
+
],
|
|
9838
|
+
"pet-feeder": [
|
|
9839
|
+
{
|
|
9840
|
+
"path": "foodLevel",
|
|
9841
|
+
"valueType": "number"
|
|
9842
|
+
},
|
|
9843
|
+
{
|
|
9844
|
+
"path": "food1",
|
|
9845
|
+
"valueType": "number"
|
|
9846
|
+
},
|
|
9847
|
+
{
|
|
9848
|
+
"path": "food2",
|
|
9849
|
+
"valueType": "number"
|
|
9850
|
+
},
|
|
9851
|
+
{
|
|
9852
|
+
"path": "lowFood",
|
|
9853
|
+
"valueType": "boolean"
|
|
9854
|
+
},
|
|
9855
|
+
{
|
|
9856
|
+
"path": "batteryPower",
|
|
9857
|
+
"valueType": "number"
|
|
9858
|
+
},
|
|
9859
|
+
{
|
|
9860
|
+
"path": "desiccantLeftDays",
|
|
9861
|
+
"valueType": "number"
|
|
9862
|
+
},
|
|
9863
|
+
{
|
|
9864
|
+
"path": "feeding",
|
|
9865
|
+
"valueType": "boolean"
|
|
9866
|
+
},
|
|
9867
|
+
{
|
|
9868
|
+
"path": "status",
|
|
9869
|
+
"valueType": "enum",
|
|
9870
|
+
"enumValues": [
|
|
9871
|
+
"normal",
|
|
9872
|
+
"offline",
|
|
9873
|
+
"on_batteries"
|
|
9874
|
+
]
|
|
9875
|
+
},
|
|
9876
|
+
{
|
|
9877
|
+
"path": "error",
|
|
9878
|
+
"valueType": "string"
|
|
9879
|
+
},
|
|
9880
|
+
{
|
|
9881
|
+
"path": "errorCode",
|
|
9882
|
+
"valueType": "number"
|
|
9883
|
+
},
|
|
9884
|
+
{
|
|
9885
|
+
"path": "isDualHopper",
|
|
9886
|
+
"valueType": "boolean"
|
|
9887
|
+
},
|
|
9888
|
+
{
|
|
9889
|
+
"path": "childLock",
|
|
9890
|
+
"valueType": "boolean"
|
|
9891
|
+
},
|
|
9892
|
+
{
|
|
9893
|
+
"path": "indicatorLight",
|
|
9894
|
+
"valueType": "boolean"
|
|
9895
|
+
},
|
|
9896
|
+
{
|
|
9897
|
+
"path": "feedSound",
|
|
9898
|
+
"valueType": "boolean"
|
|
9899
|
+
},
|
|
9900
|
+
{
|
|
9901
|
+
"path": "volume",
|
|
9902
|
+
"valueType": "number"
|
|
9903
|
+
}
|
|
9904
|
+
],
|
|
9905
|
+
"power-meter": [
|
|
9906
|
+
{
|
|
9907
|
+
"path": "watts",
|
|
9908
|
+
"valueType": "number"
|
|
9909
|
+
},
|
|
9910
|
+
{
|
|
9911
|
+
"path": "kwhTotal",
|
|
9912
|
+
"valueType": "number"
|
|
9913
|
+
},
|
|
9914
|
+
{
|
|
9915
|
+
"path": "volts",
|
|
9916
|
+
"valueType": "number"
|
|
9917
|
+
},
|
|
9918
|
+
{
|
|
9919
|
+
"path": "amps",
|
|
9920
|
+
"valueType": "number"
|
|
9921
|
+
},
|
|
9922
|
+
{
|
|
9923
|
+
"path": "va",
|
|
9924
|
+
"valueType": "number"
|
|
9925
|
+
},
|
|
9926
|
+
{
|
|
9927
|
+
"path": "powerFactor",
|
|
9928
|
+
"valueType": "number"
|
|
9929
|
+
},
|
|
9930
|
+
{
|
|
9931
|
+
"path": "unit",
|
|
9932
|
+
"valueType": "string"
|
|
9933
|
+
},
|
|
9934
|
+
{
|
|
9935
|
+
"path": "precision",
|
|
9936
|
+
"valueType": "number"
|
|
9937
|
+
}
|
|
9938
|
+
],
|
|
9939
|
+
"presence": [
|
|
9940
|
+
{
|
|
9941
|
+
"path": "state",
|
|
9942
|
+
"valueType": "string"
|
|
9943
|
+
},
|
|
9944
|
+
{
|
|
9945
|
+
"path": "location",
|
|
9946
|
+
"valueType": "string"
|
|
9947
|
+
},
|
|
9948
|
+
{
|
|
9949
|
+
"path": "gps.latitude",
|
|
9950
|
+
"valueType": "number"
|
|
9951
|
+
},
|
|
9952
|
+
{
|
|
9953
|
+
"path": "gps.longitude",
|
|
9954
|
+
"valueType": "number"
|
|
9955
|
+
},
|
|
9956
|
+
{
|
|
9957
|
+
"path": "gps.accuracyMeters",
|
|
9958
|
+
"valueType": "number"
|
|
9959
|
+
},
|
|
9960
|
+
{
|
|
9961
|
+
"path": "batteryPercent",
|
|
9962
|
+
"valueType": "number"
|
|
9963
|
+
}
|
|
9964
|
+
],
|
|
9965
|
+
"pressure-sensor": [
|
|
9966
|
+
{
|
|
9967
|
+
"path": "hpa",
|
|
9968
|
+
"valueType": "number"
|
|
9969
|
+
},
|
|
9970
|
+
{
|
|
9971
|
+
"path": "unit",
|
|
9972
|
+
"valueType": "string"
|
|
9973
|
+
},
|
|
9974
|
+
{
|
|
9975
|
+
"path": "precision",
|
|
9976
|
+
"valueType": "number"
|
|
9977
|
+
}
|
|
9978
|
+
],
|
|
9979
|
+
"privacy-mask": [{
|
|
9980
|
+
"path": "enabled",
|
|
9981
|
+
"valueType": "boolean"
|
|
9982
|
+
}, {
|
|
9983
|
+
"path": "audioEnabled",
|
|
9984
|
+
"valueType": "boolean"
|
|
9985
|
+
}],
|
|
9986
|
+
"ptz": [
|
|
9987
|
+
{
|
|
9988
|
+
"path": "pan",
|
|
9989
|
+
"valueType": "number"
|
|
9990
|
+
},
|
|
9991
|
+
{
|
|
9992
|
+
"path": "tilt",
|
|
9993
|
+
"valueType": "number"
|
|
9994
|
+
},
|
|
9995
|
+
{
|
|
9996
|
+
"path": "zoom",
|
|
9997
|
+
"valueType": "number"
|
|
9998
|
+
},
|
|
9999
|
+
{
|
|
10000
|
+
"path": "autofocus",
|
|
10001
|
+
"valueType": "boolean"
|
|
10002
|
+
}
|
|
10003
|
+
],
|
|
10004
|
+
"ptz-autotrack": [
|
|
10005
|
+
{
|
|
10006
|
+
"path": "enabled",
|
|
10007
|
+
"valueType": "boolean"
|
|
10008
|
+
},
|
|
10009
|
+
{
|
|
10010
|
+
"path": "currentSettings.targetType",
|
|
10011
|
+
"valueType": "string"
|
|
10012
|
+
},
|
|
10013
|
+
{
|
|
10014
|
+
"path": "currentSettings.stopDelaySeconds",
|
|
10015
|
+
"valueType": "number"
|
|
10016
|
+
},
|
|
10017
|
+
{
|
|
10018
|
+
"path": "currentSettings.disappearDelaySeconds",
|
|
10019
|
+
"valueType": "number"
|
|
10020
|
+
}
|
|
10021
|
+
],
|
|
10022
|
+
"recording-archive": [
|
|
10023
|
+
{
|
|
10024
|
+
"path": "deviceId",
|
|
10025
|
+
"valueType": "number"
|
|
10026
|
+
},
|
|
10027
|
+
{
|
|
10028
|
+
"path": "enabled",
|
|
10029
|
+
"valueType": "boolean"
|
|
10030
|
+
},
|
|
10031
|
+
{
|
|
10032
|
+
"path": "activeMode",
|
|
10033
|
+
"valueType": "enum",
|
|
10034
|
+
"enumValues": [
|
|
10035
|
+
"off",
|
|
10036
|
+
"events",
|
|
10037
|
+
"continuous",
|
|
10038
|
+
"on-device-decision"
|
|
10039
|
+
]
|
|
10040
|
+
},
|
|
10041
|
+
{
|
|
10042
|
+
"path": "nodeId",
|
|
10043
|
+
"valueType": "string"
|
|
10044
|
+
},
|
|
10045
|
+
{
|
|
10046
|
+
"path": "storageBytes",
|
|
10047
|
+
"valueType": "number"
|
|
10048
|
+
}
|
|
10049
|
+
],
|
|
10050
|
+
"recording-onboard": [
|
|
10051
|
+
{
|
|
10052
|
+
"path": "primaryTrackId",
|
|
10053
|
+
"valueType": "string"
|
|
10054
|
+
},
|
|
10055
|
+
{
|
|
10056
|
+
"path": "enabled",
|
|
10057
|
+
"valueType": "boolean"
|
|
10058
|
+
},
|
|
10059
|
+
{
|
|
10060
|
+
"path": "overwriteWhenFull",
|
|
10061
|
+
"valueType": "boolean"
|
|
10062
|
+
},
|
|
10063
|
+
{
|
|
10064
|
+
"path": "preRecordSec",
|
|
10065
|
+
"valueType": "number"
|
|
10066
|
+
},
|
|
10067
|
+
{
|
|
10068
|
+
"path": "postRecordSec",
|
|
10069
|
+
"valueType": "number"
|
|
10070
|
+
},
|
|
10071
|
+
{
|
|
10072
|
+
"path": "segmentMinutes",
|
|
10073
|
+
"valueType": "number"
|
|
10074
|
+
},
|
|
10075
|
+
{
|
|
10076
|
+
"path": "unreadableWindows",
|
|
10077
|
+
"valueType": "number"
|
|
10078
|
+
},
|
|
10079
|
+
{
|
|
10080
|
+
"path": "recordingToNowhere",
|
|
10081
|
+
"valueType": "boolean"
|
|
10082
|
+
}
|
|
10083
|
+
],
|
|
10084
|
+
"recording-signal": [{
|
|
10085
|
+
"path": "active",
|
|
10086
|
+
"valueType": "boolean"
|
|
10087
|
+
}, {
|
|
10088
|
+
"path": "reason",
|
|
10089
|
+
"valueType": "string"
|
|
10090
|
+
}],
|
|
10091
|
+
"running-state": [
|
|
10092
|
+
{
|
|
10093
|
+
"path": "running",
|
|
10094
|
+
"valueType": "boolean"
|
|
10095
|
+
},
|
|
10096
|
+
{
|
|
10097
|
+
"path": "since",
|
|
10098
|
+
"valueType": "number"
|
|
10099
|
+
},
|
|
10100
|
+
{
|
|
10101
|
+
"path": "source",
|
|
10102
|
+
"valueType": "enum",
|
|
10103
|
+
"enumValues": ["native", "assigned"]
|
|
10104
|
+
},
|
|
10105
|
+
{
|
|
10106
|
+
"path": "phase",
|
|
10107
|
+
"valueType": "string"
|
|
10108
|
+
}
|
|
10109
|
+
],
|
|
10110
|
+
"script-runner": [
|
|
10111
|
+
{
|
|
10112
|
+
"path": "isRunning",
|
|
10113
|
+
"valueType": "boolean"
|
|
10114
|
+
},
|
|
10115
|
+
{
|
|
10116
|
+
"path": "lastRunAt",
|
|
10117
|
+
"valueType": "number"
|
|
10118
|
+
},
|
|
10119
|
+
{
|
|
10120
|
+
"path": "lastRunSuccess",
|
|
10121
|
+
"valueType": "boolean"
|
|
10122
|
+
},
|
|
10123
|
+
{
|
|
10124
|
+
"path": "lastError",
|
|
10125
|
+
"valueType": "string"
|
|
10126
|
+
}
|
|
10127
|
+
],
|
|
10128
|
+
"smoke": [{
|
|
10129
|
+
"path": "detected",
|
|
10130
|
+
"valueType": "boolean"
|
|
10131
|
+
}],
|
|
10132
|
+
"snapshot": [
|
|
10133
|
+
{
|
|
10134
|
+
"path": "lastCapturedAt",
|
|
10135
|
+
"valueType": "number"
|
|
10136
|
+
},
|
|
10137
|
+
{
|
|
10138
|
+
"path": "cacheAgeMs",
|
|
10139
|
+
"valueType": "number"
|
|
10140
|
+
},
|
|
10141
|
+
{
|
|
10142
|
+
"path": "lastBytes",
|
|
10143
|
+
"valueType": "number"
|
|
10144
|
+
},
|
|
10145
|
+
{
|
|
10146
|
+
"path": "lastStreamId",
|
|
10147
|
+
"valueType": "string"
|
|
10148
|
+
}
|
|
10149
|
+
],
|
|
10150
|
+
"stream-params": [
|
|
10151
|
+
{
|
|
10152
|
+
"path": "main.width",
|
|
10153
|
+
"valueType": "number"
|
|
10154
|
+
},
|
|
10155
|
+
{
|
|
10156
|
+
"path": "main.height",
|
|
10157
|
+
"valueType": "number"
|
|
10158
|
+
},
|
|
10159
|
+
{
|
|
10160
|
+
"path": "main.codec",
|
|
10161
|
+
"valueType": "enum",
|
|
10162
|
+
"enumValues": ["h264", "h265"]
|
|
10163
|
+
},
|
|
10164
|
+
{
|
|
10165
|
+
"path": "main.framerate",
|
|
10166
|
+
"valueType": "number"
|
|
10167
|
+
},
|
|
10168
|
+
{
|
|
10169
|
+
"path": "main.bitrate",
|
|
10170
|
+
"valueType": "number"
|
|
10171
|
+
},
|
|
10172
|
+
{
|
|
10173
|
+
"path": "main.bitrateMode",
|
|
10174
|
+
"valueType": "enum",
|
|
10175
|
+
"enumValues": ["vbr", "cbr"]
|
|
10176
|
+
},
|
|
10177
|
+
{
|
|
10178
|
+
"path": "main.encoderProfile",
|
|
10179
|
+
"valueType": "enum",
|
|
10180
|
+
"enumValues": [
|
|
10181
|
+
"high",
|
|
10182
|
+
"main",
|
|
10183
|
+
"baseline"
|
|
10184
|
+
]
|
|
10185
|
+
},
|
|
10186
|
+
{
|
|
10187
|
+
"path": "main.gop",
|
|
10188
|
+
"valueType": "number"
|
|
10189
|
+
},
|
|
10190
|
+
{
|
|
10191
|
+
"path": "main.audio",
|
|
10192
|
+
"valueType": "boolean"
|
|
10193
|
+
},
|
|
10194
|
+
{
|
|
10195
|
+
"path": "sub.width",
|
|
10196
|
+
"valueType": "number"
|
|
10197
|
+
},
|
|
10198
|
+
{
|
|
10199
|
+
"path": "sub.height",
|
|
10200
|
+
"valueType": "number"
|
|
10201
|
+
},
|
|
10202
|
+
{
|
|
10203
|
+
"path": "sub.codec",
|
|
10204
|
+
"valueType": "enum",
|
|
10205
|
+
"enumValues": ["h264", "h265"]
|
|
10206
|
+
},
|
|
10207
|
+
{
|
|
10208
|
+
"path": "sub.framerate",
|
|
10209
|
+
"valueType": "number"
|
|
10210
|
+
},
|
|
10211
|
+
{
|
|
10212
|
+
"path": "sub.bitrate",
|
|
10213
|
+
"valueType": "number"
|
|
10214
|
+
},
|
|
10215
|
+
{
|
|
10216
|
+
"path": "sub.bitrateMode",
|
|
10217
|
+
"valueType": "enum",
|
|
10218
|
+
"enumValues": ["vbr", "cbr"]
|
|
10219
|
+
},
|
|
10220
|
+
{
|
|
10221
|
+
"path": "sub.encoderProfile",
|
|
10222
|
+
"valueType": "enum",
|
|
10223
|
+
"enumValues": [
|
|
10224
|
+
"high",
|
|
10225
|
+
"main",
|
|
10226
|
+
"baseline"
|
|
10227
|
+
]
|
|
10228
|
+
},
|
|
10229
|
+
{
|
|
10230
|
+
"path": "sub.gop",
|
|
10231
|
+
"valueType": "number"
|
|
10232
|
+
},
|
|
10233
|
+
{
|
|
10234
|
+
"path": "sub.audio",
|
|
10235
|
+
"valueType": "boolean"
|
|
10236
|
+
},
|
|
10237
|
+
{
|
|
10238
|
+
"path": "ext.width",
|
|
10239
|
+
"valueType": "number"
|
|
10240
|
+
},
|
|
10241
|
+
{
|
|
10242
|
+
"path": "ext.height",
|
|
10243
|
+
"valueType": "number"
|
|
10244
|
+
},
|
|
10245
|
+
{
|
|
10246
|
+
"path": "ext.codec",
|
|
10247
|
+
"valueType": "enum",
|
|
10248
|
+
"enumValues": ["h264", "h265"]
|
|
10249
|
+
},
|
|
10250
|
+
{
|
|
10251
|
+
"path": "ext.framerate",
|
|
10252
|
+
"valueType": "number"
|
|
10253
|
+
},
|
|
10254
|
+
{
|
|
10255
|
+
"path": "ext.bitrate",
|
|
10256
|
+
"valueType": "number"
|
|
10257
|
+
},
|
|
10258
|
+
{
|
|
10259
|
+
"path": "ext.bitrateMode",
|
|
10260
|
+
"valueType": "enum",
|
|
10261
|
+
"enumValues": ["vbr", "cbr"]
|
|
10262
|
+
},
|
|
10263
|
+
{
|
|
10264
|
+
"path": "ext.encoderProfile",
|
|
10265
|
+
"valueType": "enum",
|
|
10266
|
+
"enumValues": [
|
|
10267
|
+
"high",
|
|
10268
|
+
"main",
|
|
10269
|
+
"baseline"
|
|
10270
|
+
]
|
|
10271
|
+
},
|
|
10272
|
+
{
|
|
10273
|
+
"path": "ext.gop",
|
|
10274
|
+
"valueType": "number"
|
|
10275
|
+
},
|
|
10276
|
+
{
|
|
10277
|
+
"path": "ext.audio",
|
|
10278
|
+
"valueType": "boolean"
|
|
10279
|
+
}
|
|
10280
|
+
],
|
|
10281
|
+
"switch": [{
|
|
10282
|
+
"path": "on",
|
|
10283
|
+
"valueType": "boolean"
|
|
10284
|
+
}],
|
|
10285
|
+
"tamper": [{
|
|
10286
|
+
"path": "tampered",
|
|
10287
|
+
"valueType": "boolean"
|
|
10288
|
+
}],
|
|
10289
|
+
"temperature-sensor": [
|
|
10290
|
+
{
|
|
10291
|
+
"path": "celsius",
|
|
10292
|
+
"valueType": "number"
|
|
10293
|
+
},
|
|
10294
|
+
{
|
|
10295
|
+
"path": "unit",
|
|
10296
|
+
"valueType": "string"
|
|
10297
|
+
},
|
|
10298
|
+
{
|
|
10299
|
+
"path": "precision",
|
|
10300
|
+
"valueType": "number"
|
|
10301
|
+
}
|
|
10302
|
+
],
|
|
10303
|
+
"update": [
|
|
10304
|
+
{
|
|
10305
|
+
"path": "currentVersion",
|
|
10306
|
+
"valueType": "string"
|
|
10307
|
+
},
|
|
10308
|
+
{
|
|
10309
|
+
"path": "availableVersion",
|
|
10310
|
+
"valueType": "string"
|
|
10311
|
+
},
|
|
10312
|
+
{
|
|
10313
|
+
"path": "updatable",
|
|
10314
|
+
"valueType": "boolean"
|
|
10315
|
+
},
|
|
10316
|
+
{
|
|
10317
|
+
"path": "state",
|
|
10318
|
+
"valueType": "string"
|
|
10319
|
+
},
|
|
10320
|
+
{
|
|
10321
|
+
"path": "inProgress",
|
|
10322
|
+
"valueType": "boolean"
|
|
10323
|
+
}
|
|
10324
|
+
],
|
|
10325
|
+
"vacuum-control": [
|
|
10326
|
+
{
|
|
10327
|
+
"path": "state",
|
|
10328
|
+
"valueType": "enum",
|
|
10329
|
+
"enumValues": [
|
|
10330
|
+
"idle",
|
|
10331
|
+
"cleaning",
|
|
10332
|
+
"paused",
|
|
10333
|
+
"returning",
|
|
10334
|
+
"docked",
|
|
10335
|
+
"drying",
|
|
10336
|
+
"error"
|
|
10337
|
+
]
|
|
10338
|
+
},
|
|
10339
|
+
{
|
|
10340
|
+
"path": "batteryLevel",
|
|
10341
|
+
"valueType": "number"
|
|
10342
|
+
},
|
|
10343
|
+
{
|
|
10344
|
+
"path": "fanSpeed",
|
|
10345
|
+
"valueType": "string"
|
|
10346
|
+
},
|
|
10347
|
+
{
|
|
10348
|
+
"path": "progressPercent",
|
|
10349
|
+
"valueType": "number"
|
|
10350
|
+
},
|
|
10351
|
+
{
|
|
10352
|
+
"path": "errorCode",
|
|
10353
|
+
"valueType": "number"
|
|
10354
|
+
},
|
|
10355
|
+
{
|
|
10356
|
+
"path": "errorLabel",
|
|
10357
|
+
"valueType": "string"
|
|
10358
|
+
}
|
|
10359
|
+
],
|
|
10360
|
+
"valve": [{
|
|
10361
|
+
"path": "state",
|
|
10362
|
+
"valueType": "enum",
|
|
10363
|
+
"enumValues": [
|
|
10364
|
+
"open",
|
|
10365
|
+
"opening",
|
|
10366
|
+
"closing",
|
|
10367
|
+
"closed",
|
|
10368
|
+
"stopped"
|
|
10369
|
+
]
|
|
10370
|
+
}, {
|
|
10371
|
+
"path": "position",
|
|
10372
|
+
"valueType": "number"
|
|
10373
|
+
}],
|
|
10374
|
+
"vibration": [{
|
|
10375
|
+
"path": "detected",
|
|
10376
|
+
"valueType": "boolean"
|
|
10377
|
+
}],
|
|
10378
|
+
"water-heater": [
|
|
10379
|
+
{
|
|
10380
|
+
"path": "currentTemp",
|
|
10381
|
+
"valueType": "number"
|
|
10382
|
+
},
|
|
10383
|
+
{
|
|
10384
|
+
"path": "targetTemp",
|
|
10385
|
+
"valueType": "number"
|
|
10386
|
+
},
|
|
10387
|
+
{
|
|
10388
|
+
"path": "operationMode",
|
|
10389
|
+
"valueType": "string"
|
|
10390
|
+
},
|
|
10391
|
+
{
|
|
10392
|
+
"path": "away",
|
|
10393
|
+
"valueType": "boolean"
|
|
10394
|
+
},
|
|
10395
|
+
{
|
|
10396
|
+
"path": "minTemp",
|
|
10397
|
+
"valueType": "number"
|
|
10398
|
+
},
|
|
10399
|
+
{
|
|
10400
|
+
"path": "maxTemp",
|
|
10401
|
+
"valueType": "number"
|
|
10402
|
+
}
|
|
10403
|
+
],
|
|
10404
|
+
"weather": [
|
|
10405
|
+
{
|
|
10406
|
+
"path": "condition",
|
|
10407
|
+
"valueType": "string"
|
|
10408
|
+
},
|
|
10409
|
+
{
|
|
10410
|
+
"path": "temperature",
|
|
10411
|
+
"valueType": "number"
|
|
10412
|
+
},
|
|
10413
|
+
{
|
|
10414
|
+
"path": "temperatureUnit",
|
|
10415
|
+
"valueType": "string"
|
|
10416
|
+
},
|
|
10417
|
+
{
|
|
10418
|
+
"path": "humidity",
|
|
10419
|
+
"valueType": "number"
|
|
10420
|
+
},
|
|
10421
|
+
{
|
|
10422
|
+
"path": "pressure",
|
|
10423
|
+
"valueType": "number"
|
|
10424
|
+
},
|
|
10425
|
+
{
|
|
10426
|
+
"path": "pressureUnit",
|
|
10427
|
+
"valueType": "string"
|
|
10428
|
+
},
|
|
10429
|
+
{
|
|
10430
|
+
"path": "windSpeed",
|
|
10431
|
+
"valueType": "number"
|
|
10432
|
+
},
|
|
10433
|
+
{
|
|
10434
|
+
"path": "windSpeedUnit",
|
|
10435
|
+
"valueType": "string"
|
|
10436
|
+
},
|
|
10437
|
+
{
|
|
10438
|
+
"path": "windBearing",
|
|
10439
|
+
"valueType": "number"
|
|
10440
|
+
}
|
|
10441
|
+
],
|
|
10442
|
+
"zone-analytics": [
|
|
10443
|
+
{
|
|
10444
|
+
"path": "ts",
|
|
10445
|
+
"valueType": "number"
|
|
10446
|
+
},
|
|
10447
|
+
{
|
|
10448
|
+
"path": "frameWidth",
|
|
10449
|
+
"valueType": "number"
|
|
10450
|
+
},
|
|
10451
|
+
{
|
|
10452
|
+
"path": "frameHeight",
|
|
10453
|
+
"valueType": "number"
|
|
10454
|
+
},
|
|
10455
|
+
{
|
|
10456
|
+
"path": "frame.totalObjects",
|
|
10457
|
+
"valueType": "number"
|
|
10458
|
+
},
|
|
10459
|
+
{
|
|
10460
|
+
"path": "frame.standingObjects",
|
|
10461
|
+
"valueType": "number"
|
|
10462
|
+
},
|
|
10463
|
+
{
|
|
10464
|
+
"path": "frame.transientObjects",
|
|
10465
|
+
"valueType": "number"
|
|
10466
|
+
},
|
|
10467
|
+
{
|
|
10468
|
+
"path": "unzoned.totalObjects",
|
|
10469
|
+
"valueType": "number"
|
|
10470
|
+
},
|
|
10471
|
+
{
|
|
10472
|
+
"path": "unzoned.standingObjects",
|
|
10473
|
+
"valueType": "number"
|
|
10474
|
+
},
|
|
10475
|
+
{
|
|
10476
|
+
"path": "unzoned.transientObjects",
|
|
10477
|
+
"valueType": "number"
|
|
10478
|
+
}
|
|
10479
|
+
]
|
|
10480
|
+
});
|
|
8507
10481
|
object({
|
|
8508
10482
|
code: string().regex(/^[a-z][a-z0-9-]*(\.[a-z0-9-]+)+$/),
|
|
8509
10483
|
params: record(string(), union([string(), number()])).optional()
|
|
@@ -8866,7 +10840,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
8866
10840
|
return DeviceRole;
|
|
8867
10841
|
}({});
|
|
8868
10842
|
//#endregion
|
|
8869
|
-
//#region ../types/dist/composition-
|
|
10843
|
+
//#region ../types/dist/composition-kEl9mevu.mjs
|
|
8870
10844
|
/**
|
|
8871
10845
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
8872
10846
|
*
|
|
@@ -8926,7 +10900,7 @@ portable("linux64"), portable("linuxarm64"), portable("macarm64"), portable("mac
|
|
|
8926
10900
|
* ONE table for everyone who asks "is this device HIGH?": the
|
|
8927
10901
|
* recorder's `RecordingTriggers.sensorDeviceIds` trigger, the post-analysis
|
|
8928
10902
|
* sensor markers, the orchestrator's camera-sensors bridge and
|
|
8929
|
-
* the sources of a
|
|
10903
|
+
* the sources of a pulse (`compilePulseOverride`, D936).
|
|
8930
10904
|
* A second copy would diverge at the first cap added, and the symptom — "the
|
|
8931
10905
|
* sensor rings the doorbell but does not record" — is exactly D62.
|
|
8932
10906
|
*
|
|
@@ -12294,7 +14268,7 @@ var LogChannelDescriptorSchema = object({
|
|
|
12294
14268
|
* `true` is a PROMISE with two halves, and both must hold: the gate is
|
|
12295
14269
|
* consulted with the numeric device id, AND every line the channel admits
|
|
12296
14270
|
* carries `tags: { deviceId }` with that same numeric id. The second half is
|
|
12297
|
-
* what makes `| json | deviceId="
|
|
14271
|
+
* what makes `| json | deviceId="102"` work in Loki — `loki-payload.ts`
|
|
12298
14272
|
* keeps `deviceId` out of the stream labels for cardinality, so the tag in
|
|
12299
14273
|
* the body is the only way to filter.
|
|
12300
14274
|
*
|
|
@@ -12588,7 +14562,7 @@ var ModelVariantGroupSchema = object({
|
|
|
12588
14562
|
precision: _enum(["fp32", "int8"]).optional(),
|
|
12589
14563
|
/**
|
|
12590
14564
|
* Training / latency-variant axis. Omit ⇒ the standard build. `test` marks
|
|
12591
|
-
* an alternate training of the same family (
|
|
14565
|
+
* an alternate training of the same family (plugin catalog `relu_test`); chip
|
|
12592
14566
|
* label is "Test".
|
|
12593
14567
|
*/
|
|
12594
14568
|
optimization: _enum(["standard", "test"]).optional(),
|
|
@@ -12840,8 +14814,8 @@ var ModelCatalogEntrySchema = object({
|
|
|
12840
14814
|
provider: ModelProviderIdSchema.optional(),
|
|
12841
14815
|
/**
|
|
12842
14816
|
* Per-MODEL class map override. Absent ⇒ the step's `StepDefinition.classMap`
|
|
12843
|
-
* applies (
|
|
12844
|
-
* labels already ARE the CamStack macros (
|
|
14817
|
+
* applies (plus catalog / COCO public catalog). Set on a custom model whose raw
|
|
14818
|
+
* labels already ARE the CamStack macros (plugin catalog identity map).
|
|
12845
14819
|
*/
|
|
12846
14820
|
classMap: DetectionCatalogClassMapSchema.optional(),
|
|
12847
14821
|
/**
|
|
@@ -15810,7 +17784,7 @@ method(object({
|
|
|
15810
17784
|
* `1` is real time and is the ONLY value that allows the copy branch —
|
|
15811
17785
|
* anything else forces `libx264` over the window. That was priced
|
|
15812
17786
|
* before it was chosen: a per-event burst measured at 0.23 s and 254 KB
|
|
15813
|
-
* on a real
|
|
17787
|
+
* on a real 101 720p cut, against 922 KB for the copy it replaces. A
|
|
15814
17788
|
* re-encode is capped at 720p (`EVENT_CLIP_ENCODE_MAX_WIDTH`), because
|
|
15815
17789
|
* once the decode is forced the width stops being free.
|
|
15816
17790
|
*/
|
|
@@ -16336,6 +18310,7 @@ var CompositionRunStatusSchema = _enum([
|
|
|
16336
18310
|
"starting",
|
|
16337
18311
|
"running",
|
|
16338
18312
|
"degraded",
|
|
18313
|
+
"incomplete",
|
|
16339
18314
|
"failed"
|
|
16340
18315
|
]);
|
|
16341
18316
|
var CompositionFieldStateKindSchema = _enum([
|
|
@@ -16385,6 +18360,13 @@ var ComposerUnreadableBlockSchema = object({
|
|
|
16385
18360
|
/** The parse error, in the operator's words. */
|
|
16386
18361
|
error: string()
|
|
16387
18362
|
});
|
|
18363
|
+
/** A confirmed release the hub did not accept. `deviceId` is the claim's device. */
|
|
18364
|
+
var UnreleasedClaimSchema = object({
|
|
18365
|
+
deviceId: number().int(),
|
|
18366
|
+
capName: string(),
|
|
18367
|
+
owner: string(),
|
|
18368
|
+
error: string()
|
|
18369
|
+
});
|
|
16388
18370
|
method(object({
|
|
16389
18371
|
/** The shared Blocks integration; null until `core-blocks` has reconciled it. */
|
|
16390
18372
|
integrationId: string().nullable(),
|
|
@@ -16394,7 +18376,13 @@ method(object({
|
|
|
16394
18376
|
/** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
|
|
16395
18377
|
restartBlockIds: array(string()),
|
|
16396
18378
|
/** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
|
|
16397
|
-
unreadableBlocks: array(ComposerUnreadableBlockSchema)
|
|
18379
|
+
unreadableBlocks: array(ComposerUnreadableBlockSchema),
|
|
18380
|
+
/**
|
|
18381
|
+
* Operator-confirmed deletions. Their claims are released on this apply,
|
|
18382
|
+
* before any replacement block claims. A block that merely vanished from the
|
|
18383
|
+
* snapshot is not listed here and still waits for two applies (D49).
|
|
18384
|
+
*/
|
|
18385
|
+
retiredBlockIds: array(string()).optional()
|
|
16398
18386
|
}), object({
|
|
16399
18387
|
blocks: array(object({
|
|
16400
18388
|
blockId: string(),
|
|
@@ -16406,7 +18394,13 @@ method(object({
|
|
|
16406
18394
|
* integration unknown, its own rows unread or read empty once). An empty
|
|
16407
18395
|
* apply the caller owes is paid off only by one the composer acted on (D49).
|
|
16408
18396
|
*/
|
|
16409
|
-
acted: boolean()
|
|
18397
|
+
acted: boolean(),
|
|
18398
|
+
/**
|
|
18399
|
+
* Confirmed releases this apply tried and the hub did not accept. Empty when
|
|
18400
|
+
* every one landed (or there was nothing to hand back). Absent on a result
|
|
18401
|
+
* that never got that far.
|
|
18402
|
+
*/
|
|
18403
|
+
unreleasedClaims: array(UnreleasedClaimSchema).optional()
|
|
16410
18404
|
}), {
|
|
16411
18405
|
kind: "mutation",
|
|
16412
18406
|
auth: "admin"
|
|
@@ -16530,6 +18524,7 @@ var CoreBlockStatusSchema = _enum([
|
|
|
16530
18524
|
"starting",
|
|
16531
18525
|
"running",
|
|
16532
18526
|
"degraded",
|
|
18527
|
+
"incomplete",
|
|
16533
18528
|
"failed"
|
|
16534
18529
|
]);
|
|
16535
18530
|
/** path → TypeScript source for a multi-file block. */
|
|
@@ -38677,7 +40672,7 @@ var PRIMARY_CATEGORIES = new Set(ENTRIES.map((e) => e.primaryCategory));
|
|
|
38677
40672
|
* `locationKey` is ALWAYS {@link locationIconKey} of the label — never the
|
|
38678
40673
|
* operator's casing. The registry matches labels trimmed + case-insensitively
|
|
38679
40674
|
* everywhere (`addLocation`, `removeLocation`, `renameLocation`), and a
|
|
38680
|
-
* case-only rename (`
|
|
40675
|
+
* case-only rename (`kitchen` → `Kitchen`) is a real edit this repo supports; a
|
|
38681
40676
|
* map keyed on the displayed casing would orphan its entry on exactly that
|
|
38682
40677
|
* edit. Consumers join by keying their own label through `locationIconKey`.
|
|
38683
40678
|
*/
|
|
@@ -38702,7 +40697,7 @@ var LocationDescriptionAssignmentSchema = object({
|
|
|
38702
40697
|
/**
|
|
38703
40698
|
* A SITE ZONE — a named part of the property that several locations belong to.
|
|
38704
40699
|
*
|
|
38705
|
-
* "
|
|
40700
|
+
* "Night zone" holds every bedroom; "Zona giorno" the living room and the
|
|
38706
40701
|
* kitchen. A camera belongs to exactly one location, and a location to at most
|
|
38707
40702
|
* one zone, so a camera's zone is derived and never stored on the device: the
|
|
38708
40703
|
* whole point of this entity is that grouping rooms touches no device row.
|
|
@@ -38731,7 +40726,7 @@ var LocationDescriptionAssignmentSchema = object({
|
|
|
38731
40726
|
* the locations inside it.
|
|
38732
40727
|
*
|
|
38733
40728
|
* The LABEL is carried alongside the key because the key is lossy on purpose —
|
|
38734
|
-
* a surface must show "
|
|
40729
|
+
* a surface must show "Night zone", not "night zone". Locations are carried
|
|
38735
40730
|
* here, rather than left to a second call, because every consumer wants both
|
|
38736
40731
|
* at once and a viewer that asked twice could render a zone whose membership
|
|
38737
40732
|
* it has not fetched yet.
|
|
@@ -40944,8 +42939,8 @@ var LoadContributionSchema = object({
|
|
|
40944
42939
|
"unattributable"
|
|
40945
42940
|
]),
|
|
40946
42941
|
/**
|
|
40947
|
-
* What ONE entry is, in the contributor's own words — `
|
|
40948
|
-
* `
|
|
42942
|
+
* What ONE entry is, in the contributor's own words — `101/high`,
|
|
42943
|
+
* `102/native`, `cuda:0 shared pool`. Free text because the unit differs per
|
|
40949
42944
|
* family and inventing a common one would lose the only information that
|
|
40950
42945
|
* makes two entries for the same camera distinguishable.
|
|
40951
42946
|
*/
|
|
@@ -42593,6 +44588,381 @@ var _macroLookup = /* @__PURE__ */ new Map();
|
|
|
42593
44588
|
for (const [k, v] of Object.entries(YAMNET_TO_MACRO.mapping)) _macroLookup.set(k.toLowerCase(), v);
|
|
42594
44589
|
for (const [k, v] of Object.entries(APPLE_SA_TO_MACRO.mapping)) _macroLookup.set(k.toLowerCase(), v);
|
|
42595
44590
|
/**
|
|
44591
|
+
* Palette entry ids (D939). Audio is the one gradient; `audio-*` leaves are
|
|
44592
|
+
* not entries. `heatmapScrub` is a mark, not an event kind.
|
|
44593
|
+
*/
|
|
44594
|
+
var PALETTE_ENTRY_IDS = [
|
|
44595
|
+
"motion",
|
|
44596
|
+
"audio",
|
|
44597
|
+
"recording",
|
|
44598
|
+
"live",
|
|
44599
|
+
"heatmapScrub",
|
|
44600
|
+
"person",
|
|
44601
|
+
"vehicle",
|
|
44602
|
+
"animal",
|
|
44603
|
+
"package",
|
|
44604
|
+
"sensor",
|
|
44605
|
+
"control",
|
|
44606
|
+
"face",
|
|
44607
|
+
"plate",
|
|
44608
|
+
"car",
|
|
44609
|
+
"truck",
|
|
44610
|
+
"bus",
|
|
44611
|
+
"motorcycle",
|
|
44612
|
+
"bicycle",
|
|
44613
|
+
"airplane",
|
|
44614
|
+
"boat",
|
|
44615
|
+
"train",
|
|
44616
|
+
"bird",
|
|
44617
|
+
"dog",
|
|
44618
|
+
"cat",
|
|
44619
|
+
"horse",
|
|
44620
|
+
"sheep",
|
|
44621
|
+
"cow",
|
|
44622
|
+
"elephant",
|
|
44623
|
+
"bear",
|
|
44624
|
+
"zebra",
|
|
44625
|
+
"giraffe",
|
|
44626
|
+
"package-delivered",
|
|
44627
|
+
"package-picked-up",
|
|
44628
|
+
"suitcase",
|
|
44629
|
+
"backpack",
|
|
44630
|
+
"handbag",
|
|
44631
|
+
"contact",
|
|
44632
|
+
"motion-sensor",
|
|
44633
|
+
"smoke",
|
|
44634
|
+
"flood",
|
|
44635
|
+
"gas",
|
|
44636
|
+
"carbon-monoxide",
|
|
44637
|
+
"vibration",
|
|
44638
|
+
"tamper",
|
|
44639
|
+
"presence",
|
|
44640
|
+
"enum-sensor",
|
|
44641
|
+
"device-event",
|
|
44642
|
+
"lock",
|
|
44643
|
+
"cover",
|
|
44644
|
+
"switch",
|
|
44645
|
+
"siren",
|
|
44646
|
+
"button",
|
|
44647
|
+
"doorbell"
|
|
44648
|
+
];
|
|
44649
|
+
var AUDIO_ENTRY_ID = "audio";
|
|
44650
|
+
/** Six rungs, quiet → loud. The opaque end is the entry's hex. */
|
|
44651
|
+
var AUDIO_GRADIENT_ALPHAS = [
|
|
44652
|
+
.3,
|
|
44653
|
+
.42,
|
|
44654
|
+
.55,
|
|
44655
|
+
.7,
|
|
44656
|
+
.85,
|
|
44657
|
+
1
|
|
44658
|
+
];
|
|
44659
|
+
var PALETTE_PRESET_IDS = [
|
|
44660
|
+
"camstack",
|
|
44661
|
+
"high-contrast",
|
|
44662
|
+
"okabe-ito"
|
|
44663
|
+
];
|
|
44664
|
+
/** Frozen palette tables (D939). The spec refuses a table that breaks the rule. */
|
|
44665
|
+
var CAMSTACK_HEX = {
|
|
44666
|
+
motion: "#d946ef",
|
|
44667
|
+
audio: "#059eb8",
|
|
44668
|
+
recording: "#ef4444",
|
|
44669
|
+
live: "#8d7a00",
|
|
44670
|
+
heatmapScrub: "#4b32ff",
|
|
44671
|
+
person: "#11a64c",
|
|
44672
|
+
vehicle: "#3b82f6",
|
|
44673
|
+
animal: "#ea6a09",
|
|
44674
|
+
package: "#924667",
|
|
44675
|
+
sensor: "#624bbc",
|
|
44676
|
+
control: "#944d24",
|
|
44677
|
+
face: "#ed4f8d",
|
|
44678
|
+
plate: "#4b7027",
|
|
44679
|
+
car: "#9684cf",
|
|
44680
|
+
truck: "#0f9b89",
|
|
44681
|
+
bus: "#a734a9",
|
|
44682
|
+
motorcycle: "#c1133a",
|
|
44683
|
+
bicycle: "#0e6a9b",
|
|
44684
|
+
airplane: "#7c9928",
|
|
44685
|
+
boat: "#b17933",
|
|
44686
|
+
train: "#ad6ca3",
|
|
44687
|
+
bird: "#0f7c55",
|
|
44688
|
+
dog: "#c82700",
|
|
44689
|
+
cat: "#7268f2",
|
|
44690
|
+
horse: "#cb795e",
|
|
44691
|
+
sheep: "#b8636b",
|
|
44692
|
+
cow: "#cb2969",
|
|
44693
|
+
elephant: "#1158d2",
|
|
44694
|
+
bear: "#8d5e00",
|
|
44695
|
+
zebra: "#0097d6",
|
|
44696
|
+
giraffe: "#8f61bb",
|
|
44697
|
+
"package-delivered": "#cd3f9b",
|
|
44698
|
+
"package-picked-up": "#388a08",
|
|
44699
|
+
suitcase: "#666800",
|
|
44700
|
+
backpack: "#ec5022",
|
|
44701
|
+
handbag: "#a76ef8",
|
|
44702
|
+
contact: "#ab5a49",
|
|
44703
|
+
"motion-sensor": "#b95d1a",
|
|
44704
|
+
smoke: "#dd3858",
|
|
44705
|
+
flood: "#b31e7d",
|
|
44706
|
+
gas: "#5b70b5",
|
|
44707
|
+
"carbon-monoxide": "#7b4e8e",
|
|
44708
|
+
vibration: "#e65bba",
|
|
44709
|
+
tamper: "#98464b",
|
|
44710
|
+
presence: "#3a9468",
|
|
44711
|
+
"enum-sensor": "#7885f8",
|
|
44712
|
+
"device-event": "#8c43c8",
|
|
44713
|
+
lock: "#649653",
|
|
44714
|
+
cover: "#c67597",
|
|
44715
|
+
switch: "#7a812a",
|
|
44716
|
+
siren: "#ac5d7f",
|
|
44717
|
+
button: "#b276cd",
|
|
44718
|
+
doorbell: "#0087ab"
|
|
44719
|
+
};
|
|
44720
|
+
var CAMSTACK_FALLBACK = [
|
|
44721
|
+
"#b34dc7",
|
|
44722
|
+
"#1d7d34",
|
|
44723
|
+
"#db6b6c",
|
|
44724
|
+
"#a43d29",
|
|
44725
|
+
"#0e6ee6",
|
|
44726
|
+
"#29a10b",
|
|
44727
|
+
"#a98731",
|
|
44728
|
+
"#0181c6"
|
|
44729
|
+
];
|
|
44730
|
+
var HIGH_CONTRAST_HEX = {
|
|
44731
|
+
motion: "#964360",
|
|
44732
|
+
audio: "#23a132",
|
|
44733
|
+
recording: "#2494ca",
|
|
44734
|
+
live: "#bd7e2b",
|
|
44735
|
+
heatmapScrub: "#ad6eea",
|
|
44736
|
+
person: "#62611e",
|
|
44737
|
+
vehicle: "#f4534c",
|
|
44738
|
+
animal: "#1556cd",
|
|
44739
|
+
package: "#9c4415",
|
|
44740
|
+
sensor: "#066c48",
|
|
44741
|
+
control: "#f2479f",
|
|
44742
|
+
face: "#139d8a",
|
|
44743
|
+
plate: "#909024",
|
|
44744
|
+
car: "#8e35ab",
|
|
44745
|
+
truck: "#bd0b2b",
|
|
44746
|
+
bus: "#7a88ca",
|
|
44747
|
+
motorcycle: "#e26725",
|
|
44748
|
+
bicycle: "#a6679b",
|
|
44749
|
+
airplane: "#7c5720",
|
|
44750
|
+
boat: "#467a1b",
|
|
44751
|
+
train: "#6f65a4",
|
|
44752
|
+
bird: "#cb717f",
|
|
44753
|
+
dog: "#c62490",
|
|
44754
|
+
cat: "#b36850",
|
|
44755
|
+
horse: "#1872ac",
|
|
44756
|
+
sheep: "#927939",
|
|
44757
|
+
cow: "#428a5c",
|
|
44758
|
+
elephant: "#d41160",
|
|
44759
|
+
bear: "#799453",
|
|
44760
|
+
zebra: "#a85455",
|
|
44761
|
+
giraffe: "#746be8",
|
|
44762
|
+
"package-delivered": "#824a80",
|
|
44763
|
+
"package-picked-up": "#614ac1",
|
|
44764
|
+
suitcase: "#2f77f3",
|
|
44765
|
+
backpack: "#fa476d",
|
|
44766
|
+
handbag: "#c14cbe",
|
|
44767
|
+
contact: "#c83921",
|
|
44768
|
+
"motion-sensor": "#a07ebd",
|
|
44769
|
+
smoke: "#a25b13",
|
|
44770
|
+
flood: "#526bab",
|
|
44771
|
+
gas: "#924938",
|
|
44772
|
+
"carbon-monoxide": "#bb7e53",
|
|
44773
|
+
vibration: "#b66182",
|
|
44774
|
+
tamper: "#3c6931",
|
|
44775
|
+
presence: "#6c851d",
|
|
44776
|
+
"enum-sensor": "#ad2d48",
|
|
44777
|
+
"device-event": "#5e9b04",
|
|
44778
|
+
lock: "#00a062",
|
|
44779
|
+
cover: "#ad8624",
|
|
44780
|
+
switch: "#d05259",
|
|
44781
|
+
siren: "#cd67b3",
|
|
44782
|
+
button: "#c9746a",
|
|
44783
|
+
doorbell: "#338eeb"
|
|
44784
|
+
};
|
|
44785
|
+
var HIGH_CONTRAST_FALLBACK = [
|
|
44786
|
+
"#817f3b",
|
|
44787
|
+
"#a0733e",
|
|
44788
|
+
"#8658b2",
|
|
44789
|
+
"#956301",
|
|
44790
|
+
"#bc652d",
|
|
44791
|
+
"#647331",
|
|
44792
|
+
"#a14c9e",
|
|
44793
|
+
"#d14e71"
|
|
44794
|
+
];
|
|
44795
|
+
var OKABE_ITO_HEX = {
|
|
44796
|
+
motion: "#b88128",
|
|
44797
|
+
audio: "#1096c8",
|
|
44798
|
+
recording: "#009e73",
|
|
44799
|
+
live: "#9c8c22",
|
|
44800
|
+
heatmapScrub: "#0072b2",
|
|
44801
|
+
person: "#d55e00",
|
|
44802
|
+
vehicle: "#c0739f",
|
|
44803
|
+
animal: "#226d18",
|
|
44804
|
+
package: "#91446c",
|
|
44805
|
+
sensor: "#217b56",
|
|
44806
|
+
control: "#648647",
|
|
44807
|
+
face: "#c22998",
|
|
44808
|
+
plate: "#fa4575",
|
|
44809
|
+
car: "#956301",
|
|
44810
|
+
truck: "#2f77f3",
|
|
44811
|
+
bus: "#7a4e86",
|
|
44812
|
+
motorcycle: "#f54597",
|
|
44813
|
+
bicycle: "#bb3e75",
|
|
44814
|
+
airplane: "#e054c0",
|
|
44815
|
+
boat: "#457942",
|
|
44816
|
+
train: "#867afa",
|
|
44817
|
+
bird: "#88914c",
|
|
44818
|
+
dog: "#1556cd",
|
|
44819
|
+
cat: "#71702c",
|
|
44820
|
+
horse: "#9b4fa4",
|
|
44821
|
+
sheep: "#c0559d",
|
|
44822
|
+
cow: "#d14f65",
|
|
44823
|
+
elephant: "#98470f",
|
|
44824
|
+
bear: "#595896",
|
|
44825
|
+
zebra: "#96790e",
|
|
44826
|
+
giraffe: "#cb717b",
|
|
44827
|
+
"package-delivered": "#139d8a",
|
|
44828
|
+
"package-picked-up": "#906ead",
|
|
44829
|
+
suitcase: "#d02939",
|
|
44830
|
+
backpack: "#d41160",
|
|
44831
|
+
handbag: "#f64f54",
|
|
44832
|
+
contact: "#7258d2",
|
|
44833
|
+
"motion-sensor": "#b66182",
|
|
44834
|
+
smoke: "#627abb",
|
|
44835
|
+
flood: "#b86ae4",
|
|
44836
|
+
gas: "#a95261",
|
|
44837
|
+
"carbon-monoxide": "#c65d3c",
|
|
44838
|
+
vibration: "#7a40b7",
|
|
44839
|
+
tamper: "#914b34",
|
|
44840
|
+
presence: "#9481c3",
|
|
44841
|
+
"enum-sensor": "#ac6d47",
|
|
44842
|
+
"device-event": "#7b6fce",
|
|
44843
|
+
lock: "#c67662",
|
|
44844
|
+
cover: "#a6564d",
|
|
44845
|
+
switch: "#ad2c4e",
|
|
44846
|
+
siren: "#348e08",
|
|
44847
|
+
button: "#d27303",
|
|
44848
|
+
doorbell: "#55770f"
|
|
44849
|
+
};
|
|
44850
|
+
var OKABE_ITO_FALLBACK = [
|
|
44851
|
+
"#9a3784",
|
|
44852
|
+
"#a7392c",
|
|
44853
|
+
"#409d50",
|
|
44854
|
+
"#6987e7",
|
|
44855
|
+
"#ee5b3d",
|
|
44856
|
+
"#c0430d",
|
|
44857
|
+
"#af79b3",
|
|
44858
|
+
"#4b6628"
|
|
44859
|
+
];
|
|
44860
|
+
/**
|
|
44861
|
+
* The display palette (D939). One table of colours, three presets, one
|
|
44862
|
+
* validator. Taxonomy colours and every consumer read this — there is no
|
|
44863
|
+
* second hex table.
|
|
44864
|
+
*/
|
|
44865
|
+
var paletteHexSchema = string().regex(/^#[0-9a-f]{6}$/);
|
|
44866
|
+
var paletteSwatchSchema = discriminatedUnion("form", [object({
|
|
44867
|
+
form: literal("solid"),
|
|
44868
|
+
hex: paletteHexSchema
|
|
44869
|
+
}), object({
|
|
44870
|
+
form: literal("gradient"),
|
|
44871
|
+
hex: paletteHexSchema,
|
|
44872
|
+
alphas: array(number().gt(0).lte(1)).length(AUDIO_GRADIENT_ALPHAS.length)
|
|
44873
|
+
})]);
|
|
44874
|
+
var paletteReadySchema = object({
|
|
44875
|
+
status: literal("ready"),
|
|
44876
|
+
presetId: _enum(PALETTE_PRESET_IDS),
|
|
44877
|
+
customized: boolean(),
|
|
44878
|
+
source: _enum(["stored", "unconfigured"]),
|
|
44879
|
+
swatches: record(string(), paletteSwatchSchema),
|
|
44880
|
+
fallbacks: array(paletteHexSchema).length(8)
|
|
44881
|
+
});
|
|
44882
|
+
var paletteResultSchema = discriminatedUnion("status", [paletteReadySchema, object({
|
|
44883
|
+
status: literal("unknown"),
|
|
44884
|
+
reason: string()
|
|
44885
|
+
})]);
|
|
44886
|
+
var setPaletteInputSchema = union([object({ presetId: string() }), object({
|
|
44887
|
+
presetId: string(),
|
|
44888
|
+
overrides: record(string(), paletteSwatchSchema)
|
|
44889
|
+
})]);
|
|
44890
|
+
object({
|
|
44891
|
+
presetId: string(),
|
|
44892
|
+
overrides: record(string(), paletteSwatchSchema)
|
|
44893
|
+
});
|
|
44894
|
+
function solid(hex) {
|
|
44895
|
+
return {
|
|
44896
|
+
form: "solid",
|
|
44897
|
+
hex
|
|
44898
|
+
};
|
|
44899
|
+
}
|
|
44900
|
+
function audioGradient(hex) {
|
|
44901
|
+
return {
|
|
44902
|
+
form: "gradient",
|
|
44903
|
+
hex,
|
|
44904
|
+
alphas: [...AUDIO_GRADIENT_ALPHAS]
|
|
44905
|
+
};
|
|
44906
|
+
}
|
|
44907
|
+
function swatchesFrom(hexes) {
|
|
44908
|
+
const out = {};
|
|
44909
|
+
for (const id of PALETTE_ENTRY_IDS) {
|
|
44910
|
+
const hex = hexes[id];
|
|
44911
|
+
if (hex === void 0) throw new Error(`palette table missing ${id}`);
|
|
44912
|
+
out[id] = id === "audio" ? audioGradient(hex) : solid(hex);
|
|
44913
|
+
}
|
|
44914
|
+
return out;
|
|
44915
|
+
}
|
|
44916
|
+
function preset(id, name, hexes, fallbacks) {
|
|
44917
|
+
return {
|
|
44918
|
+
id,
|
|
44919
|
+
name,
|
|
44920
|
+
swatches: swatchesFrom(hexes),
|
|
44921
|
+
fallbacks
|
|
44922
|
+
};
|
|
44923
|
+
}
|
|
44924
|
+
var DISPLAY_PRESETS = [
|
|
44925
|
+
preset("camstack", "CamStack", CAMSTACK_HEX, CAMSTACK_FALLBACK),
|
|
44926
|
+
preset("high-contrast", "High contrast", HIGH_CONTRAST_HEX, HIGH_CONTRAST_FALLBACK),
|
|
44927
|
+
preset("okabe-ito", "Colour-blind safe", OKABE_ITO_HEX, OKABE_ITO_FALLBACK)
|
|
44928
|
+
];
|
|
44929
|
+
function presetById(id) {
|
|
44930
|
+
return DISPLAY_PRESETS.find((item) => item.id === id);
|
|
44931
|
+
}
|
|
44932
|
+
function bundledCamstack() {
|
|
44933
|
+
const presetRow = presetById("camstack");
|
|
44934
|
+
if (presetRow === void 0) throw new Error("CamStack preset missing");
|
|
44935
|
+
return readyOf(presetRow, "unconfigured", false);
|
|
44936
|
+
}
|
|
44937
|
+
function readyOf(row, source, customized) {
|
|
44938
|
+
return {
|
|
44939
|
+
status: "ready",
|
|
44940
|
+
presetId: row.id,
|
|
44941
|
+
customized,
|
|
44942
|
+
source,
|
|
44943
|
+
swatches: row.swatches,
|
|
44944
|
+
fallbacks: [...row.fallbacks]
|
|
44945
|
+
};
|
|
44946
|
+
}
|
|
44947
|
+
function hashFallback(kind, fallbacks) {
|
|
44948
|
+
let hash = 0;
|
|
44949
|
+
for (let i = 0; i < kind.length; i++) hash = hash * 31 + (kind.codePointAt(i) ?? 0) >>> 0;
|
|
44950
|
+
const hex = fallbacks[hash % fallbacks.length];
|
|
44951
|
+
if (hex === void 0) throw new Error("display palette has no fallback colour");
|
|
44952
|
+
return hex;
|
|
44953
|
+
}
|
|
44954
|
+
/** Colour a kind paints with. Audio leaves share the audio gradient's hex. */
|
|
44955
|
+
function paintHex(swatches, fallbacks, kind) {
|
|
44956
|
+
const key = kind.trim().toLowerCase();
|
|
44957
|
+
if (key.startsWith("audio-")) {
|
|
44958
|
+
const audio = swatches[AUDIO_ENTRY_ID];
|
|
44959
|
+
return audio !== void 0 ? audio.hex : hashFallback(key, fallbacks);
|
|
44960
|
+
}
|
|
44961
|
+
const direct = swatches[key];
|
|
44962
|
+
if (direct !== void 0) return direct.hex;
|
|
44963
|
+
return hashFallback(key, fallbacks);
|
|
44964
|
+
}
|
|
44965
|
+
/**
|
|
42596
44966
|
* Unified event-kind taxonomy — THE single source of truth for
|
|
42597
44967
|
* `kind → { parentKind, category, level, color, iconId, labelKey, label,
|
|
42598
44968
|
* icon }`.
|
|
@@ -42606,109 +44976,88 @@ for (const [k, v] of Object.entries(APPLE_SA_TO_MACRO.mapping)) _macroLookup.set
|
|
|
42606
44976
|
* - `addon-post-analysis/shared/frame/box-drawer.ts` (DEFAULT_COLOR)
|
|
42607
44977
|
* - the COCO / audio class maps (macro ↔ sub relationships)
|
|
42608
44978
|
*
|
|
42609
|
-
* The DATA (serializable —
|
|
42610
|
-
* `@camstack/types`.
|
|
42611
|
-
*
|
|
42612
|
-
*
|
|
42613
|
-
*
|
|
44979
|
+
* The DATA (serializable — parentKind / iconId / labelKey) lives here in
|
|
44980
|
+
* `@camstack/types`. Colour is NOT a second table: each entry's `color` is
|
|
44981
|
+
* the bundled CamStack display palette (D939). The effective cluster palette
|
|
44982
|
+
* is the `display-palette` capability. The UI-side mapping `iconId → lucide
|
|
44983
|
+
* component` and `labelKey → t()` lives in `@camstack/ui-library`.
|
|
42614
44984
|
*
|
|
42615
44985
|
* Two levels only (v1 YAGNI): macro → sub. `person` is a leaf macro.
|
|
42616
44986
|
*/
|
|
42617
|
-
var
|
|
42618
|
-
|
|
42619
|
-
|
|
42620
|
-
|
|
42621
|
-
|
|
42622
|
-
|
|
42623
|
-
|
|
42624
|
-
|
|
42625
|
-
|
|
42626
|
-
|
|
42627
|
-
};
|
|
42628
|
-
var DETECTION_SUB_COLORS = {
|
|
42629
|
-
car: "#f59e0b",
|
|
42630
|
-
truck: "#d97706",
|
|
42631
|
-
bus: "#b45309",
|
|
42632
|
-
motorcycle: "#eab308",
|
|
42633
|
-
bicycle: "#ca8a04",
|
|
42634
|
-
airplane: "#60a5fa",
|
|
42635
|
-
boat: "#2563eb",
|
|
42636
|
-
train: "#1d4ed8",
|
|
42637
|
-
bird: "#14b8a6",
|
|
42638
|
-
dog: "#84cc16",
|
|
42639
|
-
cat: "#f97316",
|
|
42640
|
-
horse: "#a16207",
|
|
42641
|
-
sheep: "#a3a3a3",
|
|
42642
|
-
cow: "#78716c",
|
|
42643
|
-
elephant: "#6b7280",
|
|
42644
|
-
bear: "#7c2d12",
|
|
42645
|
-
zebra: "#404040",
|
|
42646
|
-
giraffe: "#d4a373"
|
|
42647
|
-
};
|
|
44987
|
+
var BUNDLED_PALETTE = bundledCamstack();
|
|
44988
|
+
function kindColor(kind) {
|
|
44989
|
+
return paintHex(BUNDLED_PALETTE.swatches, BUNDLED_PALETTE.fallbacks, kind);
|
|
44990
|
+
}
|
|
44991
|
+
function firstFallback(fallbacks) {
|
|
44992
|
+
const hex = fallbacks[0];
|
|
44993
|
+
if (hex === void 0) throw new Error("display palette has no fallback colour");
|
|
44994
|
+
return hex;
|
|
44995
|
+
}
|
|
44996
|
+
firstFallback(BUNDLED_PALETTE.fallbacks);
|
|
42648
44997
|
function titleCase(id) {
|
|
42649
44998
|
return id.split(/[-_ ]/).filter((p) => p.length > 0).map((p) => p.charAt(0).toUpperCase() + p.slice(1)).join(" ");
|
|
42650
44999
|
}
|
|
42651
45000
|
var entries = /* @__PURE__ */ new Map();
|
|
42652
|
-
function macro(kind, category,
|
|
45001
|
+
function macro(kind, category, iconId, label) {
|
|
42653
45002
|
entries.set(kind, {
|
|
42654
45003
|
kind,
|
|
42655
45004
|
parentKind: null,
|
|
42656
45005
|
level: "macro",
|
|
42657
45006
|
category,
|
|
42658
|
-
color,
|
|
45007
|
+
color: kindColor(kind),
|
|
42659
45008
|
iconId,
|
|
42660
45009
|
labelKey: `eventKind.${kind}`,
|
|
42661
45010
|
label
|
|
42662
45011
|
});
|
|
42663
45012
|
}
|
|
42664
|
-
function sub(kind, parentKind, category,
|
|
45013
|
+
function sub(kind, parentKind, category, iconId, label) {
|
|
42665
45014
|
entries.set(kind, {
|
|
42666
45015
|
kind,
|
|
42667
45016
|
parentKind,
|
|
42668
45017
|
level: "sub",
|
|
42669
45018
|
category,
|
|
42670
|
-
color,
|
|
45019
|
+
color: kindColor(kind),
|
|
42671
45020
|
iconId,
|
|
42672
45021
|
labelKey: `eventKind.${kind}`,
|
|
42673
45022
|
label
|
|
42674
45023
|
});
|
|
42675
45024
|
}
|
|
42676
|
-
macro("motion", "motion",
|
|
42677
|
-
macro("audio", "audio",
|
|
42678
|
-
macro("person", "detection",
|
|
42679
|
-
macro("vehicle", "detection",
|
|
42680
|
-
macro("animal", "detection",
|
|
42681
|
-
macro("package", "package",
|
|
42682
|
-
macro("sensor", "sensor",
|
|
42683
|
-
macro("control", "control",
|
|
45025
|
+
macro("motion", "motion", "motion", "Motion");
|
|
45026
|
+
macro("audio", "audio", "audio", "Audio");
|
|
45027
|
+
macro("person", "detection", "person", "Person");
|
|
45028
|
+
macro("vehicle", "detection", "vehicle", "Vehicle");
|
|
45029
|
+
macro("animal", "detection", "animal", "Animal");
|
|
45030
|
+
macro("package", "package", "package", "Package");
|
|
45031
|
+
macro("sensor", "sensor", "sensor", "Sensor");
|
|
45032
|
+
macro("control", "control", "control", "Control");
|
|
42684
45033
|
for (const [cocoClass, macroClass] of Object.entries(COCO_TO_MACRO.mapping)) {
|
|
42685
45034
|
if (macroClass !== "vehicle" && macroClass !== "animal") continue;
|
|
42686
45035
|
if (entries.has(cocoClass)) continue;
|
|
42687
|
-
sub(cocoClass, macroClass, "detection",
|
|
42688
|
-
}
|
|
42689
|
-
sub("package-delivered", "package", "package",
|
|
42690
|
-
sub("package-picked-up", "package", "package",
|
|
42691
|
-
sub("contact", "sensor", "sensor", "
|
|
42692
|
-
sub("motion-sensor", "sensor", "sensor",
|
|
42693
|
-
sub("smoke", "sensor", "sensor", "
|
|
42694
|
-
sub("flood", "sensor", "sensor", "
|
|
42695
|
-
sub("gas", "sensor", "sensor", "
|
|
42696
|
-
sub("carbon-monoxide", "sensor", "sensor", "
|
|
42697
|
-
sub("vibration", "sensor", "sensor", "
|
|
42698
|
-
sub("tamper", "sensor", "sensor", "
|
|
42699
|
-
sub("presence", "sensor", "sensor", "
|
|
42700
|
-
sub("enum-sensor", "sensor", "sensor",
|
|
42701
|
-
sub("device-event", "sensor", "sensor", "
|
|
42702
|
-
sub("lock", "control", "control", "
|
|
42703
|
-
sub("cover", "control", "control", "
|
|
42704
|
-
sub("switch", "control", "control",
|
|
42705
|
-
sub("siren", "control", "control", "
|
|
42706
|
-
sub("button", "control", "control", "
|
|
42707
|
-
sub("doorbell", "control", "control", "
|
|
45036
|
+
sub(cocoClass, macroClass, "detection", cocoClass, titleCase(cocoClass));
|
|
45037
|
+
}
|
|
45038
|
+
sub("package-delivered", "package", "package", "package", "Package delivered");
|
|
45039
|
+
sub("package-picked-up", "package", "package", "package", "Package picked up");
|
|
45040
|
+
sub("contact", "sensor", "sensor", "door", "Contact");
|
|
45041
|
+
sub("motion-sensor", "sensor", "sensor", "pir", "Motion sensor");
|
|
45042
|
+
sub("smoke", "sensor", "sensor", "smoke", "Smoke");
|
|
45043
|
+
sub("flood", "sensor", "sensor", "water", "Water leak");
|
|
45044
|
+
sub("gas", "sensor", "sensor", "gas", "Gas");
|
|
45045
|
+
sub("carbon-monoxide", "sensor", "sensor", "smoke", "Carbon monoxide");
|
|
45046
|
+
sub("vibration", "sensor", "sensor", "vibration", "Vibration");
|
|
45047
|
+
sub("tamper", "sensor", "sensor", "tamper", "Tamper");
|
|
45048
|
+
sub("presence", "sensor", "sensor", "presence", "Presence");
|
|
45049
|
+
sub("enum-sensor", "sensor", "sensor", "generic", "Sensor state");
|
|
45050
|
+
sub("device-event", "sensor", "sensor", "button", "Device event");
|
|
45051
|
+
sub("lock", "control", "control", "lock", "Lock");
|
|
45052
|
+
sub("cover", "control", "control", "door", "Cover");
|
|
45053
|
+
sub("switch", "control", "control", "switch", "Switch");
|
|
45054
|
+
sub("siren", "control", "control", "siren", "Siren");
|
|
45055
|
+
sub("button", "control", "control", "button", "Button");
|
|
45056
|
+
sub("doorbell", "control", "control", "doorbell", "Doorbell");
|
|
42708
45057
|
for (const l of AUDIO_MACRO_LABELS) {
|
|
42709
45058
|
const kind = `audio-${l.id}`;
|
|
42710
45059
|
if (entries.has(kind)) continue;
|
|
42711
|
-
sub(kind, "audio", "audio",
|
|
45060
|
+
sub(kind, "audio", "audio", kind, l.name);
|
|
42712
45061
|
}
|
|
42713
45062
|
/** The complete taxonomy dictionary, keyed by kind. */
|
|
42714
45063
|
var EVENT_TAXONOMY = Object.freeze(Object.fromEntries(entries));
|
|
@@ -43595,7 +45944,7 @@ var NcConditionsSchema = object({
|
|
|
43595
45944
|
* with the list under it is worse than no switch (D62).
|
|
43596
45945
|
*
|
|
43597
45946
|
* MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
|
|
43598
|
-
* renameable, and a rule authored on "
|
|
45947
|
+
* renameable, and a rule authored on "Alice" went silently dark the moment
|
|
43599
45948
|
* the operator fixed the spelling. The id reaches the record on
|
|
43600
45949
|
* `LabelAttribution.identityId`; the name is what the editor shows and what
|
|
43601
45950
|
* `{{label}}` renders.
|
|
@@ -44146,7 +46495,7 @@ var NcRulePatchSchema = NcRuleInputSchema.partial().extend({
|
|
|
44146
46495
|
* A rule scoped to one camera and one zone silently became a rule that
|
|
44147
46496
|
* matches EVERY event on EVERY camera, and lost its `media` policy
|
|
44148
46497
|
* (zoneCrop / gif / clip / frame) and its `priority` at the same time. Seen
|
|
44149
|
-
* live on 2026-08-12: a rule scoped to device
|
|
46498
|
+
* live on 2026-08-12: a rule scoped to device 102 fired on 104 and 101
|
|
44150
46499
|
* within a minute of a two-field patch.
|
|
44151
46500
|
*
|
|
44152
46501
|
* So every defaulted field is re-declared here WITHOUT its default. The
|
|
@@ -45959,7 +48308,7 @@ var LabelAttributionSchema = object({
|
|
|
45959
48308
|
* `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
|
|
45960
48309
|
*
|
|
45961
48310
|
* The text alone is a DISPLAY NAME, and a display name is renameable: a
|
|
45962
|
-
* notification rule authored on "
|
|
48311
|
+
* notification rule authored on "Alice" stopped matching the moment the
|
|
45963
48312
|
* operator fixed the spelling in the gallery, and nothing said so. The id is
|
|
45964
48313
|
* the thing that does not move, so it is what a rule matches on
|
|
45965
48314
|
* (`NcConditions.identities`) and the text is what a human is shown.
|
|
@@ -48498,7 +50847,7 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
48498
50847
|
/**
|
|
48499
50848
|
* Root-supplied detections for the tree's ROOT step (D730). Set by
|
|
48500
50849
|
* `runDetailSubtree` when the camera's root model supplies a crop-kind
|
|
48501
|
-
* step (a
|
|
50850
|
+
* step (a plus catalog `license_plate` for `plate-detection`): the step is
|
|
48502
50851
|
* NOT inferred, these boxes are its output, and its children (the plate
|
|
48503
50852
|
* reader) run on them through their own crop policy. Boxes are in the
|
|
48504
50853
|
* PIXELS of the image this call carries. Absent ⇒ the root step runs.
|
|
@@ -50175,7 +52524,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
50175
52524
|
* detection session that asks for history. What shipped was a last-moment
|
|
50176
52525
|
* discard — `FrameSlot`'s throttle compares wall clocks, and ~4 s of media
|
|
50177
52526
|
* arriving inside a few hundred ms of wall clock looks to it like one frame's
|
|
50178
|
-
* worth. Device
|
|
52527
|
+
* worth. Device 102, 2026-09-08: a re-run of the SAME model over the stored
|
|
50179
52528
|
* recording scored the subject `vehicle 0.5669` — above the 0.50 floor —
|
|
50180
52529
|
* 1.68 s BEFORE the live track was born, on a frame that was in the pre-roll,
|
|
50181
52530
|
* was decoded, and was freed.
|
|
@@ -52309,7 +54658,7 @@ method(_void(), ProviderInfoSchema, { auth: "admin" }), method(object({ config:
|
|
|
52309
54658
|
* The signals a device can emit to WAKE its own stream.
|
|
52310
54659
|
*
|
|
52311
54660
|
* A camera whose stream is built on demand sleeps until something asks for it,
|
|
52312
|
-
* and "something" cannot be a consumer that is merely attached — a
|
|
54661
|
+
* and "something" cannot be a consumer that is merely attached — a external-catalog
|
|
52313
54662
|
* puller holds a session open for ever, and treating that as demand would keep
|
|
52314
54663
|
* a battery camera awake for ever, which is the whole thing the battery is for
|
|
52315
54664
|
* (D173). So the wake has to come from the CAMERA: an event it noticed by
|
|
@@ -53077,7 +55426,7 @@ var ClipSchema = object({
|
|
|
53077
55426
|
* {@link MAX_CLIP_EVENT_IDS}. Empty on footage-only clips.
|
|
53078
55427
|
*
|
|
53079
55428
|
* Bounded because it is not a payload the surface pages through: one visit on
|
|
53080
|
-
* device
|
|
55429
|
+
* device 101 carried 2 345 ids, and `eventIds` was 99% of a 153 KB
|
|
53081
55430
|
* camera-day. Read {@link eventCount} for the true total.
|
|
53082
55431
|
*/
|
|
53083
55432
|
eventIds: array(string()).optional(),
|
|
@@ -53222,7 +55571,7 @@ var ClipPlaybackSchema = object({
|
|
|
53222
55571
|
* camera has no recordings", which is the defect this whole line of work is
|
|
53223
55572
|
* about: a battery camera nobody woke (`sleeping`), a camera that could not be
|
|
53224
55573
|
* reached at all (`unreachable`, also what a provider that THREW reports), a
|
|
53225
|
-
* camera whose SD card is not mounted (`no-storage`, measured on
|
|
55574
|
+
* camera whose SD card is not mounted (`no-storage`, measured on 106 —
|
|
53226
55575
|
* `HddInfo mount 0`, honestly nothing to list rather than "no clips"), and a
|
|
53227
55576
|
* camera whose OWN index disagrees with its OWN calendar (`index-empty`,
|
|
53228
55577
|
* measured on 618: the calendar marks 3–20 September, days 6–20 list zero
|
|
@@ -53683,7 +56032,7 @@ var videoclipsCapability = {
|
|
|
53683
56032
|
*
|
|
53684
56033
|
* It was optional, documented as "absent means the device's BOUND
|
|
53685
56034
|
* provider, which is CamStack on every camera". No code implemented
|
|
53686
|
-
* that. Measured on the live hub 2026-09-20 — device
|
|
56035
|
+
* that. Measured on the live hub 2026-09-20 — device 107, bound to
|
|
53687
56036
|
* `recorder` AND `provider-reolink` — a bare call with `limit: 3`
|
|
53688
56037
|
* answered SIX rows, three from each source, merged newest-first:
|
|
53689
56038
|
* `device-collection-dispatch.ts` simply left the fan-out un-narrowed,
|
|
@@ -55000,7 +57349,10 @@ var airQualitySensorCapability = {
|
|
|
55000
57349
|
*/
|
|
55001
57350
|
var AmbientLightSensorStatusSchema = object({
|
|
55002
57351
|
/** Current illuminance in lux (lx). */
|
|
55003
|
-
lux: number().min(0)
|
|
57352
|
+
lux: number().min(0).meta({
|
|
57353
|
+
unit: "lx",
|
|
57354
|
+
label: "Illuminance"
|
|
57355
|
+
}),
|
|
55004
57356
|
/** Ms epoch when the slice was last updated. */
|
|
55005
57357
|
lastFetchedAt: number(),
|
|
55006
57358
|
/** Live display unit from the upstream source (e.g. HA
|
|
@@ -55043,7 +57395,12 @@ var ambientLightSensorCapability = {
|
|
|
55043
57395
|
} } },
|
|
55044
57396
|
/** Clock fields: written, but excluded from the compare that decides
|
|
55045
57397
|
* whether persisting is worth a SQLite commit. */
|
|
55046
|
-
volatileStateFields: ["lastFetchedAt"]
|
|
57398
|
+
volatileStateFields: ["lastFetchedAt"],
|
|
57399
|
+
customize: {
|
|
57400
|
+
version: 1,
|
|
57401
|
+
advanced: "derive",
|
|
57402
|
+
targets: []
|
|
57403
|
+
}
|
|
55047
57404
|
};
|
|
55048
57405
|
/**
|
|
55049
57406
|
* Per-class audio metrics aggregated over a sliding window.
|
|
@@ -55270,7 +57627,10 @@ var BatteryStatusSchema = object({
|
|
|
55270
57627
|
* Consumers must SKIP a null rather than coerce it — `battery-band` already
|
|
55271
57628
|
* declines to band a non-finite reading, which is the correct shape.
|
|
55272
57629
|
*/
|
|
55273
|
-
percentage: number().min(0).max(100).nullable()
|
|
57630
|
+
percentage: number().min(0).max(100).nullable().meta({
|
|
57631
|
+
unit: "%",
|
|
57632
|
+
label: "Charge"
|
|
57633
|
+
}),
|
|
55274
57634
|
/**
|
|
55275
57635
|
* Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
|
|
55276
57636
|
* Reolink-specific for the Solar Panel 2 accessory (will become
|
|
@@ -55289,13 +57649,13 @@ var BatteryStatusSchema = object({
|
|
|
55289
57649
|
"solar",
|
|
55290
57650
|
"none",
|
|
55291
57651
|
"unknown"
|
|
55292
|
-
]),
|
|
57652
|
+
]).meta({ label: "Charging source" }),
|
|
55293
57653
|
/**
|
|
55294
57654
|
* True when the camera firmware has gone into low-power mode. Battery
|
|
55295
57655
|
* providers MUST avoid polling during sleep — reading the battery
|
|
55296
57656
|
* wakes the camera up and drains charge.
|
|
55297
57657
|
*/
|
|
55298
|
-
sleeping: boolean(),
|
|
57658
|
+
sleeping: boolean().meta({ label: "Sleeping" }),
|
|
55299
57659
|
/** Ms epoch of the last observation. Lets consumers reason about freshness. */
|
|
55300
57660
|
lastUpdated: number(),
|
|
55301
57661
|
/**
|
|
@@ -55335,22 +57695,71 @@ var BatteryStatusSchema = object({
|
|
|
55335
57695
|
* sub-threshold = low). UI MUST render "Normal"/"Low" instead of a
|
|
55336
57696
|
* misleading exact percentage. Absent/false → genuine 0–100 % reading.
|
|
55337
57697
|
*/
|
|
55338
|
-
binary: boolean().optional()
|
|
57698
|
+
binary: boolean().optional().meta({ label: "Binary indicator" })
|
|
55339
57699
|
});
|
|
57700
|
+
var BATTERY_DEVICE_TYPES = [
|
|
57701
|
+
DeviceType.Camera,
|
|
57702
|
+
DeviceType.Sensor,
|
|
57703
|
+
DeviceType.Button,
|
|
57704
|
+
DeviceType.Switch,
|
|
57705
|
+
DeviceType.PetFeeder,
|
|
57706
|
+
DeviceType.Container,
|
|
57707
|
+
DeviceType.Thermostat
|
|
57708
|
+
];
|
|
57709
|
+
/** Generic Customize target for the percentage reading (D936). */
|
|
57710
|
+
var batteryCustomize = {
|
|
57711
|
+
version: 1,
|
|
57712
|
+
advanced: "derive",
|
|
57713
|
+
targets: [{
|
|
57714
|
+
id: "percentage",
|
|
57715
|
+
cardinality: "scalar",
|
|
57716
|
+
vocabulary: {
|
|
57717
|
+
cap: "battery",
|
|
57718
|
+
stateField: "percentage"
|
|
57719
|
+
},
|
|
57720
|
+
deviceTypes: BATTERY_DEVICE_TYPES,
|
|
57721
|
+
apply: "add-or-replace",
|
|
57722
|
+
path: "percentage",
|
|
57723
|
+
sources: [{
|
|
57724
|
+
kind: "field",
|
|
57725
|
+
valueKinds: ["number", "string"],
|
|
57726
|
+
transforms: [{ kind: "identity" }, {
|
|
57727
|
+
kind: "linear",
|
|
57728
|
+
defaultScale: 1,
|
|
57729
|
+
defaultOffset: 0,
|
|
57730
|
+
clampMin: 0,
|
|
57731
|
+
clampMax: 100
|
|
57732
|
+
}]
|
|
57733
|
+
}],
|
|
57734
|
+
companions: [
|
|
57735
|
+
{
|
|
57736
|
+
kind: "constant",
|
|
57737
|
+
path: "charging",
|
|
57738
|
+
value: "unknown",
|
|
57739
|
+
when: "add"
|
|
57740
|
+
},
|
|
57741
|
+
{
|
|
57742
|
+
kind: "constant",
|
|
57743
|
+
path: "sleeping",
|
|
57744
|
+
value: false,
|
|
57745
|
+
when: "add"
|
|
57746
|
+
},
|
|
57747
|
+
{
|
|
57748
|
+
kind: "clock",
|
|
57749
|
+
path: "lastUpdated",
|
|
57750
|
+
when: "add"
|
|
57751
|
+
}
|
|
57752
|
+
],
|
|
57753
|
+
sourceReport: { status: "assignment-status" },
|
|
57754
|
+
advancedExpression: true
|
|
57755
|
+
}]
|
|
57756
|
+
};
|
|
55340
57757
|
var batteryCapability = {
|
|
55341
57758
|
name: "battery",
|
|
55342
57759
|
scope: "device",
|
|
55343
57760
|
deviceNative: true,
|
|
55344
57761
|
mode: "singleton",
|
|
55345
|
-
deviceTypes:
|
|
55346
|
-
DeviceType.Camera,
|
|
55347
|
-
DeviceType.Sensor,
|
|
55348
|
-
DeviceType.Button,
|
|
55349
|
-
DeviceType.Switch,
|
|
55350
|
-
DeviceType.PetFeeder,
|
|
55351
|
-
DeviceType.Container,
|
|
55352
|
-
DeviceType.Thermostat
|
|
55353
|
-
],
|
|
57762
|
+
deviceTypes: BATTERY_DEVICE_TYPES,
|
|
55354
57763
|
methods: {
|
|
55355
57764
|
/**
|
|
55356
57765
|
* Explicitly wake the camera from low-power sleep ahead of a
|
|
@@ -55434,6 +57843,7 @@ onStatusChanged: { data: object({
|
|
|
55434
57843
|
kind: "gauge",
|
|
55435
57844
|
unit: "%"
|
|
55436
57845
|
} } },
|
|
57846
|
+
customize: batteryCustomize,
|
|
55437
57847
|
/** Clock fields: written, but excluded from the compare that decides
|
|
55438
57848
|
* whether persisting is worth a SQLite commit. */
|
|
55439
57849
|
volatileStateFields: ["lastUpdated"]
|
|
@@ -55450,7 +57860,7 @@ onStatusChanged: { data: object({
|
|
|
55450
57860
|
* with the right HomeKit / Alexa display category.
|
|
55451
57861
|
*/
|
|
55452
57862
|
var BinaryStatusSchema = object({
|
|
55453
|
-
on: boolean(),
|
|
57863
|
+
on: boolean().meta({ label: "On" }),
|
|
55454
57864
|
/** Ms epoch of the last transition. 0 if never observed. */
|
|
55455
57865
|
lastChangedAt: number()
|
|
55456
57866
|
});
|
|
@@ -55479,7 +57889,12 @@ var binaryCapability = {
|
|
|
55479
57889
|
history: { fields: { on: { kind: "boolean" } } },
|
|
55480
57890
|
/** Clock fields: written, but excluded from the compare that decides
|
|
55481
57891
|
* whether persisting is worth a SQLite commit. */
|
|
55482
|
-
volatileStateFields: ["lastChangedAt"]
|
|
57892
|
+
volatileStateFields: ["lastChangedAt"],
|
|
57893
|
+
customize: {
|
|
57894
|
+
version: 1,
|
|
57895
|
+
advanced: "derive",
|
|
57896
|
+
targets: []
|
|
57897
|
+
}
|
|
55483
57898
|
};
|
|
55484
57899
|
/**
|
|
55485
57900
|
* Dimmable-light brightness control. Co-exists with `switch` on the
|
|
@@ -55785,7 +58200,7 @@ var GridLayoutCellSchema = object({
|
|
|
55785
58200
|
*
|
|
55786
58201
|
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
55787
58202
|
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
55788
|
-
* the sources, because "this grid has no low" is not a finding — "
|
|
58203
|
+
* the sources, because "this grid has no low" is not a finding — "101 has no
|
|
55789
58204
|
* low" is, and it is the one an operator can act on.
|
|
55790
58205
|
*/
|
|
55791
58206
|
var GridProfileOfferSchema = object({
|
|
@@ -56394,6 +58809,106 @@ var ConsumablesStatusSchema = object({
|
|
|
56394
58809
|
items: array(ConsumableItemSchema),
|
|
56395
58810
|
lastChangedAt: number()
|
|
56396
58811
|
});
|
|
58812
|
+
/** Synthesize seed for a link-built status (no native provider).
|
|
58813
|
+
*
|
|
58814
|
+
* ⚠ NO LIVE CALLER since 2026-08-08 (device-links deleted; see
|
|
58815
|
+
* `CapabilityStatusSchema.empty`). The wiring guidance below was written for
|
|
58816
|
+
* exactly the case the operator is asking about again — a Dreame's HA
|
|
58817
|
+
* consumable-life sensors — so it is kept for that conversation, not because
|
|
58818
|
+
* anything reads it today. */
|
|
58819
|
+
var EMPTY_STATUS = {
|
|
58820
|
+
items: [],
|
|
58821
|
+
lastChangedAt: 0
|
|
58822
|
+
};
|
|
58823
|
+
/** Seed for a NEW link-built consumable item. `key`/`label` are overwritten
|
|
58824
|
+
* with the link's `itemKey` (see `status.itemArray`), so the placeholder
|
|
58825
|
+
* empty strings never survive into a validated item. Link-built items are
|
|
58826
|
+
* not resettable — there is no native provider to receive `reset()`.
|
|
58827
|
+
*
|
|
58828
|
+
* Wiring guidance (HA vacuum consumable-life sensors):
|
|
58829
|
+
* - a percent-remaining source (`numeric-sensor`, unit '%') → `level` via
|
|
58830
|
+
* `identity` (or `linear` scale 1 offset 0 clamp [0,100] to be safe);
|
|
58831
|
+
* - an hours-remaining source (e.g. Dreame 'Main Brush Time Left', unit 'h')
|
|
58832
|
+
* → `level` via `linear` with scale = 100 / max-hours for that item
|
|
58833
|
+
* (e.g. main brush 300 h → scale 0.3333) + clamp [0,100];
|
|
58834
|
+
* - a discrete source (`enum-sensor`, e.g. mop pad 'installed') → `status`
|
|
58835
|
+
* via `enum-map` (e.g. { installed: 'ok', missing: 'replace' }).
|
|
58836
|
+
* A numeric→'replace' THRESHOLD (level < 10 → 'replace') is NOT expressible
|
|
58837
|
+
* with the current transform kinds — leave `status` null (valid) until the
|
|
58838
|
+
* expression transform lands. */
|
|
58839
|
+
/** Generic Customize target for one consumable item (D936). Native rows stay read-only. */
|
|
58840
|
+
var consumablesCustomize = {
|
|
58841
|
+
version: 1,
|
|
58842
|
+
targets: [{
|
|
58843
|
+
id: "items",
|
|
58844
|
+
cardinality: "keyedArray",
|
|
58845
|
+
vocabulary: { cap: "consumables" },
|
|
58846
|
+
deviceTypes: Object.values(DeviceType),
|
|
58847
|
+
apply: "add",
|
|
58848
|
+
path: "items",
|
|
58849
|
+
keyField: "key",
|
|
58850
|
+
labelField: "label",
|
|
58851
|
+
itemSchema: ConsumableItemSchema,
|
|
58852
|
+
nativeItems: "read-only",
|
|
58853
|
+
sourceReport: { status: "assignment-status" },
|
|
58854
|
+
fields: [
|
|
58855
|
+
{
|
|
58856
|
+
path: "level",
|
|
58857
|
+
sources: [{
|
|
58858
|
+
kind: "numeric",
|
|
58859
|
+
transforms: [{ kind: "identity" }, {
|
|
58860
|
+
kind: "linear",
|
|
58861
|
+
defaultScale: 1,
|
|
58862
|
+
defaultOffset: 0,
|
|
58863
|
+
clampMin: 0,
|
|
58864
|
+
clampMax: 100
|
|
58865
|
+
}]
|
|
58866
|
+
}]
|
|
58867
|
+
},
|
|
58868
|
+
{
|
|
58869
|
+
path: "remaining.value",
|
|
58870
|
+
sources: [{
|
|
58871
|
+
kind: "numeric",
|
|
58872
|
+
transforms: [{ kind: "identity" }]
|
|
58873
|
+
}],
|
|
58874
|
+
literals: [{
|
|
58875
|
+
path: "remaining.unit",
|
|
58876
|
+
values: [...ConsumableRemainingUnitSchema.options]
|
|
58877
|
+
}]
|
|
58878
|
+
},
|
|
58879
|
+
{
|
|
58880
|
+
path: "status",
|
|
58881
|
+
sources: [{
|
|
58882
|
+
kind: "enum",
|
|
58883
|
+
transforms: [{
|
|
58884
|
+
kind: "enum-map",
|
|
58885
|
+
outputValues: [...ConsumableStatusSchema.options],
|
|
58886
|
+
unmapped: null
|
|
58887
|
+
}]
|
|
58888
|
+
}]
|
|
58889
|
+
}
|
|
58890
|
+
],
|
|
58891
|
+
traits: [{
|
|
58892
|
+
path: "kind",
|
|
58893
|
+
values: [...ConsumableKindSchema.options],
|
|
58894
|
+
defaultValue: "wear"
|
|
58895
|
+
}, {
|
|
58896
|
+
path: "form",
|
|
58897
|
+
values: [...ConsumableFormSchema.options],
|
|
58898
|
+
defaultValue: "part"
|
|
58899
|
+
}],
|
|
58900
|
+
companions: [{
|
|
58901
|
+
kind: "clock",
|
|
58902
|
+
path: "lastChangedAt",
|
|
58903
|
+
when: "add"
|
|
58904
|
+
}, {
|
|
58905
|
+
kind: "clock",
|
|
58906
|
+
path: "lastFetchedAt",
|
|
58907
|
+
when: "add"
|
|
58908
|
+
}],
|
|
58909
|
+
advancedExpression: true
|
|
58910
|
+
}]
|
|
58911
|
+
};
|
|
56397
58912
|
var consumablesCapability = {
|
|
56398
58913
|
name: "consumables",
|
|
56399
58914
|
scope: "device",
|
|
@@ -56431,10 +58946,7 @@ reset: method(object({
|
|
|
56431
58946
|
status: {
|
|
56432
58947
|
schema: ConsumablesStatusSchema,
|
|
56433
58948
|
kind: "push",
|
|
56434
|
-
empty:
|
|
56435
|
-
items: [],
|
|
56436
|
-
lastChangedAt: 0
|
|
56437
|
-
},
|
|
58949
|
+
empty: EMPTY_STATUS,
|
|
56438
58950
|
itemArray: {
|
|
56439
58951
|
path: "items",
|
|
56440
58952
|
keyField: "key",
|
|
@@ -56470,6 +58982,7 @@ reset: method(object({
|
|
|
56470
58982
|
* brush's remaining life and a dishwasher's salt are each recorded the moment
|
|
56471
58983
|
* their provider reports them; an item that appears later gets its series.
|
|
56472
58984
|
*/
|
|
58985
|
+
customize: consumablesCustomize,
|
|
56473
58986
|
history: {
|
|
56474
58987
|
fields: {},
|
|
56475
58988
|
items: {
|
|
@@ -56849,6 +59362,30 @@ var dayNightCapability = {
|
|
|
56849
59362
|
volatileStateFields: ["lastFetchedAt"]
|
|
56850
59363
|
};
|
|
56851
59364
|
/**
|
|
59365
|
+
* display-palette — the cluster's one colour table (D939).
|
|
59366
|
+
*
|
|
59367
|
+
* Hub singleton. `getPalette` reports `unknown` when the settings store
|
|
59368
|
+
* cannot be read; it does not pretend the bundled preset was stored.
|
|
59369
|
+
* `setPalette` refuses a palette that fails the ΔE / contrast rule and names
|
|
59370
|
+
* the pairs.
|
|
59371
|
+
*/
|
|
59372
|
+
var presetSummarySchema = object({
|
|
59373
|
+
id: string(),
|
|
59374
|
+
name: string(),
|
|
59375
|
+
swatches: record(string(), paletteSwatchSchema),
|
|
59376
|
+
fallbacks: array(string())
|
|
59377
|
+
});
|
|
59378
|
+
method(_void(), paletteResultSchema, {
|
|
59379
|
+
auth: "protected",
|
|
59380
|
+
role: "viewer"
|
|
59381
|
+
}), method(_void(), array(presetSummarySchema).readonly(), {
|
|
59382
|
+
auth: "protected",
|
|
59383
|
+
role: "viewer"
|
|
59384
|
+
}), method(setPaletteInputSchema, paletteReadySchema, {
|
|
59385
|
+
kind: "mutation",
|
|
59386
|
+
auth: "admin"
|
|
59387
|
+
});
|
|
59388
|
+
/**
|
|
56852
59389
|
* Generic device-level status snapshot. Auto-registered by `BaseDevice`
|
|
56853
59390
|
* for every device, regardless of provider — the kernel needs a uniform
|
|
56854
59391
|
* cap-keyed slice for the basic device flags every consumer expects to
|
|
@@ -57212,6 +59749,36 @@ var dishwasherCapability = {
|
|
|
57212
59749
|
powerOn: { kind: "boolean" }
|
|
57213
59750
|
} }
|
|
57214
59751
|
};
|
|
59752
|
+
/** Pulse override: a rising edge advances `lastPressedAt` and the press count. */
|
|
59753
|
+
var doorbellCustomize = {
|
|
59754
|
+
version: 1,
|
|
59755
|
+
targets: [{
|
|
59756
|
+
id: "pressed",
|
|
59757
|
+
cardinality: "event",
|
|
59758
|
+
shape: "pulse",
|
|
59759
|
+
vocabulary: {
|
|
59760
|
+
cap: "doorbell",
|
|
59761
|
+
eventName: "onPressed"
|
|
59762
|
+
},
|
|
59763
|
+
deviceTypes: [DeviceType.Camera],
|
|
59764
|
+
apply: "add",
|
|
59765
|
+
applyAuthority: { kind: "composition-claim" },
|
|
59766
|
+
eventName: "onPressed",
|
|
59767
|
+
edges: ["rising"],
|
|
59768
|
+
timestampPath: "lastPressedAt",
|
|
59769
|
+
counterPath: "pressCountSinceStart",
|
|
59770
|
+
highWater: "composer-advance",
|
|
59771
|
+
combine: "any",
|
|
59772
|
+
debounce: {
|
|
59773
|
+
kind: "rising-edge",
|
|
59774
|
+
defaultDebounceMs: 2e3,
|
|
59775
|
+
changedAtRequired: true
|
|
59776
|
+
},
|
|
59777
|
+
sources: [{ kind: "binary" }, { kind: "switch" }],
|
|
59778
|
+
sourceReport: { status: "assignment-status" },
|
|
59779
|
+
advancedExpression: true
|
|
59780
|
+
}]
|
|
59781
|
+
};
|
|
57215
59782
|
var DoorbellStatusSchema = object({
|
|
57216
59783
|
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
57217
59784
|
lastPressedAt: number().nullable(),
|
|
@@ -57278,7 +59845,8 @@ onPressed: {
|
|
|
57278
59845
|
/**
|
|
57279
59846
|
* History (D850): none — `pressCountSinceStart` resets with the addon, so it is not a monotonic meter; presses live in the events ledger.
|
|
57280
59847
|
*/
|
|
57281
|
-
history: "none"
|
|
59848
|
+
history: "none",
|
|
59849
|
+
customize: doorbellCustomize
|
|
57282
59850
|
};
|
|
57283
59851
|
/**
|
|
57284
59852
|
* Enum-state sensor — a string value picked from a finite option set.
|
|
@@ -58150,7 +60718,10 @@ var humidifierCapability = {
|
|
|
58150
60718
|
*/
|
|
58151
60719
|
var HumiditySensorStatusSchema = object({
|
|
58152
60720
|
/** Current relative humidity, 0..100. */
|
|
58153
|
-
percent: number().min(0).max(100)
|
|
60721
|
+
percent: number().min(0).max(100).meta({
|
|
60722
|
+
unit: "%",
|
|
60723
|
+
label: "Humidity"
|
|
60724
|
+
}),
|
|
58154
60725
|
/** Ms epoch when the slice was last updated. */
|
|
58155
60726
|
lastFetchedAt: number(),
|
|
58156
60727
|
/** Live display unit from the upstream source (e.g. HA
|
|
@@ -58192,7 +60763,12 @@ var humiditySensorCapability = {
|
|
|
58192
60763
|
} } },
|
|
58193
60764
|
/** Clock fields: written, but excluded from the compare that decides
|
|
58194
60765
|
* whether persisting is worth a SQLite commit. */
|
|
58195
|
-
volatileStateFields: ["lastFetchedAt"]
|
|
60766
|
+
volatileStateFields: ["lastFetchedAt"],
|
|
60767
|
+
customize: {
|
|
60768
|
+
version: 1,
|
|
60769
|
+
advanced: "derive",
|
|
60770
|
+
targets: []
|
|
60771
|
+
}
|
|
58196
60772
|
};
|
|
58197
60773
|
/**
|
|
58198
60774
|
* Image display cap. Models a single still image exposed by an integration —
|
|
@@ -59674,6 +62250,38 @@ authKey: string().optional() }), object({
|
|
|
59674
62250
|
/** Human-readable error when `ok: false`. */
|
|
59675
62251
|
error: string().optional()
|
|
59676
62252
|
}), { kind: "mutation" });
|
|
62253
|
+
/** Span override: start on a rising edge, end on a fall or this timeout. */
|
|
62254
|
+
var motionCustomize = {
|
|
62255
|
+
version: 1,
|
|
62256
|
+
targets: [{
|
|
62257
|
+
id: "detected",
|
|
62258
|
+
cardinality: "event",
|
|
62259
|
+
shape: "span",
|
|
62260
|
+
vocabulary: {
|
|
62261
|
+
cap: "motion",
|
|
62262
|
+
eventName: "onMotionChanged"
|
|
62263
|
+
},
|
|
62264
|
+
deviceTypes: [DeviceType.Camera],
|
|
62265
|
+
apply: "replace",
|
|
62266
|
+
applyAuthority: {
|
|
62267
|
+
kind: "camera-sensors",
|
|
62268
|
+
timeoutField: "motionCooldownMs"
|
|
62269
|
+
},
|
|
62270
|
+
eventName: "onMotionChanged",
|
|
62271
|
+
start: "rising-edge",
|
|
62272
|
+
end: "falling-edge-or-timeout",
|
|
62273
|
+
timeoutMs: 3e4,
|
|
62274
|
+
combine: "any",
|
|
62275
|
+
sourceModes: [
|
|
62276
|
+
"in-addition",
|
|
62277
|
+
"confirm",
|
|
62278
|
+
"replace"
|
|
62279
|
+
],
|
|
62280
|
+
sources: [{ kind: "binary" }, { kind: "switch" }],
|
|
62281
|
+
sourceReport: { status: "assignment-status" },
|
|
62282
|
+
advancedExpression: false
|
|
62283
|
+
}]
|
|
62284
|
+
};
|
|
59677
62285
|
var MotionStatusSchema = object({
|
|
59678
62286
|
detected: boolean(),
|
|
59679
62287
|
/** Ms epoch of the last detected-true observation. Null if never detected. */
|
|
@@ -59813,7 +62421,8 @@ onMotionChanged: { data: MotionOnMotionChangedDataSchema } },
|
|
|
59813
62421
|
history: { fields: { detected: {
|
|
59814
62422
|
kind: "boolean",
|
|
59815
62423
|
excludeDeviceTypes: [DeviceType.Camera]
|
|
59816
|
-
} } }
|
|
62424
|
+
} } },
|
|
62425
|
+
customize: motionCustomize
|
|
59817
62426
|
};
|
|
59818
62427
|
/**
|
|
59819
62428
|
* Motion-trigger toggle for accessory devices.
|
|
@@ -61838,9 +64447,15 @@ method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema)
|
|
|
61838
64447
|
*/
|
|
61839
64448
|
var PowerMeterStatusSchema = object({
|
|
61840
64449
|
/** Instantaneous power draw in watts. */
|
|
61841
|
-
watts: number().optional()
|
|
64450
|
+
watts: number().optional().meta({
|
|
64451
|
+
unit: "W",
|
|
64452
|
+
label: "Power"
|
|
64453
|
+
}),
|
|
61842
64454
|
/** Cumulative energy in kilowatt-hours since the meter was reset. */
|
|
61843
|
-
kwhTotal: number().optional()
|
|
64455
|
+
kwhTotal: number().optional().meta({
|
|
64456
|
+
unit: "kWh",
|
|
64457
|
+
label: "Energy"
|
|
64458
|
+
}),
|
|
61844
64459
|
/** Voltage in volts. */
|
|
61845
64460
|
volts: number().optional(),
|
|
61846
64461
|
/** Current in amperes. */
|
|
@@ -61925,7 +64540,12 @@ var powerMeterCapability = {
|
|
|
61925
64540
|
} },
|
|
61926
64541
|
/** Clock fields: written, but excluded from the compare that decides
|
|
61927
64542
|
* whether persisting is worth a SQLite commit. */
|
|
61928
|
-
volatileStateFields: ["lastFetchedAt"]
|
|
64543
|
+
volatileStateFields: ["lastFetchedAt"],
|
|
64544
|
+
customize: {
|
|
64545
|
+
version: 1,
|
|
64546
|
+
advanced: "derive",
|
|
64547
|
+
targets: []
|
|
64548
|
+
}
|
|
61929
64549
|
};
|
|
61930
64550
|
/**
|
|
61931
64551
|
* Presence cap. Models HA `person.*` and `device_tracker.*` entities
|
|
@@ -62370,9 +64990,9 @@ var PtzOptionsSchema = object({
|
|
|
62370
64990
|
* Reolink preset 0, Hikvision preset '1', Dahua preset 1 -- and on this fleet
|
|
62371
64991
|
* not one of the three cameras honours its own:
|
|
62372
64992
|
*
|
|
62373
|
-
*
|
|
62374
|
-
* 1438
|
|
62375
|
-
* 3836
|
|
64993
|
+
* 107 Camera camera Carol (reolink) preset 0 holds "stanza"
|
|
64994
|
+
* 1438 Camera dispensa (hikvision) preset 1 holds "Credenza"
|
|
64995
|
+
* 3836 Camera studio (amcrest) preset 1 holds "Preset1"
|
|
62376
64996
|
*
|
|
62377
64997
|
* So `goHome` meant "go wherever the operator happened to save in slot 0 or 1",
|
|
62378
64998
|
* and two of the three swallowed the failure in a bare `catch`. For autotrack
|
|
@@ -62697,27 +65317,111 @@ var ptzAutotrackCapability = {
|
|
|
62697
65317
|
*/
|
|
62698
65318
|
history: "none"
|
|
62699
65319
|
};
|
|
65320
|
+
var RUNNING_POWER_START_DELAY_MS = 3e4;
|
|
65321
|
+
var RUNNING_POWER_STOP_DELAY_MS = 18e4;
|
|
62700
65322
|
var RunningStateSourceSchema = _enum(["native", "assigned"]);
|
|
62701
65323
|
var RunningStateStatusSchema = object({
|
|
62702
65324
|
/** null = unknown — never coerced to false (D393). */
|
|
62703
65325
|
running: boolean().nullable(),
|
|
62704
65326
|
/** Epoch ms the current boolean began; null while `running` is null. */
|
|
62705
65327
|
since: number().nullable(),
|
|
62706
|
-
source: RunningStateSourceSchema,
|
|
65328
|
+
source: RunningStateSourceSchema.meta({ label: "Source" }),
|
|
62707
65329
|
phase: string().nullable(),
|
|
62708
|
-
|
|
65330
|
+
/** null until a reading has been published (D393). */
|
|
65331
|
+
lastFetchedAt: number().nullable()
|
|
62709
65332
|
});
|
|
62710
65333
|
var RunningFlipEventDataSchema = object({
|
|
62711
65334
|
deviceId: number(),
|
|
62712
65335
|
since: number().nullable(),
|
|
62713
65336
|
phase: string().nullable()
|
|
62714
65337
|
});
|
|
65338
|
+
var RUNNING_DEVICE_TYPES = Object.values(DeviceType);
|
|
65339
|
+
/** Generic Customize target for the running boolean (D936). */
|
|
65340
|
+
var runningCustomize = {
|
|
65341
|
+
version: 1,
|
|
65342
|
+
advanced: "derive",
|
|
65343
|
+
targets: [{
|
|
65344
|
+
id: "running",
|
|
65345
|
+
cardinality: "scalar",
|
|
65346
|
+
vocabulary: {
|
|
65347
|
+
cap: "running-state",
|
|
65348
|
+
stateField: "running"
|
|
65349
|
+
},
|
|
65350
|
+
deviceTypes: [
|
|
65351
|
+
DeviceType.Dishwasher,
|
|
65352
|
+
DeviceType.Vacuum,
|
|
65353
|
+
DeviceType.LawnMower,
|
|
65354
|
+
DeviceType.MediaPlayer,
|
|
65355
|
+
DeviceType.WaterHeater,
|
|
65356
|
+
DeviceType.Humidifier,
|
|
65357
|
+
DeviceType.Fan,
|
|
65358
|
+
DeviceType.Climate,
|
|
65359
|
+
DeviceType.Thermostat,
|
|
65360
|
+
DeviceType.PetFeeder
|
|
65361
|
+
],
|
|
65362
|
+
apply: "add-or-replace",
|
|
65363
|
+
path: "running",
|
|
65364
|
+
sources: [
|
|
65365
|
+
{
|
|
65366
|
+
kind: "switch",
|
|
65367
|
+
transforms: [{ kind: "identity" }]
|
|
65368
|
+
},
|
|
65369
|
+
{
|
|
65370
|
+
kind: "binary",
|
|
65371
|
+
transforms: [{ kind: "identity" }, { kind: "invert" }]
|
|
65372
|
+
},
|
|
65373
|
+
{
|
|
65374
|
+
kind: "numeric",
|
|
65375
|
+
requiredUnit: "W",
|
|
65376
|
+
transforms: [{
|
|
65377
|
+
kind: "threshold",
|
|
65378
|
+
comparison: "gte",
|
|
65379
|
+
defaultThreshold: 5,
|
|
65380
|
+
defaultStartDwellMs: RUNNING_POWER_START_DELAY_MS,
|
|
65381
|
+
defaultStopDwellMs: RUNNING_POWER_STOP_DELAY_MS,
|
|
65382
|
+
thresholdUnit: "W"
|
|
65383
|
+
}]
|
|
65384
|
+
}
|
|
65385
|
+
],
|
|
65386
|
+
companions: [
|
|
65387
|
+
{
|
|
65388
|
+
kind: "constant",
|
|
65389
|
+
path: "source",
|
|
65390
|
+
value: "assigned",
|
|
65391
|
+
when: "always"
|
|
65392
|
+
},
|
|
65393
|
+
{
|
|
65394
|
+
kind: "constant",
|
|
65395
|
+
path: "phase",
|
|
65396
|
+
value: null,
|
|
65397
|
+
when: "always"
|
|
65398
|
+
},
|
|
65399
|
+
{
|
|
65400
|
+
kind: "clock",
|
|
65401
|
+
path: "lastFetchedAt",
|
|
65402
|
+
when: "always"
|
|
65403
|
+
},
|
|
65404
|
+
{
|
|
65405
|
+
kind: "transition-time",
|
|
65406
|
+
path: "since",
|
|
65407
|
+
sourceChangedAt: "prefer"
|
|
65408
|
+
}
|
|
65409
|
+
],
|
|
65410
|
+
sourceReport: {
|
|
65411
|
+
status: "assignment-status",
|
|
65412
|
+
runtimeField: "source",
|
|
65413
|
+
nativeValue: "native",
|
|
65414
|
+
assignedValue: "assigned"
|
|
65415
|
+
},
|
|
65416
|
+
advancedExpression: true
|
|
65417
|
+
}]
|
|
65418
|
+
};
|
|
62715
65419
|
var runningStateCapability = {
|
|
62716
65420
|
name: "running-state",
|
|
62717
65421
|
scope: "device",
|
|
62718
65422
|
deviceNative: true,
|
|
62719
65423
|
mode: "singleton",
|
|
62720
|
-
deviceTypes:
|
|
65424
|
+
deviceTypes: RUNNING_DEVICE_TYPES,
|
|
62721
65425
|
methods: {},
|
|
62722
65426
|
events: {
|
|
62723
65427
|
onStarted: { data: RunningFlipEventDataSchema },
|
|
@@ -62730,7 +65434,8 @@ var runningStateCapability = {
|
|
|
62730
65434
|
runtimeState: RunningStateStatusSchema,
|
|
62731
65435
|
durability: "restored",
|
|
62732
65436
|
history: { fields: { running: { kind: "boolean" } } },
|
|
62733
|
-
volatileStateFields: ["lastFetchedAt"]
|
|
65437
|
+
volatileStateFields: ["lastFetchedAt"],
|
|
65438
|
+
customize: runningCustomize
|
|
62734
65439
|
};
|
|
62735
65440
|
/**
|
|
62736
65441
|
* reboot — device-scoped capability for "soft" device reboots (firmware
|
|
@@ -62798,7 +65503,7 @@ var RecordingAvailabilitySchema = object({
|
|
|
62798
65503
|
* would look identical. But the answer used to say nothing about that, so a
|
|
62799
65504
|
* caller asking "what can I export?" read the single preferred profile as
|
|
62800
65505
|
* the only one that exists — on this deployment every camera records `high`
|
|
62801
|
-
* AND `low`, the low tree holding 14 GB for camera
|
|
65506
|
+
* AND `low`, the low tree holding 14 GB for camera 101 alone, and the export
|
|
62802
65507
|
* UI could not see it.
|
|
62803
65508
|
*
|
|
62804
65509
|
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
@@ -62897,7 +65602,7 @@ var RecordingSourceOptionsSchema = object({
|
|
|
62897
65602
|
* `sparse` = gaps are the absence of one, and must be drawn as such.
|
|
62898
65603
|
*
|
|
62899
65604
|
* Not an onboard-only concession: measured 2026-09-24, OUR bar covers 98.8 %
|
|
62900
|
-
* of
|
|
65605
|
+
* of 107's day and 1.2 % of 1436's. It is a fact about a (source, camera)
|
|
62901
65606
|
* pair, and ours answers it per camera from `deriveRecordingMode`. */
|
|
62902
65607
|
coverage: _enum(["continuous", "sparse"]),
|
|
62903
65608
|
/** Where the playhead may be put.
|
|
@@ -62973,7 +65678,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(RecordingSourceS
|
|
|
62973
65678
|
* merely discouraged (D554 amended).
|
|
62974
65679
|
*
|
|
62975
65680
|
* It was learned the expensive way on `videoclips.listClips`: measured
|
|
62976
|
-
* on the live hub 2026-09-20, device
|
|
65681
|
+
* on the live hub 2026-09-20, device 107 bound to `recorder` AND
|
|
62977
65682
|
* `provider-reolink`, a bare call with `limit: 3` answered SIX rows,
|
|
62978
65683
|
* three from each source, merged — `device-collection-dispatch.ts`
|
|
62979
65684
|
* leaves an unpinned fan-out un-narrowed, so absence buys the union the
|
|
@@ -63574,7 +66279,7 @@ var ExportSpeedSchema = number().min(.25).max(32);
|
|
|
63574
66279
|
* on a 10 h window holding 29,393 s of footage every range landed late by the
|
|
63575
66280
|
* gap accumulated before it — up to 6,607 s, well past EOF. Nothing matched,
|
|
63576
66281
|
* the video was a uniform timelapse, and the log line reported the five ranges
|
|
63577
|
-
* that had been ASKED for (2026-08-13, export `57d14363`, camera
|
|
66282
|
+
* that had been ASKED for (2026-08-13, export `57d14363`, camera 101).
|
|
63578
66283
|
*
|
|
63579
66284
|
* Relative and not absolute epoch, because an absolute epoch would make every
|
|
63580
66285
|
* call site responsible for the same subtraction.
|
|
@@ -64465,7 +67170,7 @@ getStatus: method(object({ deviceId: number() }), RecordingSignalStatusSchema) }
|
|
|
64465
67170
|
* which put a "Scenes" tab on one camera's detail page. That is the wrong shape
|
|
64466
67171
|
* for the thing: a scene is a standing question about the property ("is the bin
|
|
64467
67172
|
* still out"), and the operator's question is "which of my scenes have tripped",
|
|
64468
|
-
* across every camera at once — not "what does camera
|
|
67173
|
+
* across every camera at once — not "what does camera 102 think". Buried one
|
|
64469
67174
|
* camera deep it also could not be found. The surface is now a top-level admin
|
|
64470
67175
|
* page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
|
|
64471
67176
|
* picks the camera inside the create flow, the same shape Events and Faces have.
|
|
@@ -65522,7 +68227,7 @@ function buildStreamParamsConfigSchema(options, status) {
|
|
|
65522
68227
|
* `getSettingsUISchema()` surface.
|
|
65523
68228
|
*/
|
|
65524
68229
|
var SwitchStatusSchema = object({
|
|
65525
|
-
on: boolean(),
|
|
68230
|
+
on: boolean().meta({ label: "On" }),
|
|
65526
68231
|
/** Ms epoch of the last state change. Useful for UI "X minutes ago". */
|
|
65527
68232
|
lastChangedAt: number()
|
|
65528
68233
|
});
|
|
@@ -65581,7 +68286,12 @@ var switchCapability = {
|
|
|
65581
68286
|
label: "On",
|
|
65582
68287
|
kind: "boolean"
|
|
65583
68288
|
}
|
|
65584
|
-
}] }
|
|
68289
|
+
}] },
|
|
68290
|
+
customize: {
|
|
68291
|
+
version: 1,
|
|
68292
|
+
advanced: "derive",
|
|
68293
|
+
targets: []
|
|
68294
|
+
}
|
|
65585
68295
|
};
|
|
65586
68296
|
/** C0 controls, DEL and the C1 range: none of them belongs in a name. */
|
|
65587
68297
|
function hasControlCharacter(value) {
|
|
@@ -66177,7 +68887,10 @@ var tamperCapability = {
|
|
|
66177
68887
|
*/
|
|
66178
68888
|
var TemperatureSensorStatusSchema = object({
|
|
66179
68889
|
/** Current temperature in Celsius. */
|
|
66180
|
-
celsius: number()
|
|
68890
|
+
celsius: number().meta({
|
|
68891
|
+
unit: "°C",
|
|
68892
|
+
label: "Temperature"
|
|
68893
|
+
}),
|
|
66181
68894
|
/** Ms epoch when the slice was last updated (push or poll). */
|
|
66182
68895
|
lastFetchedAt: number(),
|
|
66183
68896
|
/** Live display unit from the upstream source (e.g. HA
|
|
@@ -66220,7 +68933,12 @@ var temperatureSensorCapability = {
|
|
|
66220
68933
|
} } },
|
|
66221
68934
|
/** Clock fields: written, but excluded from the compare that decides
|
|
66222
68935
|
* whether persisting is worth a SQLite commit. */
|
|
66223
|
-
volatileStateFields: ["lastFetchedAt"]
|
|
68936
|
+
volatileStateFields: ["lastFetchedAt"],
|
|
68937
|
+
customize: {
|
|
68938
|
+
version: 1,
|
|
68939
|
+
advanced: "derive",
|
|
68940
|
+
targets: []
|
|
68941
|
+
}
|
|
66224
68942
|
};
|
|
66225
68943
|
/**
|
|
66226
68944
|
* toast — system-scoped singleton capability that streams toast
|
|
@@ -67899,6 +70617,10 @@ function withClipEventLabels(provider, deps) {
|
|
|
67899
70617
|
};
|
|
67900
70618
|
}
|
|
67901
70619
|
SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
|
|
70620
|
+
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat, DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, 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.Dishwasher, DeviceType.Camera, DeviceType.Camera, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.PetFeeder;
|
|
70621
|
+
String.raw`rose\(active(\d+), changed(\d+), (\d+(?:\.\d+)?)\)`;
|
|
70622
|
+
DeviceRole.BinarySensor, DeviceRole.MotionSensor;
|
|
70623
|
+
new Set(CAP_NAMES);
|
|
67902
70624
|
Object.freeze({
|
|
67903
70625
|
person: .5,
|
|
67904
70626
|
vehicle: .5,
|
|
@@ -69147,7 +71869,7 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
69147
71869
|
* A top-level persisted row with NO configuration is a leftover, not a
|
|
69148
71870
|
* device — quarantine it instead of dialling it.
|
|
69149
71871
|
*
|
|
69150
|
-
* Device
|
|
71872
|
+
* Device 105 was deleted, resurrected as a config-less shell by a write
|
|
69151
71873
|
* already in flight (D376), and then dialled at every single boot: eight
|
|
69152
71874
|
* `Failed to restore device — bounded retry scheduled` lines in one day,
|
|
69153
71875
|
* each one the same Zod refusal on `host` and `password`. The bound was
|
|
@@ -72461,6 +75183,27 @@ Object.freeze({
|
|
|
72461
75183
|
access: "create",
|
|
72462
75184
|
role: "viewer"
|
|
72463
75185
|
},
|
|
75186
|
+
"displayPalette.getPalette": {
|
|
75187
|
+
capName: "display-palette",
|
|
75188
|
+
capScope: "system",
|
|
75189
|
+
addonId: null,
|
|
75190
|
+
access: "view",
|
|
75191
|
+
role: "viewer"
|
|
75192
|
+
},
|
|
75193
|
+
"displayPalette.listPresets": {
|
|
75194
|
+
capName: "display-palette",
|
|
75195
|
+
capScope: "system",
|
|
75196
|
+
addonId: null,
|
|
75197
|
+
access: "view",
|
|
75198
|
+
role: "viewer"
|
|
75199
|
+
},
|
|
75200
|
+
"displayPalette.setPalette": {
|
|
75201
|
+
capName: "display-palette",
|
|
75202
|
+
capScope: "system",
|
|
75203
|
+
addonId: null,
|
|
75204
|
+
access: "create",
|
|
75205
|
+
role: "admin"
|
|
75206
|
+
},
|
|
72464
75207
|
"doorbell.getStatus": {
|
|
72465
75208
|
capName: "doorbell",
|
|
72466
75209
|
capScope: "device",
|
|
@@ -82378,7 +85121,7 @@ var SENSOR_CAP_VOCABULARY = {
|
|
|
82378
85121
|
state: [{
|
|
82379
85122
|
kind: "boolean",
|
|
82380
85123
|
field: "on",
|
|
82381
|
-
label: t("
|
|
85124
|
+
label: t("On", "Acceso"),
|
|
82382
85125
|
whenTrue: t("When {device} turns active", "Quando {device} si attiva"),
|
|
82383
85126
|
whenFalse: t("When {device} turns inactive", "Quando {device} si disattiva"),
|
|
82384
85127
|
icon: "toggle-right"
|
|
@@ -82917,6 +85660,7 @@ var SYSTEM_CAP_VOCABULARY = {
|
|
|
82917
85660
|
"device-provider": system(INTERNAL),
|
|
82918
85661
|
"device-removal-hook": system(INTERNAL),
|
|
82919
85662
|
"device-state": system("the runtime-state mirror every trigger already reads through"),
|
|
85663
|
+
"display-palette": system("the cluster display palette — one colour table for every client, not a device action"),
|
|
82920
85664
|
"embedding-encoder": system(ML),
|
|
82921
85665
|
"face-gallery": system("the face gallery — curated on its own page"),
|
|
82922
85666
|
"failure-contribution": system(INTERNAL),
|
|
@@ -86019,6 +88763,94 @@ Object.freeze({
|
|
|
86019
88763
|
"smtp-provider": "email"
|
|
86020
88764
|
});
|
|
86021
88765
|
DeviceType.Camera;
|
|
88766
|
+
/**
|
|
88767
|
+
* A saved Customize assignment (D936). The schema is the type: callers use
|
|
88768
|
+
* `z.infer`, they do not restate the shape.
|
|
88769
|
+
*/
|
|
88770
|
+
var OverrideSourceSchema = object({
|
|
88771
|
+
addonId: string().min(1),
|
|
88772
|
+
stableId: string().min(1),
|
|
88773
|
+
cap: string().min(1),
|
|
88774
|
+
fieldPath: string().min(1)
|
|
88775
|
+
});
|
|
88776
|
+
var CustomizeTransformDraftSchema = discriminatedUnion("kind", [
|
|
88777
|
+
object({ kind: literal("identity") }),
|
|
88778
|
+
object({ kind: literal("invert") }),
|
|
88779
|
+
object({
|
|
88780
|
+
kind: literal("threshold"),
|
|
88781
|
+
comparison: _enum(["gte", "lte"]),
|
|
88782
|
+
threshold: number(),
|
|
88783
|
+
startDwellMs: number().nonnegative(),
|
|
88784
|
+
stopDwellMs: number().nonnegative()
|
|
88785
|
+
}),
|
|
88786
|
+
object({
|
|
88787
|
+
kind: literal("linear"),
|
|
88788
|
+
scale: number(),
|
|
88789
|
+
offset: number(),
|
|
88790
|
+
clampMin: number().optional(),
|
|
88791
|
+
clampMax: number().optional()
|
|
88792
|
+
}),
|
|
88793
|
+
object({
|
|
88794
|
+
kind: literal("enum-map"),
|
|
88795
|
+
mapping: record(string(), string().nullable())
|
|
88796
|
+
}),
|
|
88797
|
+
object({ kind: literal("number") })
|
|
88798
|
+
]);
|
|
88799
|
+
var ScalarOverrideDraftSchema = object({
|
|
88800
|
+
kind: literal("scalar"),
|
|
88801
|
+
cap: string().min(1),
|
|
88802
|
+
targetId: string().min(1),
|
|
88803
|
+
source: OverrideSourceSchema,
|
|
88804
|
+
transform: CustomizeTransformDraftSchema
|
|
88805
|
+
});
|
|
88806
|
+
var KeyedArrayOverrideDraftSchema = object({
|
|
88807
|
+
kind: literal("keyedArray"),
|
|
88808
|
+
cap: string().min(1),
|
|
88809
|
+
targetId: string().min(1),
|
|
88810
|
+
key: string().min(1),
|
|
88811
|
+
label: string().min(1),
|
|
88812
|
+
fieldPath: string().min(1),
|
|
88813
|
+
source: OverrideSourceSchema,
|
|
88814
|
+
transform: CustomizeTransformDraftSchema
|
|
88815
|
+
});
|
|
88816
|
+
var PulseOverrideDraftSchema = object({
|
|
88817
|
+
kind: literal("pulse"),
|
|
88818
|
+
cap: string().min(1),
|
|
88819
|
+
targetId: string().min(1),
|
|
88820
|
+
enabled: boolean(),
|
|
88821
|
+
debounceMs: number().nonnegative(),
|
|
88822
|
+
sources: array(OverrideSourceSchema).min(1)
|
|
88823
|
+
});
|
|
88824
|
+
var SpanSourceDraftSchema = OverrideSourceSchema.extend({ mode: _enum([
|
|
88825
|
+
"in-addition",
|
|
88826
|
+
"confirm",
|
|
88827
|
+
"replace"
|
|
88828
|
+
]).optional() });
|
|
88829
|
+
discriminatedUnion("kind", [
|
|
88830
|
+
ScalarOverrideDraftSchema,
|
|
88831
|
+
KeyedArrayOverrideDraftSchema,
|
|
88832
|
+
PulseOverrideDraftSchema,
|
|
88833
|
+
object({
|
|
88834
|
+
kind: literal("span"),
|
|
88835
|
+
cap: string().min(1),
|
|
88836
|
+
targetId: string().min(1),
|
|
88837
|
+
timeoutMs: number().nonnegative(),
|
|
88838
|
+
cooldownMs: number().nonnegative().optional(),
|
|
88839
|
+
sources: array(SpanSourceDraftSchema)
|
|
88840
|
+
})
|
|
88841
|
+
]);
|
|
88842
|
+
object({
|
|
88843
|
+
targetId: string().min(1),
|
|
88844
|
+
configured: boolean(),
|
|
88845
|
+
source: _enum(["native", "assigned"]),
|
|
88846
|
+
state: _enum([
|
|
88847
|
+
"active",
|
|
88848
|
+
"stale",
|
|
88849
|
+
"released",
|
|
88850
|
+
"unavailable"
|
|
88851
|
+
]),
|
|
88852
|
+
reason: string().nullable()
|
|
88853
|
+
});
|
|
86022
88854
|
var G711_SCALE_CORRECTION_DB = {
|
|
86023
88855
|
PCMU: 20 * Math.log10(4),
|
|
86024
88856
|
PCMA: 20 * Math.log10(8)
|
|
@@ -86391,7 +89223,7 @@ var STATE_SUMMARY_SECTION_VARS = [
|
|
|
86391
89223
|
{
|
|
86392
89224
|
name: "summaryStreams",
|
|
86393
89225
|
label: "Summary: streams offline",
|
|
86394
|
-
example: "
|
|
89226
|
+
example: "Front door (high) — since 06:40",
|
|
86395
89227
|
kinds: ["stream-offline", "stream-online"]
|
|
86396
89228
|
},
|
|
86397
89229
|
{
|
|
@@ -86409,13 +89241,13 @@ var STATE_SUMMARY_SECTION_VARS = [
|
|
|
86409
89241
|
{
|
|
86410
89242
|
name: "summaryDetection",
|
|
86411
89243
|
label: "Summary: cameras detecting nothing",
|
|
86412
|
-
example: "
|
|
89244
|
+
example: "Front door — since 05:10",
|
|
86413
89245
|
kinds: ["detection-blind"]
|
|
86414
89246
|
},
|
|
86415
89247
|
{
|
|
86416
89248
|
name: "summaryNodes",
|
|
86417
89249
|
label: "Summary: nodes",
|
|
86418
|
-
example: "
|
|
89250
|
+
example: "agent-a — offline since 03:00",
|
|
86419
89251
|
kinds: [
|
|
86420
89252
|
"node-offline",
|
|
86421
89253
|
"node-online",
|
|
@@ -95471,7 +98303,7 @@ var HikvisionIntercomSession = class {
|
|
|
95471
98303
|
*
|
|
95472
98304
|
* `failure-contribution` keeps `variant` for a second dimension WITHIN a
|
|
95473
98305
|
* family, and here the useful one is the format the caller pushed: an operator
|
|
95474
|
-
* asking "why is
|
|
98306
|
+
* asking "why is 102 silent" needs to know whether HomeKit's Opus or Alexa's
|
|
95475
98307
|
* raw PCM is the half that is failing. The provider is handed that value on
|
|
95476
98308
|
* every call, so it is reported rather than guessed — absent, never invented.
|
|
95477
98309
|
*
|