@camstack/addon-export-google 0.1.113 → 0.1.114

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.
@@ -77,7 +77,7 @@ function createApiDeviceGateway(deps) {
77
77
  };
78
78
  }
79
79
  //#endregion
80
- //#region ../types/dist/event-category-DHXxB8t9.mjs
80
+ //#region ../types/dist/event-category-CT-hz5Rb.mjs
81
81
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
82
82
  EventCategory["SystemBoot"] = "system.boot";
83
83
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -403,6 +403,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
403
403
  /** The recovery edge of {@link PipelineMotionNoisy}: the motion fell back, or a detection arrived. */
404
404
  EventCategory["PipelineMotionCalm"] = "pipeline.motion-calm";
405
405
  /**
406
+ * A camera's package LLM confirm has failed closed three times in a row
407
+ * (D931, 2026-10-26). One edge per camera until
408
+ * {@link PipelinePackageLlmAnswered}.
409
+ */
410
+ EventCategory["PipelinePackageLlmSilent"] = "pipeline.package-llm-silent";
411
+ /** The recovery edge of {@link PipelinePackageLlmSilent}: a confirm returned yes or no. */
412
+ EventCategory["PipelinePackageLlmAnswered"] = "pipeline.package-llm-answered";
413
+ /**
406
414
  * Per-camera pipeline config was mutated by the orchestrator
407
415
  * (a settings change via `setAgentInferenceDevices` /
408
416
  * `setCameraStepToggle` / `setCameraStepSettings`). Orchestrator
@@ -5512,7 +5520,7 @@ var ZodIssueCode = {
5512
5520
  var ZodFirstPartyTypeKind;
5513
5521
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5514
5522
  //#endregion
5515
- //#region ../types/dist/sleep-BErAxhul.mjs
5523
+ //#region ../types/dist/sleep-bykKrTgu.mjs
5516
5524
  /**
5517
5525
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5518
5526
  * window to float samples (D455).
@@ -7999,6 +8007,99 @@ var RecordKindDeclarationSchema = object({
7999
8007
  }).strict();
8000
8008
  /** The kind names: lower-case, dash separated, short enough for an index name. */
8001
8009
  var RecordKindNameSchema = string().regex(/^[a-z][a-z0-9-]{0,47}$/);
8010
+ var READING_QUANTITIES = [
8011
+ "temperature",
8012
+ "pressure",
8013
+ "speed",
8014
+ "precipitation",
8015
+ "precipitation-rate",
8016
+ "length",
8017
+ "area",
8018
+ "illuminance",
8019
+ "irradiance",
8020
+ "power",
8021
+ "energy",
8022
+ "voltage",
8023
+ "current",
8024
+ "apparent-power",
8025
+ "humidity",
8026
+ "percentage",
8027
+ "concentration-volume",
8028
+ "concentration-mass",
8029
+ "concentration-ppb",
8030
+ "volume",
8031
+ "duration",
8032
+ "duration-ms",
8033
+ "information",
8034
+ "sound-level",
8035
+ "signal-level",
8036
+ "colour-temperature",
8037
+ "angle",
8038
+ "bitrate",
8039
+ "rate",
8040
+ "mass",
8041
+ "index",
8042
+ "ratio",
8043
+ "count",
8044
+ "none",
8045
+ "device"
8046
+ ];
8047
+ var ReadingQuantitySchema = _enum(READING_QUANTITIES);
8048
+ new Set(READING_QUANTITIES);
8049
+ /**
8050
+ * Stored unit symbol for a quantity. `none` means the number is dimensionless
8051
+ * (or an index / ratio / count). `device` means the cap has no single unit.
8052
+ */
8053
+ var QUANTITY_BASE = {
8054
+ temperature: "°C",
8055
+ pressure: "hPa",
8056
+ speed: "m/s",
8057
+ precipitation: "mm",
8058
+ "precipitation-rate": "mm/h",
8059
+ length: "m",
8060
+ area: "m²",
8061
+ illuminance: "lx",
8062
+ irradiance: "W/m²",
8063
+ power: "W",
8064
+ energy: "kWh",
8065
+ voltage: "V",
8066
+ current: "A",
8067
+ "apparent-power": "VA",
8068
+ humidity: "%",
8069
+ percentage: "%",
8070
+ "concentration-volume": "ppm",
8071
+ "concentration-mass": "µg/m³",
8072
+ "concentration-ppb": "ppb",
8073
+ volume: "L",
8074
+ duration: "s",
8075
+ "duration-ms": "ms",
8076
+ information: "B",
8077
+ "sound-level": "dBFS",
8078
+ "signal-level": "dBm",
8079
+ "colour-temperature": "mired",
8080
+ angle: "°",
8081
+ bitrate: "kbps",
8082
+ rate: "fps",
8083
+ mass: "kg",
8084
+ index: "none",
8085
+ ratio: "none",
8086
+ count: "none",
8087
+ none: "none",
8088
+ device: "device"
8089
+ };
8090
+ /** The stored unit, or `undefined` when the quantity has no unit symbol. */
8091
+ function baseUnitOf(quantity) {
8092
+ const symbol = QUANTITY_BASE[quantity];
8093
+ if (symbol === "none" || symbol === "device") return void 0;
8094
+ return symbol;
8095
+ }
8096
+ function readingMeta(quantity, extras) {
8097
+ return {
8098
+ quantity,
8099
+ ...extras?.precision !== void 0 ? { precision: extras.precision } : {},
8100
+ ...extras?.label !== void 0 ? { label: extras.label } : {}
8101
+ };
8102
+ }
8002
8103
  /** Shared Zod schemas used across streaming capabilities. */
