@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.
Files changed (3) hide show
  1. package/dist/addon.js +2979 -147
  2. package/dist/addon.mjs +2979 -147
  3. package/package.json +1 -1
package/dist/addon.mjs CHANGED
@@ -13,7 +13,7 @@ import { Agent as Agent$1, request as request$1 } from "node:https";
13
13
  var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
14
14
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
15
15
  //#endregion
16
- //#region ../types/dist/event-category-Ceif8n-v.mjs
16
+ //#region ../types/dist/event-category-DHXxB8t9.mjs
17
17
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
18
18
  EventCategory["SystemBoot"] = "system.boot";
19
19
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -309,7 +309,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
309
309
  * TRANSITION into that state (never per dispatch), and the node is dropped
310
310
  * from the placement candidate set for as long as it holds.
311
311
  *
312
- * This exists because the state was previously invisible: little-unraid
312
+ * This exists because the state was previously invisible: agent-a
313
313
  * absorbed 283k inference errors in a day while still being handed cameras,
314
314
  * and nothing in the system said so.
315
315
  *
@@ -5448,7 +5448,7 @@ var ZodIssueCode = {
5448
5448
  var ZodFirstPartyTypeKind;
5449
5449
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5450
5450
  //#endregion
5451
- //#region ../types/dist/sleep-CYfIZzGv.mjs
5451
+ //#region ../types/dist/sleep-BErAxhul.mjs
5452
5452
  /**
5453
5453
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5454
5454
  * window to float samples (D455).
@@ -8483,6 +8483,1980 @@ method(object({ deviceId: number() }), array(StreamSourceEntrySchema)), method(o
8483
8483
  kind: "mutation",
8484
8484
  auth: "admin"
8485
8485
  }), method(object({ deviceId: number() }), unknown().nullable()), method(object({ deviceId: number() }), RawStateResultSchema.nullable(), { auth: "protected" });
8486
+ Object.freeze({ "doorbell": "lastPressedAt" });
8487
+ /** Every capability name, so addon code can check a name without the schema graph. */
8488
+ var CAP_NAMES = Object.freeze([
8489
+ "accessories",
8490
+ "addon-pages",
8491
+ "addon-pages-source",
8492
+ "addon-routes",
8493
+ "addon-settings",
8494
+ "addon-widgets",
8495
+ "addon-widgets-source",
8496
+ "addons",
8497
+ "admin-ui",
8498
+ "air-quality-sensor",
8499
+ "alarm-panel",
8500
+ "alerts",
8501
+ "ambient-light-sensor",
8502
+ "audio-analysis",
8503
+ "audio-analyzer",
8504
+ "audio-codec",
8505
+ "audio-metrics",
8506
+ "auth-provider",
8507
+ "automation-control",
8508
+ "backup",
8509
+ "battery",
8510
+ "binary",
8511
+ "brightness",
8512
+ "broker",
8513
+ "button",
8514
+ "calendar-source",
8515
+ "calendars",
8516
+ "camera-credentials",
8517
+ "camera-grid-layout",
8518
+ "camera-pipeline-config",
8519
+ "camera-streams",
8520
+ "carbon-monoxide",
8521
+ "climate-control",
8522
+ "color",
8523
+ "composer",
8524
+ "connection-test",
8525
+ "connectivity",
8526
+ "consumables",
8527
+ "contact",
8528
+ "control",
8529
+ "core-blocks",
8530
+ "cover",
8531
+ "custom-model-registry",
8532
+ "data-store-provider",
8533
+ "database-snapshot",
8534
+ "day-night",
8535
+ "decoder",
8536
+ "detection-pipeline",
8537
+ "device-admin-link",
8538
+ "device-adoption",
8539
+ "device-credentials",
8540
+ "device-discovery",
8541
+ "device-export",
8542
+ "device-extension",
8543
+ "device-history",
8544
+ "device-manager",
8545
+ "device-ops",
8546
+ "device-provider",
8547
+ "device-removal-hook",
8548
+ "device-state",
8549
+ "device-status",
8550
+ "dishwasher",
8551
+ "display-palette",
8552
+ "doorbell",
8553
+ "embedding-encoder",
8554
+ "enum-sensor",
8555
+ "event-emitter",
8556
+ "face-gallery",
8557
+ "failure-contribution",
8558
+ "fan-control",
8559
+ "feature-probe",
8560
+ "filesystem-browse",
8561
+ "flood",
8562
+ "gas",
8563
+ "heating-valve",
8564
+ "humidifier",
8565
+ "humidity-sensor",
8566
+ "image",
8567
+ "image-settings",
8568
+ "integrations",
8569
+ "intercom",
8570
+ "keychain",
8571
+ "keychain-admin",
8572
+ "lawn-mower-control",
8573
+ "llm",
8574
+ "llm-runtime",
8575
+ "load-contribution",
8576
+ "local-network",
8577
+ "lock-control",
8578
+ "log-channels",
8579
+ "log-destination",
8580
+ "login-method",
8581
+ "media-player",
8582
+ "mesh-network",
8583
+ "metrics-provider",
8584
+ "model-convert",
8585
+ "model-distributor",
8586
+ "motion",
8587
+ "motion-detection",
8588
+ "motion-trigger",
8589
+ "motion-zones",
8590
+ "mqtt-broker",
8591
+ "native-object-detection",
8592
+ "navigation",
8593
+ "network-access",
8594
+ "network-link",
8595
+ "network-quality",
8596
+ "node-certificates",
8597
+ "nodes",
8598
+ "notification-output",
8599
+ "notification-rules",
8600
+ "notifier",
8601
+ "numeric-sensor",
8602
+ "oauth-integration",
8603
+ "oidc-connections",
8604
+ "osd",
8605
+ "osd-manager",
8606
+ "pet-feeder",
8607
+ "pipeline-analytics",
8608
+ "pipeline-executor",
8609
+ "pipeline-orchestrator",
8610
+ "pipeline-runner",
8611
+ "plate-gallery",
8612
+ "platform-probe",
8613
+ "power-meter",
8614
+ "presence",
8615
+ "pressure-sensor",
8616
+ "privacy-mask",
8617
+ "ptz",
8618
+ "ptz-autotrack",
8619
+ "reboot",
8620
+ "record-entries",
8621
+ "recording",
8622
+ "recording-archive",
8623
+ "recording-export",
8624
+ "recording-onboard",
8625
+ "recording-signal",
8626
+ "records",
8627
+ "running-state",
8628
+ "scene-monitor",
8629
+ "script-runner",
8630
+ "server-management",
8631
+ "settings-store",
8632
+ "smoke",
8633
+ "smtp-provider",
8634
+ "snapshot",
8635
+ "sso-bridge",
8636
+ "storage",
8637
+ "storage-admin",
8638
+ "storage-evictable",
8639
+ "storage-migration",
8640
+ "storage-occupancy",
8641
+ "storage-provider",
8642
+ "stream-broker",
8643
+ "stream-catalog",
8644
+ "stream-params",
8645
+ "stream-signals",
8646
+ "switch",
8647
+ "system",
8648
+ "tamper",
8649
+ "temperature-sensor",
8650
+ "terminal-session",
8651
+ "toast",
8652
+ "training",
8653
+ "training-provider",
8654
+ "turn-provider",
8655
+ "update",
8656
+ "user-management",
8657
+ "user-passkeys",
8658
+ "vacuum-control",
8659
+ "valve",
8660
+ "vector-store",
8661
+ "vibration",
8662
+ "videoclips",
8663
+ "viewer-ui",
8664
+ "water-heater",
8665
+ "weather",
8666
+ "webrtc-session",
8667
+ "zone-analytics",
8668
+ "zone-rules",
8669
+ "zones"
8670
+ ]);
8671
+ Object.freeze({
8672
+ "air-quality-sensor": [
8673
+ {
8674
+ "path": "co2Ppm",
8675
+ "valueType": "number"
8676
+ },
8677
+ {
8678
+ "path": "vocPpb",
8679
+ "valueType": "number"
8680
+ },
8681
+ {
8682
+ "path": "pm25",
8683
+ "valueType": "number"
8684
+ },
8685
+ {
8686
+ "path": "pm10",
8687
+ "valueType": "number"
8688
+ },
8689
+ {
8690
+ "path": "aqi",
8691
+ "valueType": "number"
8692
+ },
8693
+ {
8694
+ "path": "unit",
8695
+ "valueType": "string"
8696
+ },
8697
+ {
8698
+ "path": "precision",
8699
+ "valueType": "number"
8700
+ }
8701
+ ],
8702
+ "alarm-panel": [
8703
+ {
8704
+ "path": "state",
8705
+ "valueType": "enum",
8706
+ "enumValues": [
8707
+ "disarmed",
8708
+ "armed_home",
8709
+ "armed_away",
8710
+ "armed_night",
8711
+ "armed_vacation",
8712
+ "armed_custom_bypass",
8713
+ "arming",
8714
+ "disarming",
8715
+ "pending",
8716
+ "triggered"
8717
+ ]
8718
+ },
8719
+ {
8720
+ "path": "targetMode",
8721
+ "valueType": "enum",
8722
+ "enumValues": [
8723
+ "home",
8724
+ "away",
8725
+ "night",
8726
+ "vacation",
8727
+ "custom_bypass"
8728
+ ]
8729
+ },
8730
+ {
8731
+ "path": "requiresCode",
8732
+ "valueType": "boolean"
8733
+ }
8734
+ ],
8735
+ "ambient-light-sensor": [
8736
+ {
8737
+ "path": "lux",
8738
+ "valueType": "number"
8739
+ },
8740
+ {
8741
+ "path": "unit",
8742
+ "valueType": "string"
8743
+ },
8744
+ {
8745
+ "path": "precision",
8746
+ "valueType": "number"
8747
+ }
8748
+ ],
8749
+ "audio-metrics": [
8750
+ {
8751
+ "path": "ts",
8752
+ "valueType": "number"
8753
+ },
8754
+ {
8755
+ "path": "windowSec",
8756
+ "valueType": "number"
8757
+ },
8758
+ {
8759
+ "path": "level.rms",
8760
+ "valueType": "number"
8761
+ },
8762
+ {
8763
+ "path": "level.dbfs",
8764
+ "valueType": "number"
8765
+ },
8766
+ {
8767
+ "path": "peakDbfs",
8768
+ "valueType": "number"
8769
+ },
8770
+ {
8771
+ "path": "avgDbfs",
8772
+ "valueType": "number"
8773
+ },
8774
+ {
8775
+ "path": "current.className",
8776
+ "valueType": "string"
8777
+ },
8778
+ {
8779
+ "path": "current.score",
8780
+ "valueType": "number"
8781
+ },
8782
+ {
8783
+ "path": "current.timestamp",
8784
+ "valueType": "number"
8785
+ }
8786
+ ],
8787
+ "automation-control": [
8788
+ {
8789
+ "path": "enabled",
8790
+ "valueType": "boolean"
8791
+ },
8792
+ {
8793
+ "path": "isRunning",
8794
+ "valueType": "boolean"
8795
+ },
8796
+ {
8797
+ "path": "lastTriggeredAt",
8798
+ "valueType": "number"
8799
+ },
8800
+ {
8801
+ "path": "lastError",
8802
+ "valueType": "string"
8803
+ }
8804
+ ],
8805
+ "battery": [
8806
+ {
8807
+ "path": "percentage",
8808
+ "valueType": "number"
8809
+ },
8810
+ {
8811
+ "path": "charging",
8812
+ "valueType": "enum",
8813
+ "enumValues": [
8814
+ "dc",
8815
+ "solar",
8816
+ "none",
8817
+ "unknown"
8818
+ ]
8819
+ },
8820
+ {
8821
+ "path": "sleeping",
8822
+ "valueType": "boolean"
8823
+ },
8824
+ {
8825
+ "path": "lastUpdated",
8826
+ "valueType": "number"
8827
+ },
8828
+ {
8829
+ "path": "lastContactAt",
8830
+ "valueType": "number"
8831
+ },
8832
+ {
8833
+ "path": "lastFullRefreshAt",
8834
+ "valueType": "number"
8835
+ },
8836
+ {
8837
+ "path": "binary",
8838
+ "valueType": "boolean"
8839
+ }
8840
+ ],
8841
+ "binary": [{
8842
+ "path": "on",
8843
+ "valueType": "boolean"
8844
+ }],
8845
+ "brightness": [{
8846
+ "path": "percentage",
8847
+ "valueType": "number"
8848
+ }],
8849
+ "broker": [{
8850
+ "path": "brokerCount",
8851
+ "valueType": "number"
8852
+ }, {
8853
+ "path": "connectedCount",
8854
+ "valueType": "number"
8855
+ }],
8856
+ "camera-credentials": [
8857
+ {
8858
+ "path": "host",
8859
+ "valueType": "string"
8860
+ },
8861
+ {
8862
+ "path": "port",
8863
+ "valueType": "number"
8864
+ },
8865
+ {
8866
+ "path": "onvifPort",
8867
+ "valueType": "number"
8868
+ },
8869
+ {
8870
+ "path": "rtspPort",
8871
+ "valueType": "number"
8872
+ },
8873
+ {
8874
+ "path": "https",
8875
+ "valueType": "boolean"
8876
+ },
8877
+ {
8878
+ "path": "hasUsername",
8879
+ "valueType": "boolean"
8880
+ },
8881
+ {
8882
+ "path": "hasPassword",
8883
+ "valueType": "boolean"
8884
+ },
8885
+ {
8886
+ "path": "onvifProfile",
8887
+ "valueType": "string"
8888
+ }
8889
+ ],
8890
+ "camera-streams": [
8891
+ {
8892
+ "path": "online",
8893
+ "valueType": "boolean"
8894
+ },
8895
+ {
8896
+ "path": "slotStatuses.high",
8897
+ "valueType": "enum",
8898
+ "enumValues": [
8899
+ "unassigned",
8900
+ "idle",
8901
+ "connecting",
8902
+ "streaming",
8903
+ "error"
8904
+ ]
8905
+ },
8906
+ {
8907
+ "path": "slotStatuses.mid",
8908
+ "valueType": "enum",
8909
+ "enumValues": [
8910
+ "unassigned",
8911
+ "idle",
8912
+ "connecting",
8913
+ "streaming",
8914
+ "error"
8915
+ ]
8916
+ },
8917
+ {
8918
+ "path": "slotStatuses.low",
8919
+ "valueType": "enum",
8920
+ "enumValues": [
8921
+ "unassigned",
8922
+ "idle",
8923
+ "connecting",
8924
+ "streaming",
8925
+ "error"
8926
+ ]
8927
+ },
8928
+ {
8929
+ "path": "slotErrors.high",
8930
+ "valueType": "string"
8931
+ },
8932
+ {
8933
+ "path": "slotErrors.mid",
8934
+ "valueType": "string"
8935
+ },
8936
+ {
8937
+ "path": "slotErrors.low",
8938
+ "valueType": "string"
8939
+ }
8940
+ ],
8941
+ "carbon-monoxide": [{
8942
+ "path": "detected",
8943
+ "valueType": "boolean"
8944
+ }],
8945
+ "climate-control": [
8946
+ {
8947
+ "path": "mode",
8948
+ "valueType": "enum",
8949
+ "enumValues": [
8950
+ "off",
8951
+ "heat",
8952
+ "cool",
8953
+ "auto",
8954
+ "heat_cool",
8955
+ "fan_only",
8956
+ "dry"
8957
+ ]
8958
+ },
8959
+ {
8960
+ "path": "fanMode",
8961
+ "valueType": "string"
8962
+ },
8963
+ {
8964
+ "path": "preset",
8965
+ "valueType": "string"
8966
+ },
8967
+ {
8968
+ "path": "target",
8969
+ "valueType": "number"
8970
+ },
8971
+ {
8972
+ "path": "targetHigh",
8973
+ "valueType": "number"
8974
+ },
8975
+ {
8976
+ "path": "targetLow",
8977
+ "valueType": "number"
8978
+ },
8979
+ {
8980
+ "path": "targetHumidity",
8981
+ "valueType": "number"
8982
+ },
8983
+ {
8984
+ "path": "currentTemp",
8985
+ "valueType": "number"
8986
+ },
8987
+ {
8988
+ "path": "currentHumidity",
8989
+ "valueType": "number"
8990
+ },
8991
+ {
8992
+ "path": "swingVertical",
8993
+ "valueType": "boolean"
8994
+ },
8995
+ {
8996
+ "path": "swingHorizontal",
8997
+ "valueType": "boolean"
8998
+ },
8999
+ {
9000
+ "path": "minTemp",
9001
+ "valueType": "number"
9002
+ },
9003
+ {
9004
+ "path": "maxTemp",
9005
+ "valueType": "number"
9006
+ },
9007
+ {
9008
+ "path": "tempStep",
9009
+ "valueType": "number"
9010
+ }
9011
+ ],
9012
+ "color": [
9013
+ {
9014
+ "path": "mode",
9015
+ "valueType": "enum",
9016
+ "enumValues": [
9017
+ "rgb",
9018
+ "hsv",
9019
+ "mired"
9020
+ ]
9021
+ },
9022
+ {
9023
+ "path": "rgb.r",
9024
+ "valueType": "number"
9025
+ },
9026
+ {
9027
+ "path": "rgb.g",
9028
+ "valueType": "number"
9029
+ },
9030
+ {
9031
+ "path": "rgb.b",
9032
+ "valueType": "number"
9033
+ },
9034
+ {
9035
+ "path": "hsv.h",
9036
+ "valueType": "number"
9037
+ },
9038
+ {
9039
+ "path": "hsv.s",
9040
+ "valueType": "number"
9041
+ },
9042
+ {
9043
+ "path": "hsv.v",
9044
+ "valueType": "number"
9045
+ },
9046
+ {
9047
+ "path": "mireds",
9048
+ "valueType": "number"
9049
+ }
9050
+ ],
9051
+ "connectivity": [{
9052
+ "path": "connected",
9053
+ "valueType": "boolean"
9054
+ }],
9055
+ "contact": [{
9056
+ "path": "entryOpen",
9057
+ "valueType": "boolean"
9058
+ }],
9059
+ "control": [
9060
+ {
9061
+ "path": "kind",
9062
+ "valueType": "enum",
9063
+ "enumValues": [
9064
+ "numeric",
9065
+ "select",
9066
+ "text",
9067
+ "datetime"
9068
+ ]
9069
+ },
9070
+ {
9071
+ "path": "unit",
9072
+ "valueType": "string"
9073
+ },
9074
+ {
9075
+ "path": "min",
9076
+ "valueType": "number"
9077
+ },
9078
+ {
9079
+ "path": "max",
9080
+ "valueType": "number"
9081
+ },
9082
+ {
9083
+ "path": "step",
9084
+ "valueType": "number"
9085
+ },
9086
+ {
9087
+ "path": "precision",
9088
+ "valueType": "number"
9089
+ },
9090
+ {
9091
+ "path": "format",
9092
+ "valueType": "enum",
9093
+ "enumValues": [
9094
+ "date",
9095
+ "time",
9096
+ "datetime"
9097
+ ]
9098
+ }
9099
+ ],
9100
+ "cover": [
9101
+ {
9102
+ "path": "state",
9103
+ "valueType": "enum",
9104
+ "enumValues": [
9105
+ "open",
9106
+ "opening",
9107
+ "closing",
9108
+ "closed",
9109
+ "stopped"
9110
+ ]
9111
+ },
9112
+ {
9113
+ "path": "position",
9114
+ "valueType": "number"
9115
+ },
9116
+ {
9117
+ "path": "tiltPosition",
9118
+ "valueType": "number"
9119
+ }
9120
+ ],
9121
+ "day-night": [
9122
+ {
9123
+ "path": "mode",
9124
+ "valueType": "enum",
9125
+ "enumValues": [
9126
+ "auto",
9127
+ "day",
9128
+ "night",
9129
+ "schedule"
9130
+ ]
9131
+ },
9132
+ {
9133
+ "path": "sensitivity",
9134
+ "valueType": "number"
9135
+ },
9136
+ {
9137
+ "path": "switchDelaySec",
9138
+ "valueType": "number"
9139
+ }
9140
+ ],
9141
+ "device-adoption": [
9142
+ {
9143
+ "path": "lastDiscoveryAt",
9144
+ "valueType": "number"
9145
+ },
9146
+ {
9147
+ "path": "candidateCount",
9148
+ "valueType": "number"
9149
+ },
9150
+ {
9151
+ "path": "adoptedCount",
9152
+ "valueType": "number"
9153
+ },
9154
+ {
9155
+ "path": "lastError",
9156
+ "valueType": "string"
9157
+ }
9158
+ ],
9159
+ "device-discovery": [{
9160
+ "path": "lastDiscoveryAt",
9161
+ "valueType": "number"
9162
+ }, {
9163
+ "path": "lastError",
9164
+ "valueType": "string"
9165
+ }],
9166
+ "device-export": [
9167
+ {
9168
+ "path": "linkState",
9169
+ "valueType": "enum",
9170
+ "enumValues": [
9171
+ "unlinked",
9172
+ "linked",
9173
+ "error"
9174
+ ]
9175
+ },
9176
+ {
9177
+ "path": "exposedDeviceCount",
9178
+ "valueType": "number"
9179
+ },
9180
+ {
9181
+ "path": "error",
9182
+ "valueType": "string"
9183
+ },
9184
+ {
9185
+ "path": "setup.qr",
9186
+ "valueType": "string"
9187
+ },
9188
+ {
9189
+ "path": "setup.note",
9190
+ "valueType": "string"
9191
+ }
9192
+ ],
9193
+ "device-status": [{
9194
+ "path": "online",
9195
+ "valueType": "boolean"
9196
+ }],
9197
+ "dishwasher": [
9198
+ {
9199
+ "path": "availability",
9200
+ "valueType": "enum",
9201
+ "enumValues": [
9202
+ "available",
9203
+ "offline",
9204
+ "description-missing"
9205
+ ]
9206
+ },
9207
+ {
9208
+ "path": "state",
9209
+ "valueType": "enum",
9210
+ "enumValues": [
9211
+ "idle",
9212
+ "running",
9213
+ "paused",
9214
+ "finished",
9215
+ "error",
9216
+ "unavailable"
9217
+ ]
9218
+ },
9219
+ {
9220
+ "path": "operationState",
9221
+ "valueType": "enum",
9222
+ "enumValues": [
9223
+ "Inactive",
9224
+ "Ready",
9225
+ "DelayedStart",
9226
+ "Run",
9227
+ "Pause",
9228
+ "ActionRequired",
9229
+ "Finished",
9230
+ "Error",
9231
+ "Aborting"
9232
+ ]
9233
+ },
9234
+ {
9235
+ "path": "program",
9236
+ "valueType": "string"
9237
+ },
9238
+ {
9239
+ "path": "selectedProgram",
9240
+ "valueType": "string"
9241
+ },
9242
+ {
9243
+ "path": "remainingSeconds",
9244
+ "valueType": "number"
9245
+ },
9246
+ {
9247
+ "path": "delayedStartSeconds",
9248
+ "valueType": "number"
9249
+ },
9250
+ {
9251
+ "path": "progressPercent",
9252
+ "valueType": "number"
9253
+ },
9254
+ {
9255
+ "path": "doorOpen",
9256
+ "valueType": "boolean"
9257
+ },
9258
+ {
9259
+ "path": "doorLocked",
9260
+ "valueType": "boolean"
9261
+ },
9262
+ {
9263
+ "path": "remoteStartAllowed",
9264
+ "valueType": "boolean"
9265
+ },
9266
+ {
9267
+ "path": "remoteControlActive",
9268
+ "valueType": "boolean"
9269
+ },
9270
+ {
9271
+ "path": "localControlActive",
9272
+ "valueType": "boolean"
9273
+ },
9274
+ {
9275
+ "path": "powerOn",
9276
+ "valueType": "boolean"
9277
+ },
9278
+ {
9279
+ "path": "powerState",
9280
+ "valueType": "string"
9281
+ },
9282
+ {
9283
+ "path": "filterCleaningDue",
9284
+ "valueType": "boolean"
9285
+ },
9286
+ {
9287
+ "path": "machineCareDue",
9288
+ "valueType": "boolean"
9289
+ },
9290
+ {
9291
+ "path": "machineCareRemainingRuns",
9292
+ "valueType": "number"
9293
+ },
9294
+ {
9295
+ "path": "halfLoad",
9296
+ "valueType": "boolean"
9297
+ },
9298
+ {
9299
+ "path": "hygienePlus",
9300
+ "valueType": "boolean"
9301
+ },
9302
+ {
9303
+ "path": "extraDry",
9304
+ "valueType": "boolean"
9305
+ },
9306
+ {
9307
+ "path": "intensiveZone",
9308
+ "valueType": "boolean"
9309
+ },
9310
+ {
9311
+ "path": "varioSpeedPlus",
9312
+ "valueType": "boolean"
9313
+ },
9314
+ {
9315
+ "path": "childLock",
9316
+ "valueType": "boolean"
9317
+ },
9318
+ {
9319
+ "path": "errorCode",
9320
+ "valueType": "number"
9321
+ },
9322
+ {
9323
+ "path": "errorLabel",
9324
+ "valueType": "string"
9325
+ }
9326
+ ],
9327
+ "doorbell": [{
9328
+ "path": "lastPressedAt",
9329
+ "valueType": "number"
9330
+ }, {
9331
+ "path": "pressCountSinceStart",
9332
+ "valueType": "number"
9333
+ }],
9334
+ "enum-sensor": [{
9335
+ "path": "value",
9336
+ "valueType": "string"
9337
+ }, {
9338
+ "path": "format",
9339
+ "valueType": "enum",
9340
+ "enumValues": [
9341
+ "date",
9342
+ "time",
9343
+ "datetime"
9344
+ ]
9345
+ }],
9346
+ "event-emitter": [
9347
+ {
9348
+ "path": "lastEvent.deviceId",
9349
+ "valueType": "number"
9350
+ },
9351
+ {
9352
+ "path": "lastEvent.eventType",
9353
+ "valueType": "string"
9354
+ },
9355
+ {
9356
+ "path": "lastEvent.timestamp",
9357
+ "valueType": "number"
9358
+ },
9359
+ {
9360
+ "path": "lastEvent.seq",
9361
+ "valueType": "number"
9362
+ },
9363
+ {
9364
+ "path": "eventCountSinceStart",
9365
+ "valueType": "number"
9366
+ }
9367
+ ],
9368
+ "fan-control": [
9369
+ {
9370
+ "path": "percentage",
9371
+ "valueType": "number"
9372
+ },
9373
+ {
9374
+ "path": "percentageStep",
9375
+ "valueType": "number"
9376
+ },
9377
+ {
9378
+ "path": "preset",
9379
+ "valueType": "string"
9380
+ },
9381
+ {
9382
+ "path": "direction",
9383
+ "valueType": "enum",
9384
+ "enumValues": ["forward", "reverse"]
9385
+ },
9386
+ {
9387
+ "path": "oscillating",
9388
+ "valueType": "boolean"
9389
+ }
9390
+ ],
9391
+ "feature-probe": [
9392
+ {
9393
+ "path": "deviceType",
9394
+ "valueType": "string"
9395
+ },
9396
+ {
9397
+ "path": "model",
9398
+ "valueType": "string"
9399
+ },
9400
+ {
9401
+ "path": "channelCount",
9402
+ "valueType": "number"
9403
+ },
9404
+ {
9405
+ "path": "lastProbedAt",
9406
+ "valueType": "number"
9407
+ }
9408
+ ],
9409
+ "flood": [{
9410
+ "path": "flooded",
9411
+ "valueType": "boolean"
9412
+ }],
9413
+ "gas": [{
9414
+ "path": "detected",
9415
+ "valueType": "boolean"
9416
+ }],
9417
+ "heating-valve": [{
9418
+ "path": "position",
9419
+ "valueType": "number"
9420
+ }],
9421
+ "humidifier": [
9422
+ {
9423
+ "path": "on",
9424
+ "valueType": "boolean"
9425
+ },
9426
+ {
9427
+ "path": "currentHumidity",
9428
+ "valueType": "number"
9429
+ },
9430
+ {
9431
+ "path": "targetHumidity",
9432
+ "valueType": "number"
9433
+ },
9434
+ {
9435
+ "path": "mode",
9436
+ "valueType": "string"
9437
+ },
9438
+ {
9439
+ "path": "action",
9440
+ "valueType": "string"
9441
+ },
9442
+ {
9443
+ "path": "minHumidity",
9444
+ "valueType": "number"
9445
+ },
9446
+ {
9447
+ "path": "maxHumidity",
9448
+ "valueType": "number"
9449
+ }
9450
+ ],
9451
+ "humidity-sensor": [
9452
+ {
9453
+ "path": "percent",
9454
+ "valueType": "number"
9455
+ },
9456
+ {
9457
+ "path": "unit",
9458
+ "valueType": "string"
9459
+ },
9460
+ {
9461
+ "path": "precision",
9462
+ "valueType": "number"
9463
+ }
9464
+ ],
9465
+ "image": [{
9466
+ "path": "url",
9467
+ "valueType": "string"
9468
+ }, {
9469
+ "path": "lastUpdated",
9470
+ "valueType": "number"
9471
+ }],
9472
+ "image-settings": [
9473
+ {
9474
+ "path": "brightness",
9475
+ "valueType": "number"
9476
+ },
9477
+ {
9478
+ "path": "contrast",
9479
+ "valueType": "number"
9480
+ },
9481
+ {
9482
+ "path": "saturation",
9483
+ "valueType": "number"
9484
+ },
9485
+ {
9486
+ "path": "sharpness",
9487
+ "valueType": "number"
9488
+ },
9489
+ {
9490
+ "path": "mirror",
9491
+ "valueType": "boolean"
9492
+ },
9493
+ {
9494
+ "path": "flip",
9495
+ "valueType": "boolean"
9496
+ },
9497
+ {
9498
+ "path": "rotate",
9499
+ "valueType": "enum",
9500
+ "enumValues": [
9501
+ "0",
9502
+ "90",
9503
+ "180",
9504
+ "270"
9505
+ ]
9506
+ },
9507
+ {
9508
+ "path": "whiteBalance",
9509
+ "valueType": "enum",
9510
+ "enumValues": ["auto", "manual"]
9511
+ },
9512
+ {
9513
+ "path": "warmth",
9514
+ "valueType": "number"
9515
+ },
9516
+ {
9517
+ "path": "exposureMode",
9518
+ "valueType": "enum",
9519
+ "enumValues": ["auto", "manual"]
9520
+ },
9521
+ {
9522
+ "path": "backlightMode",
9523
+ "valueType": "enum",
9524
+ "enumValues": [
9525
+ "off",
9526
+ "blc",
9527
+ "wdr",
9528
+ "hlc"
9529
+ ]
9530
+ }
9531
+ ],
9532
+ "intercom": [
9533
+ {
9534
+ "path": "talking",
9535
+ "valueType": "boolean"
9536
+ },
9537
+ {
9538
+ "path": "lastSessionAt",
9539
+ "valueType": "number"
9540
+ },
9541
+ {
9542
+ "path": "ability.sampleRate",
9543
+ "valueType": "number"
9544
+ },
9545
+ {
9546
+ "path": "ability.duplex",
9547
+ "valueType": "enum",
9548
+ "enumValues": ["half", "full"]
9549
+ },
9550
+ {
9551
+ "path": "ability.maxBacklogMs",
9552
+ "valueType": "number"
9553
+ }
9554
+ ],
9555
+ "lawn-mower-control": [
9556
+ {
9557
+ "path": "activity",
9558
+ "valueType": "enum",
9559
+ "enumValues": [
9560
+ "idle",
9561
+ "mowing",
9562
+ "paused",
9563
+ "docked",
9564
+ "error"
9565
+ ]
9566
+ },
9567
+ {
9568
+ "path": "batteryLevel",
9569
+ "valueType": "number"
9570
+ },
9571
+ {
9572
+ "path": "progressPercent",
9573
+ "valueType": "number"
9574
+ },
9575
+ {
9576
+ "path": "currentCode",
9577
+ "valueType": "number"
9578
+ },
9579
+ {
9580
+ "path": "currentCodeLabel",
9581
+ "valueType": "string"
9582
+ },
9583
+ {
9584
+ "path": "severity",
9585
+ "valueType": "enum",
9586
+ "enumValues": [
9587
+ "info",
9588
+ "warning",
9589
+ "error"
9590
+ ]
9591
+ }
9592
+ ],
9593
+ "lock-control": [{
9594
+ "path": "state",
9595
+ "valueType": "enum",
9596
+ "enumValues": [
9597
+ "locked",
9598
+ "unlocked",
9599
+ "locking",
9600
+ "unlocking",
9601
+ "jammed"
9602
+ ]
9603
+ }],
9604
+ "media-player": [
9605
+ {
9606
+ "path": "state",
9607
+ "valueType": "enum",
9608
+ "enumValues": [
9609
+ "off",
9610
+ "on",
9611
+ "idle",
9612
+ "playing",
9613
+ "paused",
9614
+ "buffering",
9615
+ "standby"
9616
+ ]
9617
+ },
9618
+ {
9619
+ "path": "volumeLevel",
9620
+ "valueType": "number"
9621
+ },
9622
+ {
9623
+ "path": "isMuted",
9624
+ "valueType": "boolean"
9625
+ },
9626
+ {
9627
+ "path": "source",
9628
+ "valueType": "string"
9629
+ },
9630
+ {
9631
+ "path": "currentMedia.type",
9632
+ "valueType": "string"
9633
+ },
9634
+ {
9635
+ "path": "currentMedia.title",
9636
+ "valueType": "string"
9637
+ },
9638
+ {
9639
+ "path": "currentMedia.artist",
9640
+ "valueType": "string"
9641
+ },
9642
+ {
9643
+ "path": "currentMedia.album",
9644
+ "valueType": "string"
9645
+ },
9646
+ {
9647
+ "path": "currentMedia.imageUrl",
9648
+ "valueType": "string"
9649
+ },
9650
+ {
9651
+ "path": "positionMs",
9652
+ "valueType": "number"
9653
+ },
9654
+ {
9655
+ "path": "durationMs",
9656
+ "valueType": "number"
9657
+ },
9658
+ {
9659
+ "path": "shuffle",
9660
+ "valueType": "boolean"
9661
+ },
9662
+ {
9663
+ "path": "repeat",
9664
+ "valueType": "enum",
9665
+ "enumValues": [
9666
+ "off",
9667
+ "all",
9668
+ "one"
9669
+ ]
9670
+ }
9671
+ ],
9672
+ "motion": [
9673
+ {
9674
+ "path": "detected",
9675
+ "valueType": "boolean"
9676
+ },
9677
+ {
9678
+ "path": "lastDetectedAt",
9679
+ "valueType": "number"
9680
+ },
9681
+ {
9682
+ "path": "autoClearAfterMs",
9683
+ "valueType": "number"
9684
+ }
9685
+ ],
9686
+ "motion-trigger": [{
9687
+ "path": "enabled",
9688
+ "valueType": "boolean"
9689
+ }],
9690
+ "motion-zones": [{
9691
+ "path": "enabled",
9692
+ "valueType": "boolean"
9693
+ }, {
9694
+ "path": "sensitivity",
9695
+ "valueType": "number"
9696
+ }],
9697
+ "mqtt-broker": [{
9698
+ "path": "brokerCount",
9699
+ "valueType": "number"
9700
+ }, {
9701
+ "path": "embeddedRunning",
9702
+ "valueType": "boolean"
9703
+ }],
9704
+ "native-object-detection": [{
9705
+ "path": "enabled",
9706
+ "valueType": "boolean"
9707
+ }],
9708
+ "navigation": [
9709
+ {
9710
+ "path": "mode",
9711
+ "valueType": "enum",
9712
+ "enumValues": [
9713
+ "idle",
9714
+ "cleaning",
9715
+ "spot",
9716
+ "following",
9717
+ "goto",
9718
+ "returning",
9719
+ "paused",
9720
+ "unknown"
9721
+ ]
9722
+ },
9723
+ {
9724
+ "path": "following",
9725
+ "valueType": "boolean"
9726
+ },
9727
+ {
9728
+ "path": "flash",
9729
+ "valueType": "boolean"
9730
+ },
9731
+ {
9732
+ "path": "lightMode",
9733
+ "valueType": "enum",
9734
+ "enumValues": ["auto", "manual"]
9735
+ },
9736
+ {
9737
+ "path": "lightLevel",
9738
+ "valueType": "number"
9739
+ }
9740
+ ],
9741
+ "network-link": [
9742
+ {
9743
+ "path": "type",
9744
+ "valueType": "enum",
9745
+ "enumValues": [
9746
+ "wifi",
9747
+ "ethernet",
9748
+ "cellular",
9749
+ "unknown"
9750
+ ]
9751
+ },
9752
+ {
9753
+ "path": "signalPercent",
9754
+ "valueType": "number"
9755
+ },
9756
+ {
9757
+ "path": "rssiDbm",
9758
+ "valueType": "number"
9759
+ },
9760
+ {
9761
+ "path": "ssid",
9762
+ "valueType": "string"
9763
+ },
9764
+ {
9765
+ "path": "lastUpdated",
9766
+ "valueType": "number"
9767
+ }
9768
+ ],
9769
+ "notifier": [
9770
+ {
9771
+ "path": "lastSentAt",
9772
+ "valueType": "number"
9773
+ },
9774
+ {
9775
+ "path": "lastError",
9776
+ "valueType": "string"
9777
+ },
9778
+ {
9779
+ "path": "queueDepth",
9780
+ "valueType": "number"
9781
+ },
9782
+ {
9783
+ "path": "supports.image",
9784
+ "valueType": "boolean"
9785
+ },
9786
+ {
9787
+ "path": "supports.priority",
9788
+ "valueType": "boolean"
9789
+ },
9790
+ {
9791
+ "path": "supports.data",
9792
+ "valueType": "boolean"
9793
+ },
9794
+ {
9795
+ "path": "supports.actions",
9796
+ "valueType": "boolean"
9797
+ },
9798
+ {
9799
+ "path": "supports.recipients",
9800
+ "valueType": "boolean"
9801
+ }
9802
+ ],
9803
+ "numeric-sensor": [
9804
+ {
9805
+ "path": "value",
9806
+ "valueType": "number"
9807
+ },
9808
+ {
9809
+ "path": "unit",
9810
+ "valueType": "string"
9811
+ },
9812
+ {
9813
+ "path": "precision",
9814
+ "valueType": "number"
9815
+ }
9816
+ ],
9817
+ "pet-feeder": [
9818
+ {
9819
+ "path": "foodLevel",
9820
+ "valueType": "number"
9821
+ },
9822
+ {
9823
+ "path": "food1",
9824
+ "valueType": "number"
9825
+ },
9826
+ {
9827
+ "path": "food2",
9828
+ "valueType": "number"
9829
+ },
9830
+ {
9831
+ "path": "lowFood",
9832
+ "valueType": "boolean"
9833
+ },
9834
+ {
9835
+ "path": "batteryPower",
9836
+ "valueType": "number"
9837
+ },
9838
+ {
9839
+ "path": "desiccantLeftDays",
9840
+ "valueType": "number"
9841
+ },
9842
+ {
9843
+ "path": "feeding",
9844
+ "valueType": "boolean"
9845
+ },
9846
+ {
9847
+ "path": "status",
9848
+ "valueType": "enum",
9849
+ "enumValues": [
9850
+ "normal",
9851
+ "offline",
9852
+ "on_batteries"
9853
+ ]
9854
+ },
9855
+ {
9856
+ "path": "error",
9857
+ "valueType": "string"
9858
+ },
9859
+ {
9860
+ "path": "errorCode",
9861
+ "valueType": "number"
9862
+ },
9863
+ {
9864
+ "path": "isDualHopper",
9865
+ "valueType": "boolean"
9866
+ },
9867
+ {
9868
+ "path": "childLock",
9869
+ "valueType": "boolean"
9870
+ },
9871
+ {
9872
+ "path": "indicatorLight",
9873
+ "valueType": "boolean"
9874
+ },
9875
+ {
9876
+ "path": "feedSound",
9877
+ "valueType": "boolean"
9878
+ },
9879
+ {
9880
+ "path": "volume",
9881
+ "valueType": "number"
9882
+ }
9883
+ ],
9884
+ "power-meter": [
9885
+ {
9886
+ "path": "watts",
9887
+ "valueType": "number"
9888
+ },
9889
+ {
9890
+ "path": "kwhTotal",
9891
+ "valueType": "number"
9892
+ },
9893
+ {
9894
+ "path": "volts",
9895
+ "valueType": "number"
9896
+ },
9897
+ {
9898
+ "path": "amps",
9899
+ "valueType": "number"
9900
+ },
9901
+ {
9902
+ "path": "va",
9903
+ "valueType": "number"
9904
+ },
9905
+ {
9906
+ "path": "powerFactor",
9907
+ "valueType": "number"
9908
+ },
9909
+ {
9910
+ "path": "unit",
9911
+ "valueType": "string"
9912
+ },
9913
+ {
9914
+ "path": "precision",
9915
+ "valueType": "number"
9916
+ }
9917
+ ],
9918
+ "presence": [
9919
+ {
9920
+ "path": "state",
9921
+ "valueType": "string"
9922
+ },
9923
+ {
9924
+ "path": "location",
9925
+ "valueType": "string"
9926
+ },
9927
+ {
9928
+ "path": "gps.latitude",
9929
+ "valueType": "number"
9930
+ },
9931
+ {
9932
+ "path": "gps.longitude",
9933
+ "valueType": "number"
9934
+ },
9935
+ {
9936
+ "path": "gps.accuracyMeters",
9937
+ "valueType": "number"
9938
+ },
9939
+ {
9940
+ "path": "batteryPercent",
9941
+ "valueType": "number"
9942
+ }
9943
+ ],
9944
+ "pressure-sensor": [
9945
+ {
9946
+ "path": "hpa",
9947
+ "valueType": "number"
9948
+ },
9949
+ {
9950
+ "path": "unit",
9951
+ "valueType": "string"
9952
+ },
9953
+ {
9954
+ "path": "precision",
9955
+ "valueType": "number"
9956
+ }
9957
+ ],
9958
+ "privacy-mask": [{
9959
+ "path": "enabled",
9960
+ "valueType": "boolean"
9961
+ }, {
9962
+ "path": "audioEnabled",
9963
+ "valueType": "boolean"
9964
+ }],
9965
+ "ptz": [
9966
+ {
9967
+ "path": "pan",
9968
+ "valueType": "number"
9969
+ },
9970
+ {
9971
+ "path": "tilt",
9972
+ "valueType": "number"
9973
+ },
9974
+ {
9975
+ "path": "zoom",
9976
+ "valueType": "number"
9977
+ },
9978
+ {
9979
+ "path": "autofocus",
9980
+ "valueType": "boolean"
9981
+ }
9982
+ ],
9983
+ "ptz-autotrack": [
9984
+ {
9985
+ "path": "enabled",
9986
+ "valueType": "boolean"
9987
+ },
9988
+ {
9989
+ "path": "currentSettings.targetType",
9990
+ "valueType": "string"
9991
+ },
9992
+ {
9993
+ "path": "currentSettings.stopDelaySeconds",
9994
+ "valueType": "number"
9995
+ },
9996
+ {
9997
+ "path": "currentSettings.disappearDelaySeconds",
9998
+ "valueType": "number"
9999
+ }
10000
+ ],
10001
+ "recording-archive": [
10002
+ {
10003
+ "path": "deviceId",
10004
+ "valueType": "number"
10005
+ },
10006
+ {
10007
+ "path": "enabled",
10008
+ "valueType": "boolean"
10009
+ },
10010
+ {
10011
+ "path": "activeMode",
10012
+ "valueType": "enum",
10013
+ "enumValues": [
10014
+ "off",
10015
+ "events",
10016
+ "continuous",
10017
+ "on-device-decision"
10018
+ ]
10019
+ },
10020
+ {
10021
+ "path": "nodeId",
10022
+ "valueType": "string"
10023
+ },
10024
+ {
10025
+ "path": "storageBytes",
10026
+ "valueType": "number"
10027
+ }
10028
+ ],
10029
+ "recording-onboard": [
10030
+ {
10031
+ "path": "primaryTrackId",
10032
+ "valueType": "string"
10033
+ },
10034
+ {
10035
+ "path": "enabled",
10036
+ "valueType": "boolean"
10037
+ },
10038
+ {
10039
+ "path": "overwriteWhenFull",
10040
+ "valueType": "boolean"
10041
+ },
10042
+ {
10043
+ "path": "preRecordSec",
10044
+ "valueType": "number"
10045
+ },
10046
+ {
10047
+ "path": "postRecordSec",
10048
+ "valueType": "number"
10049
+ },
10050
+ {
10051
+ "path": "segmentMinutes",
10052
+ "valueType": "number"
10053
+ },
10054
+ {
10055
+ "path": "unreadableWindows",
10056
+ "valueType": "number"
10057
+ },
10058
+ {
10059
+ "path": "recordingToNowhere",
10060
+ "valueType": "boolean"
10061
+ }
10062
+ ],
10063
+ "recording-signal": [{
10064
+ "path": "active",
10065
+ "valueType": "boolean"
10066
+ }, {
10067
+ "path": "reason",
10068
+ "valueType": "string"
10069
+ }],
10070
+ "running-state": [
10071
+ {
10072
+ "path": "running",
10073
+ "valueType": "boolean"
10074
+ },
10075
+ {
10076
+ "path": "since",
10077
+ "valueType": "number"
10078
+ },
10079
+ {
10080
+ "path": "source",
10081
+ "valueType": "enum",
10082
+ "enumValues": ["native", "assigned"]
10083
+ },
10084
+ {
10085
+ "path": "phase",
10086
+ "valueType": "string"
10087
+ }
10088
+ ],
10089
+ "script-runner": [
10090
+ {
10091
+ "path": "isRunning",
10092
+ "valueType": "boolean"
10093
+ },
10094
+ {
10095
+ "path": "lastRunAt",
10096
+ "valueType": "number"
10097
+ },
10098
+ {
10099
+ "path": "lastRunSuccess",
10100
+ "valueType": "boolean"
10101
+ },
10102
+ {
10103
+ "path": "lastError",
10104
+ "valueType": "string"
10105
+ }
10106
+ ],
10107
+ "smoke": [{
10108
+ "path": "detected",
10109
+ "valueType": "boolean"
10110
+ }],
10111
+ "snapshot": [
10112
+ {
10113
+ "path": "lastCapturedAt",
10114
+ "valueType": "number"
10115
+ },
10116
+ {
10117
+ "path": "cacheAgeMs",
10118
+ "valueType": "number"
10119
+ },
10120
+ {
10121
+ "path": "lastBytes",
10122
+ "valueType": "number"
10123
+ },
10124
+ {
10125
+ "path": "lastStreamId",
10126
+ "valueType": "string"
10127
+ }
10128
+ ],
10129
+ "stream-params": [
10130
+ {
10131
+ "path": "main.width",
10132
+ "valueType": "number"
10133
+ },
10134
+ {
10135
+ "path": "main.height",
10136
+ "valueType": "number"
10137
+ },
10138
+ {
10139
+ "path": "main.codec",
10140
+ "valueType": "enum",
10141
+ "enumValues": ["h264", "h265"]
10142
+ },
10143
+ {
10144
+ "path": "main.framerate",
10145
+ "valueType": "number"
10146
+ },
10147
+ {
10148
+ "path": "main.bitrate",
10149
+ "valueType": "number"
10150
+ },
10151
+ {
10152
+ "path": "main.bitrateMode",
10153
+ "valueType": "enum",
10154
+ "enumValues": ["vbr", "cbr"]
10155
+ },
10156
+ {
10157
+ "path": "main.encoderProfile",
10158
+ "valueType": "enum",
10159
+ "enumValues": [
10160
+ "high",
10161
+ "main",
10162
+ "baseline"
10163
+ ]
10164
+ },
10165
+ {
10166
+ "path": "main.gop",
10167
+ "valueType": "number"
10168
+ },
10169
+ {
10170
+ "path": "main.audio",
10171
+ "valueType": "boolean"
10172
+ },
10173
+ {
10174
+ "path": "sub.width",
10175
+ "valueType": "number"
10176
+ },
10177
+ {
10178
+ "path": "sub.height",
10179
+ "valueType": "number"
10180
+ },
10181
+ {
10182
+ "path": "sub.codec",
10183
+ "valueType": "enum",
10184
+ "enumValues": ["h264", "h265"]
10185
+ },
10186
+ {
10187
+ "path": "sub.framerate",
10188
+ "valueType": "number"
10189
+ },
10190
+ {
10191
+ "path": "sub.bitrate",
10192
+ "valueType": "number"
10193
+ },
10194
+ {
10195
+ "path": "sub.bitrateMode",
10196
+ "valueType": "enum",
10197
+ "enumValues": ["vbr", "cbr"]
10198
+ },
10199
+ {
10200
+ "path": "sub.encoderProfile",
10201
+ "valueType": "enum",
10202
+ "enumValues": [
10203
+ "high",
10204
+ "main",
10205
+ "baseline"
10206
+ ]
10207
+ },
10208
+ {
10209
+ "path": "sub.gop",
10210
+ "valueType": "number"
10211
+ },
10212
+ {
10213
+ "path": "sub.audio",
10214
+ "valueType": "boolean"
10215
+ },
10216
+ {
10217
+ "path": "ext.width",
10218
+ "valueType": "number"
10219
+ },
10220
+ {
10221
+ "path": "ext.height",
10222
+ "valueType": "number"
10223
+ },
10224
+ {
10225
+ "path": "ext.codec",
10226
+ "valueType": "enum",
10227
+ "enumValues": ["h264", "h265"]
10228
+ },
10229
+ {
10230
+ "path": "ext.framerate",
10231
+ "valueType": "number"
10232
+ },
10233
+ {
10234
+ "path": "ext.bitrate",
10235
+ "valueType": "number"
10236
+ },
10237
+ {
10238
+ "path": "ext.bitrateMode",
10239
+ "valueType": "enum",
10240
+ "enumValues": ["vbr", "cbr"]
10241
+ },
10242
+ {
10243
+ "path": "ext.encoderProfile",
10244
+ "valueType": "enum",
10245
+ "enumValues": [
10246
+ "high",
10247
+ "main",
10248
+ "baseline"
10249
+ ]
10250
+ },
10251
+ {
10252
+ "path": "ext.gop",
10253
+ "valueType": "number"
10254
+ },
10255
+ {
10256
+ "path": "ext.audio",
10257
+ "valueType": "boolean"
10258
+ }
10259
+ ],
10260
+ "switch": [{
10261
+ "path": "on",
10262
+ "valueType": "boolean"
10263
+ }],
10264
+ "tamper": [{
10265
+ "path": "tampered",
10266
+ "valueType": "boolean"
10267
+ }],
10268
+ "temperature-sensor": [
10269
+ {
10270
+ "path": "celsius",
10271
+ "valueType": "number"
10272
+ },
10273
+ {
10274
+ "path": "unit",
10275
+ "valueType": "string"
10276
+ },
10277
+ {
10278
+ "path": "precision",
10279
+ "valueType": "number"
10280
+ }
10281
+ ],
10282
+ "update": [
10283
+ {
10284
+ "path": "currentVersion",
10285
+ "valueType": "string"
10286
+ },
10287
+ {
10288
+ "path": "availableVersion",
10289
+ "valueType": "string"
10290
+ },
10291
+ {
10292
+ "path": "updatable",
10293
+ "valueType": "boolean"
10294
+ },
10295
+ {
10296
+ "path": "state",
10297
+ "valueType": "string"
10298
+ },
10299
+ {
10300
+ "path": "inProgress",
10301
+ "valueType": "boolean"
10302
+ }
10303
+ ],
10304
+ "vacuum-control": [
10305
+ {
10306
+ "path": "state",
10307
+ "valueType": "enum",
10308
+ "enumValues": [
10309
+ "idle",
10310
+ "cleaning",
10311
+ "paused",
10312
+ "returning",
10313
+ "docked",
10314
+ "drying",
10315
+ "error"
10316
+ ]
10317
+ },
10318
+ {
10319
+ "path": "batteryLevel",
10320
+ "valueType": "number"
10321
+ },
10322
+ {
10323
+ "path": "fanSpeed",
10324
+ "valueType": "string"
10325
+ },
10326
+ {
10327
+ "path": "progressPercent",
10328
+ "valueType": "number"
10329
+ },
10330
+ {
10331
+ "path": "errorCode",
10332
+ "valueType": "number"
10333
+ },
10334
+ {
10335
+ "path": "errorLabel",
10336
+ "valueType": "string"
10337
+ }
10338
+ ],
10339
+ "valve": [{
10340
+ "path": "state",
10341
+ "valueType": "enum",
10342
+ "enumValues": [
10343
+ "open",
10344
+ "opening",
10345
+ "closing",
10346
+ "closed",
10347
+ "stopped"
10348
+ ]
10349
+ }, {
10350
+ "path": "position",
10351
+ "valueType": "number"
10352
+ }],
10353
+ "vibration": [{
10354
+ "path": "detected",
10355
+ "valueType": "boolean"
10356
+ }],
10357
+ "water-heater": [
10358
+ {
10359
+ "path": "currentTemp",
10360
+ "valueType": "number"
10361
+ },
10362
+ {
10363
+ "path": "targetTemp",
10364
+ "valueType": "number"
10365
+ },
10366
+ {
10367
+ "path": "operationMode",
10368
+ "valueType": "string"
10369
+ },
10370
+ {
10371
+ "path": "away",
10372
+ "valueType": "boolean"
10373
+ },
10374
+ {
10375
+ "path": "minTemp",
10376
+ "valueType": "number"
10377
+ },
10378
+ {
10379
+ "path": "maxTemp",
10380
+ "valueType": "number"
10381
+ }
10382
+ ],
10383
+ "weather": [
10384
+ {
10385
+ "path": "condition",
10386
+ "valueType": "string"
10387
+ },
10388
+ {
10389
+ "path": "temperature",
10390
+ "valueType": "number"
10391
+ },
10392
+ {
10393
+ "path": "temperatureUnit",
10394
+ "valueType": "string"
10395
+ },
10396
+ {
10397
+ "path": "humidity",
10398
+ "valueType": "number"
10399
+ },
10400
+ {
10401
+ "path": "pressure",
10402
+ "valueType": "number"
10403
+ },
10404
+ {
10405
+ "path": "pressureUnit",
10406
+ "valueType": "string"
10407
+ },
10408
+ {
10409
+ "path": "windSpeed",
10410
+ "valueType": "number"
10411
+ },
10412
+ {
10413
+ "path": "windSpeedUnit",
10414
+ "valueType": "string"
10415
+ },
10416
+ {
10417
+ "path": "windBearing",
10418
+ "valueType": "number"
10419
+ }
10420
+ ],
10421
+ "zone-analytics": [
10422
+ {
10423
+ "path": "ts",
10424
+ "valueType": "number"
10425
+ },
10426
+ {
10427
+ "path": "frameWidth",
10428
+ "valueType": "number"
10429
+ },
10430
+ {
10431
+ "path": "frameHeight",
10432
+ "valueType": "number"
10433
+ },
10434
+ {
10435
+ "path": "frame.totalObjects",
10436
+ "valueType": "number"
10437
+ },
10438
+ {
10439
+ "path": "frame.standingObjects",
10440
+ "valueType": "number"
10441
+ },
10442
+ {
10443
+ "path": "frame.transientObjects",
10444
+ "valueType": "number"
10445
+ },
10446
+ {
10447
+ "path": "unzoned.totalObjects",
10448
+ "valueType": "number"
10449
+ },
10450
+ {
10451
+ "path": "unzoned.standingObjects",
10452
+ "valueType": "number"
10453
+ },
10454
+ {
10455
+ "path": "unzoned.transientObjects",
10456
+ "valueType": "number"
10457
+ }
10458
+ ]
10459
+ });
8486
10460
  object({
8487
10461
  code: string().regex(/^[a-z][a-z0-9-]*(\.[a-z0-9-]+)+$/),
8488
10462
  params: record(string(), union([string(), number()])).optional()
@@ -8845,7 +10819,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
8845
10819
  return DeviceRole;
8846
10820
  }({});
8847
10821
  //#endregion
8848
- //#region ../types/dist/composition-xz-ud5EQ.mjs
10822
+ //#region ../types/dist/composition-kEl9mevu.mjs
8849
10823
  /**
8850
10824
  * The ffmpeg build every CamStack node downloads, per platform and arch.
8851
10825
  *
@@ -8905,7 +10879,7 @@ portable("linux64"), portable("linuxarm64"), portable("macarm64"), portable("mac
8905
10879
  * ONE table for everyone who asks "is this device HIGH?": the
8906
10880
  * recorder's `RecordingTriggers.sensorDeviceIds` trigger, the post-analysis
8907
10881
  * sensor markers, the orchestrator's camera-sensors bridge and
8908
- * the sources of a composite doorbell (`doorbellFeatureSources`, D671).
10882
+ * the sources of a pulse (`compilePulseOverride`, D936).
8909
10883
  * A second copy would diverge at the first cap added, and the symptom — "the
8910
10884
  * sensor rings the doorbell but does not record" — is exactly D62.
8911
10885
  *
@@ -12273,7 +14247,7 @@ var LogChannelDescriptorSchema = object({
12273
14247
  * `true` is a PROMISE with two halves, and both must hold: the gate is
12274
14248
  * consulted with the numeric device id, AND every line the channel admits
12275
14249
  * carries `tags: { deviceId }` with that same numeric id. The second half is
12276
- * what makes `| json | deviceId="617"` work in Loki — `loki-payload.ts`
14250
+ * what makes `| json | deviceId="102"` work in Loki — `loki-payload.ts`
12277
14251
  * keeps `deviceId` out of the stream labels for cardinality, so the tag in
12278
14252
  * the body is the only way to filter.
12279
14253
  *
@@ -12567,7 +14541,7 @@ var ModelVariantGroupSchema = object({
12567
14541
  precision: _enum(["fp32", "int8"]).optional(),
12568
14542
  /**
12569
14543
  * Training / latency-variant axis. Omit ⇒ the standard build. `test` marks
12570
- * an alternate training of the same family (Scrypted `relu_test`); chip
14544
+ * an alternate training of the same family (plugin catalog `relu_test`); chip
12571
14545
  * label is "Test".
12572
14546
  */
12573
14547
  optimization: _enum(["standard", "test"]).optional(),
@@ -12819,8 +14793,8 @@ var ModelCatalogEntrySchema = object({
12819
14793
  provider: ModelProviderIdSchema.optional(),
12820
14794
  /**
12821
14795
  * Per-MODEL class map override. Absent ⇒ the step's `StepDefinition.classMap`
12822
- * applies (Frigate / COCO public catalog). Set on a custom model whose raw
12823
- * labels already ARE the CamStack macros (Scrypted identity map).
14796
+ * applies (plus catalog / COCO public catalog). Set on a custom model whose raw
14797
+ * labels already ARE the CamStack macros (plugin catalog identity map).
12824
14798
  */
12825
14799
  classMap: DetectionCatalogClassMapSchema.optional(),
12826
14800
  /**
@@ -15789,7 +17763,7 @@ method(object({
15789
17763
  * `1` is real time and is the ONLY value that allows the copy branch —
15790
17764
  * anything else forces `libx264` over the window. That was priced
15791
17765
  * before it was chosen: a per-event burst measured at 0.23 s and 254 KB
15792
- * on a real 615 720p cut, against 922 KB for the copy it replaces. A
17766
+ * on a real 101 720p cut, against 922 KB for the copy it replaces. A
15793
17767
  * re-encode is capped at 720p (`EVENT_CLIP_ENCODE_MAX_WIDTH`), because
15794
17768
  * once the decode is forced the width stops being free.
15795
17769
  */
@@ -16315,6 +18289,7 @@ var CompositionRunStatusSchema = _enum([
16315
18289
  "starting",
16316
18290
  "running",
16317
18291
  "degraded",
18292
+ "incomplete",
16318
18293
  "failed"
16319
18294
  ]);
16320
18295
  var CompositionFieldStateKindSchema = _enum([
@@ -16364,6 +18339,13 @@ var ComposerUnreadableBlockSchema = object({
16364
18339
  /** The parse error, in the operator's words. */
16365
18340
  error: string()
16366
18341
  });
18342
+ /** A confirmed release the hub did not accept. `deviceId` is the claim's device. */
18343
+ var UnreleasedClaimSchema = object({
18344
+ deviceId: number().int(),
18345
+ capName: string(),
18346
+ owner: string(),
18347
+ error: string()
18348
+ });
16367
18349
  method(object({
16368
18350
  /** The shared Blocks integration; null until `core-blocks` has reconciled it. */
16369
18351
  integrationId: string().nullable(),
@@ -16373,7 +18355,13 @@ method(object({
16373
18355
  /** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
16374
18356
  restartBlockIds: array(string()),
16375
18357
  /** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
16376
- unreadableBlocks: array(ComposerUnreadableBlockSchema)
18358
+ unreadableBlocks: array(ComposerUnreadableBlockSchema),
18359
+ /**
18360
+ * Operator-confirmed deletions. Their claims are released on this apply,
18361
+ * before any replacement block claims. A block that merely vanished from the
18362
+ * snapshot is not listed here and still waits for two applies (D49).
18363
+ */
18364
+ retiredBlockIds: array(string()).optional()
16377
18365
  }), object({
16378
18366
  blocks: array(object({
16379
18367
  blockId: string(),
@@ -16385,7 +18373,13 @@ method(object({
16385
18373
  * integration unknown, its own rows unread or read empty once). An empty
16386
18374
  * apply the caller owes is paid off only by one the composer acted on (D49).
16387
18375
  */
16388
- acted: boolean()
18376
+ acted: boolean(),
18377
+ /**
18378
+ * Confirmed releases this apply tried and the hub did not accept. Empty when
18379
+ * every one landed (or there was nothing to hand back). Absent on a result
18380
+ * that never got that far.
18381
+ */
18382
+ unreleasedClaims: array(UnreleasedClaimSchema).optional()
16389
18383
  }), {
16390
18384
  kind: "mutation",
16391
18385
  auth: "admin"
@@ -16509,6 +18503,7 @@ var CoreBlockStatusSchema = _enum([
16509
18503
  "starting",
16510
18504
  "running",
16511
18505
  "degraded",
18506
+ "incomplete",
16512
18507
  "failed"
16513
18508
  ]);
16514
18509
  /** path → TypeScript source for a multi-file block. */
@@ -38656,7 +40651,7 @@ var PRIMARY_CATEGORIES = new Set(ENTRIES.map((e) => e.primaryCategory));
38656
40651
  * `locationKey` is ALWAYS {@link locationIconKey} of the label — never the
38657
40652
  * operator's casing. The registry matches labels trimmed + case-insensitively
38658
40653
  * everywhere (`addLocation`, `removeLocation`, `renameLocation`), and a
38659
- * case-only rename (`cucina` → `Cucina`) is a real edit this repo supports; a
40654
+ * case-only rename (`kitchen` → `Kitchen`) is a real edit this repo supports; a
38660
40655
  * map keyed on the displayed casing would orphan its entry on exactly that
38661
40656
  * edit. Consumers join by keying their own label through `locationIconKey`.
38662
40657
  */
@@ -38681,7 +40676,7 @@ var LocationDescriptionAssignmentSchema = object({
38681
40676
  /**
38682
40677
  * A SITE ZONE — a named part of the property that several locations belong to.
38683
40678
  *
38684
- * "Zona notte" holds every bedroom; "Zona giorno" the living room and the
40679
+ * "Night zone" holds every bedroom; "Zona giorno" the living room and the
38685
40680
  * kitchen. A camera belongs to exactly one location, and a location to at most
38686
40681
  * one zone, so a camera's zone is derived and never stored on the device: the
38687
40682
  * whole point of this entity is that grouping rooms touches no device row.
@@ -38710,7 +40705,7 @@ var LocationDescriptionAssignmentSchema = object({
38710
40705
  * the locations inside it.
38711
40706
  *
38712
40707
  * The LABEL is carried alongside the key because the key is lossy on purpose —
38713
- * a surface must show "Zona notte", not "zona notte". Locations are carried
40708
+ * a surface must show "Night zone", not "night zone". Locations are carried
38714
40709
  * here, rather than left to a second call, because every consumer wants both
38715
40710
  * at once and a viewer that asked twice could render a zone whose membership
38716
40711
  * it has not fetched yet.
@@ -40923,8 +42918,8 @@ var LoadContributionSchema = object({
40923
42918
  "unattributable"
40924
42919
  ]),
40925
42920
  /**
40926
- * What ONE entry is, in the contributor's own words — `615/high`,
40927
- * `617/native`, `cuda:0 shared pool`. Free text because the unit differs per
42921
+ * What ONE entry is, in the contributor's own words — `101/high`,
42922
+ * `102/native`, `cuda:0 shared pool`. Free text because the unit differs per
40928
42923
  * family and inventing a common one would lose the only information that
40929
42924
  * makes two entries for the same camera distinguishable.
40930
42925
  */
@@ -42572,6 +44567,381 @@ var _macroLookup = /* @__PURE__ */ new Map();
42572
44567
  for (const [k, v] of Object.entries(YAMNET_TO_MACRO.mapping)) _macroLookup.set(k.toLowerCase(), v);
42573
44568
  for (const [k, v] of Object.entries(APPLE_SA_TO_MACRO.mapping)) _macroLookup.set(k.toLowerCase(), v);
42574
44569
  /**
44570
+ * Palette entry ids (D939). Audio is the one gradient; `audio-*` leaves are
44571
+ * not entries. `heatmapScrub` is a mark, not an event kind.
44572
+ */
44573
+ var PALETTE_ENTRY_IDS = [
44574
+ "motion",
44575
+ "audio",
44576
+ "recording",
44577
+ "live",
44578
+ "heatmapScrub",
44579
+ "person",
44580
+ "vehicle",
44581
+ "animal",
44582
+ "package",
44583
+ "sensor",
44584
+ "control",
44585
+ "face",
44586
+ "plate",
44587
+ "car",
44588
+ "truck",
44589
+ "bus",
44590
+ "motorcycle",
44591
+ "bicycle",
44592
+ "airplane",
44593
+ "boat",
44594
+ "train",
44595
+ "bird",
44596
+ "dog",
44597
+ "cat",
44598
+ "horse",
44599
+ "sheep",
44600
+ "cow",
44601
+ "elephant",
44602
+ "bear",
44603
+ "zebra",
44604
+ "giraffe",
44605
+ "package-delivered",
44606
+ "package-picked-up",
44607
+ "suitcase",
44608
+ "backpack",
44609
+ "handbag",
44610
+ "contact",
44611
+ "motion-sensor",
44612
+ "smoke",
44613
+ "flood",
44614
+ "gas",
44615
+ "carbon-monoxide",
44616
+ "vibration",
44617
+ "tamper",
44618
+ "presence",
44619
+ "enum-sensor",
44620
+ "device-event",
44621
+ "lock",
44622
+ "cover",
44623
+ "switch",
44624
+ "siren",
44625
+ "button",
44626
+ "doorbell"
44627
+ ];
44628
+ var AUDIO_ENTRY_ID = "audio";
44629
+ /** Six rungs, quiet → loud. The opaque end is the entry's hex. */
44630
+ var AUDIO_GRADIENT_ALPHAS = [
44631
+ .3,
44632
+ .42,
44633
+ .55,
44634
+ .7,
44635
+ .85,
44636
+ 1
44637
+ ];
44638
+ var PALETTE_PRESET_IDS = [
44639
+ "camstack",
44640
+ "high-contrast",
44641
+ "okabe-ito"
44642
+ ];
44643
+ /** Frozen palette tables (D939). The spec refuses a table that breaks the rule. */
44644
+ var CAMSTACK_HEX = {
44645
+ motion: "#d946ef",
44646
+ audio: "#059eb8",
44647
+ recording: "#ef4444",
44648
+ live: "#8d7a00",
44649
+ heatmapScrub: "#4b32ff",
44650
+ person: "#11a64c",
44651
+ vehicle: "#3b82f6",
44652
+ animal: "#ea6a09",
44653
+ package: "#924667",
44654
+ sensor: "#624bbc",
44655
+ control: "#944d24",
44656
+ face: "#ed4f8d",
44657
+ plate: "#4b7027",
44658
+ car: "#9684cf",
44659
+ truck: "#0f9b89",
44660
+ bus: "#a734a9",
44661
+ motorcycle: "#c1133a",
44662
+ bicycle: "#0e6a9b",
44663
+ airplane: "#7c9928",
44664
+ boat: "#b17933",
44665
+ train: "#ad6ca3",
44666
+ bird: "#0f7c55",
44667
+ dog: "#c82700",
44668
+ cat: "#7268f2",
44669
+ horse: "#cb795e",
44670
+ sheep: "#b8636b",
44671
+ cow: "#cb2969",
44672
+ elephant: "#1158d2",
44673
+ bear: "#8d5e00",
44674
+ zebra: "#0097d6",
44675
+ giraffe: "#8f61bb",
44676
+ "package-delivered": "#cd3f9b",
44677
+ "package-picked-up": "#388a08",
44678
+ suitcase: "#666800",
44679
+ backpack: "#ec5022",
44680
+ handbag: "#a76ef8",
44681
+ contact: "#ab5a49",
44682
+ "motion-sensor": "#b95d1a",
44683
+ smoke: "#dd3858",
44684
+ flood: "#b31e7d",
44685
+ gas: "#5b70b5",
44686
+ "carbon-monoxide": "#7b4e8e",
44687
+ vibration: "#e65bba",
44688
+ tamper: "#98464b",
44689
+ presence: "#3a9468",
44690
+ "enum-sensor": "#7885f8",
44691
+ "device-event": "#8c43c8",
44692
+ lock: "#649653",
44693
+ cover: "#c67597",
44694
+ switch: "#7a812a",
44695
+ siren: "#ac5d7f",
44696
+ button: "#b276cd",
44697
+ doorbell: "#0087ab"
44698
+ };
44699
+ var CAMSTACK_FALLBACK = [
44700
+ "#b34dc7",
44701
+ "#1d7d34",
44702
+ "#db6b6c",
44703
+ "#a43d29",
44704
+ "#0e6ee6",
44705
+ "#29a10b",
44706
+ "#a98731",
44707
+ "#0181c6"
44708
+ ];
44709
+ var HIGH_CONTRAST_HEX = {
44710
+ motion: "#964360",
44711
+ audio: "#23a132",
44712
+ recording: "#2494ca",
44713
+ live: "#bd7e2b",
44714
+ heatmapScrub: "#ad6eea",
44715
+ person: "#62611e",
44716
+ vehicle: "#f4534c",
44717
+ animal: "#1556cd",
44718
+ package: "#9c4415",
44719
+ sensor: "#066c48",
44720
+ control: "#f2479f",
44721
+ face: "#139d8a",
44722
+ plate: "#909024",
44723
+ car: "#8e35ab",
44724
+ truck: "#bd0b2b",
44725
+ bus: "#7a88ca",
44726
+ motorcycle: "#e26725",
44727
+ bicycle: "#a6679b",
44728
+ airplane: "#7c5720",
44729
+ boat: "#467a1b",
44730
+ train: "#6f65a4",
44731
+ bird: "#cb717f",
44732
+ dog: "#c62490",
44733
+ cat: "#b36850",
44734
+ horse: "#1872ac",
44735
+ sheep: "#927939",
44736
+ cow: "#428a5c",
44737
+ elephant: "#d41160",
44738
+ bear: "#799453",
44739
+ zebra: "#a85455",
44740
+ giraffe: "#746be8",
44741
+ "package-delivered": "#824a80",
44742
+ "package-picked-up": "#614ac1",
44743
+ suitcase: "#2f77f3",
44744
+ backpack: "#fa476d",
44745
+ handbag: "#c14cbe",
44746
+ contact: "#c83921",
44747
+ "motion-sensor": "#a07ebd",
44748
+ smoke: "#a25b13",
44749
+ flood: "#526bab",
44750
+ gas: "#924938",
44751
+ "carbon-monoxide": "#bb7e53",
44752
+ vibration: "#b66182",
44753
+ tamper: "#3c6931",
44754
+ presence: "#6c851d",
44755
+ "enum-sensor": "#ad2d48",
44756
+ "device-event": "#5e9b04",
44757
+ lock: "#00a062",
44758
+ cover: "#ad8624",
44759
+ switch: "#d05259",
44760
+ siren: "#cd67b3",
44761
+ button: "#c9746a",
44762
+ doorbell: "#338eeb"
44763
+ };
44764
+ var HIGH_CONTRAST_FALLBACK = [
44765
+ "#817f3b",
44766
+ "#a0733e",
44767
+ "#8658b2",
44768
+ "#956301",
44769
+ "#bc652d",
44770
+ "#647331",
44771
+ "#a14c9e",
44772
+ "#d14e71"
44773
+ ];
44774
+ var OKABE_ITO_HEX = {
44775
+ motion: "#b88128",
44776
+ audio: "#1096c8",
44777
+ recording: "#009e73",
44778
+ live: "#9c8c22",
44779
+ heatmapScrub: "#0072b2",
44780
+ person: "#d55e00",
44781
+ vehicle: "#c0739f",
44782
+ animal: "#226d18",
44783
+ package: "#91446c",
44784
+ sensor: "#217b56",
44785
+ control: "#648647",
44786
+ face: "#c22998",
44787
+ plate: "#fa4575",
44788
+ car: "#956301",
44789
+ truck: "#2f77f3",
44790
+ bus: "#7a4e86",
44791
+ motorcycle: "#f54597",
44792
+ bicycle: "#bb3e75",
44793
+ airplane: "#e054c0",
44794
+ boat: "#457942",
44795
+ train: "#867afa",
44796
+ bird: "#88914c",
44797
+ dog: "#1556cd",
44798
+ cat: "#71702c",
44799
+ horse: "#9b4fa4",
44800
+ sheep: "#c0559d",
44801
+ cow: "#d14f65",
44802
+ elephant: "#98470f",
44803
+ bear: "#595896",
44804
+ zebra: "#96790e",
44805
+ giraffe: "#cb717b",
44806
+ "package-delivered": "#139d8a",
44807
+ "package-picked-up": "#906ead",
44808
+ suitcase: "#d02939",
44809
+ backpack: "#d41160",
44810
+ handbag: "#f64f54",
44811
+ contact: "#7258d2",
44812
+ "motion-sensor": "#b66182",
44813
+ smoke: "#627abb",
44814
+ flood: "#b86ae4",
44815
+ gas: "#a95261",
44816
+ "carbon-monoxide": "#c65d3c",
44817
+ vibration: "#7a40b7",
44818
+ tamper: "#914b34",
44819
+ presence: "#9481c3",
44820
+ "enum-sensor": "#ac6d47",
44821
+ "device-event": "#7b6fce",
44822
+ lock: "#c67662",
44823
+ cover: "#a6564d",
44824
+ switch: "#ad2c4e",
44825
+ siren: "#348e08",
44826
+ button: "#d27303",
44827
+ doorbell: "#55770f"
44828
+ };
44829
+ var OKABE_ITO_FALLBACK = [
44830
+ "#9a3784",
44831
+ "#a7392c",
44832
+ "#409d50",
44833
+ "#6987e7",
44834
+ "#ee5b3d",
44835
+ "#c0430d",
44836
+ "#af79b3",
44837
+ "#4b6628"
44838
+ ];
44839
+ /**
44840
+ * The display palette (D939). One table of colours, three presets, one
44841
+ * validator. Taxonomy colours and every consumer read this — there is no
44842
+ * second hex table.
44843
+ */
44844
+ var paletteHexSchema = string().regex(/^#[0-9a-f]{6}$/);
44845
+ var paletteSwatchSchema = discriminatedUnion("form", [object({
44846
+ form: literal("solid"),
44847
+ hex: paletteHexSchema
44848
+ }), object({
44849
+ form: literal("gradient"),
44850
+ hex: paletteHexSchema,
44851
+ alphas: array(number().gt(0).lte(1)).length(AUDIO_GRADIENT_ALPHAS.length)
44852
+ })]);
44853
+ var paletteReadySchema = object({
44854
+ status: literal("ready"),
44855
+ presetId: _enum(PALETTE_PRESET_IDS),
44856
+ customized: boolean(),
44857
+ source: _enum(["stored", "unconfigured"]),
44858
+ swatches: record(string(), paletteSwatchSchema),
44859
+ fallbacks: array(paletteHexSchema).length(8)
44860
+ });
44861
+ var paletteResultSchema = discriminatedUnion("status", [paletteReadySchema, object({
44862
+ status: literal("unknown"),
44863
+ reason: string()
44864
+ })]);
44865
+ var setPaletteInputSchema = union([object({ presetId: string() }), object({
44866
+ presetId: string(),
44867
+ overrides: record(string(), paletteSwatchSchema)
44868
+ })]);
44869
+ object({
44870
+ presetId: string(),
44871
+ overrides: record(string(), paletteSwatchSchema)
44872
+ });
44873
+ function solid(hex) {
44874
+ return {
44875
+ form: "solid",
44876
+ hex
44877
+ };
44878
+ }
44879
+ function audioGradient(hex) {
44880
+ return {
44881
+ form: "gradient",
44882
+ hex,
44883
+ alphas: [...AUDIO_GRADIENT_ALPHAS]
44884
+ };
44885
+ }
44886
+ function swatchesFrom(hexes) {
44887
+ const out = {};
44888
+ for (const id of PALETTE_ENTRY_IDS) {
44889
+ const hex = hexes[id];
44890
+ if (hex === void 0) throw new Error(`palette table missing ${id}`);
44891
+ out[id] = id === "audio" ? audioGradient(hex) : solid(hex);
44892
+ }
44893
+ return out;
44894
+ }
44895
+ function preset(id, name, hexes, fallbacks) {
44896
+ return {
44897
+ id,
44898
+ name,
44899
+ swatches: swatchesFrom(hexes),
44900
+ fallbacks
44901
+ };
44902
+ }
44903
+ var DISPLAY_PRESETS = [
44904
+ preset("camstack", "CamStack", CAMSTACK_HEX, CAMSTACK_FALLBACK),
44905
+ preset("high-contrast", "High contrast", HIGH_CONTRAST_HEX, HIGH_CONTRAST_FALLBACK),
44906
+ preset("okabe-ito", "Colour-blind safe", OKABE_ITO_HEX, OKABE_ITO_FALLBACK)
44907
+ ];
44908
+ function presetById(id) {
44909
+ return DISPLAY_PRESETS.find((item) => item.id === id);
44910
+ }
44911
+ function bundledCamstack() {
44912
+ const presetRow = presetById("camstack");
44913
+ if (presetRow === void 0) throw new Error("CamStack preset missing");
44914
+ return readyOf(presetRow, "unconfigured", false);
44915
+ }
44916
+ function readyOf(row, source, customized) {
44917
+ return {
44918
+ status: "ready",
44919
+ presetId: row.id,
44920
+ customized,
44921
+ source,
44922
+ swatches: row.swatches,
44923
+ fallbacks: [...row.fallbacks]
44924
+ };
44925
+ }
44926
+ function hashFallback(kind, fallbacks) {
44927
+ let hash = 0;
44928
+ for (let i = 0; i < kind.length; i++) hash = hash * 31 + (kind.codePointAt(i) ?? 0) >>> 0;
44929
+ const hex = fallbacks[hash % fallbacks.length];
44930
+ if (hex === void 0) throw new Error("display palette has no fallback colour");
44931
+ return hex;
44932
+ }
44933
+ /** Colour a kind paints with. Audio leaves share the audio gradient's hex. */
44934
+ function paintHex(swatches, fallbacks, kind) {
44935
+ const key = kind.trim().toLowerCase();
44936
+ if (key.startsWith("audio-")) {
44937
+ const audio = swatches[AUDIO_ENTRY_ID];
44938
+ return audio !== void 0 ? audio.hex : hashFallback(key, fallbacks);
44939
+ }
44940
+ const direct = swatches[key];
44941
+ if (direct !== void 0) return direct.hex;
44942
+ return hashFallback(key, fallbacks);
44943
+ }
44944
+ /**
42575
44945
  * Unified event-kind taxonomy — THE single source of truth for
42576
44946
  * `kind → { parentKind, category, level, color, iconId, labelKey, label,
42577
44947
  * icon }`.
@@ -42585,109 +44955,88 @@ for (const [k, v] of Object.entries(APPLE_SA_TO_MACRO.mapping)) _macroLookup.set
42585
44955
  * - `addon-post-analysis/shared/frame/box-drawer.ts` (DEFAULT_COLOR)
42586
44956
  * - the COCO / audio class maps (macro ↔ sub relationships)
42587
44957
  *
42588
- * The DATA (serializable — color/iconId/labelKey/parentKind) lives here in
42589
- * `@camstack/types`. The UI-side mapping `iconId → lucide component` and
42590
- * `labelKey → t()` lives in `@camstack/ui-library`. UIs never hardcode a
42591
- * color or an icon: they read this dictionary (server descriptors carry the
42592
- * fields inline; the client resolves color/icon/label from `iconId`/`kind`).
44958
+ * The DATA (serializable — parentKind / iconId / labelKey) lives here in
44959
+ * `@camstack/types`. Colour is NOT a second table: each entry's `color` is
44960
+ * the bundled CamStack display palette (D939). The effective cluster palette
44961
+ * is the `display-palette` capability. The UI-side mapping `iconId → lucide
44962
+ * component` and `labelKey → t()` lives in `@camstack/ui-library`.
42593
44963
  *
42594
44964
  * Two levels only (v1 YAGNI): macro → sub. `person` is a leaf macro.
42595
44965
  */
42596
- var TAXONOMY_COLORS = {
42597
- motion: "#f59e0b",
42598
- audio: "#06b6d4",
42599
- person: "#22c55e",
42600
- vehicle: "#3b82f6",
42601
- animal: "#f97316",
42602
- package: "#a855f7",
42603
- sensor: "#8b5cf6",
42604
- control: "#10b981",
42605
- genericDetection: "#64748b"
42606
- };
42607
- var DETECTION_SUB_COLORS = {
42608
- car: "#f59e0b",
42609
- truck: "#d97706",
42610
- bus: "#b45309",
42611
- motorcycle: "#eab308",
42612
- bicycle: "#ca8a04",
42613
- airplane: "#60a5fa",
42614
- boat: "#2563eb",
42615
- train: "#1d4ed8",
42616
- bird: "#14b8a6",
42617
- dog: "#84cc16",
42618
- cat: "#f97316",
42619
- horse: "#a16207",
42620
- sheep: "#a3a3a3",
42621
- cow: "#78716c",
42622
- elephant: "#6b7280",
42623
- bear: "#7c2d12",
42624
- zebra: "#404040",
42625
- giraffe: "#d4a373"
42626
- };
44966
+ var BUNDLED_PALETTE = bundledCamstack();
44967
+ function kindColor(kind) {
44968
+ return paintHex(BUNDLED_PALETTE.swatches, BUNDLED_PALETTE.fallbacks, kind);
44969
+ }
44970
+ function firstFallback(fallbacks) {
44971
+ const hex = fallbacks[0];
44972
+ if (hex === void 0) throw new Error("display palette has no fallback colour");
44973
+ return hex;
44974
+ }
44975
+ firstFallback(BUNDLED_PALETTE.fallbacks);
42627
44976
  function titleCase(id) {
42628
44977
  return id.split(/[-_ ]/).filter((p) => p.length > 0).map((p) => p.charAt(0).toUpperCase() + p.slice(1)).join(" ");
42629
44978
  }
42630
44979
  var entries = /* @__PURE__ */ new Map();
42631
- function macro(kind, category, color, iconId, label) {
44980
+ function macro(kind, category, iconId, label) {
42632
44981
  entries.set(kind, {
42633
44982
  kind,
42634
44983
  parentKind: null,
42635
44984
  level: "macro",
42636
44985
  category,
42637
- color,
44986
+ color: kindColor(kind),
42638
44987
  iconId,
42639
44988
  labelKey: `eventKind.${kind}`,
42640
44989
  label
42641
44990
  });
42642
44991
  }
42643
- function sub(kind, parentKind, category, color, iconId, label) {
44992
+ function sub(kind, parentKind, category, iconId, label) {
42644
44993
  entries.set(kind, {
42645
44994
  kind,
42646
44995
  parentKind,
42647
44996
  level: "sub",
42648
44997
  category,
42649
- color,
44998
+ color: kindColor(kind),
42650
44999
  iconId,
42651
45000
  labelKey: `eventKind.${kind}`,
42652
45001
  label
42653
45002
  });
42654
45003
  }
42655
- macro("motion", "motion", TAXONOMY_COLORS.motion, "motion", "Motion");
42656
- macro("audio", "audio", TAXONOMY_COLORS.audio, "audio", "Audio");
42657
- macro("person", "detection", TAXONOMY_COLORS.person, "person", "Person");
42658
- macro("vehicle", "detection", TAXONOMY_COLORS.vehicle, "vehicle", "Vehicle");
42659
- macro("animal", "detection", TAXONOMY_COLORS.animal, "animal", "Animal");
42660
- macro("package", "package", TAXONOMY_COLORS.package, "package", "Package");
42661
- macro("sensor", "sensor", TAXONOMY_COLORS.sensor, "sensor", "Sensor");
42662
- macro("control", "control", TAXONOMY_COLORS.control, "control", "Control");
45004
+ macro("motion", "motion", "motion", "Motion");
45005
+ macro("audio", "audio", "audio", "Audio");
45006
+ macro("person", "detection", "person", "Person");
45007
+ macro("vehicle", "detection", "vehicle", "Vehicle");
45008
+ macro("animal", "detection", "animal", "Animal");
45009
+ macro("package", "package", "package", "Package");
45010
+ macro("sensor", "sensor", "sensor", "Sensor");
45011
+ macro("control", "control", "control", "Control");
42663
45012
  for (const [cocoClass, macroClass] of Object.entries(COCO_TO_MACRO.mapping)) {
42664
45013
  if (macroClass !== "vehicle" && macroClass !== "animal") continue;
42665
45014
  if (entries.has(cocoClass)) continue;
42666
- sub(cocoClass, macroClass, "detection", DETECTION_SUB_COLORS[cocoClass] ?? TAXONOMY_COLORS.genericDetection, cocoClass, titleCase(cocoClass));
42667
- }
42668
- sub("package-delivered", "package", "package", TAXONOMY_COLORS.package, "package", "Package delivered");
42669
- sub("package-picked-up", "package", "package", TAXONOMY_COLORS.package, "package", "Package picked up");
42670
- sub("contact", "sensor", "sensor", "#f59e0b", "door", "Contact");
42671
- sub("motion-sensor", "sensor", "sensor", TAXONOMY_COLORS.sensor, "pir", "Motion sensor");
42672
- sub("smoke", "sensor", "sensor", "#ef4444", "smoke", "Smoke");
42673
- sub("flood", "sensor", "sensor", "#3b82f6", "water", "Water leak");
42674
- sub("gas", "sensor", "sensor", "#ef4444", "gas", "Gas");
42675
- sub("carbon-monoxide", "sensor", "sensor", "#dc2626", "smoke", "Carbon monoxide");
42676
- sub("vibration", "sensor", "sensor", "#eab308", "vibration", "Vibration");
42677
- sub("tamper", "sensor", "sensor", "#f97316", "tamper", "Tamper");
42678
- sub("presence", "sensor", "sensor", "#22c55e", "presence", "Presence");
42679
- sub("enum-sensor", "sensor", "sensor", TAXONOMY_COLORS.sensor, "generic", "Sensor state");
42680
- sub("device-event", "sensor", "sensor", "#10b981", "button", "Device event");
42681
- sub("lock", "control", "control", "#0ea5e9", "lock", "Lock");
42682
- sub("cover", "control", "control", "#0ea5e9", "door", "Cover");
42683
- sub("switch", "control", "control", TAXONOMY_COLORS.control, "switch", "Switch");
42684
- sub("siren", "control", "control", "#dc2626", "siren", "Siren");
42685
- sub("button", "control", "control", "#10b981", "button", "Button");
42686
- sub("doorbell", "control", "control", "#a855f7", "doorbell", "Doorbell");
45015
+ sub(cocoClass, macroClass, "detection", cocoClass, titleCase(cocoClass));
45016
+ }
45017
+ sub("package-delivered", "package", "package", "package", "Package delivered");
45018
+ sub("package-picked-up", "package", "package", "package", "Package picked up");
45019
+ sub("contact", "sensor", "sensor", "door", "Contact");
45020
+ sub("motion-sensor", "sensor", "sensor", "pir", "Motion sensor");
45021
+ sub("smoke", "sensor", "sensor", "smoke", "Smoke");
45022
+ sub("flood", "sensor", "sensor", "water", "Water leak");
45023
+ sub("gas", "sensor", "sensor", "gas", "Gas");
45024
+ sub("carbon-monoxide", "sensor", "sensor", "smoke", "Carbon monoxide");
45025
+ sub("vibration", "sensor", "sensor", "vibration", "Vibration");
45026
+ sub("tamper", "sensor", "sensor", "tamper", "Tamper");
45027
+ sub("presence", "sensor", "sensor", "presence", "Presence");
45028
+ sub("enum-sensor", "sensor", "sensor", "generic", "Sensor state");
45029
+ sub("device-event", "sensor", "sensor", "button", "Device event");
45030
+ sub("lock", "control", "control", "lock", "Lock");
45031
+ sub("cover", "control", "control", "door", "Cover");
45032
+ sub("switch", "control", "control", "switch", "Switch");
45033
+ sub("siren", "control", "control", "siren", "Siren");
45034
+ sub("button", "control", "control", "button", "Button");
45035
+ sub("doorbell", "control", "control", "doorbell", "Doorbell");
42687
45036
  for (const l of AUDIO_MACRO_LABELS) {
42688
45037
  const kind = `audio-${l.id}`;
42689
45038
  if (entries.has(kind)) continue;
42690
- sub(kind, "audio", "audio", TAXONOMY_COLORS.audio, kind, l.name);
45039
+ sub(kind, "audio", "audio", kind, l.name);
42691
45040
  }
42692
45041
  /** The complete taxonomy dictionary, keyed by kind. */
42693
45042
  var EVENT_TAXONOMY = Object.freeze(Object.fromEntries(entries));
@@ -43574,7 +45923,7 @@ var NcConditionsSchema = object({
43574
45923
  * with the list under it is worse than no switch (D62).
43575
45924
  *
43576
45925
  * MEMBERS ARE FACE-GALLERY `Identity.id`s (uuid), not display names. A name is
43577
- * renameable, and a rule authored on "Gianluca" went silently dark the moment
45926
+ * renameable, and a rule authored on "Alice" went silently dark the moment
43578
45927
  * the operator fixed the spelling. The id reaches the record on
43579
45928
  * `LabelAttribution.identityId`; the name is what the editor shows and what
43580
45929
  * `{{label}}` renders.
@@ -44125,7 +46474,7 @@ var NcRulePatchSchema = NcRuleInputSchema.partial().extend({
44125
46474
  * A rule scoped to one camera and one zone silently became a rule that
44126
46475
  * matches EVERY event on EVERY camera, and lost its `media` policy
44127
46476
  * (zoneCrop / gif / clip / frame) and its `priority` at the same time. Seen
44128
- * live on 2026-08-12: a rule scoped to device 617 fired on 590 and 615
46477
+ * live on 2026-08-12: a rule scoped to device 102 fired on 104 and 101
44129
46478
  * within a minute of a two-field patch.
44130
46479
  *
44131
46480
  * So every defaulted field is re-declared here WITHOUT its default. The
@@ -45938,7 +48287,7 @@ var LabelAttributionSchema = object({
45938
48287
  * `Identity.id` or a plate-gallery `Vehicle.id` (both `randomUUID`).
45939
48288
  *
45940
48289
  * The text alone is a DISPLAY NAME, and a display name is renameable: a
45941
- * notification rule authored on "Gianluca" stopped matching the moment the
48290
+ * notification rule authored on "Alice" stopped matching the moment the
45942
48291
  * operator fixed the spelling in the gallery, and nothing said so. The id is
45943
48292
  * the thing that does not move, so it is what a rule matches on
45944
48293
  * (`NcConditions.identities`) and the text is what a human is shown.
@@ -48477,7 +50826,7 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
48477
50826
  /**
48478
50827
  * Root-supplied detections for the tree's ROOT step (D730). Set by
48479
50828
  * `runDetailSubtree` when the camera's root model supplies a crop-kind
48480
- * step (a Frigate+ `license_plate` for `plate-detection`): the step is
50829
+ * step (a plus catalog `license_plate` for `plate-detection`): the step is
48481
50830
  * NOT inferred, these boxes are its output, and its children (the plate
48482
50831
  * reader) run on them through their own crop policy. Boxes are in the
48483
50832
  * PIXELS of the image this call carries. Absent ⇒ the root step runs.
@@ -50154,7 +52503,7 @@ var RunnerCameraConfigSchema = object({
50154
52503
  * detection session that asks for history. What shipped was a last-moment
50155
52504
  * discard — `FrameSlot`'s throttle compares wall clocks, and ~4 s of media
50156
52505
  * arriving inside a few hundred ms of wall clock looks to it like one frame's
50157
- * worth. Device 617, 2026-09-08: a re-run of the SAME model over the stored
52506
+ * worth. Device 102, 2026-09-08: a re-run of the SAME model over the stored
50158
52507
  * recording scored the subject `vehicle 0.5669` — above the 0.50 floor —
50159
52508
  * 1.68 s BEFORE the live track was born, on a frame that was in the pre-roll,
50160
52509
  * was decoded, and was freed.
@@ -52288,7 +54637,7 @@ method(_void(), ProviderInfoSchema, { auth: "admin" }), method(object({ config:
52288
54637
  * The signals a device can emit to WAKE its own stream.
52289
54638
  *
52290
54639
  * A camera whose stream is built on demand sleeps until something asks for it,
52291
- * and "something" cannot be a consumer that is merely attached — a Frigate-style
54640
+ * and "something" cannot be a consumer that is merely attached — a external-catalog
52292
54641
  * puller holds a session open for ever, and treating that as demand would keep
52293
54642
  * a battery camera awake for ever, which is the whole thing the battery is for
52294
54643
  * (D173). So the wake has to come from the CAMERA: an event it noticed by
@@ -53056,7 +55405,7 @@ var ClipSchema = object({
53056
55405
  * {@link MAX_CLIP_EVENT_IDS}. Empty on footage-only clips.
53057
55406
  *
53058
55407
  * Bounded because it is not a payload the surface pages through: one visit on
53059
- * device 615 carried 2 345 ids, and `eventIds` was 99% of a 153 KB
55408
+ * device 101 carried 2 345 ids, and `eventIds` was 99% of a 153 KB
53060
55409
  * camera-day. Read {@link eventCount} for the true total.
53061
55410
  */
53062
55411
  eventIds: array(string()).optional(),
@@ -53201,7 +55550,7 @@ var ClipPlaybackSchema = object({
53201
55550
  * camera has no recordings", which is the defect this whole line of work is
53202
55551
  * about: a battery camera nobody woke (`sleeping`), a camera that could not be
53203
55552
  * reached at all (`unreachable`, also what a provider that THREW reports), a
53204
- * camera whose SD card is not mounted (`no-storage`, measured on 640 —
55553
+ * camera whose SD card is not mounted (`no-storage`, measured on 106 —
53205
55554
  * `HddInfo mount 0`, honestly nothing to list rather than "no clips"), and a
53206
55555
  * camera whose OWN index disagrees with its OWN calendar (`index-empty`,
53207
55556
  * measured on 618: the calendar marks 3–20 September, days 6–20 list zero
@@ -53662,7 +56011,7 @@ var videoclipsCapability = {
53662
56011
  *
53663
56012
  * It was optional, documented as "absent means the device's BOUND
53664
56013
  * provider, which is CamStack on every camera". No code implemented
53665
- * that. Measured on the live hub 2026-09-20 — device 592, bound to
56014
+ * that. Measured on the live hub 2026-09-20 — device 107, bound to
53666
56015
  * `recorder` AND `provider-reolink` — a bare call with `limit: 3`
53667
56016
  * answered SIX rows, three from each source, merged newest-first:
53668
56017
  * `device-collection-dispatch.ts` simply left the fan-out un-narrowed,
@@ -54979,7 +57328,10 @@ var airQualitySensorCapability = {
54979
57328
  */
54980
57329
  var AmbientLightSensorStatusSchema = object({
54981
57330
  /** Current illuminance in lux (lx). */
54982
- lux: number().min(0),
57331
+ lux: number().min(0).meta({
57332
+ unit: "lx",
57333
+ label: "Illuminance"
57334
+ }),
54983
57335
  /** Ms epoch when the slice was last updated. */
54984
57336
  lastFetchedAt: number(),
54985
57337
  /** Live display unit from the upstream source (e.g. HA
@@ -55022,7 +57374,12 @@ var ambientLightSensorCapability = {
55022
57374
  } } },
55023
57375
  /** Clock fields: written, but excluded from the compare that decides
55024
57376
  * whether persisting is worth a SQLite commit. */
55025
- volatileStateFields: ["lastFetchedAt"]
57377
+ volatileStateFields: ["lastFetchedAt"],
57378
+ customize: {
57379
+ version: 1,
57380
+ advanced: "derive",
57381
+ targets: []
57382
+ }
55026
57383
  };
55027
57384
  /**
55028
57385
  * Per-class audio metrics aggregated over a sliding window.
@@ -55249,7 +57606,10 @@ var BatteryStatusSchema = object({
55249
57606
  * Consumers must SKIP a null rather than coerce it — `battery-band` already
55250
57607
  * declines to band a non-finite reading, which is the correct shape.
55251
57608
  */
55252
- percentage: number().min(0).max(100).nullable(),
57609
+ percentage: number().min(0).max(100).nullable().meta({
57610
+ unit: "%",
57611
+ label: "Charge"
57612
+ }),
55253
57613
  /**
55254
57614
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
55255
57615
  * Reolink-specific for the Solar Panel 2 accessory (will become
@@ -55268,13 +57628,13 @@ var BatteryStatusSchema = object({
55268
57628
  "solar",
55269
57629
  "none",
55270
57630
  "unknown"
55271
- ]),
57631
+ ]).meta({ label: "Charging source" }),
55272
57632
  /**
55273
57633
  * True when the camera firmware has gone into low-power mode. Battery
55274
57634
  * providers MUST avoid polling during sleep — reading the battery
55275
57635
  * wakes the camera up and drains charge.
55276
57636
  */
55277
- sleeping: boolean(),
57637
+ sleeping: boolean().meta({ label: "Sleeping" }),
55278
57638
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
55279
57639
  lastUpdated: number(),
55280
57640
  /**
@@ -55314,22 +57674,71 @@ var BatteryStatusSchema = object({
55314
57674
  * sub-threshold = low). UI MUST render "Normal"/"Low" instead of a
55315
57675
  * misleading exact percentage. Absent/false → genuine 0–100 % reading.
55316
57676
  */
55317
- binary: boolean().optional()
57677
+ binary: boolean().optional().meta({ label: "Binary indicator" })
55318
57678
  });
57679
+ var BATTERY_DEVICE_TYPES = [
57680
+ DeviceType.Camera,
57681
+ DeviceType.Sensor,
57682
+ DeviceType.Button,
57683
+ DeviceType.Switch,
57684
+ DeviceType.PetFeeder,
57685
+ DeviceType.Container,
57686
+ DeviceType.Thermostat
57687
+ ];
57688
+ /** Generic Customize target for the percentage reading (D936). */
57689
+ var batteryCustomize = {
57690
+ version: 1,
57691
+ advanced: "derive",
57692
+ targets: [{
57693
+ id: "percentage",
57694
+ cardinality: "scalar",
57695
+ vocabulary: {
57696
+ cap: "battery",
57697
+ stateField: "percentage"
57698
+ },
57699
+ deviceTypes: BATTERY_DEVICE_TYPES,
57700
+ apply: "add-or-replace",
57701
+ path: "percentage",
57702
+ sources: [{
57703
+ kind: "field",
57704
+ valueKinds: ["number", "string"],
57705
+ transforms: [{ kind: "identity" }, {
57706
+ kind: "linear",
57707
+ defaultScale: 1,
57708
+ defaultOffset: 0,
57709
+ clampMin: 0,
57710
+ clampMax: 100
57711
+ }]
57712
+ }],
57713
+ companions: [
57714
+ {
57715
+ kind: "constant",
57716
+ path: "charging",
57717
+ value: "unknown",
57718
+ when: "add"
57719
+ },
57720
+ {
57721
+ kind: "constant",
57722
+ path: "sleeping",
57723
+ value: false,
57724
+ when: "add"
57725
+ },
57726
+ {
57727
+ kind: "clock",
57728
+ path: "lastUpdated",
57729
+ when: "add"
57730
+ }
57731
+ ],
57732
+ sourceReport: { status: "assignment-status" },
57733
+ advancedExpression: true
57734
+ }]
57735
+ };
55319
57736
  var batteryCapability = {
55320
57737
  name: "battery",
55321
57738
  scope: "device",
55322
57739
  deviceNative: true,
55323
57740
  mode: "singleton",
55324
- deviceTypes: [
55325
- DeviceType.Camera,
55326
- DeviceType.Sensor,
55327
- DeviceType.Button,
55328
- DeviceType.Switch,
55329
- DeviceType.PetFeeder,
55330
- DeviceType.Container,
55331
- DeviceType.Thermostat
55332
- ],
57741
+ deviceTypes: BATTERY_DEVICE_TYPES,
55333
57742
  methods: {
55334
57743
  /**
55335
57744
  * Explicitly wake the camera from low-power sleep ahead of a
@@ -55413,6 +57822,7 @@ onStatusChanged: { data: object({
55413
57822
  kind: "gauge",
55414
57823
  unit: "%"
55415
57824
  } } },
57825
+ customize: batteryCustomize,
55416
57826
  /** Clock fields: written, but excluded from the compare that decides
55417
57827
  * whether persisting is worth a SQLite commit. */
55418
57828
  volatileStateFields: ["lastUpdated"]
@@ -55429,7 +57839,7 @@ onStatusChanged: { data: object({
55429
57839
  * with the right HomeKit / Alexa display category.
55430
57840
  */
55431
57841
  var BinaryStatusSchema = object({
55432
- on: boolean(),
57842
+ on: boolean().meta({ label: "On" }),
55433
57843
  /** Ms epoch of the last transition. 0 if never observed. */
55434
57844
  lastChangedAt: number()
55435
57845
  });
@@ -55458,7 +57868,12 @@ var binaryCapability = {
55458
57868
  history: { fields: { on: { kind: "boolean" } } },
55459
57869
  /** Clock fields: written, but excluded from the compare that decides
55460
57870
  * whether persisting is worth a SQLite commit. */
55461
- volatileStateFields: ["lastChangedAt"]
57871
+ volatileStateFields: ["lastChangedAt"],
57872
+ customize: {
57873
+ version: 1,
57874
+ advanced: "derive",
57875
+ targets: []
57876
+ }
55462
57877
  };
55463
57878
  /**
55464
57879
  * Dimmable-light brightness control. Co-exists with `switch` on the
@@ -55764,7 +58179,7 @@ var GridLayoutCellSchema = object({
55764
58179
  *
55765
58180
  * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
55766
58181
  * profile is on offer only when EVERY source can serve it. The refusal NAMES
55767
- * the sources, because "this grid has no low" is not a finding — "615 has no
58182
+ * the sources, because "this grid has no low" is not a finding — "101 has no
55768
58183
  * low" is, and it is the one an operator can act on.
55769
58184
  */
55770
58185
  var GridProfileOfferSchema = object({
@@ -56373,6 +58788,106 @@ var ConsumablesStatusSchema = object({
56373
58788
  items: array(ConsumableItemSchema),
56374
58789
  lastChangedAt: number()
56375
58790
  });
58791
+ /** Synthesize seed for a link-built status (no native provider).
58792
+ *
58793
+ * ⚠ NO LIVE CALLER since 2026-08-08 (device-links deleted; see
58794
+ * `CapabilityStatusSchema.empty`). The wiring guidance below was written for
58795
+ * exactly the case the operator is asking about again — a Dreame's HA
58796
+ * consumable-life sensors — so it is kept for that conversation, not because
58797
+ * anything reads it today. */
58798
+ var EMPTY_STATUS = {
58799
+ items: [],
58800
+ lastChangedAt: 0
58801
+ };
58802
+ /** Seed for a NEW link-built consumable item. `key`/`label` are overwritten
58803
+ * with the link's `itemKey` (see `status.itemArray`), so the placeholder
58804
+ * empty strings never survive into a validated item. Link-built items are
58805
+ * not resettable — there is no native provider to receive `reset()`.
58806
+ *
58807
+ * Wiring guidance (HA vacuum consumable-life sensors):
58808
+ * - a percent-remaining source (`numeric-sensor`, unit '%') → `level` via
58809
+ * `identity` (or `linear` scale 1 offset 0 clamp [0,100] to be safe);
58810
+ * - an hours-remaining source (e.g. Dreame 'Main Brush Time Left', unit 'h')
58811
+ * → `level` via `linear` with scale = 100 / max-hours for that item
58812
+ * (e.g. main brush 300 h → scale 0.3333) + clamp [0,100];
58813
+ * - a discrete source (`enum-sensor`, e.g. mop pad 'installed') → `status`
58814
+ * via `enum-map` (e.g. { installed: 'ok', missing: 'replace' }).
58815
+ * A numeric→'replace' THRESHOLD (level < 10 → 'replace') is NOT expressible
58816
+ * with the current transform kinds — leave `status` null (valid) until the
58817
+ * expression transform lands. */
58818
+ /** Generic Customize target for one consumable item (D936). Native rows stay read-only. */
58819
+ var consumablesCustomize = {
58820
+ version: 1,
58821
+ targets: [{
58822
+ id: "items",
58823
+ cardinality: "keyedArray",
58824
+ vocabulary: { cap: "consumables" },
58825
+ deviceTypes: Object.values(DeviceType),
58826
+ apply: "add",
58827
+ path: "items",
58828
+ keyField: "key",
58829
+ labelField: "label",
58830
+ itemSchema: ConsumableItemSchema,
58831
+ nativeItems: "read-only",
58832
+ sourceReport: { status: "assignment-status" },
58833
+ fields: [
58834
+ {
58835
+ path: "level",
58836
+ sources: [{
58837
+ kind: "numeric",
58838
+ transforms: [{ kind: "identity" }, {
58839
+ kind: "linear",
58840
+ defaultScale: 1,
58841
+ defaultOffset: 0,
58842
+ clampMin: 0,
58843
+ clampMax: 100
58844
+ }]
58845
+ }]
58846
+ },
58847
+ {
58848
+ path: "remaining.value",
58849
+ sources: [{
58850
+ kind: "numeric",
58851
+ transforms: [{ kind: "identity" }]
58852
+ }],
58853
+ literals: [{
58854
+ path: "remaining.unit",
58855
+ values: [...ConsumableRemainingUnitSchema.options]
58856
+ }]
58857
+ },
58858
+ {
58859
+ path: "status",
58860
+ sources: [{
58861
+ kind: "enum",
58862
+ transforms: [{
58863
+ kind: "enum-map",
58864
+ outputValues: [...ConsumableStatusSchema.options],
58865
+ unmapped: null
58866
+ }]
58867
+ }]
58868
+ }
58869
+ ],
58870
+ traits: [{
58871
+ path: "kind",
58872
+ values: [...ConsumableKindSchema.options],
58873
+ defaultValue: "wear"
58874
+ }, {
58875
+ path: "form",
58876
+ values: [...ConsumableFormSchema.options],
58877
+ defaultValue: "part"
58878
+ }],
58879
+ companions: [{
58880
+ kind: "clock",
58881
+ path: "lastChangedAt",
58882
+ when: "add"
58883
+ }, {
58884
+ kind: "clock",
58885
+ path: "lastFetchedAt",
58886
+ when: "add"
58887
+ }],
58888
+ advancedExpression: true
58889
+ }]
58890
+ };
56376
58891
  var consumablesCapability = {
56377
58892
  name: "consumables",
56378
58893
  scope: "device",
@@ -56410,10 +58925,7 @@ reset: method(object({
56410
58925
  status: {
56411
58926
  schema: ConsumablesStatusSchema,
56412
58927
  kind: "push",
56413
- empty: {
56414
- items: [],
56415
- lastChangedAt: 0
56416
- },
58928
+ empty: EMPTY_STATUS,
56417
58929
  itemArray: {
56418
58930
  path: "items",
56419
58931
  keyField: "key",
@@ -56449,6 +58961,7 @@ reset: method(object({
56449
58961
  * brush's remaining life and a dishwasher's salt are each recorded the moment
56450
58962
  * their provider reports them; an item that appears later gets its series.
56451
58963
  */
58964
+ customize: consumablesCustomize,
56452
58965
  history: {
56453
58966
  fields: {},
56454
58967
  items: {
@@ -56828,6 +59341,30 @@ var dayNightCapability = {
56828
59341
  volatileStateFields: ["lastFetchedAt"]
56829
59342
  };
56830
59343
  /**
59344
+ * display-palette — the cluster's one colour table (D939).
59345
+ *
59346
+ * Hub singleton. `getPalette` reports `unknown` when the settings store
59347
+ * cannot be read; it does not pretend the bundled preset was stored.
59348
+ * `setPalette` refuses a palette that fails the ΔE / contrast rule and names
59349
+ * the pairs.
59350
+ */
59351
+ var presetSummarySchema = object({
59352
+ id: string(),
59353
+ name: string(),
59354
+ swatches: record(string(), paletteSwatchSchema),
59355
+ fallbacks: array(string())
59356
+ });
59357
+ method(_void(), paletteResultSchema, {
59358
+ auth: "protected",
59359
+ role: "viewer"
59360
+ }), method(_void(), array(presetSummarySchema).readonly(), {
59361
+ auth: "protected",
59362
+ role: "viewer"
59363
+ }), method(setPaletteInputSchema, paletteReadySchema, {
59364
+ kind: "mutation",
59365
+ auth: "admin"
59366
+ });
59367
+ /**
56831
59368
  * Generic device-level status snapshot. Auto-registered by `BaseDevice`
56832
59369
  * for every device, regardless of provider — the kernel needs a uniform
56833
59370
  * cap-keyed slice for the basic device flags every consumer expects to
@@ -57191,6 +59728,36 @@ var dishwasherCapability = {
57191
59728
  powerOn: { kind: "boolean" }
57192
59729
  } }
57193
59730
  };
59731
+ /** Pulse override: a rising edge advances `lastPressedAt` and the press count. */
59732
+ var doorbellCustomize = {
59733
+ version: 1,
59734
+ targets: [{
59735
+ id: "pressed",
59736
+ cardinality: "event",
59737
+ shape: "pulse",
59738
+ vocabulary: {
59739
+ cap: "doorbell",
59740
+ eventName: "onPressed"
59741
+ },
59742
+ deviceTypes: [DeviceType.Camera],
59743
+ apply: "add",
59744
+ applyAuthority: { kind: "composition-claim" },
59745
+ eventName: "onPressed",
59746
+ edges: ["rising"],
59747
+ timestampPath: "lastPressedAt",
59748
+ counterPath: "pressCountSinceStart",
59749
+ highWater: "composer-advance",
59750
+ combine: "any",
59751
+ debounce: {
59752
+ kind: "rising-edge",
59753
+ defaultDebounceMs: 2e3,
59754
+ changedAtRequired: true
59755
+ },
59756
+ sources: [{ kind: "binary" }, { kind: "switch" }],
59757
+ sourceReport: { status: "assignment-status" },
59758
+ advancedExpression: true
59759
+ }]
59760
+ };
57194
59761
  var DoorbellStatusSchema = object({
57195
59762
  /** Ms epoch of the last press. null = never observed since this provider started. */
57196
59763
  lastPressedAt: number().nullable(),
@@ -57257,7 +59824,8 @@ onPressed: {
57257
59824
  /**
57258
59825
  * History (D850): none — `pressCountSinceStart` resets with the addon, so it is not a monotonic meter; presses live in the events ledger.
57259
59826
  */
57260
- history: "none"
59827
+ history: "none",
59828
+ customize: doorbellCustomize
57261
59829
  };
57262
59830
  /**
57263
59831
  * Enum-state sensor — a string value picked from a finite option set.
@@ -58129,7 +60697,10 @@ var humidifierCapability = {
58129
60697
  */
58130
60698
  var HumiditySensorStatusSchema = object({
58131
60699
  /** Current relative humidity, 0..100. */
58132
- percent: number().min(0).max(100),
60700
+ percent: number().min(0).max(100).meta({
60701
+ unit: "%",
60702
+ label: "Humidity"
60703
+ }),
58133
60704
  /** Ms epoch when the slice was last updated. */
58134
60705
  lastFetchedAt: number(),
58135
60706
  /** Live display unit from the upstream source (e.g. HA
@@ -58171,7 +60742,12 @@ var humiditySensorCapability = {
58171
60742
  } } },
58172
60743
  /** Clock fields: written, but excluded from the compare that decides
58173
60744
  * whether persisting is worth a SQLite commit. */
58174
- volatileStateFields: ["lastFetchedAt"]
60745
+ volatileStateFields: ["lastFetchedAt"],
60746
+ customize: {
60747
+ version: 1,
60748
+ advanced: "derive",
60749
+ targets: []
60750
+ }
58175
60751
  };
58176
60752
  /**
58177
60753
  * Image display cap. Models a single still image exposed by an integration —
@@ -59653,6 +62229,38 @@ authKey: string().optional() }), object({
59653
62229
  /** Human-readable error when `ok: false`. */
59654
62230
  error: string().optional()
59655
62231
  }), { kind: "mutation" });
62232
+ /** Span override: start on a rising edge, end on a fall or this timeout. */
62233
+ var motionCustomize = {
62234
+ version: 1,
62235
+ targets: [{
62236
+ id: "detected",
62237
+ cardinality: "event",
62238
+ shape: "span",
62239
+ vocabulary: {
62240
+ cap: "motion",
62241
+ eventName: "onMotionChanged"
62242
+ },
62243
+ deviceTypes: [DeviceType.Camera],
62244
+ apply: "replace",
62245
+ applyAuthority: {
62246
+ kind: "camera-sensors",
62247
+ timeoutField: "motionCooldownMs"
62248
+ },
62249
+ eventName: "onMotionChanged",
62250
+ start: "rising-edge",
62251
+ end: "falling-edge-or-timeout",
62252
+ timeoutMs: 3e4,
62253
+ combine: "any",
62254
+ sourceModes: [
62255
+ "in-addition",
62256
+ "confirm",
62257
+ "replace"
62258
+ ],
62259
+ sources: [{ kind: "binary" }, { kind: "switch" }],
62260
+ sourceReport: { status: "assignment-status" },
62261
+ advancedExpression: false
62262
+ }]
62263
+ };
59656
62264
  var MotionStatusSchema = object({
59657
62265
  detected: boolean(),
59658
62266
  /** Ms epoch of the last detected-true observation. Null if never detected. */
@@ -59792,7 +62400,8 @@ onMotionChanged: { data: MotionOnMotionChangedDataSchema } },
59792
62400
  history: { fields: { detected: {
59793
62401
  kind: "boolean",
59794
62402
  excludeDeviceTypes: [DeviceType.Camera]
59795
- } } }
62403
+ } } },
62404
+ customize: motionCustomize
59796
62405
  };
59797
62406
  /**
59798
62407
  * Motion-trigger toggle for accessory devices.
@@ -61817,9 +64426,15 @@ method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema)
61817
64426
  */
61818
64427
  var PowerMeterStatusSchema = object({
61819
64428
  /** Instantaneous power draw in watts. */
61820
- watts: number().optional(),
64429
+ watts: number().optional().meta({
64430
+ unit: "W",
64431
+ label: "Power"
64432
+ }),
61821
64433
  /** Cumulative energy in kilowatt-hours since the meter was reset. */
61822
- kwhTotal: number().optional(),
64434
+ kwhTotal: number().optional().meta({
64435
+ unit: "kWh",
64436
+ label: "Energy"
64437
+ }),
61823
64438
  /** Voltage in volts. */
61824
64439
  volts: number().optional(),
61825
64440
  /** Current in amperes. */
@@ -61904,7 +64519,12 @@ var powerMeterCapability = {
61904
64519
  } },
61905
64520
  /** Clock fields: written, but excluded from the compare that decides
61906
64521
  * whether persisting is worth a SQLite commit. */
61907
- volatileStateFields: ["lastFetchedAt"]
64522
+ volatileStateFields: ["lastFetchedAt"],
64523
+ customize: {
64524
+ version: 1,
64525
+ advanced: "derive",
64526
+ targets: []
64527
+ }
61908
64528
  };
61909
64529
  /**
61910
64530
  * Presence cap. Models HA `person.*` and `device_tracker.*` entities
@@ -62349,9 +64969,9 @@ var PtzOptionsSchema = object({
62349
64969
  * Reolink preset 0, Hikvision preset '1', Dahua preset 1 -- and on this fleet
62350
64970
  * not one of the three cameras honours its own:
62351
64971
  *
62352
- * 592 Videocamera camera Daniel (reolink) preset 0 holds "stanza"
62353
- * 1438 Videocamera dispensa (hikvision) preset 1 holds "Credenza"
62354
- * 3836 Videocamera studio (amcrest) preset 1 holds "Preset1"
64972
+ * 107 Camera camera Carol (reolink) preset 0 holds "stanza"
64973
+ * 1438 Camera dispensa (hikvision) preset 1 holds "Credenza"
64974
+ * 3836 Camera studio (amcrest) preset 1 holds "Preset1"
62355
64975
  *
62356
64976
  * So `goHome` meant "go wherever the operator happened to save in slot 0 or 1",
62357
64977
  * and two of the three swallowed the failure in a bare `catch`. For autotrack
@@ -62676,27 +65296,111 @@ var ptzAutotrackCapability = {
62676
65296
  */
62677
65297
  history: "none"
62678
65298
  };
65299
+ var RUNNING_POWER_START_DELAY_MS = 3e4;
65300
+ var RUNNING_POWER_STOP_DELAY_MS = 18e4;
62679
65301
  var RunningStateSourceSchema = _enum(["native", "assigned"]);
62680
65302
  var RunningStateStatusSchema = object({
62681
65303
  /** null = unknown — never coerced to false (D393). */
62682
65304
  running: boolean().nullable(),
62683
65305
  /** Epoch ms the current boolean began; null while `running` is null. */
62684
65306
  since: number().nullable(),
62685
- source: RunningStateSourceSchema,
65307
+ source: RunningStateSourceSchema.meta({ label: "Source" }),
62686
65308
  phase: string().nullable(),
62687
- lastFetchedAt: number()
65309
+ /** null until a reading has been published (D393). */
65310
+ lastFetchedAt: number().nullable()
62688
65311
  });
62689
65312
  var RunningFlipEventDataSchema = object({
62690
65313
  deviceId: number(),
62691
65314
  since: number().nullable(),
62692
65315
  phase: string().nullable()
62693
65316
  });
65317
+ var RUNNING_DEVICE_TYPES = Object.values(DeviceType);
65318
+ /** Generic Customize target for the running boolean (D936). */
65319
+ var runningCustomize = {
65320
+ version: 1,
65321
+ advanced: "derive",
65322
+ targets: [{
65323
+ id: "running",
65324
+ cardinality: "scalar",
65325
+ vocabulary: {
65326
+ cap: "running-state",
65327
+ stateField: "running"
65328
+ },
65329
+ deviceTypes: [
65330
+ DeviceType.Dishwasher,
65331
+ DeviceType.Vacuum,
65332
+ DeviceType.LawnMower,
65333
+ DeviceType.MediaPlayer,
65334
+ DeviceType.WaterHeater,
65335
+ DeviceType.Humidifier,
65336
+ DeviceType.Fan,
65337
+ DeviceType.Climate,
65338
+ DeviceType.Thermostat,
65339
+ DeviceType.PetFeeder
65340
+ ],
65341
+ apply: "add-or-replace",
65342
+ path: "running",
65343
+ sources: [
65344
+ {
65345
+ kind: "switch",
65346
+ transforms: [{ kind: "identity" }]
65347
+ },
65348
+ {
65349
+ kind: "binary",
65350
+ transforms: [{ kind: "identity" }, { kind: "invert" }]
65351
+ },
65352
+ {
65353
+ kind: "numeric",
65354
+ requiredUnit: "W",
65355
+ transforms: [{
65356
+ kind: "threshold",
65357
+ comparison: "gte",
65358
+ defaultThreshold: 5,
65359
+ defaultStartDwellMs: RUNNING_POWER_START_DELAY_MS,
65360
+ defaultStopDwellMs: RUNNING_POWER_STOP_DELAY_MS,
65361
+ thresholdUnit: "W"
65362
+ }]
65363
+ }
65364
+ ],
65365
+ companions: [
65366
+ {
65367
+ kind: "constant",
65368
+ path: "source",
65369
+ value: "assigned",
65370
+ when: "always"
65371
+ },
65372
+ {
65373
+ kind: "constant",
65374
+ path: "phase",
65375
+ value: null,
65376
+ when: "always"
65377
+ },
65378
+ {
65379
+ kind: "clock",
65380
+ path: "lastFetchedAt",
65381
+ when: "always"
65382
+ },
65383
+ {
65384
+ kind: "transition-time",
65385
+ path: "since",
65386
+ sourceChangedAt: "prefer"
65387
+ }
65388
+ ],
65389
+ sourceReport: {
65390
+ status: "assignment-status",
65391
+ runtimeField: "source",
65392
+ nativeValue: "native",
65393
+ assignedValue: "assigned"
65394
+ },
65395
+ advancedExpression: true
65396
+ }]
65397
+ };
62694
65398
  var runningStateCapability = {
62695
65399
  name: "running-state",
62696
65400
  scope: "device",
62697
65401
  deviceNative: true,
62698
65402
  mode: "singleton",
62699
- deviceTypes: Object.values(DeviceType),
65403
+ deviceTypes: RUNNING_DEVICE_TYPES,
62700
65404
  methods: {},
62701
65405
  events: {
62702
65406
  onStarted: { data: RunningFlipEventDataSchema },
@@ -62709,7 +65413,8 @@ var runningStateCapability = {
62709
65413
  runtimeState: RunningStateStatusSchema,
62710
65414
  durability: "restored",
62711
65415
  history: { fields: { running: { kind: "boolean" } } },
62712
- volatileStateFields: ["lastFetchedAt"]
65416
+ volatileStateFields: ["lastFetchedAt"],
65417
+ customize: runningCustomize
62713
65418
  };
62714
65419
  /**
62715
65420
  * reboot — device-scoped capability for "soft" device reboots (firmware
@@ -62777,7 +65482,7 @@ var RecordingAvailabilitySchema = object({
62777
65482
  * would look identical. But the answer used to say nothing about that, so a
62778
65483
  * caller asking "what can I export?" read the single preferred profile as
62779
65484
  * the only one that exists — on this deployment every camera records `high`
62780
- * AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
65485
+ * AND `low`, the low tree holding 14 GB for camera 101 alone, and the export
62781
65486
  * UI could not see it.
62782
65487
  *
62783
65488
  * Cheap: it is the same shallow directory read the profile CHOICE already
@@ -62876,7 +65581,7 @@ var RecordingSourceOptionsSchema = object({
62876
65581
  * `sparse` = gaps are the absence of one, and must be drawn as such.
62877
65582
  *
62878
65583
  * Not an onboard-only concession: measured 2026-09-24, OUR bar covers 98.8 %
62879
- * of 592's day and 1.2 % of 1436's. It is a fact about a (source, camera)
65584
+ * of 107's day and 1.2 % of 1436's. It is a fact about a (source, camera)
62880
65585
  * pair, and ours answers it per camera from `deriveRecordingMode`. */
62881
65586
  coverage: _enum(["continuous", "sparse"]),
62882
65587
  /** Where the playhead may be put.
@@ -62952,7 +65657,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(RecordingSourceS
62952
65657
  * merely discouraged (D554 amended).
62953
65658
  *
62954
65659
  * It was learned the expensive way on `videoclips.listClips`: measured
62955
- * on the live hub 2026-09-20, device 592 bound to `recorder` AND
65660
+ * on the live hub 2026-09-20, device 107 bound to `recorder` AND
62956
65661
  * `provider-reolink`, a bare call with `limit: 3` answered SIX rows,
62957
65662
  * three from each source, merged — `device-collection-dispatch.ts`
62958
65663
  * leaves an unpinned fan-out un-narrowed, so absence buys the union the
@@ -63553,7 +66258,7 @@ var ExportSpeedSchema = number().min(.25).max(32);
63553
66258
  * on a 10 h window holding 29,393 s of footage every range landed late by the
63554
66259
  * gap accumulated before it — up to 6,607 s, well past EOF. Nothing matched,
63555
66260
  * the video was a uniform timelapse, and the log line reported the five ranges
63556
- * that had been ASKED for (2026-08-13, export `57d14363`, camera 615).
66261
+ * that had been ASKED for (2026-08-13, export `57d14363`, camera 101).
63557
66262
  *
63558
66263
  * Relative and not absolute epoch, because an absolute epoch would make every
63559
66264
  * call site responsible for the same subtraction.
@@ -64444,7 +67149,7 @@ getStatus: method(object({ deviceId: number() }), RecordingSignalStatusSchema) }
64444
67149
  * which put a "Scenes" tab on one camera's detail page. That is the wrong shape
64445
67150
  * for the thing: a scene is a standing question about the property ("is the bin
64446
67151
  * still out"), and the operator's question is "which of my scenes have tripped",
64447
- * across every camera at once — not "what does camera 617 think". Buried one
67152
+ * across every camera at once — not "what does camera 102 think". Buried one
64448
67153
  * camera deep it also could not be found. The surface is now a top-level admin
64449
67154
  * page (`/scenes`, `pages/Scenes.tsx`) that lists every scene on every camera and
64450
67155
  * picks the camera inside the create flow, the same shape Events and Faces have.
@@ -65501,7 +68206,7 @@ function buildStreamParamsConfigSchema(options, status) {
65501
68206
  * `getSettingsUISchema()` surface.
65502
68207
  */
65503
68208
  var SwitchStatusSchema = object({
65504
- on: boolean(),
68209
+ on: boolean().meta({ label: "On" }),
65505
68210
  /** Ms epoch of the last state change. Useful for UI "X minutes ago". */
65506
68211
  lastChangedAt: number()
65507
68212
  });
@@ -65560,7 +68265,12 @@ var switchCapability = {
65560
68265
  label: "On",
65561
68266
  kind: "boolean"
65562
68267
  }
65563
- }] }
68268
+ }] },
68269
+ customize: {
68270
+ version: 1,
68271
+ advanced: "derive",
68272
+ targets: []
68273
+ }
65564
68274
  };
65565
68275
  /** C0 controls, DEL and the C1 range: none of them belongs in a name. */
65566
68276
  function hasControlCharacter(value) {
@@ -66156,7 +68866,10 @@ var tamperCapability = {
66156
68866
  */
66157
68867
  var TemperatureSensorStatusSchema = object({
66158
68868
  /** Current temperature in Celsius. */
66159
- celsius: number(),
68869
+ celsius: number().meta({
68870
+ unit: "°C",
68871
+ label: "Temperature"
68872
+ }),
66160
68873
  /** Ms epoch when the slice was last updated (push or poll). */
66161
68874
  lastFetchedAt: number(),
66162
68875
  /** Live display unit from the upstream source (e.g. HA
@@ -66199,7 +68912,12 @@ var temperatureSensorCapability = {
66199
68912
  } } },
66200
68913
  /** Clock fields: written, but excluded from the compare that decides
66201
68914
  * whether persisting is worth a SQLite commit. */
66202
- volatileStateFields: ["lastFetchedAt"]
68915
+ volatileStateFields: ["lastFetchedAt"],
68916
+ customize: {
68917
+ version: 1,
68918
+ advanced: "derive",
68919
+ targets: []
68920
+ }
66203
68921
  };
66204
68922
  /**
66205
68923
  * toast — system-scoped singleton capability that streams toast
@@ -67878,6 +70596,10 @@ function withClipEventLabels(provider, deps) {
67878
70596
  };
67879
70597
  }
67880
70598
  SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
70599
+ 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;
70600
+ String.raw`rose\(active(\d+), changed(\d+), (\d+(?:\.\d+)?)\)`;
70601
+ DeviceRole.BinarySensor, DeviceRole.MotionSensor;
70602
+ new Set(CAP_NAMES);
67881
70603
  Object.freeze({
67882
70604
  person: .5,
67883
70605
  vehicle: .5,
@@ -69126,7 +71848,7 @@ var BaseDeviceProvider = class extends BaseAddon {
69126
71848
  * A top-level persisted row with NO configuration is a leftover, not a
69127
71849
  * device — quarantine it instead of dialling it.
69128
71850
  *
69129
- * Device 614 was deleted, resurrected as a config-less shell by a write
71851
+ * Device 105 was deleted, resurrected as a config-less shell by a write
69130
71852
  * already in flight (D376), and then dialled at every single boot: eight
69131
71853
  * `Failed to restore device — bounded retry scheduled` lines in one day,
69132
71854
  * each one the same Zod refusal on `host` and `password`. The bound was
@@ -72440,6 +75162,27 @@ Object.freeze({
72440
75162
  access: "create",
72441
75163
  role: "viewer"
72442
75164
  },
75165
+ "displayPalette.getPalette": {
75166
+ capName: "display-palette",
75167
+ capScope: "system",
75168
+ addonId: null,
75169
+ access: "view",
75170
+ role: "viewer"
75171
+ },
75172
+ "displayPalette.listPresets": {
75173
+ capName: "display-palette",
75174
+ capScope: "system",
75175
+ addonId: null,
75176
+ access: "view",
75177
+ role: "viewer"
75178
+ },
75179
+ "displayPalette.setPalette": {
75180
+ capName: "display-palette",
75181
+ capScope: "system",
75182
+ addonId: null,
75183
+ access: "create",
75184
+ role: "admin"
75185
+ },
72443
75186
  "doorbell.getStatus": {
72444
75187
  capName: "doorbell",
72445
75188
  capScope: "device",
@@ -82357,7 +85100,7 @@ var SENSOR_CAP_VOCABULARY = {
82357
85100
  state: [{
82358
85101
  kind: "boolean",
82359
85102
  field: "on",
82360
- label: t("Active", "Attivo"),
85103
+ label: t("On", "Acceso"),
82361
85104
  whenTrue: t("When {device} turns active", "Quando {device} si attiva"),
82362
85105
  whenFalse: t("When {device} turns inactive", "Quando {device} si disattiva"),
82363
85106
  icon: "toggle-right"
@@ -82896,6 +85639,7 @@ var SYSTEM_CAP_VOCABULARY = {
82896
85639
  "device-provider": system(INTERNAL),
82897
85640
  "device-removal-hook": system(INTERNAL),
82898
85641
  "device-state": system("the runtime-state mirror every trigger already reads through"),
85642
+ "display-palette": system("the cluster display palette — one colour table for every client, not a device action"),
82899
85643
  "embedding-encoder": system(ML),
82900
85644
  "face-gallery": system("the face gallery — curated on its own page"),
82901
85645
  "failure-contribution": system(INTERNAL),
@@ -85998,6 +88742,94 @@ Object.freeze({
85998
88742
  "smtp-provider": "email"
85999
88743
  });
86000
88744
  DeviceType.Camera;
88745
+ /**
88746
+ * A saved Customize assignment (D936). The schema is the type: callers use
88747
+ * `z.infer`, they do not restate the shape.
88748
+ */
88749
+ var OverrideSourceSchema = object({
88750
+ addonId: string().min(1),
88751
+ stableId: string().min(1),
88752
+ cap: string().min(1),
88753
+ fieldPath: string().min(1)
88754
+ });
88755
+ var CustomizeTransformDraftSchema = discriminatedUnion("kind", [
88756
+ object({ kind: literal("identity") }),
88757
+ object({ kind: literal("invert") }),
88758
+ object({
88759
+ kind: literal("threshold"),
88760
+ comparison: _enum(["gte", "lte"]),
88761
+ threshold: number(),
88762
+ startDwellMs: number().nonnegative(),
88763
+ stopDwellMs: number().nonnegative()
88764
+ }),
88765
+ object({
88766
+ kind: literal("linear"),
88767
+ scale: number(),
88768
+ offset: number(),
88769
+ clampMin: number().optional(),
88770
+ clampMax: number().optional()
88771
+ }),
88772
+ object({
88773
+ kind: literal("enum-map"),
88774
+ mapping: record(string(), string().nullable())
88775
+ }),
88776
+ object({ kind: literal("number") })
88777
+ ]);
88778
+ var ScalarOverrideDraftSchema = object({
88779
+ kind: literal("scalar"),
88780
+ cap: string().min(1),
88781
+ targetId: string().min(1),
88782
+ source: OverrideSourceSchema,
88783
+ transform: CustomizeTransformDraftSchema
88784
+ });
88785
+ var KeyedArrayOverrideDraftSchema = object({
88786
+ kind: literal("keyedArray"),
88787
+ cap: string().min(1),
88788
+ targetId: string().min(1),
88789
+ key: string().min(1),
88790
+ label: string().min(1),
88791
+ fieldPath: string().min(1),
88792
+ source: OverrideSourceSchema,
88793
+ transform: CustomizeTransformDraftSchema
88794
+ });
88795
+ var PulseOverrideDraftSchema = object({
88796
+ kind: literal("pulse"),
88797
+ cap: string().min(1),
88798
+ targetId: string().min(1),
88799
+ enabled: boolean(),
88800
+ debounceMs: number().nonnegative(),
88801
+ sources: array(OverrideSourceSchema).min(1)
88802
+ });
88803
+ var SpanSourceDraftSchema = OverrideSourceSchema.extend({ mode: _enum([
88804
+ "in-addition",
88805
+ "confirm",
88806
+ "replace"
88807
+ ]).optional() });
88808
+ discriminatedUnion("kind", [
88809
+ ScalarOverrideDraftSchema,
88810
+ KeyedArrayOverrideDraftSchema,
88811
+ PulseOverrideDraftSchema,
88812
+ object({
88813
+ kind: literal("span"),
88814
+ cap: string().min(1),
88815
+ targetId: string().min(1),
88816
+ timeoutMs: number().nonnegative(),
88817
+ cooldownMs: number().nonnegative().optional(),
88818
+ sources: array(SpanSourceDraftSchema)
88819
+ })
88820
+ ]);
88821
+ object({
88822
+ targetId: string().min(1),
88823
+ configured: boolean(),
88824
+ source: _enum(["native", "assigned"]),
88825
+ state: _enum([
88826
+ "active",
88827
+ "stale",
88828
+ "released",
88829
+ "unavailable"
88830
+ ]),
88831
+ reason: string().nullable()
88832
+ });
86001
88833
  var G711_SCALE_CORRECTION_DB = {
86002
88834
  PCMU: 20 * Math.log10(4),
86003
88835
  PCMA: 20 * Math.log10(8)
@@ -86370,7 +89202,7 @@ var STATE_SUMMARY_SECTION_VARS = [
86370
89202
  {
86371
89203
  name: "summaryStreams",
86372
89204
  label: "Summary: streams offline",
86373
- example: "Ingresso (high) — since 06:40",
89205
+ example: "Front door (high) — since 06:40",
86374
89206
  kinds: ["stream-offline", "stream-online"]
86375
89207
  },
86376
89208
  {
@@ -86388,13 +89220,13 @@ var STATE_SUMMARY_SECTION_VARS = [
86388
89220
  {
86389
89221
  name: "summaryDetection",
86390
89222
  label: "Summary: cameras detecting nothing",
86391
- example: "Ingresso — since 05:10",
89223
+ example: "Front door — since 05:10",
86392
89224
  kinds: ["detection-blind"]
86393
89225
  },
86394
89226
  {
86395
89227
  name: "summaryNodes",
86396
89228
  label: "Summary: nodes",
86397
- example: "little-unraid — offline since 03:00",
89229
+ example: "agent-a — offline since 03:00",
86398
89230
  kinds: [
86399
89231
  "node-offline",
86400
89232
  "node-online",
@@ -95450,7 +98282,7 @@ var HikvisionIntercomSession = class {
95450
98282
  *
95451
98283
  * `failure-contribution` keeps `variant` for a second dimension WITHIN a
95452
98284
  * family, and here the useful one is the format the caller pushed: an operator
95453
- * asking "why is 617 silent" needs to know whether HomeKit's Opus or Alexa's
98285
+ * asking "why is 102 silent" needs to know whether HomeKit's Opus or Alexa's
95454
98286
  * raw PCM is the half that is failing. The provider is handed that value on
95455
98287
  * every call, so it is reported rather than guessed — absent, never invented.
95456
98288
  *