8003
8104
  var CamProfileSchema = _enum([
8004
8105
  "high",
@@ -8026,8 +8127,8 @@ var CamStreamKindSchema = _enum([
8026
8127
  "derived"
8027
8128
  ]);
8028
8129
  var CamStreamResolutionSchema = object({
8029
- width: number().int().positive(),
8030
- height: number().int().positive()
8130
+ width: number().int().positive().meta(readingMeta("none")),
8131
+ height: number().int().positive().meta(readingMeta("none"))
8031
8132
  });
8032
8133
  var CameraStreamSchema = object({
8033
8134
  /** Stable, provider-assigned id unique within the (deviceId) scope. */
@@ -8563,6 +8664,8 @@ var CAP_NAMES = Object.freeze([
8563
8664
  "filesystem-browse",
8564
8665
  "flood",
8565
8666
  "gas",
8667
+ "group-commands",
8668
+ "group-status",
8566
8669
  "heating-valve",
8567
8670
  "humidifier",
8568
8671
  "humidity-sensor",
@@ -8692,14 +8795,6 @@ Object.freeze({
8692
8795
  {
8693
8796
  "path": "aqi",
8694
8797
  "valueType": "number"
8695
- },
8696
- {
8697
- "path": "unit",
8698
- "valueType": "string"
8699
- },
8700
- {
8701
- "path": "precision",
8702
- "valueType": "number"
8703
8798
  }
8704
8799
  ],
8705
8800
  "alarm-panel": [
@@ -8735,20 +8830,10 @@ Object.freeze({
8735
8830
  "valueType": "boolean"
8736
8831
  }
8737
8832
  ],
8738
- "ambient-light-sensor": [
8739
- {
8740
- "path": "lux",
8741
- "valueType": "number"
8742
- },
8743
- {
8744
- "path": "unit",
8745
- "valueType": "string"
8746
- },
8747
- {
8748
- "path": "precision",
8749
- "valueType": "number"
8750
- }
8751
- ],
8833
+ "ambient-light-sensor": [{
8834
+ "path": "lux",
8835
+ "valueType": "number"
8836
+ }],
8752
8837
  "audio-metrics": [
8753
8838
  {
8754
8839
  "path": "ts",
@@ -8828,6 +8913,10 @@ Object.freeze({
8828
8913
  "path": "lastUpdated",
8829
8914
  "valueType": "number"
8830
8915
  },
8916
+ {
8917
+ "path": "volts",
8918
+ "valueType": "number"
8919
+ },
8831
8920
  {
8832
8921
  "path": "lastContactAt",
8833
8922
  "valueType": "number"
@@ -9070,10 +9159,6 @@ Object.freeze({
9070
9159
  "datetime"
9071
9160
  ]
9072
9161
  },
9073
- {
9074
- "path": "unit",
9075
- "valueType": "string"
9076
- },
9077
9162
  {
9078
9163
  "path": "min",
9079
9164
  "valueType": "number"
@@ -9085,19 +9170,6 @@ Object.freeze({
9085
9170
  {
9086
9171
  "path": "step",
9087
9172
  "valueType": "number"
9088
- },
9089
- {
9090
- "path": "precision",
9091
- "valueType": "number"
9092
- },
9093
- {
9094
- "path": "format",
9095
- "valueType": "enum",
9096
- "enumValues": [
9097
- "date",
9098
- "time",
9099
- "datetime"
9100
- ]
9101
9173
  }
9102
9174
  ],
9103
9175
  "cover": [
@@ -9338,13 +9410,8 @@ Object.freeze({
9338
9410
  "path": "value",
9339
9411
  "valueType": "string"
9340
9412
  }, {
9341
- "path": "format",
9342
- "valueType": "enum",
9343
- "enumValues": [
9344
- "date",
9345
- "time",
9346
- "datetime"
9347
- ]
9413
+ "path": "timestamp",
9414
+ "valueType": "boolean"
9348
9415
  }],
9349
9416
  "event-emitter": [
9350
9417
  {
@@ -9417,6 +9484,20 @@ Object.freeze({
9417
9484
  "path": "detected",
9418
9485
  "valueType": "boolean"
9419
9486
  }],
9487
+ "group-status": [
9488
+ {
9489
+ "path": "included",
9490
+ "valueType": "number"
9491
+ },
9492
+ {
9493
+ "path": "excluded",
9494
+ "valueType": "number"
9495
+ },
9496
+ {
9497
+ "path": "total",
9498
+ "valueType": "number"
9499
+ }
9500
+ ],
9420
9501
  "heating-valve": [{
9421
9502
  "path": "position",
9422
9503
  "valueType": "number"
@@ -9451,20 +9532,10 @@ Object.freeze({
9451
9532
  "valueType": "number"
9452
9533
  }
9453
9534
  ],
9454
- "humidity-sensor": [
9455
- {
9456
- "path": "percent",
9457
- "valueType": "number"
9458
- },
9459
- {
9460
- "path": "unit",
9461
- "valueType": "string"
9462
- },
9463
- {
9464
- "path": "precision",
9465
- "valueType": "number"
9466
- }
9467
- ],
9535
+ "humidity-sensor": [{
9536
+ "path": "percent",
9537
+ "valueType": "number"
9538
+ }],
9468
9539
  "image": [{
9469
9540
  "path": "url",
9470
9541
  "valueType": "string"
@@ -9803,20 +9874,10 @@ Object.freeze({
9803
9874
  "valueType": "boolean"
9804
9875
  }
9805
9876
  ],
9806
- "numeric-sensor": [
9807
- {
9808
- "path": "value",
9809
- "valueType": "number"
9810
- },
9811
- {
9812
- "path": "unit",
9813
- "valueType": "string"
9814
- },
9815
- {
9816
- "path": "precision",
9817
- "valueType": "number"
9818
- }
9819
- ],
9877
+ "numeric-sensor": [{
9878
+ "path": "value",
9879
+ "valueType": "number"
9880
+ }],
9820
9881
  "pet-feeder": [
9821
9882
  {
9822
9883
  "path": "foodLevel",
@@ -9908,14 +9969,6 @@ Object.freeze({
9908
9969
  {
9909
9970
  "path": "powerFactor",
9910
9971
  "valueType": "number"
9911
- },
9912
- {
9913
- "path": "unit",
9914
- "valueType": "string"
9915
- },
9916
- {
9917
- "path": "precision",
9918
- "valueType": "number"
9919
9972
  }
9920
9973
  ],
9921
9974
  "presence": [
@@ -9944,20 +9997,10 @@ Object.freeze({
9944
9997
  "valueType": "number"
9945
9998
  }
9946
9999
  ],
9947
- "pressure-sensor": [
9948
- {
9949
- "path": "hpa",
9950
- "valueType": "number"
9951
- },
9952
- {
9953
- "path": "unit",
9954
- "valueType": "string"
9955
- },
9956
- {
9957
- "path": "precision",
9958
- "valueType": "number"
9959
- }
9960
- ],
10000
+ "pressure-sensor": [{
10001
+ "path": "hpa",
10002
+ "valueType": "number"
10003
+ }],
9961
10004
  "privacy-mask": [{
9962
10005
  "path": "enabled",
9963
10006
  "valueType": "boolean"
@@ -10268,20 +10311,10 @@ Object.freeze({
10268
10311
  "path": "tampered",
10269
10312
  "valueType": "boolean"
10270
10313
  }],
10271
- "temperature-sensor": [
10272
- {
10273
- "path": "celsius",
10274
- "valueType": "number"
10275
- },
10276
- {
10277
- "path": "unit",
10278
- "valueType": "string"
10279
- },
10280
- {
10281
- "path": "precision",
10282
- "valueType": "number"
10283
- }
10284
- ],
10314
+ "temperature-sensor": [{
10315
+ "path": "celsius",
10316
+ "valueType": "number"
10317
+ }],
10285
10318
  "update": [
10286
10319
  {
10287
10320
  "path": "currentVersion",
@@ -10392,10 +10425,6 @@ Object.freeze({
10392
10425
  "path": "temperature",
10393
10426
  "valueType": "number"
10394
10427
  },
10395
- {
10396
- "path": "temperatureUnit",
10397
- "valueType": "string"
10398
- },
10399
10428
  {
10400
10429
  "path": "humidity",
10401
10430
  "valueType": "number"
@@ -10404,18 +10433,10 @@ Object.freeze({
10404
10433
  "path": "pressure",
10405
10434
  "valueType": "number"
10406
10435
  },
10407
- {
10408
- "path": "pressureUnit",
10409
- "valueType": "string"
10410
- },
10411
10436
  {
10412
10437
  "path": "windSpeed",
10413
10438
  "valueType": "number"
10414
10439
  },
10415
- {
10416
- "path": "windSpeedUnit",
10417
- "valueType": "string"
10418
- },
10419
10440
  {
10420
10441
  "path": "windBearing",
10421
10442
  "valueType": "number"
@@ -10818,7 +10839,7 @@ function errMsg(err) {
10818
10839
  return String(err);
10819
10840
  }
10820
10841
  //#endregion
10821
- //#region ../types/dist/composition-kEl9mevu.mjs
10842
+ //#region ../types/dist/composition-OhpuespA.mjs
10822
10843
  /**
10823
10844
  * The ffmpeg build every CamStack node downloads, per platform and arch.
10824
10845
  *
@@ -11573,15 +11594,74 @@ function validateExpressionSource(src) {
11573
11594
  }
11574
11595
  return null;
11575
11596
  }
11576
- /** A composed device's stableId is this prefix plus the block id. */
11577
- var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
11578
- /** Longest snippet a `code` source may carry (slice 4). */
11579
- var MAX_COMPOSITION_CODE_LENGTH = 2e4;
11597
+ /**
11598
+ * A composition source identity: `(addonId, stableId)`, never a numeric device
11599
+ * id. Split out so helper schemas can name it without a cycle through
11600
+ * `composition.ts` (D659).
11601
+ */
11580
11602
  var CompositionSourceRefSchema = object({
11581
11603
  /** The owning addon; `stableId` is unique only within it. */
11582
11604
  addonId: string().min(1),
11583
11605
  stableId: string().min(1)
11584
11606
  });
11607
+ var GROUP_TEMPLATE_IDS = [
11608
+ "temperature",
11609
+ "humidity",
11610
+ "pressure",
11611
+ "illuminance",
11612
+ "power",
11613
+ "energy",
11614
+ "battery",
11615
+ "numeric",
11616
+ "motion",
11617
+ "contact",
11618
+ "leak",
11619
+ "smoke",
11620
+ "occupancy",
11621
+ "binary",
11622
+ "switch",
11623
+ "light"
11624
+ ];
11625
+ var NUMERIC_AGGREGATES = [
11626
+ "mean",
11627
+ "median",
11628
+ "min",
11629
+ "max",
11630
+ "sum"
11631
+ ];
11632
+ var BINARY_AGGREGATES = ["any", "all"];
11633
+ /** How an actuator group decides it is on. Unknown members never count as off. */
11634
+ var ACTIVE_CRITERIA = ["at-least-one", "all"];
11635
+ var AGGREGATE_REDUCERS = [
11636
+ "mean",
11637
+ "median",
11638
+ "min",
11639
+ "max",
11640
+ "sum",
11641
+ "any",
11642
+ "all"
11643
+ ];
11644
+ var GroupTemplateIdSchema = _enum(GROUP_TEMPLATE_IDS);
11645
+ var AggregateReducerSchema = _enum(AGGREGATE_REDUCERS);
11646
+ var ActiveCriterionSchema = _enum(ACTIVE_CRITERIA);
11647
+ /** One member. The field is stored so occupancy can name motion or binary. */
11648
+ var HelperMemberSchema = object({
11649
+ source: CompositionSourceRefSchema,
11650
+ cap: string().min(1),
11651
+ fieldPath: string().min(1)
11652
+ });
11653
+ var HelperSpecSchema = discriminatedUnion("kind", [object({
11654
+ kind: literal("group"),
11655
+ templateId: GroupTemplateIdSchema,
11656
+ aggregate: AggregateReducerSchema,
11657
+ members: array(HelperMemberSchema).min(1).max(64),
11658
+ /** Actuator groups only. Readings leave this unset. */
11659
+ active: ActiveCriterionSchema.optional()
11660
+ })]);
11661
+ /** A composed device's stableId is this prefix plus the block id. */
11662
+ var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
11663
+ /** Longest snippet a `code` source may carry (slice 4). */
11664
+ var MAX_COMPOSITION_CODE_LENGTH = 2e4;
11585
11665
  /** One field of one capability of one source device. */
11586
11666
  var CompositionFieldReadSchema = object({
11587
11667
  source: CompositionSourceRefSchema,
@@ -11625,7 +11705,33 @@ var CompositionCodeSourceSchema = object({
11625
11705
  var CompositionFieldSourceSchema = discriminatedUnion("kind", [
11626
11706
  CompositionFromSourceSchema,
11627
11707
  CompositionExpressionSourceSchema,
11628
- CompositionCodeSourceSchema
11708
+ CompositionCodeSourceSchema,
11709
+ object({
11710
+ kind: literal("aggregate"),
11711
+ reducer: _enum([
11712
+ "mean",
11713
+ "median",
11714
+ "min",
11715
+ "max",
11716
+ "sum",
11717
+ "any",
11718
+ "all"
11719
+ ]),
11720
+ reads: array(CompositionFieldReadSchema).min(1).max(64),
11721
+ /** `value` is the reading; the others are the member counts. */
11722
+ publish: _enum([
11723
+ "value",
11724
+ "included",
11725
+ "excluded",
11726
+ "total"
11727
+ ]),
11728
+ /** What a `value` publish does when nobody is included. Counts ignore this. */
11729
+ empty: _enum([
11730
+ "null",
11731
+ "omit",
11732
+ "offline"
11733
+ ])
11734
+ })
11629
11735
  ]);
11630
11736
  var CompositionCommandTargetSchema = discriminatedUnion("kind", [object({
11631
11737
  kind: literal("forward"),
@@ -11671,7 +11777,13 @@ var CompositionSchema = object({
11671
11777
  kind: literal("existing"),
11672
11778
  device: CompositionSourceRefSchema
11673
11779
  })]),
11674
- features: array(CompositionFeatureSchema).min(1).max(16)
11780
+ features: array(CompositionFeatureSchema).min(1).max(16),
11781
+ /**
11782
+ * Present when the block is a helper template. Absent on a free
11783
+ * composition (the room example, device 4603). The editor reads this,
11784
+ * never the compiled features.
11785
+ */
11786
+ helper: HelperSpecSchema.optional()
11675
11787
  }).superRefine((composition, ctx) => {
11676
11788
  const seen = /* @__PURE__ */ new Set();
11677
11789
  composition.features.forEach((feature, index) => {
@@ -17916,7 +18028,11 @@ var CompositionProblemSchema = object({
17916
18028
  "item-field-reserved",
17917
18029
  "target-missing",
17918
18030
  "target-unreadable",
17919
- "not-replaceable"
18031
+ "not-replaceable",
18032
+ "native-capability-replace",
18033
+ "mixed-quantity",
18034
+ "helper-mismatch",
18035
+ "member-constraint"
17920
18036
  ]),
17921
18037
  path: string(),
17922
18038
  message: string()
@@ -17937,7 +18053,8 @@ var CompositionUnavailableModeSchema = _enum([
17937
18053
  "null",
17938
18054
  "offline",
17939
18055
  "unknown",
17940
- "release"
18056
+ "release",
18057
+ "omit"
17941
18058
  ]);
17942
18059
  /**
17943
18060
  * `derived` reads a source · `clock` reads only `now`, recomputed when a sibling
@@ -17974,9 +18091,11 @@ var CompositionFieldPlanSchema = object({
17974
18091
  reads: array(CompositionFieldReadSchema)
17975
18092
  });
17976
18093
  /**
17977
- * What a feature does to its target (D663): `new` builds a capability on a new
17978
- * device; on an existing device it `add`s a capability the device lacks, or
17979
- * `replace`s named fields of one it has natively.
18094
+ * What a feature does to its target (D663, D944): `new` builds a capability on a
18095
+ * new device; on an existing device it `add`s a capability the device lacks.
18096
+ * Replacing a capability the device already serves is refused
18097
+ * (`native-capability-replace`), not planned. `replace` remains on the claim
18098
+ * wire for a claim the hub already holds.
17980
18099
  */
17981
18100
  var CompositionFeatureModeSchema = _enum([
17982
18101
  "new",
@@ -18149,6 +18268,275 @@ Object.freeze({
18149
18268
  result: ["number", "null"]
18150
18269
  }
18151
18270
  });
18271
+ /**
18272
+ * One catalog row per base reading a group helper can build (D944 §3).
18273
+ * Data, not a form default written into the block.
18274
+ */
18275
+ var NOW = {
18276
+ fieldPath: "lastFetchedAt",
18277
+ expr: "now"
18278
+ };
18279
+ var CHANGED = {
18280
+ fieldPath: "lastChangedAt",
18281
+ expr: "now"
18282
+ };
18283
+ function numeric(input) {
18284
+ return {
18285
+ ...input,
18286
+ family: "numeric",
18287
+ deviceType: DeviceType.Sensor,
18288
+ memberDeviceType: DeviceType.Sensor,
18289
+ commandCaps: [],
18290
+ baseUnit: baseUnitOf(input.quantity),
18291
+ aggregates: NUMERIC_AGGREGATES,
18292
+ accept: [{
18293
+ cap: input.outputCap,
18294
+ fieldPath: input.outputField
18295
+ }]
18296
+ };
18297
+ }
18298
+ function binary(input) {
18299
+ return {
18300
+ ...input,
18301
+ family: "binary",
18302
+ deviceType: DeviceType.Sensor,
18303
+ memberDeviceType: DeviceType.Sensor,
18304
+ commandCaps: [],
18305
+ quantity: "none",
18306
+ baseUnit: void 0,
18307
+ aggregates: BINARY_AGGREGATES,
18308
+ empty: "offline"
18309
+ };
18310
+ }
18311
+ var GROUP_TEMPLATES = [
18312
+ numeric({
18313
+ id: "temperature",
18314
+ summary: "Mean, median, min, max or sum of temperatures. Offline and unknown members are left out, never read as 0 °C.",
18315
+ role: DeviceRole.TemperatureSensor,
18316
+ outputCap: "temperature-sensor",
18317
+ outputField: "celsius",
18318
+ quantity: "temperature",
18319
+ defaultAggregate: "mean",
18320
+ empty: "null",
18321
+ companions: [NOW]
18322
+ }),
18323
+ numeric({
18324
+ id: "humidity",
18325
+ summary: "Humidity in percent. Offline and unknown members are left out, never read as 0 %.",
18326
+ role: DeviceRole.HumiditySensor,
18327
+ outputCap: "humidity-sensor",
18328
+ outputField: "percent",
18329
+ quantity: "humidity",
18330
+ defaultAggregate: "mean",
18331
+ empty: "null",
18332
+ companions: [NOW]
18333
+ }),
18334
+ numeric({
18335
+ id: "pressure",
18336
+ summary: "Pressure in hectopascals. Offline and unknown members are left out, never read as 0 hPa.",
18337
+ role: DeviceRole.PressureSensor,
18338
+ outputCap: "pressure-sensor",
18339
+ outputField: "hpa",
18340
+ quantity: "pressure",
18341
+ defaultAggregate: "mean",
18342
+ empty: "null",
18343
+ companions: [NOW]
18344
+ }),
18345
+ numeric({
18346
+ id: "illuminance",
18347
+ summary: "Illuminance in lux. Offline and unknown members are left out, never read as 0 lx.",
18348
+ role: DeviceRole.AmbientLightSensor,
18349
+ outputCap: "ambient-light-sensor",
18350
+ outputField: "lux",
18351
+ quantity: "illuminance",
18352
+ defaultAggregate: "mean",
18353
+ empty: "null",
18354
+ companions: [NOW]
18355
+ }),
18356
+ numeric({
18357
+ id: "power",
18358
+ summary: "Power in watts, summed by default. Nobody reporting omits the key rather than writing 0 W.",
18359
+ role: DeviceRole.PowerSensor,
18360
+ outputCap: "power-meter",
18361
+ outputField: "watts",
18362
+ quantity: "power",
18363
+ defaultAggregate: "sum",
18364
+ empty: "omit",
18365
+ companions: [NOW]
18366
+ }),
18367
+ numeric({
18368
+ id: "energy",
18369
+ summary: "Energy in kilowatt-hours, summed by default. Nobody reporting omits the key rather than writing 0 kWh.",
18370
+ role: DeviceRole.EnergySensor,
18371
+ outputCap: "power-meter",
18372
+ outputField: "kwhTotal",
18373
+ quantity: "energy",
18374
+ defaultAggregate: "sum",
18375
+ empty: "omit",
18376
+ companions: [NOW]
18377
+ }),
18378
+ numeric({
18379
+ id: "battery",
18380
+ summary: "Battery charge in percent. Offline and unknown members are left out, never read as 0 %.",
18381
+ role: DeviceRole.BatterySensor,
18382
+ outputCap: "battery",
18383
+ outputField: "percentage",
18384
+ quantity: "percentage",
18385
+ defaultAggregate: "mean",
18386
+ empty: "null",
18387
+ companions: [
18388
+ {
18389
+ fieldPath: "charging",
18390
+ expr: "\"unknown\""
18391
+ },
18392
+ {
18393
+ fieldPath: "sleeping",
18394
+ expr: "false"
18395
+ },
18396
+ {
18397
+ fieldPath: "lastUpdated",
18398
+ expr: "now"
18399
+ }
18400
+ ]
18401
+ }),
18402
+ numeric({
18403
+ id: "numeric",
18404
+ summary: "A numeric reading in the members’ shared quantity. Mixed quantities are refused. Nobody reporting publishes null, not 0.",
18405
+ role: DeviceRole.NumericSensor,
18406
+ outputCap: "numeric-sensor",
18407
+ outputField: "value",
18408
+ quantity: "device",
18409
+ defaultAggregate: "mean",
18410
+ empty: "null",
18411
+ companions: [NOW]
18412
+ }),
18413
+ binary({
18414
+ id: "motion",
18415
+ summary: "Any or all motion. Offline and unknown members are left out, never read as off. Nobody reporting takes the device offline.",
18416
+ role: DeviceRole.MotionSensor,
18417
+ outputCap: "motion",
18418
+ outputField: "detected",
18419
+ defaultAggregate: "any",
18420
+ accept: [{
18421
+ cap: "motion",
18422
+ fieldPath: "detected"
18423
+ }],
18424
+ companions: [{
18425
+ fieldPath: "lastDetectedAt",
18426
+ expr: "null"
18427
+ }, {
18428
+ fieldPath: "autoClearAfterMs",
18429
+ expr: "null"
18430
+ }]
18431
+ }),
18432
+ binary({
18433
+ id: "contact",
18434
+ summary: "Any or all open contacts. Offline and unknown members are left out, never read as closed.",
18435
+ role: DeviceRole.ContactSensor,
18436
+ outputCap: "contact",
18437
+ outputField: "entryOpen",
18438
+ defaultAggregate: "any",
18439
+ accept: [{
18440
+ cap: "contact",
18441
+ fieldPath: "entryOpen"
18442
+ }],
18443
+ companions: [CHANGED]
18444
+ }),
18445
+ binary({
18446
+ id: "leak",
18447
+ summary: "Any or all leak detections. Offline and unknown members are left out, never read as dry.",
18448
+ role: DeviceRole.LeakSensor,
18449
+ outputCap: "flood",
18450
+ outputField: "flooded",
18451
+ defaultAggregate: "any",
18452
+ accept: [{
18453
+ cap: "flood",
18454
+ fieldPath: "flooded"
18455
+ }],
18456
+ companions: [CHANGED]
18457
+ }),
18458
+ binary({
18459
+ id: "smoke",
18460
+ summary: "Any or all smoke detections. Offline and unknown members are left out, never read as clear.",
18461
+ role: DeviceRole.SmokeSensor,
18462
+ outputCap: "smoke",
18463
+ outputField: "detected",
18464
+ defaultAggregate: "any",
18465
+ accept: [{
18466
+ cap: "smoke",
18467
+ fieldPath: "detected"
18468
+ }],
18469
+ companions: [CHANGED]
18470
+ }),
18471
+ binary({
18472
+ id: "occupancy",
18473
+ summary: "Any or all of motion or binary sensors, published as a binary. Presence zones are not aggregated. Nobody reporting is offline, not off.",
18474
+ role: DeviceRole.BinarySensor,
18475
+ outputCap: "binary",
18476
+ outputField: "on",
18477
+ defaultAggregate: "any",
18478
+ accept: [{
18479
+ cap: "motion",
18480
+ fieldPath: "detected"
18481
+ }, {
18482
+ cap: "binary",
18483
+ fieldPath: "on"
18484
+ }],
18485
+ companions: [CHANGED]
18486
+ }),
18487
+ binary({
18488
+ id: "binary",
18489
+ summary: "Any or all generic binary sensors. Offline and unknown members are left out, never read as off.",
18490
+ role: DeviceRole.BinarySensor,
18491
+ outputCap: "binary",
18492
+ outputField: "on",
18493
+ defaultAggregate: "any",
18494
+ accept: [{
18495
+ cap: "binary",
18496
+ fieldPath: "on"
18497
+ }],
18498
+ companions: [CHANGED]
18499
+ }),
18500
+ actuator({
18501
+ id: "switch",
18502
+ summary: "On when at least one switch is on, or when all of them are. Offline and unknown members are left out of that decision, never read as off, and still receive the command.",
18503
+ deviceType: DeviceType.Switch,
18504
+ outputCap: "switch",
18505
+ commandCaps: ["switch"]
18506
+ }),
18507
+ actuator({
18508
+ id: "light",
18509
+ summary: "On when at least one light is on, or when all of them are. Brightness and colour are offered only when every member has them. A command is not sent to a member that lacks it.",
18510
+ deviceType: DeviceType.Light,
18511
+ outputCap: "switch",
18512
+ commandCaps: [
18513
+ "switch",
18514
+ "brightness",
18515
+ "color"
18516
+ ]
18517
+ })
18518
+ ];
18519
+ function actuator(input) {
18520
+ return {
18521
+ ...input,
18522
+ family: "actuator",
18523
+ role: void 0,
18524
+ memberDeviceType: input.deviceType,
18525
+ outputField: "on",
18526
+ quantity: "none",
18527
+ baseUnit: void 0,
18528
+ aggregates: BINARY_AGGREGATES,
18529
+ defaultAggregate: "any",
18530
+ empty: "offline",
18531
+ accept: [{
18532
+ cap: "switch",
18533
+ fieldPath: "on"
18534
+ }],
18535
+ companions: [CHANGED]
18536
+ };
18537
+ }
18538
+ new Map(GROUP_TEMPLATES.map((template) => [template.id, template]));
18539
+ DeviceFeature.LightColorRgb, DeviceFeature.LightColorHsv, DeviceFeature.LightColorMired;
18152
18540
  `${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
18153
18541
  /**
18154
18542
  * What a composition may BUILD on a device type (G2, D676): the caps a new
@@ -19862,12 +20250,12 @@ method(object({ deviceId: number().int().nonnegative() }), DeviceAdminLinkSchema
19862
20250
  * providers detect renames by matching `uniqueId` and patch `id`
19863
20251
  * in-place so dispatch keeps working.
19864
20252
  *
19865
- * **Rendering metadata is NOT stored here.** Display fields (`unit`,
19866
- * `precision`) live in the cap STATUS SLICE so they flow live with every
19867
- * state push and are the single source of truth. The `device_class` tag is
19868
- * an HA-specific input that is consumed at the discovery boundary
19869
- * (`ha-domain-mapping`) to derive the CamStack `DeviceRole`; it is never
19870
- * stored after that point.
20253
+ * **Display unit and precision are NOT stored here.** They are a read-time
20254
+ * preference (D944). A polymorphic reading stores its `quantity` here once,
20255
+ * at adopt, and a date/time value stores `dateTimeShape` the same way —
20256
+ * neither is repeated on each sample. The `device_class` tag is an
20257
+ * HA-specific input consumed at the discovery boundary (`ha-domain-mapping`)
20258
+ * to derive the CamStack `DeviceRole`; it is never stored after that point.
19871
20259
  *
19872
20260
  * The `raw` escape hatch carries provider-specific attributes that don't
19873
20261
  * fit the structured slots (HA `attributes` whitelist, Reolink `deviceCache`
@@ -19881,6 +20269,14 @@ var SourceInfoSchema = object({
19881
20269
  /** Immutable upstream identifier when available (HA `unique_id`, … ).
19882
20270
  * Used to detect rename when `id` changes. */
19883
20271
  uniqueId: string().optional(),
20272
+ /** Quantity of a polymorphic reading, written once at adopt (D944). */
20273
+ quantity: ReadingQuantitySchema.optional(),
20274
+ /** Date / time / datetime shape of a string reading, written once at adopt. */
20275
+ dateTimeShape: _enum([
20276
+ "date",
20277
+ "time",
20278
+ "datetime"
20279
+ ]).optional(),
19884
20280
  /** Provider-specific extras that don't fit the structured slots.
19885
20281
  * Whitelist what goes here per provider — do NOT dump entire HA
19886
20282
  * attribute blobs (would explode the meta JSON column). */
@@ -40818,7 +41214,8 @@ method(object({
40818
41214
  "enum"
40819
41215
  ]),
40820
41216
  enumValues: array(string()).optional(),
40821
- item: boolean().optional()
41217
+ item: boolean().optional(),
41218
+ quantity: ReadingQuantitySchema.optional()
40822
41219
  })).readonly(),
40823
41220
  itemArray: object({
40824
41221
  path: string(),
@@ -44618,8 +45015,8 @@ var MaskPolygonShapeSchema = object({
44618
45015
  /** Boolean cell grid — row-major, length === gridWidth*gridHeight. */
44619
45016
  var MaskGridShapeSchema = object({
44620
45017
  kind: literal("grid"),
44621
- gridWidth: number(),
44622
- gridHeight: number(),
45018
+ gridWidth: number().meta(readingMeta("none")),
45019
+ gridHeight: number().meta(readingMeta("none")),
44623
45020
  cells: array(boolean())
44624
45021
  });
44625
45022
  discriminatedUnion("kind", [
@@ -44731,6 +45128,8 @@ var NcSystemEventKindSchema = _enum([
44731
45128
  "detection-blind",
44732
45129
  "motion-noisy",
44733
45130
  "motion-calm",
45131
+ "package-llm-silent",
45132
+ "package-llm-answered",
44734
45133
  "recording-stalled",
44735
45134
  "recording-healthy",
44736
45135
  "recording-degraded",
@@ -55761,6 +56160,28 @@ var PackageVersionInfoSchema = object({
55761
56160
  deprecated: string().optional(),
55762
56161
  distTags: array(string()).readonly()
55763
56162
  });
56163
+ /**
56164
+ * One published document. `ok` is markdown from the registry. `missing` means
56165
+ * the registry answered and the file was not there. `error` is a registry or
56166
+ * tarball failure — never an empty string standing in for either.
56167
+ */
56168
+ var PackageDocBodySchema = discriminatedUnion("status", [
56169
+ object({
56170
+ status: literal("ok"),
56171
+ markdown: string()
56172
+ }),
56173
+ object({ status: literal("missing") }),
56174
+ object({
56175
+ status: literal("error"),
56176
+ message: string()
56177
+ })
56178
+ ]);
56179
+ var PackageDocsSchema = object({
56180
+ name: string(),
56181
+ version: string(),
56182
+ readme: PackageDocBodySchema,
56183
+ changelog: PackageDocBodySchema
56184
+ });
55764
56185
  var SearchResultSchema = object({
55765
56186
  name: string(),
55766
56187
  version: string(),
@@ -55979,7 +56400,10 @@ method(object({ nodeId: string().optional() }).optional(), array(AddonListItemSc
55979
56400
  }), object({ success: literal(true) }), {
55980
56401
  kind: "mutation",
55981
56402
  auth: "admin"
55982
- }), method(object({ name: string() }), array(PackageVersionInfoSchema).readonly()), method(object({ addonId: string() }), RestartAddonResultSchema, {
56403
+ }), method(object({ name: string() }), array(PackageVersionInfoSchema).readonly()), method(object({
56404
+ name: string().min(1),
56405
+ version: string().min(1).optional()
56406
+ }), PackageDocsSchema, { auth: "admin" }), method(object({ addonId: string() }), RestartAddonResultSchema, {
55983
56407
  kind: "mutation",
55984
56408
  auth: "admin"
55985
56409
  }), method(object({ packageName: string() }), object({ success: literal(true) }), {
@@ -56029,46 +56453,27 @@ method(object({ nodeId: string().optional() }).optional(), array(AddonListItemSc
56029
56453
  }), LogStreamEntrySchema, { kind: "subscription" });
56030
56454
  object({
56031
56455
  /** Carbon dioxide concentration in ppm. */
56032
- co2Ppm: number().min(0).optional(),
56456
+ co2Ppm: number().min(0).optional().meta(readingMeta("concentration-volume")),
56033
56457
  /** Total volatile organic compounds in ppb. */
56034
- vocPpb: number().min(0).optional(),
56458
+ vocPpb: number().min(0).optional().meta(readingMeta("concentration-ppb")),
56035
56459
  /** Particulate matter ≤ 2.5 μm in µg/m³. */
56036
- pm25: number().min(0).optional(),
56460
+ pm25: number().min(0).optional().meta(readingMeta("concentration-mass")),
56037
56461
  /** Particulate matter ≤ 10 μm in µg/m³. */
56038
- pm10: number().min(0).optional(),
56462
+ pm10: number().min(0).optional().meta(readingMeta("concentration-mass")),
56039
56463
  /** Composite AQI value (typically 0..500). */
56040
- aqi: number().optional(),
56464
+ aqi: number().optional().meta(readingMeta("index")),
56041
56465
  /** Ms epoch when the slice was last updated. */
56042
- lastFetchedAt: number(),
56043
- /** Live display unit of the single metric this slice carries (e.g. HA
56044
- * `attributes.unit_of_measurement` → 'ppm' / 'ppb' / 'µg/m³'). Each
56045
- * upstream `sensor.*` entity surfaces ONE device_class, so one unit
56046
- * per slice is unambiguous. */
56047
- unit: string().optional(),
56048
- /** Suggested decimal places for numeric display.
56049
- * Populated live from the upstream source when provided (e.g. HA
56050
- * `attributes.suggested_display_precision`). Falls back to
56051
- * auto-formatting when absent. */
56052
- precision: number().int().min(0).max(10).optional()
56466
+ lastFetchedAt: number()
56053
56467
  });
56054
56468
  DeviceType.Sensor;
56055
56469
  object({
56056
- /** Current illuminance in lux (lx). */
56057
- lux: number().min(0).meta({
56058
- unit: "lx",
56470
+ /** Current illuminance in lux (lx). `null` when the sample was refused (D393). */
56471
+ lux: number().min(0).nullable().meta(readingMeta("illuminance", {
56472
+ precision: 0,
56059
56473
  label: "Illuminance"
56060
- }),
56474
+ })),
56061
56475
  /** Ms epoch when the slice was last updated. */
56062
- lastFetchedAt: number(),
56063
- /** Live display unit from the upstream source (e.g. HA
56064
- * `attributes.unit_of_measurement`). The UI prefers this over the
56065
- * role's canonical unit. Absent → fall back to the canonical unit. */
56066
- unit: string().optional(),
56067
- /** Suggested decimal places for numeric display.
56068
- * Populated live from the upstream source when provided (e.g. HA
56069
- * `attributes.suggested_display_precision`). Falls back to
56070
- * auto-formatting when absent. */
56071
- precision: number().int().min(0).max(10).optional()
56476
+ lastFetchedAt: number()
56072
56477
  });
56073
56478
  DeviceType.Sensor;
56074
56479
  /**
@@ -56213,10 +56618,7 @@ var BatteryStatusSchema = object({
56213
56618
  * Consumers must SKIP a null rather than coerce it — `battery-band` already
56214
56619
  * declines to band a non-finite reading, which is the correct shape.
56215
56620
  */
56216
- percentage: number().min(0).max(100).nullable().meta({
56217
- unit: "%",
56218
- label: "Charge"
56219
- }),
56621
+ percentage: number().min(0).max(100).nullable().meta(readingMeta("percentage", { label: "Charge" })),
56220
56622
  /**
56221
56623
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
56222
56624
  * Reolink-specific for the Solar Panel 2 accessory (will become
@@ -56243,7 +56645,14 @@ var BatteryStatusSchema = object({
56243
56645
  */
56244
56646
  sleeping: boolean().meta({ label: "Sleeping" }),
56245
56647
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
56246
- lastUpdated: number(),
56648
+ lastUpdated: number().meta(readingMeta("none")),
56649
+ /**
56650
+ * Battery voltage in volts, for a cell the firmware reports as voltage
56651
+ * rather than a percentage (Ecowitt capacitor packs). Absent on cameras
56652
+ * that only report charge. A second reading on this cap, not a second
56653
+ * `numeric-sensor` on the same device.
56654
+ */
56655
+ volts: number().nullable().optional().meta(readingMeta("voltage", { label: "Voltage" })),
56247
56656
  /**
56248
56657
  * Ms epoch of the last time the device PROVED it was reachable — a
56249
56658
  * completed firmware round-trip, an observed wake, or an inbound push
@@ -56315,7 +56724,7 @@ DeviceType.Sensor;
56315
56724
  */
56316
56725
  var BrightnessStatusSchema = object({
56317
56726
  /** Current level as 0..100 inclusive. Firmware-reported. */
56318
- percentage: number().min(0).max(100),
56727
+ percentage: number().min(0).max(100).meta(readingMeta("percentage")),
56319
56728
  /** Ms epoch of the last operator-driven change. Useful for UI freshness. */
56320
56729
  lastChangedAt: number()
56321
56730
  });
@@ -56700,21 +57109,21 @@ object({
56700
57109
  /** Single setpoint in Celsius. Used by single-target modes
56701
57110
  * (heat / cool / dry). Null when the device is in a range mode
56702
57111
  * (`heat_cool`) or has no setpoint at all (`fan_only`/`off`). */
56703
- target: number().nullable(),
57112
+ target: number().nullable().meta(readingMeta("temperature")),
56704
57113
  /** Upper bound of the dual setpoint in Celsius. Populated only
56705
57114
  * in `heat_cool` mode. */
56706
- targetHigh: number().nullable(),
57115
+ targetHigh: number().nullable().meta(readingMeta("temperature")),
56707
57116
  /** Lower bound of the dual setpoint in Celsius. Populated only
56708
57117
  * in `heat_cool` mode. */
56709
- targetLow: number().nullable(),
57118
+ targetLow: number().nullable().meta(readingMeta("temperature")),
56710
57119
  /** Target relative humidity (0..100). Null when the device has no
56711
57120
  * humidity control. */
56712
- targetHumidity: number().min(0).max(100).nullable(),
57121
+ targetHumidity: number().min(0).max(100).nullable().meta(readingMeta("humidity")),
56713
57122
  /** Current measured temperature in Celsius. Read-only — pushed by
56714
57123
  * the device's internal sensor. */
56715
- currentTemp: number().nullable(),
57124
+ currentTemp: number().nullable().meta(readingMeta("temperature")),
56716
57125
  /** Current measured relative humidity (0..100). Read-only. */
56717
- currentHumidity: number().min(0).max(100).nullable(),
57126
+ currentHumidity: number().min(0).max(100).nullable().meta(readingMeta("humidity")),
56718
57127
  /** Vertical louver swing on/off. Null when the device has no vertical
56719
57128
  * swing surface (gate with `DeviceFeature.ClimateSwingVertical`). */
56720
57129
  swingVertical: boolean().nullable(),
@@ -56722,11 +57131,11 @@ object({
56722
57131
  * horizontal swing surface (gate with `DeviceFeature.ClimateSwingHorizontal`). */
56723
57132
  swingHorizontal: boolean().nullable(),
56724
57133
  /** Lowest setpoint the device accepts, Celsius. Absent / null = not reported. */
56725
- minTemp: number().nullable().optional(),
57134
+ minTemp: number().nullable().optional().meta(readingMeta("temperature")),
56726
57135
  /** Highest setpoint the device accepts, Celsius. Absent / null = not reported. */
56727
- maxTemp: number().nullable().optional(),
57136
+ maxTemp: number().nullable().optional().meta(readingMeta("temperature")),
56728
57137
  /** Setpoint granularity, Celsius (0.5, 1). Absent / null = not reported. */
56729
- tempStep: number().positive().nullable().optional(),
57138
+ tempStep: number().positive().nullable().optional().meta(readingMeta("temperature")),
56730
57139
  /** Ms epoch when the slice was last updated (push or command). */
56731
57140
  lastFetchedAt: number()
56732
57141
  });
@@ -56805,17 +57214,17 @@ DeviceType.Thermostat, DeviceType.Climate, method(object({
56805
57214
  * modes to expose in the picker without a slice fetch.
56806
57215
  */
56807
57216
  var RgbTripletSchema = object({
56808
- r: number().int().min(0).max(255),
56809
- g: number().int().min(0).max(255),
56810
- b: number().int().min(0).max(255)
57217
+ r: number().int().min(0).max(255).meta(readingMeta("none")),
57218
+ g: number().int().min(0).max(255).meta(readingMeta("none")),
57219
+ b: number().int().min(0).max(255).meta(readingMeta("none"))
56811
57220
  });
56812
57221
  var HsvTripletSchema = object({
56813
57222
  /** Hue in degrees, 0..360. */
56814
- h: number().min(0).max(360),
57223
+ h: number().min(0).max(360).meta(readingMeta("none")),
56815
57224
  /** Saturation as 0..100 inclusive. */
56816
- s: number().min(0).max(100),
57225
+ s: number().min(0).max(100).meta(readingMeta("none")),
56817
57226
  /** Value/brightness as 0..100 inclusive. */
56818
- v: number().min(0).max(100)
57227
+ v: number().min(0).max(100).meta(readingMeta("none"))
56819
57228
  });
56820
57229
  var ColorInputSchema = discriminatedUnion("mode", [
56821
57230
  object({
@@ -56844,7 +57253,7 @@ object({
56844
57253
  /** Populated when `mode === 'hsv'`. */
56845
57254
  hsv: HsvTripletSchema.optional(),
56846
57255
  /** Populated when `mode === 'mired'`. */
56847
- mireds: number().int().optional(),
57256
+ mireds: number().int().optional().meta(readingMeta("colour-temperature")),
56848
57257
  /** Ms epoch of the last operator-driven change. */
56849
57258
  lastChangedAt: number()
56850
57259
  });
@@ -56968,18 +57377,12 @@ _enum([
56968
57377
  "empty",
56969
57378
  "full"
56970
57379
  ]);
56971
- /** Units a remaining-life counter is reported in. Closed: the panel renders
56972
- * each. */
56973
- var ConsumableRemainingUnitSchema = _enum([
56974
- "days",
56975
- "hours",
56976
- "cycles"
56977
- ]);
56978
- /** Remaining life as a COUNT, not a percentage (the PetKit desiccant reports
56979
- * days). `value` null = unknown (D393). */
57380
+ /** Whether `remaining.value` is a duration in seconds or a dimensionless count. */
57381
+ var ConsumableRemainingKindSchema = _enum(["duration", "count"]);
57382
+ /** Remaining life. `value` null = unknown (D393). Duration is seconds. */
56980
57383
  var ConsumableRemainingSchema = object({
56981
- value: number().min(0).nullable(),
56982
- unit: ConsumableRemainingUnitSchema
57384
+ value: number().min(0).nullable().meta(readingMeta("device")),
57385
+ kind: ConsumableRemainingKindSchema
56983
57386
  });
56984
57387
  var ConsumablesStatusSchema = object({
56985
57388
  items: array(object({
@@ -56988,7 +57391,7 @@ var ConsumablesStatusSchema = object({
56988
57391
  /** Display name. */
56989
57392
  label: string().min(1),
56990
57393
  /** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
56991
- level: number().min(0).max(100).nullable(),
57394
+ level: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
56992
57395
  /** The provider's discrete verdict when known (binary mode). */
56993
57396
  status: ConsumableStatusSchema.nullable(),
56994
57397
  /** What the item is — decides whether low or full is bad. Absent = `wear`. */
@@ -57005,7 +57408,7 @@ var ConsumablesStatusSchema = object({
57005
57408
  })),
57006
57409
  lastChangedAt: number()
57007
57410
  });
57008
- Object.values(DeviceType), [...ConsumableRemainingUnitSchema.options], [...ConsumableStatusSchema.options], [...ConsumableKindSchema.options], [...ConsumableFormSchema.options];
57411
+ Object.values(DeviceType), [...ConsumableRemainingKindSchema.options], [...ConsumableStatusSchema.options], [...ConsumableKindSchema.options], [...ConsumableFormSchema.options];
57009
57412
  Object.values(DeviceType), method(object({
57010
57413
  deviceId: number().int().nonnegative(),
57011
57414
  key: string().min(1)
@@ -57030,39 +57433,17 @@ object({
57030
57433
  /** Current value. Numeric kind → number; select/text/datetime → string.
57031
57434
  * Datetime values are ISO 8601 strings (full timestamp, date-only,
57032
57435
  * or time-only — HA accepts all three forms). */
57033
- value: union([number(), string()]),
57436
+ value: union([number().meta(readingMeta("device")), string()]),
57034
57437
  /** Acceptable values when `kind === 'select'`. Empty for other kinds. */
57035
57438
  options: array(string()),
57036
57439
  /** Ms epoch when the slice was last updated. */
57037
57440
  lastChangedAt: number(),
57038
- /** Display unit-of-measurement (e.g. '°C', '%', 'lx').
57039
- * Populated live from HA `attributes.unit_of_measurement` on each push.
57040
- * Meaningful for `kind === 'numeric'`; absent for other kinds. */
57041
- unit: string().optional(),
57042
- /** Minimum allowed value. Populated live from HA `attributes.min`.
57043
- * Meaningful for `kind === 'numeric'`; absent for other kinds. */
57044
- min: number().optional(),
57045
- /** Maximum allowed value. Populated live from HA `attributes.max`.
57046
- * Meaningful for `kind === 'numeric'`; absent for other kinds. */
57047
- max: number().optional(),
57048
- /** Step increment. Populated live from HA `attributes.step`.
57049
- * Meaningful for `kind === 'numeric'`; absent for other kinds. */
57050
- step: number().optional(),
57051
- /** Suggested decimal places for numeric display. Populated live from HA
57052
- * `attributes.suggested_display_precision`, or derived from `step` when the
57053
- * HA attribute is absent. Meaningful for `kind === 'numeric'`; absent for
57054
- * other kinds. Falls back to auto-formatting when absent. */
57055
- precision: number().int().min(0).max(10).optional(),
57056
- /** Date-picker granularity for `kind === 'datetime'`. 'date' → date-only,
57057
- * 'time' → time-only, 'datetime' → full timestamp. Absent for other kinds
57058
- * (UI defaults to 'datetime'). Derived live from the device's HA domain
57059
- * (date.* / time.* / datetime.*) or, for input_datetime, from the entity's
57060
- * `has_date`/`has_time` attributes on each push. */
57061
- format: _enum([
57062
- "date",
57063
- "time",
57064
- "datetime"
57065
- ]).optional()
57441
+ /** Minimum allowed value, in the device quantity's base unit. */
57442
+ min: number().optional().meta(readingMeta("device")),
57443
+ /** Maximum allowed value, in the device quantity's base unit. */
57444
+ max: number().optional().meta(readingMeta("device")),
57445
+ /** Step increment, in the device quantity's base unit. */
57446
+ step: number().optional().meta(readingMeta("device"))
57066
57447
  });
57067
57448
  var ControlSetValueInputSchema = discriminatedUnion("kind", [
57068
57449
  object({
@@ -57100,9 +57481,9 @@ var CoverStatusSchema = object({
57100
57481
  ]),
57101
57482
  /** 0 = fully closed, 100 = fully open. Null when the device has
57102
57483
  * no intermediate position surface. */
57103
- position: number().min(0).max(100).nullable(),
57484
+ position: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
57104
57485
  /** 0 = closed slats, 100 = open slats. Null when no tilt support. */
57105
- tiltPosition: number().min(0).max(100).nullable(),
57486
+ tiltPosition: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
57106
57487
  /** Ms epoch when the slice was last updated. */
57107
57488
  lastChangedAt: number()
57108
57489
  });
@@ -57160,9 +57541,9 @@ var NormalizedRangeSchema$1 = object({
57160
57541
  object({
57161
57542
  mode: DayNightModeSchema,
57162
57543
  /** IR-cut trigger sensitivity, NORMALIZED 0–100 (higher = switches to night sooner). */
57163
- sensitivity: number().optional(),
57544
+ sensitivity: number().optional().meta(readingMeta("none")),
57164
57545
  /** Delay before the IR-cut filter flips, in seconds. */
57165
- switchDelaySec: number().optional(),
57546
+ switchDelaySec: number().optional().meta(readingMeta("duration")),
57166
57547
  lastFetchedAt: number()
57167
57548
  });
57168
57549
  /**
@@ -57317,11 +57698,11 @@ object({
57317
57698
  /** Feature keys of the programs the appliance currently offers — drives the UI selector. */
57318
57699
  availablePrograms: array(string()),
57319
57700
  /** Seconds remaining on the active cycle, or null when not running / not known. */
57320
- remainingSeconds: number().int().nonnegative().nullable(),
57701
+ remainingSeconds: number().int().nonnegative().nullable().meta(readingMeta("duration")),
57321
57702
  /** Seconds the delayed start is set to (time until the cycle starts), or null. */
57322
- delayedStartSeconds: number().int().nonnegative().nullable(),
57703
+ delayedStartSeconds: number().int().nonnegative().nullable().meta(readingMeta("duration")),
57323
57704
  /** Cycle completion 0..100, or null when not applicable. */
57324
- progressPercent: number().min(0).max(100).nullable(),
57705
+ progressPercent: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
57325
57706
  /** True when the door is reported open; null when the door state is not known. */
57326
57707
  doorOpen: boolean().nullable(),
57327
57708
  /** True when the door is latched (locked) during a cycle; null when not reported. */
@@ -57345,7 +57726,7 @@ object({
57345
57726
  /** True while the machine-care (descaling / cleaning-program) reminder is raised; false when clear; null when not reported. */
57346
57727
  machineCareDue: boolean().nullable(),
57347
57728
  /** Program runs left before the machine-care reminder is due; null when the appliance does not say. */
57348
- machineCareRemainingRuns: number().int().nonnegative().nullable(),
57729
+ machineCareRemainingRuns: number().int().nonnegative().nullable().meta(readingMeta("count")),
57349
57730
  /** Option states: null when the appliance does not expose the option or has not said. */
57350
57731
  halfLoad: boolean().nullable(),
57351
57732
  hygienePlus: boolean().nullable(),
@@ -57360,7 +57741,7 @@ object({
57360
57741
  /** Feature keys of the events currently raised (salt low, rinse aid low, program finished, …). */
57361
57742
  activeEvents: array(string()),
57362
57743
  /** Numeric error code when the appliance reports one; null otherwise. */
57363
- errorCode: number().nullable(),
57744
+ errorCode: number().nullable().meta(readingMeta("none")),
57364
57745
  /** Name of the raised alert-level event while the appliance is in error; null otherwise. */
57365
57746
  errorLabel: string().nullable(),
57366
57747
  /** Ms epoch of the last value received from the appliance; 0 = never. */
@@ -57506,24 +57887,14 @@ object({
57506
57887
  /** Ms epoch of the last press. null = never observed since this provider started. */
57507
57888
  lastPressedAt: number().nullable(),
57508
57889
  /** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
57509
- pressCountSinceStart: number()
57890
+ pressCountSinceStart: number().meta(readingMeta("count"))
57510
57891
  });
57511
57892
  object({
57512
57893
  deviceId: number(),
57513
57894
  timestamp: number()
57514
57895
  });
57515
57896
  DeviceType.Button, DeviceType.Camera;
57516
- /**
57517
- * Enum-state sensor — a string value picked from a finite option set.
57518
- * Drives HA `sensor` entries with `state_class: enum` (HVAC action
57519
- * states, weather conditions, contact-source channels, mode strings).
57520
- * The option set is stable across observations; it is persisted in the
57521
- * device config blob (via the control slice at adoption) and is NOT
57522
- * stored in `sourceInfo`.
57523
- */
57524
- /** Locale-render shape for an ISO `value` carried by a `DateTimeSensor`-role
57525
- * enum sensor: `date` (date-only), `time` (time-only), `datetime` (both). */
57526
- var EnumSensorDateTimeFormatSchema = _enum([
57897
+ _enum([
57527
57898
  "date",
57528
57899
  "time",
57529
57900
  "datetime"
@@ -57531,12 +57902,11 @@ var EnumSensorDateTimeFormatSchema = _enum([
57531
57902
  object({
57532
57903
  value: string(),
57533
57904
  /**
57534
- * Set for `DateTimeSensor`-role sensors so the UI renders the ISO `value`
57535
- * as a locale date/time/datetime; absent for plain enum sensors. HA
57536
- * `device_class=timestamp` → `'datetime'`, `device_class=date` → `'date'`,
57537
- * a time-only sensor → `'time'`.
57905
+ * Set when `value` is a timestamp rather than an enum state, so history
57906
+ * does not learn ISO strings as states. The display shape (date / time /
57907
+ * datetime) lives on `SourceInfo.dateTimeShape`, written once at adopt.
57538
57908
  */
57539
- format: EnumSensorDateTimeFormatSchema.optional(),
57909
+ timestamp: boolean().optional(),
57540
57910
  /** Ms epoch when the slice was last updated. */
57541
57911
  lastFetchedAt: number()
57542
57912
  });
@@ -57555,13 +57925,13 @@ var EventFireSchema = object({
57555
57925
  deviceId: number(),
57556
57926
  eventType: string(),
57557
57927
  data: record(string(), unknown()).nullable(),
57558
- timestamp: number(),
57559
- seq: number()
57928
+ timestamp: number().meta(readingMeta("none")),
57929
+ seq: number().meta(readingMeta("count"))
57560
57930
  });
57561
57931
  object({
57562
57932
  eventTypes: array(string()),
57563
57933
  lastEvent: EventFireSchema.nullable(),
57564
- eventCountSinceStart: number()
57934
+ eventCountSinceStart: number().meta(readingMeta("count"))
57565
57935
  });
57566
57936
  DeviceType.EventEmitter;
57567
57937
  var IdentitySchema = object({
@@ -57950,10 +58320,10 @@ var FanDirectionSchema = _enum(["forward", "reverse"]);
57950
58320
  object({
57951
58321
  /** Active speed as 0..100 inclusive. Null when the device has no
57952
58322
  * speed surface (single-speed fan). */
57953
- percentage: number().min(0).max(100).nullable(),
58323
+ percentage: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
57954
58324
  /** Speed granularity the device accepts (HA `percentage_step`, e.g. 25 for
57955
58325
  * a 4-speed fan). Absent when unknown — the UI then falls back to step 1. */
57956
- percentageStep: number().positive().optional(),
58326
+ percentageStep: number().positive().optional().meta(readingMeta("percentage")),
57957
58327
  /** Active preset mode (`auto` / `quiet` / `turbo` / vendor-specific)
57958
58328
  * — empty string when no preset is active or supported. */
57959
58329
  preset: string(),
@@ -58035,7 +58405,7 @@ var FeatureProbeStatusSchema = object({
58035
58405
  /** Camera/firmware model string. `null` when the firmware doesn't expose it. */
58036
58406
  model: string().nullable(),
58037
58407
  /** Channel count for NVR/Hub devices; `1` for standalone cameras; `null` pre-probe. */
58038
- channelCount: number().nullable(),
58408
+ channelCount: number().nullable().meta(readingMeta("count")),
58039
58409
  /**
58040
58410
  * Ms epoch of the last SUCCESSFUL probe. `0` before the first probe
58041
58411
  * completes — drivers' `getAccessoryChildren()` should treat zero as
@@ -58067,9 +58437,39 @@ object({
58067
58437
  lastChangedAt: number()
58068
58438
  });
58069
58439
  DeviceType.Sensor;
58440
+ object({
58441
+ /** One row per member that has been commanded. A later command replaces that member's row. */
58442
+ results: array(object({
58443
+ deviceId: number().int().nonnegative(),
58444
+ cap: string().min(1),
58445
+ method: string().min(1),
58446
+ ok: boolean(),
58447
+ error: string().optional(),
58448
+ /** Ms epoch of the attempt. */
58449
+ at: number()
58450
+ })) });
58451
+ DeviceType.Switch, DeviceType.Light;
58452
+ object({
58453
+ /** Members whose current value entered the aggregate. */
58454
+ included: number().int().nonnegative().meta(readingMeta("count", {
58455
+ precision: 0,
58456
+ label: "Reporting"
58457
+ })),
58458
+ /** Members left out: offline, unknown, or not a finite reading (D393). */
58459
+ excluded: number().int().nonnegative().meta(readingMeta("count", {
58460
+ precision: 0,
58461
+ label: "Excluded"
58462
+ })),
58463
+ /** `included` + `excluded`. */
58464
+ total: number().int().nonnegative().meta(readingMeta("count", {
58465
+ precision: 0,
58466
+ label: "Members"
58467
+ }))
58468
+ });
58469
+ DeviceType.Sensor, DeviceType.Switch, DeviceType.Light;
58070
58470
  object({
58071
58471
  /** Radiator valve opening 0 (closed) .. 100 (open). Null = not yet known. */
58072
- position: number().min(0).max(100).nullable(),
58472
+ position: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
58073
58473
  /** Ms epoch when the slice was last updated (push or poll). */
58074
58474
  lastFetchedAt: number()
58075
58475
  });
@@ -58078,9 +58478,9 @@ object({
58078
58478
  /** Whether the humidifier is currently on. */
58079
58479
  on: boolean(),
58080
58480
  /** Current measured relative humidity (0..100). Null when not reported. */
58081
- currentHumidity: number().min(0).max(100).nullable(),
58481
+ currentHumidity: number().min(0).max(100).nullable().meta(readingMeta("humidity")),
58082
58482
  /** Target relative humidity (0..100). Null when no setpoint surface. */
58083
- targetHumidity: number().min(0).max(100).nullable(),
58483
+ targetHumidity: number().min(0).max(100).nullable().meta(readingMeta("humidity")),
58084
58484
  /** Active mode (`auto` / `normal` / `baby` / vendor). Null when the
58085
58485
  * device has no mode surface. */
58086
58486
  mode: string().nullable(),
@@ -58090,9 +58490,9 @@ object({
58090
58490
  * `idle` / `off`). Null when the device doesn't report it. */
58091
58491
  action: string().nullable(),
58092
58492
  /** HA `min_humidity` attribute. Null → UI uses 0. */
58093
- minHumidity: number().nullable(),
58493
+ minHumidity: number().nullable().meta(readingMeta("humidity")),
58094
58494
  /** HA `max_humidity` attribute. Null → UI uses 100. */
58095
- maxHumidity: number().nullable(),
58495
+ maxHumidity: number().nullable().meta(readingMeta("humidity")),
58096
58496
  /** Ms epoch when the slice was last updated. */
58097
58497
  lastChangedAt: number()
58098
58498
  });
@@ -58116,22 +58516,13 @@ DeviceType.Humidifier, method(object({
58116
58516
  auth: "protected"
58117
58517
  });
58118
58518
  object({
58119
- /** Current relative humidity, 0..100. */
58120
- percent: number().min(0).max(100).meta({
58121
- unit: "%",
58519
+ /** Current relative humidity, 0..100. `null` when the sample was refused (D393). */
58520
+ percent: number().min(0).max(100).nullable().meta(readingMeta("humidity", {
58521
+ precision: 0,
58122
58522
  label: "Humidity"
58123
- }),
58523
+ })),
58124
58524
  /** Ms epoch when the slice was last updated. */
58125
- lastFetchedAt: number(),
58126
- /** Live display unit from the upstream source (e.g. HA
58127
- * `attributes.unit_of_measurement`). The UI prefers this over the
58128
- * role's canonical unit. Absent → fall back to the canonical unit. */
58129
- unit: string().optional(),
58130
- /** Suggested decimal places for numeric display.
58131
- * Populated live from the upstream source when provided (e.g. HA
58132
- * `attributes.suggested_display_precision`). Falls back to
58133
- * auto-formatting when absent. */
58134
- precision: number().int().min(0).max(10).optional()
58525
+ lastFetchedAt: number()
58135
58526
  });
58136
58527
  DeviceType.Sensor, DeviceType.Thermostat;
58137
58528
  object({
@@ -58139,7 +58530,7 @@ object({
58139
58530
  * entity exposes no `entity_picture` (yet). */
58140
58531
  url: string().nullable(),
58141
58532
  /** Ms epoch of the upstream last-updated timestamp. Null at cold-start. */
58142
- lastUpdated: number().nullable()
58533
+ lastUpdated: number().nullable().meta(readingMeta("none"))
58143
58534
  });
58144
58535
  DeviceType.Image;
58145
58536
  /**
@@ -58195,19 +58586,19 @@ var NormalizedRangeSchema = object({
58195
58586
  });
58196
58587
  object({
58197
58588
  /** Normalized 0–100. */
58198
- brightness: number().optional(),
58589
+ brightness: number().optional().meta(readingMeta("none")),
58199
58590
  /** Normalized 0–100. */
58200
- contrast: number().optional(),
58591
+ contrast: number().optional().meta(readingMeta("none")),
58201
58592
  /** Normalized 0–100. */
58202
- saturation: number().optional(),
58593
+ saturation: number().optional().meta(readingMeta("none")),
58203
58594
  /** Normalized 0–100. */
58204
- sharpness: number().optional(),
58595
+ sharpness: number().optional().meta(readingMeta("none")),
58205
58596
  mirror: boolean().optional(),
58206
58597
  flip: boolean().optional(),
58207
58598
  rotate: ImageRotateSchema.optional(),
58208
58599
  whiteBalance: WhiteBalanceModeSchema.optional(),
58209
58600
  /** Manual white-balance warmth, NORMALIZED 0–100. Meaningful only when `whiteBalance === 'manual'`. */
58210
- warmth: number().optional(),
58601
+ warmth: number().optional().meta(readingMeta("none")),
58211
58602
  exposureMode: ExposureModeSchema.optional(),
58212
58603
  backlightMode: BacklightModeSchema.optional(),
58213
58604
  lastFetchedAt: number()
@@ -58452,10 +58843,10 @@ var IntercomAbilitySchema = object({
58452
58843
  /** Codecs accepted by firmware, in preference order. Driver-authored strings. */
58453
58844
  codecs: array(string()),
58454
58845
  /** Sample rate (Hz) the firmware expects. Reolink typical: 16000. */
58455
- sampleRate: number(),
58846
+ sampleRate: number().meta(readingMeta("none")),
58456
58847
  duplex: _enum(["half", "full"]),
58457
58848
  /** Max in-flight audio backlog before drop (ms). Server uses this to bound latency. */
58458
- maxBacklogMs: number()
58849
+ maxBacklogMs: number().meta(readingMeta("duration-ms"))
58459
58850
  });
58460
58851
  var IntercomStatusSchema = object({
58461
58852
  /** True while a talk session is open. */
@@ -58566,13 +58957,13 @@ object({
58566
58957
  activity: LawnMowerActivitySchema,
58567
58958
  /** 0..100 battery percentage. Null when the device has no battery
58568
58959
  * reading. */
58569
- batteryLevel: number().min(0).max(100).nullable(),
58960
+ batteryLevel: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
58570
58961
  /** 0..100 mowing-completion percentage of the current task, or null when no
58571
58962
  * task is active / progress is unavailable. */
58572
- progressPercent: number().min(0).max(100).nullable(),
58963
+ progressPercent: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
58573
58964
  /** Current device/event code (dynamic — mostly status, sometimes an error),
58574
58965
  * or null when unknown. */
58575
- currentCode: number().nullable(),
58966
+ currentCode: number().nullable().meta(readingMeta("none")),
58576
58967
  /** Human label for {@link currentCode}, or null when undecodable. */
58577
58968
  currentCodeLabel: string().nullable(),
58578
58969
  /** Severity of {@link currentCode}. `error` (and often `warning`) warrants UI
@@ -59034,7 +59425,7 @@ object({
59034
59425
  state: MediaPlayerStateSchema,
59035
59426
  /** Volume as 0..100 inclusive. Null when the device has no volume
59036
59427
  * surface. Pair with `DeviceFeature.MediaPlayerVolume`. */
59037
- volumeLevel: number().min(0).max(100).nullable(),
59428
+ volumeLevel: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
59038
59429
  /** Mute toggle distinct from volume=0. Null when no mute surface.
59039
59430
  * Pair with `DeviceFeature.MediaPlayerMute`. */
59040
59431
  isMuted: boolean().nullable(),
@@ -59047,10 +59438,10 @@ object({
59047
59438
  currentMedia: MediaInfoSchema.nullable(),
59048
59439
  /** Current playback position in ms. Null when not seekable or
59049
59440
  * nothing is playing. Pair with `DeviceFeature.MediaPlayerSeek`. */
59050
- positionMs: number().int().nonnegative().nullable(),
59441
+ positionMs: number().int().nonnegative().nullable().meta(readingMeta("duration-ms")),
59051
59442
  /** Total duration of the current media in ms. Null when unknown
59052
59443
  * (live stream) or nothing is playing. */
59053
- durationMs: number().int().nonnegative().nullable(),
59444
+ durationMs: number().int().nonnegative().nullable().meta(readingMeta("duration-ms")),
59054
59445
  /** Shuffle toggle. Null when no shuffle surface.
59055
59446
  * Pair with `DeviceFeature.MediaPlayerShuffle`. */
59056
59447
  shuffle: boolean().nullable(),
@@ -59350,7 +59741,7 @@ object({
59350
59741
  * it, every provider seeded it at boot, and every session left it
59351
59742
  * `detected: true` after its detach.
59352
59743
  */
59353
- autoClearAfterMs: number().nullable()
59744
+ autoClearAfterMs: number().nullable().meta(readingMeta("duration-ms"))
59354
59745
  });
59355
59746
  /**
59356
59747
  * Payload of `motion.onMotionChanged` event + the corresponding bus
@@ -59400,7 +59791,7 @@ var MotionZoneRegionSchema = object({
59400
59791
  });
59401
59792
  object({
59402
59793
  enabled: boolean(),
59403
- sensitivity: number(),
59794
+ sensitivity: number().meta(readingMeta("none")),
59404
59795
  /** Grid region(s). Today exactly one `grid` shape. */
59405
59796
  regions: array(MotionZoneRegionSchema),
59406
59797
  lastFetchedAt: number()
@@ -59704,7 +60095,7 @@ var NavigationStatusSchema = object({
59704
60095
  following: boolean(),
59705
60096
  flash: boolean(),
59706
60097
  lightMode: NavigationLightModeSchema,
59707
- lightLevel: number().min(40).max(100),
60098
+ lightLevel: number().min(40).max(100).meta(readingMeta("none")),
59708
60099
  /** Ms epoch when the slice was last updated. */
59709
60100
  lastChangedAt: number()
59710
60101
  });
@@ -59750,13 +60141,13 @@ var NetworkLinkStatusSchema = object({
59750
60141
  * one whose reading has not landed must not be drawn at 0 %. Consumers
59751
60142
  * SKIP a null rather than coerce it.
59752
60143
  */
59753
- signalPercent: number().min(0).max(100).nullable(),
60144
+ signalPercent: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
59754
60145
  /** Raw received signal strength in dBm, when the firmware reports one. */
59755
- rssiDbm: number().optional(),
60146
+ rssiDbm: number().optional().meta(readingMeta("signal-level")),
59756
60147
  /** Network name of a wireless link, when the firmware reports it. */
59757
60148
  ssid: string().optional(),
59758
60149
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
59759
- lastUpdated: number()
60150
+ lastUpdated: number().meta(readingMeta("none"))
59760
60151
  });
59761
60152
  DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.Light, DeviceType.Lock, DeviceType.Siren, object({
59762
60153
  deviceId: number(),
@@ -60075,7 +60466,7 @@ object({
60075
60466
  lastError: string().nullable(),
60076
60467
  /** Number of deliveries currently buffered server-side (rate-limited
60077
60468
  * notifiers may queue). 0 when the provider sends synchronously. */
60078
- queueDepth: number().int().nonnegative(),
60469
+ queueDepth: number().int().nonnegative().meta(readingMeta("count")),
60079
60470
  /** Per-feature capability matrix — authoritative source for the
60080
60471
  * compose-form field gating. */
60081
60472
  supports: NotifierSupportsSchema
@@ -60125,15 +60516,8 @@ DeviceType.Notifier, method(NotifierSendInputSchema, NotifierSendResultSchema, {
60125
60516
  acceptedAt: number()
60126
60517
  });
60127
60518
  object({
60128
- value: number(),
60129
- /** Display unit-of-measurement (e.g. 'dBm', 's', 'rpm', 'steps').
60130
- * Populated live from the upstream source on each state push.
60131
- * Absent for unitless sensors. */
60132
- unit: string().optional(),
60133
- /** Suggested decimal places for numeric display.
60134
- * Populated live from the upstream source when provided.
60135
- * Falls back to auto-formatting when absent. */
60136
- precision: number().int().min(0).max(10).optional(),
60519
+ /** Reading in the device quantity's base unit. `null` when refused (D393). */
60520
+ value: number().nullable().meta(readingMeta("device")),
60137
60521
  /** Ms epoch when the slice was last updated. */
60138
60522
  lastFetchedAt: number()
60139
60523
  });
@@ -60423,23 +60807,26 @@ object({
60423
60807
  /** Food currently in the bowl (grams). Null when the device has not
60424
60808
  * reported a reading yet. On dual-hopper models this is the combined
60425
60809
  * bowl reading; per-hopper levels live in `food1`/`food2`. */
60426
- foodLevel: number().nullable(),
60810
+ foodLevel: number().nullable().meta(readingMeta("none")),
60427
60811
  /** Hopper-1 food level (grams) on dual-hopper feeders; null on
60428
60812
  * single-hopper models. */
60429
- food1: number().nullable(),
60813
+ food1: number().nullable().meta(readingMeta("none")),
60430
60814
  /** Hopper-2 food level (grams) on dual-hopper feeders; null on
60431
60815
  * single-hopper models. */
60432
- food2: number().nullable(),
60816
+ food2: number().nullable().meta(readingMeta("none")),
60433
60817
  /** Derived low-food flag — mirrors the HA `food_level` binary_sensor
60434
60818
  * (`device_class: problem`, on = low). True when the bowl is empty /
60435
60819
  * below the feeder's low threshold. */
60436
60820
  lowFood: boolean(),
60437
60821
  /** Battery charge 0..100 (%). Null on mains-powered models or when the
60438
60822
  * device has no battery reading. */
60439
- batteryPower: number().min(0).max(100).nullable(),
60440
- /** Days of desiccant life remaining. Null when the model has no
60441
- * desiccant sensor. */
60442
- desiccantLeftDays: number().nullable(),
60823
+ batteryPower: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
60824
+ /**
60825
+ * Desiccant life remaining, stored in seconds (duration base, D944).
60826
+ * Providers convert from the days the feeder reports. Null when the
60827
+ * model has no desiccant sensor.
60828
+ */
60829
+ desiccantLeftDays: number().nullable().meta(readingMeta("duration")),
60443
60830
  /** True while a feed is in progress. */
60444
60831
  feeding: boolean(),
60445
60832
  /** Decoded connectivity / power status (HA petkit device-status enum).
@@ -60450,7 +60837,7 @@ object({
60450
60837
  * with `errorCode` for consumers that want the raw integer. */
60451
60838
  error: string().nullable(),
60452
60839
  /** Raw device error code (0 / null = no error). */
60453
- errorCode: number().nullable(),
60840
+ errorCode: number().nullable().meta(readingMeta("none")),
60454
60841
  /** True for D4S/D4SH dual-hopper hardware — gates the per-hopper UI. */
60455
60842
  isDualHopper: boolean(),
60456
60843
  /** Child-lock (manual-lock) setting — buttons on the unit are disabled. */
@@ -60460,7 +60847,7 @@ object({
60460
60847
  /** Play a chime when dispensing. */
60461
60848
  feedSound: boolean(),
60462
60849
  /** Speaker / prompt volume level (device-scaled integer). */
60463
- volume: number(),
60850
+ volume: number().meta(readingMeta("none")),
60464
60851
  /** Ms epoch when the slice was last refreshed from the cloud. */
60465
60852
  lastFetchedAt: number()
60466
60853
  });
@@ -60897,36 +61284,19 @@ method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema)
60897
61284
  });
60898
61285
  object({
60899
61286
  /** Instantaneous power draw in watts. */
60900
- watts: number().optional().meta({
60901
- unit: "W",
60902
- label: "Power"
60903
- }),
61287
+ watts: number().optional().meta(readingMeta("power", { label: "Power" })),
60904
61288
  /** Cumulative energy in kilowatt-hours since the meter was reset. */
60905
- kwhTotal: number().optional().meta({
60906
- unit: "kWh",
60907
- label: "Energy"
60908
- }),
61289
+ kwhTotal: number().optional().meta(readingMeta("energy", { label: "Energy" })),
60909
61290
  /** Voltage in volts. */
60910
- volts: number().optional(),
61291
+ volts: number().optional().meta(readingMeta("voltage")),
60911
61292
  /** Current in amperes. */
60912
- amps: number().optional(),
60913
- /** Apparent power in volt-amperes (W × power-factor reciprocal). */
60914
- va: number().optional(),
61293
+ amps: number().optional().meta(readingMeta("current")),
61294
+ /** Apparent power in volt-amperes. */
61295
+ va: number().optional().meta(readingMeta("apparent-power")),
60915
61296
  /** Power factor (0..1) if reported. */
60916
- powerFactor: number().min(0).max(1).optional(),
61297
+ powerFactor: number().min(0).max(1).optional().meta(readingMeta("ratio")),
60917
61298
  /** Ms epoch when the slice was last updated. */
60918
- lastFetchedAt: number(),
60919
- /** Live display unit of the single metric this slice carries (e.g. HA
60920
- * `attributes.unit_of_measurement` → 'V' / 'A' / 'W' / 'kW' / 'kWh').
60921
- * Each upstream `sensor.*` entity surfaces ONE device_class, so one
60922
- * unit per slice is unambiguous. The UI prefers this over the role's
60923
- * canonical unit so a 'kW' / 'Wh' feed renders verbatim. */
60924
- unit: string().optional(),
60925
- /** Suggested decimal places for numeric display.
60926
- * Populated live from the upstream source when provided (e.g. HA
60927
- * `attributes.suggested_display_precision`). Falls back to
60928
- * auto-formatting when absent. */
60929
- precision: number().int().min(0).max(10).optional()
61299
+ lastFetchedAt: number()
60930
61300
  });
60931
61301
  DeviceType.Sensor;
60932
61302
  /**
@@ -60947,11 +61317,11 @@ DeviceType.Sensor;
60947
61317
  */
60948
61318
  var GpsLocationSchema = object({
60949
61319
  /** Latitude in decimal degrees, -90..90. */
60950
- latitude: number().min(-90).max(90),
61320
+ latitude: number().min(-90).max(90).meta(readingMeta("angle")),
60951
61321
  /** Longitude in decimal degrees, -180..180. */
60952
- longitude: number().min(-180).max(180),
61322
+ longitude: number().min(-180).max(180).meta(readingMeta("angle")),
60953
61323
  /** Reported accuracy in meters (lower = better). */
60954
- accuracyMeters: number().nonnegative()
61324
+ accuracyMeters: number().nonnegative().meta(readingMeta("length"))
60955
61325
  });
60956
61326
  object({
60957
61327
  /** `home` / `not_home` / any user-defined zone name. */
@@ -60963,25 +61333,16 @@ object({
60963
61333
  gps: GpsLocationSchema.nullable(),
60964
61334
  /** Optional battery level of the tracking device (0..100). Null
60965
61335
  * when not reported. */
60966
- batteryPercent: number().min(0).max(100).nullable(),
61336
+ batteryPercent: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
60967
61337
  /** Ms epoch when the slice was last updated. */
60968
61338
  lastChangedAt: number()
60969
61339
  });
60970
61340
  DeviceType.Presence;
60971
61341
  object({
60972
- /** Current pressure in hPa. */
60973
- hpa: number(),
61342
+ /** Current pressure in hPa. `null` when the sample was refused (D393). */
61343
+ hpa: number().nullable().meta(readingMeta("pressure", { precision: 0 })),
60974
61344
  /** Ms epoch when the slice was last updated. */
60975
- lastFetchedAt: number(),
60976
- /** Live display unit from the upstream source (e.g. HA
60977
- * `attributes.unit_of_measurement`). The UI prefers this over the
60978
- * role's canonical unit. Absent → fall back to the canonical unit. */
60979
- unit: string().optional(),
60980
- /** Suggested decimal places for numeric display.
60981
- * Populated live from the upstream source when provided (e.g. HA
60982
- * `attributes.suggested_display_precision`). Falls back to
60983
- * auto-formatting when absent. */
60984
- precision: number().int().min(0).max(10).optional()
61345
+ lastFetchedAt: number()
60985
61346
  });
60986
61347
  DeviceType.Sensor;
60987
61348
  /**
@@ -61314,8 +61675,8 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
61314
61675
  }), _void(), { kind: "mutation" });
61315
61676
  var PtzAutotrackSettingsSchema = object({
61316
61677
  targetType: string().describe("Vendor target string (people/vehicle/pet); empty = camera default"),
61317
- stopDelaySeconds: number().int().min(0).max(300),
61318
- disappearDelaySeconds: number().int().min(0).max(300)
61678
+ stopDelaySeconds: number().int().min(0).max(300).meta(readingMeta("duration")),
61679
+ disappearDelaySeconds: number().int().min(0).max(300).meta(readingMeta("duration"))
61319
61680
  });
61320
61681
  /**
61321
61682
  * One option the camera advertises as a valid `targetType`. Drivers
@@ -61372,7 +61733,7 @@ object({
61372
61733
  /** null = unknown — never coerced to false (D393). */
61373
61734
  running: boolean().nullable(),
61374
61735
  /** Epoch ms the current boolean began; null while `running` is null. */
61375
- since: number().nullable(),
61736
+ since: number().nullable().meta(readingMeta("none")),
61376
61737
  source: RunningStateSourceSchema.meta({ label: "Source" }),
61377
61738
  phase: string().nullable(),
61378
61739
  /** null until a reading has been published (D393). */
@@ -62570,9 +62931,9 @@ var RecordTriggerSchema = _enum([
62570
62931
  */
62571
62932
  var RecordWindowSchema = object({
62572
62933
  trigger: RecordTriggerSchema,
62573
- day: number().int().min(0).max(6),
62574
- startMinute: number().int().min(0).max(1439),
62575
- endMinute: number().int().min(1).max(1440)
62934
+ day: number().int().min(0).max(6).meta(readingMeta("none")),
62935
+ startMinute: number().int().min(0).max(1439).meta(readingMeta("none")),
62936
+ endMinute: number().int().min(1).max(1440).meta(readingMeta("none"))
62576
62937
  });
62577
62938
  /** Status of one physical volume, as the camera itself describes it. */
62578
62939
  var OnboardStorageVolumeSchema = object({
@@ -62641,10 +63002,10 @@ object({
62641
63002
  /** Master "record to the card at all" switch. */
62642
63003
  enabled: boolean().nullable(),
62643
63004
  overwriteWhenFull: boolean().nullable(),
62644
- preRecordSec: number().nullable(),
62645
- postRecordSec: number().nullable(),
63005
+ preRecordSec: number().nullable().meta(readingMeta("duration")),
63006
+ postRecordSec: number().nullable().meta(readingMeta("duration")),
62646
63007
  /** Length of one recorded file, in minutes. */
62647
- segmentMinutes: number().nullable(),
63008
+ segmentMinutes: number().nullable().meta(readingMeta("none")),
62648
63009
  /** The primary track's weekly windows, flattened. */
62649
63010
  windows: array(RecordWindowSchema),
62650
63011
  /**
@@ -62660,7 +63021,7 @@ object({
62660
63021
  * provider reporting a non-zero count also reports the schedule as not
62661
63022
  * writable.
62662
63023
  */
62663
- unreadableWindows: number(),
63024
+ unreadableWindows: number().meta(readingMeta("count")),
62664
63025
  /**
62665
63026
  * The camera is scheduled to record and has NO usable storage.
62666
63027
  *
@@ -63297,7 +63658,7 @@ var CamStreamDescriptorSchema = object({
63297
63658
  url: string().optional(),
63298
63659
  codec: string().optional(),
63299
63660
  resolution: CamStreamResolutionSchema.optional(),
63300
- fps: number().positive().optional(),
63661
+ fps: number().positive().optional().meta(readingMeta("rate")),
63301
63662
  label: string().optional(),
63302
63663
  /** Device-level features (e.g. `battery-operated`) — drives broker policy. */
63303
63664
  deviceFeatures: array(string()).optional(),
@@ -63327,18 +63688,18 @@ var StreamProfileSchema = _enum([
63327
63688
  ]);
63328
63689
  /** The current encoding config of one stream profile. */
63329
63690
  var StreamProfileConfigSchema = object({
63330
- width: number(),
63331
- height: number(),
63691
+ width: number().meta(readingMeta("none")),
63692
+ height: number().meta(readingMeta("none")),
63332
63693
  codec: _enum(["h264", "h265"]),
63333
- framerate: number(),
63334
- bitrate: number(),
63694
+ framerate: number().meta(readingMeta("rate")),
63695
+ bitrate: number().meta(readingMeta("bitrate")),
63335
63696
  bitrateMode: _enum(["vbr", "cbr"]).optional(),
63336
63697
  encoderProfile: _enum([
63337
63698
  "high",
63338
63699
  "main",
63339
63700
  "baseline"
63340
63701
  ]).optional(),
63341
- gop: number().optional(),
63702
+ gop: number().optional().meta(readingMeta("none")),
63342
63703
  /**
63343
63704
  * Whether THIS profile currently carries an audio track. READ-ONLY here.
63344
63705
  *
@@ -63988,23 +64349,13 @@ object({
63988
64349
  });
63989
64350
  DeviceType.Sensor;
63990
64351
  object({
63991
- /** Current temperature in Celsius. */
63992
- celsius: number().meta({
63993
- unit: "°C",
64352
+ /** Current temperature in Celsius. `null` when the sample was refused (D393). */
64353
+ celsius: number().nullable().meta(readingMeta("temperature", {
64354
+ precision: 1,
63994
64355
  label: "Temperature"
63995
- }),
64356
+ })),
63996
64357
  /** Ms epoch when the slice was last updated (push or poll). */
63997
- lastFetchedAt: number(),
63998
- /** Live display unit from the upstream source (e.g. HA
63999
- * `attributes.unit_of_measurement`). The UI prefers this over the
64000
- * role's canonical unit, so a Fahrenheit feed renders '°F' not '°C'.
64001
- * Absent → the UI falls back to the role's canonical unit. */
64002
- unit: string().optional(),
64003
- /** Suggested decimal places for numeric display.
64004
- * Populated live from the upstream source when provided (e.g. HA
64005
- * `attributes.suggested_display_precision`). Falls back to
64006
- * auto-formatting when absent. */
64007
- precision: number().int().min(0).max(10).optional()
64358
+ lastFetchedAt: number()
64008
64359
  });
64009
64360
  DeviceType.Sensor, DeviceType.Thermostat;
64010
64361
  /**
@@ -64256,16 +64607,16 @@ object({
64256
64607
  ]),
64257
64608
  /** 0..100 battery percentage. Null when the device has no battery
64258
64609
  * reading. */
64259
- batteryLevel: number().min(0).max(100).nullable(),
64610
+ batteryLevel: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
64260
64611
  /** Current fan-speed token (provider-verbatim). Null when unknown or
64261
64612
  * the vacuum has no speed control. */
64262
64613
  fanSpeed: string().nullable(),
64263
64614
  /** Speed tokens the hardware accepts — drives the UI selector. */
64264
64615
  availableFanSpeeds: array(string()),
64265
64616
  /** 0..100 cleaning-completion percentage of the current task, or null. */
64266
- progressPercent: number().min(0).max(100).nullable(),
64617
+ progressPercent: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
64267
64618
  /** Current error code (0 / null = no error). */
64268
- errorCode: number().nullable(),
64619
+ errorCode: number().nullable().meta(readingMeta("none")),
64269
64620
  /** Human label for {@link errorCode}, or null when none / undecodable. */
64270
64621
  errorLabel: string().nullable(),
64271
64622
  /** Ms epoch when the slice was last updated. */
@@ -64304,7 +64655,7 @@ object({
64304
64655
  ]),
64305
64656
  /** 0 = fully closed, 100 = fully open. Null when the device has no
64306
64657
  * intermediate position surface. */
64307
- position: number().min(0).max(100).nullable(),
64658
+ position: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
64308
64659
  /** Ms epoch when the slice was last updated. */
64309
64660
  lastChangedAt: number()
64310
64661
  });
@@ -64332,9 +64683,9 @@ object({
64332
64683
  DeviceType.Sensor;
64333
64684
  object({
64334
64685
  /** Current measured temperature. Null when not reported. */
64335
- currentTemp: number().nullable(),
64686
+ currentTemp: number().nullable().meta(readingMeta("temperature")),
64336
64687
  /** Target temperature setpoint. Null when no setpoint surface. */
64337
- targetTemp: number().nullable(),
64688
+ targetTemp: number().nullable().meta(readingMeta("temperature")),
64338
64689
  /** Active operation mode = HA `state` (`eco` / `electric` / `gas` /
64339
64690
  * `heat_pump` / `high_demand` / `performance` / `off`). Null when the
64340
64691
  * device reports an unknown state. */
@@ -64345,9 +64696,9 @@ object({
64345
64696
  * has no away surface. */
64346
64697
  away: boolean().nullable(),
64347
64698
  /** HA `min_temp` attribute. Null when not reported. */
64348
- minTemp: number().nullable(),
64699
+ minTemp: number().nullable().meta(readingMeta("temperature")),
64349
64700
  /** HA `max_temp` attribute. Null when not reported. */
64350
- maxTemp: number().nullable(),
64701
+ maxTemp: number().nullable().meta(readingMeta("temperature")),
64351
64702
  /** Ms epoch when the slice was last updated. */
64352
64703
  lastChangedAt: number()
64353
64704
  });
@@ -64371,25 +64722,18 @@ DeviceType.WaterHeater, method(object({
64371
64722
  auth: "protected"
64372
64723
  });
64373
64724
  object({
64374
- /** Verbatim HA condition state (`sunny`, `cloudy`, `rainy`, …). Null
64375
- * when no condition has been reported yet. */
64725
+ /** Verbatim condition state (`sunny`, `cloudy`, `rainy`, …). Null when none yet. */
64376
64726
  condition: string().nullable(),
64377
- /** Current temperature in the reported unit. Null when not provided. */
64378
- temperature: number().nullable(),
64379
- /** Temperature unit string (e.g. `°C` / `°F`). Null when not provided. */
64380
- temperatureUnit: string().nullable(),
64727
+ /** Current temperature in Celsius. Null when not provided or refused. */
64728
+ temperature: number().nullable().meta(readingMeta("temperature", { precision: 1 })),
64381
64729
  /** Relative humidity (0..100). Null when not provided. */
64382
- humidity: number().min(0).max(100).nullable(),
64383
- /** Barometric pressure in the reported unit. Null when not provided. */
64384
- pressure: number().nullable(),
64385
- /** Pressure unit string (e.g. `hPa` / `inHg`). Null when not provided. */
64386
- pressureUnit: string().nullable(),
64387
- /** Wind speed in the reported unit. Null when not provided. */
64388
- windSpeed: number().nullable(),
64389
- /** Wind-speed unit string (e.g. `km/h` / `mph`). Null when not provided. */
64390
- windSpeedUnit: string().nullable(),
64730
+ humidity: number().min(0).max(100).nullable().meta(readingMeta("humidity")),
64731
+ /** Barometric pressure in hPa. Null when not provided or refused. */
64732
+ pressure: number().nullable().meta(readingMeta("pressure")),
64733
+ /** Wind speed in metres per second. Null when not provided or refused. */
64734
+ windSpeed: number().nullable().meta(readingMeta("speed")),
64391
64735
  /** Wind bearing in degrees (0..360, meteorological). Null when not provided. */
64392
- windBearing: number().nullable(),
64736
+ windBearing: number().nullable().meta(readingMeta("angle")),
64393
64737
  /** Ms epoch when the slice was last updated. */
64394
64738
  lastFetchedAt: number()
64395
64739
  });
@@ -65301,6 +65645,13 @@ Object.freeze({
65301
65645
  access: "view",
65302
65646
  role: "admin"
65303
65647
  },
65648
+ "addons.getPackageDocs": {
65649
+ capName: "addons",
65650
+ capScope: "system",
65651
+ addonId: null,
65652
+ access: "view",
65653
+ role: "admin"
65654
+ },
65304
65655
  "addons.getVersions": {
65305
65656
  capName: "addons",
65306
65657
  capScope: "system",
@@ -68409,6 +68760,20 @@ Object.freeze({
68409
68760
  access: "view",
68410
68761
  role: "viewer"
68411
68762
  },
68763
+ "groupCommands.getStatus": {
68764
+ capName: "group-commands",
68765
+ capScope: "device",
68766
+ addonId: null,
68767
+ access: "view",
68768
+ role: "viewer"
68769
+ },
68770
+ "groupStatus.getStatus": {
68771
+ capName: "group-status",
68772
+ capScope: "device",
68773
+ addonId: null,
68774
+ access: "view",
68775
+ role: "viewer"
68776
+ },
68412
68777
  "heatingValve.getStatus": {
68413
68778
  capName: "heating-valve",
68414
68779
  capScope: "device",
@@ -78231,6 +78596,37 @@ var SENSOR_CAP_VOCABULARY = {
78231
78596
  icon: "flame"
78232
78597
  }]
78233
78598
  },
78599
+ "group-commands": {
78600
+ scope: "device",
78601
+ noun: t("Group command", "Comando di gruppo")
78602
+ },
78603
+ "group-status": {
78604
+ scope: "device",
78605
+ noun: t("Group", "Gruppo"),
78606
+ state: [
78607
+ {
78608
+ kind: "numeric",
78609
+ field: "included",
78610
+ quantity: t("the members reporting", "i membri che rispondono"),
78611
+ label: t("Reporting", "Rispondono"),
78612
+ icon: "users"
78613
+ },
78614
+ {
78615
+ kind: "numeric",
78616
+ field: "excluded",
78617
+ quantity: t("the members left out", "i membri esclusi"),
78618
+ label: t("Excluded", "Esclusi"),
78619
+ icon: "users"
78620
+ },
78621
+ {
78622
+ kind: "numeric",
78623
+ field: "total",
78624
+ quantity: t("the member count", "il numero di membri"),
78625
+ label: t("Members", "Membri"),
78626
+ icon: "sigma"
78627
+ }
78628
+ ]
78629
+ },
78234
78630
  "humidity-sensor": {
78235
78631
  scope: "device",
78236
78632
  noun: t("Humidity", "Umidità"),
@@ -78264,7 +78660,6 @@ var SENSOR_CAP_VOCABULARY = {
78264
78660
  field: "value",
78265
78661
  quantity: t("the reading", "il valore"),
78266
78662
  label: t("Reading", "Valore"),
78267
- unitField: "unit",
78268
78663
  icon: "gauge"
78269
78664
  }]
78270
78665
  },
@@ -78400,7 +78795,7 @@ var SENSOR_CAP_VOCABULARY = {
78400
78795
  field: "temperature",
78401
78796
  quantity: t("the outdoor temperature", "la temperatura esterna"),
78402
78797
  label: t("Temperature", "Temperatura"),
78403
- unitField: "temperatureUnit",
78798
+ unit: "°C",
78404
78799
  icon: "thermometer"
78405
78800
  },
78406
78801
  {
@@ -78416,7 +78811,7 @@ var SENSOR_CAP_VOCABULARY = {
78416
78811
  field: "windSpeed",
78417
78812
  quantity: t("the wind speed", "la velocità del vento"),
78418
78813
  label: t("Wind", "Vento"),
78419
- unitField: "windSpeedUnit",
78814
+ unit: "m/s",
78420
78815
  icon: "wind"
78421
78816
  },
78422
78817
  {
@@ -78424,7 +78819,7 @@ var SENSOR_CAP_VOCABULARY = {
78424
78819
  field: "pressure",
78425
78820
  quantity: t("the air pressure", "la pressione atmosferica"),
78426
78821
  label: t("Pressure", "Pressione"),
78427
- unitField: "pressureUnit",
78822
+ unit: "hPa",
78428
78823
  icon: "gauge"
78429
78824
  }
78430
78825
  ]
@@ -79697,6 +80092,16 @@ Object.freeze({
79697
80092
  form: "single",
79698
80093
  optional: false
79699
80094
  }],
80095
+ "groupCommands.getStatus": [{
80096
+ name: "deviceId",
80097
+ form: "single",
80098
+ optional: false
80099
+ }],
80100
+ "groupStatus.getStatus": [{
80101
+ name: "deviceId",
80102
+ form: "single",
80103
+ optional: false
80104
+ }],
79700
80105
  "heatingValve.getStatus": [{
79701
80106
  name: "deviceId",
79702
80107
  form: "single",
@@ -81681,6 +82086,8 @@ new Map(Object.entries({
81681
82086
  "detection-blind": "device-events",
81682
82087
  "motion-noisy": "device-events",
81683
82088
  "motion-calm": "device-events",
82089
+ "package-llm-silent": "device-events",
82090
+ "package-llm-answered": "device-events",
81684
82091
  "recording-stalled": "device-events",
81685
82092
  "recording-healthy": "device-events",
81686
82093
  "recording-degraded": "device-events",
@@ -81764,6 +82171,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
81764
82171
  label: "Motion without a subject",
81765
82172
  kinds: ["motion-noisy", "motion-calm"]
81766
82173
  },
82174
+ {
82175
+ id: "package-llm",
82176
+ family: "device-events",
82177
+ label: "Package confirm",
82178
+ kinds: ["package-llm-silent", "package-llm-answered"]
82179
+ },
81767
82180
  {
81768
82181
  id: "recording",
81769
82182
  family: "device-events",
@@ -81945,6 +82358,8 @@ var DEVICE_EVENTS = [
81945
82358
  "detection-blind",
81946
82359
  "motion-noisy",
81947
82360
  "motion-calm",
82361
+ "package-llm-silent",
82362
+ "package-llm-answered",
81948
82363
  "recording-stalled",
81949
82364
  "recording-healthy",
81950
82365
  "recording-degraded",
@@ -82213,6 +82628,15 @@ new Map([
82213
82628
  snapshotLabel: "Cameras with constant motion now",
82214
82629
  snapshotSection: null
82215
82630
  },
82631
+ {
82632
+ id: "package-llm-confirm",
82633
+ family: "device-events",
82634
+ label: "Package confirm (not answering / answering again)",
82635
+ bad: ["package-llm-silent"],
82636
+ recovery: ["package-llm-answered"],
82637
+ snapshotLabel: "Cameras whose package confirm is not answering",
82638
+ snapshotSection: null
82639
+ },
82216
82640
  {
82217
82641
  id: "recording-health",
82218
82642
  family: "device-events",