@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.
@@ -73,7 +73,7 @@ function createApiDeviceGateway(deps) {
73
73
  };
74
74
  }
75
75
  //#endregion
76
- //#region ../types/dist/event-category-DHXxB8t9.mjs
76
+ //#region ../types/dist/event-category-CT-hz5Rb.mjs
77
77
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
78
78
  EventCategory["SystemBoot"] = "system.boot";
79
79
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -399,6 +399,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
399
399
  /** The recovery edge of {@link PipelineMotionNoisy}: the motion fell back, or a detection arrived. */
400
400
  EventCategory["PipelineMotionCalm"] = "pipeline.motion-calm";
401
401
  /**
402
+ * A camera's package LLM confirm has failed closed three times in a row
403
+ * (D931, 2026-10-26). One edge per camera until
404
+ * {@link PipelinePackageLlmAnswered}.
405
+ */
406
+ EventCategory["PipelinePackageLlmSilent"] = "pipeline.package-llm-silent";
407
+ /** The recovery edge of {@link PipelinePackageLlmSilent}: a confirm returned yes or no. */
408
+ EventCategory["PipelinePackageLlmAnswered"] = "pipeline.package-llm-answered";
409
+ /**
402
410
  * Per-camera pipeline config was mutated by the orchestrator
403
411
  * (a settings change via `setAgentInferenceDevices` /
404
412
  * `setCameraStepToggle` / `setCameraStepSettings`). Orchestrator
@@ -5508,7 +5516,7 @@ var ZodIssueCode = {
5508
5516
  var ZodFirstPartyTypeKind;
5509
5517
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5510
5518
  //#endregion
5511
- //#region ../types/dist/sleep-BErAxhul.mjs
5519
+ //#region ../types/dist/sleep-bykKrTgu.mjs
5512
5520
  /**
5513
5521
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5514
5522
  * window to float samples (D455).
@@ -7995,6 +8003,99 @@ var RecordKindDeclarationSchema = object({
7995
8003
  }).strict();
7996
8004
  /** The kind names: lower-case, dash separated, short enough for an index name. */
7997
8005
  var RecordKindNameSchema = string().regex(/^[a-z][a-z0-9-]{0,47}$/);
8006
+ var READING_QUANTITIES = [
8007
+ "temperature",
8008
+ "pressure",
8009
+ "speed",
8010
+ "precipitation",
8011
+ "precipitation-rate",
8012
+ "length",
8013
+ "area",
8014
+ "illuminance",
8015
+ "irradiance",
8016
+ "power",
8017
+ "energy",
8018
+ "voltage",
8019
+ "current",
8020
+ "apparent-power",
8021
+ "humidity",
8022
+ "percentage",
8023
+ "concentration-volume",
8024
+ "concentration-mass",
8025
+ "concentration-ppb",
8026
+ "volume",
8027
+ "duration",
8028
+ "duration-ms",
8029
+ "information",
8030
+ "sound-level",
8031
+ "signal-level",
8032
+ "colour-temperature",
8033
+ "angle",
8034
+ "bitrate",
8035
+ "rate",
8036
+ "mass",
8037
+ "index",
8038
+ "ratio",
8039
+ "count",
8040
+ "none",
8041
+ "device"
8042
+ ];
8043
+ var ReadingQuantitySchema = _enum(READING_QUANTITIES);
8044
+ new Set(READING_QUANTITIES);
8045
+ /**
8046
+ * Stored unit symbol for a quantity. `none` means the number is dimensionless
8047
+ * (or an index / ratio / count). `device` means the cap has no single unit.
8048
+ */
8049
+ var QUANTITY_BASE = {
8050
+ temperature: "°C",
8051
+ pressure: "hPa",
8052
+ speed: "m/s",
8053
+ precipitation: "mm",
8054
+ "precipitation-rate": "mm/h",
8055
+ length: "m",
8056
+ area: "m²",
8057
+ illuminance: "lx",
8058
+ irradiance: "W/m²",
8059
+ power: "W",
8060
+ energy: "kWh",
8061
+ voltage: "V",
8062
+ current: "A",
8063
+ "apparent-power": "VA",
8064
+ humidity: "%",
8065
+ percentage: "%",
8066
+ "concentration-volume": "ppm",
8067
+ "concentration-mass": "µg/m³",
8068
+ "concentration-ppb": "ppb",
8069
+ volume: "L",
8070
+ duration: "s",
8071
+ "duration-ms": "ms",
8072
+ information: "B",
8073
+ "sound-level": "dBFS",
8074
+ "signal-level": "dBm",
8075
+ "colour-temperature": "mired",
8076
+ angle: "°",
8077
+ bitrate: "kbps",
8078
+ rate: "fps",
8079
+ mass: "kg",
8080
+ index: "none",
8081
+ ratio: "none",
8082
+ count: "none",
8083
+ none: "none",
8084
+ device: "device"
8085
+ };
8086
+ /** The stored unit, or `undefined` when the quantity has no unit symbol. */
8087
+ function baseUnitOf(quantity) {
8088
+ const symbol = QUANTITY_BASE[quantity];
8089
+ if (symbol === "none" || symbol === "device") return void 0;
8090
+ return symbol;
8091
+ }
8092
+ function readingMeta(quantity, extras) {
8093
+ return {
8094
+ quantity,
8095
+ ...extras?.precision !== void 0 ? { precision: extras.precision } : {},
8096
+ ...extras?.label !== void 0 ? { label: extras.label } : {}
8097
+ };
8098
+ }
7998
8099
  /** Shared Zod schemas used across streaming capabilities. */
7999
8100
  var CamProfileSchema = _enum([
8000
8101
  "high",
@@ -8022,8 +8123,8 @@ var CamStreamKindSchema = _enum([
8022
8123
  "derived"
8023
8124
  ]);
8024
8125
  var CamStreamResolutionSchema = object({
8025
- width: number().int().positive(),
8026
- height: number().int().positive()
8126
+ width: number().int().positive().meta(readingMeta("none")),
8127
+ height: number().int().positive().meta(readingMeta("none"))
8027
8128
  });
8028
8129
  var CameraStreamSchema = object({
8029
8130
  /** Stable, provider-assigned id unique within the (deviceId) scope. */
@@ -8559,6 +8660,8 @@ var CAP_NAMES = Object.freeze([
8559
8660
  "filesystem-browse",
8560
8661
  "flood",
8561
8662
  "gas",
8663
+ "group-commands",
8664
+ "group-status",
8562
8665
  "heating-valve",
8563
8666
  "humidifier",
8564
8667
  "humidity-sensor",
@@ -8688,14 +8791,6 @@ Object.freeze({
8688
8791
  {
8689
8792
  "path": "aqi",
8690
8793
  "valueType": "number"
8691
- },
8692
- {
8693
- "path": "unit",
8694
- "valueType": "string"
8695
- },
8696
- {
8697
- "path": "precision",
8698
- "valueType": "number"
8699
8794
  }
8700
8795
  ],
8701
8796
  "alarm-panel": [
@@ -8731,20 +8826,10 @@ Object.freeze({
8731
8826
  "valueType": "boolean"
8732
8827
  }
8733
8828
  ],
8734
- "ambient-light-sensor": [
8735
- {
8736
- "path": "lux",
8737
- "valueType": "number"
8738
- },
8739
- {
8740
- "path": "unit",
8741
- "valueType": "string"
8742
- },
8743
- {
8744
- "path": "precision",
8745
- "valueType": "number"
8746
- }
8747
- ],
8829
+ "ambient-light-sensor": [{
8830
+ "path": "lux",
8831
+ "valueType": "number"
8832
+ }],
8748
8833
  "audio-metrics": [
8749
8834
  {
8750
8835
  "path": "ts",
@@ -8824,6 +8909,10 @@ Object.freeze({
8824
8909
  "path": "lastUpdated",
8825
8910
  "valueType": "number"
8826
8911
  },
8912
+ {
8913
+ "path": "volts",
8914
+ "valueType": "number"
8915
+ },
8827
8916
  {
8828
8917
  "path": "lastContactAt",
8829
8918
  "valueType": "number"
@@ -9066,10 +9155,6 @@ Object.freeze({
9066
9155
  "datetime"
9067
9156
  ]
9068
9157
  },
9069
- {
9070
- "path": "unit",
9071
- "valueType": "string"
9072
- },
9073
9158
  {
9074
9159
  "path": "min",
9075
9160
  "valueType": "number"
@@ -9081,19 +9166,6 @@ Object.freeze({
9081
9166
  {
9082
9167
  "path": "step",
9083
9168
  "valueType": "number"
9084
- },
9085
- {
9086
- "path": "precision",
9087
- "valueType": "number"
9088
- },
9089
- {
9090
- "path": "format",
9091
- "valueType": "enum",
9092
- "enumValues": [
9093
- "date",
9094
- "time",
9095
- "datetime"
9096
- ]
9097
9169
  }
9098
9170
  ],
9099
9171
  "cover": [
@@ -9334,13 +9406,8 @@ Object.freeze({
9334
9406
  "path": "value",
9335
9407
  "valueType": "string"
9336
9408
  }, {
9337
- "path": "format",
9338
- "valueType": "enum",
9339
- "enumValues": [
9340
- "date",
9341
- "time",
9342
- "datetime"
9343
- ]
9409
+ "path": "timestamp",
9410
+ "valueType": "boolean"
9344
9411
  }],
9345
9412
  "event-emitter": [
9346
9413
  {
@@ -9413,6 +9480,20 @@ Object.freeze({
9413
9480
  "path": "detected",
9414
9481
  "valueType": "boolean"
9415
9482
  }],
9483
+ "group-status": [
9484
+ {
9485
+ "path": "included",
9486
+ "valueType": "number"
9487
+ },
9488
+ {
9489
+ "path": "excluded",
9490
+ "valueType": "number"
9491
+ },
9492
+ {
9493
+ "path": "total",
9494
+ "valueType": "number"
9495
+ }
9496
+ ],
9416
9497
  "heating-valve": [{
9417
9498
  "path": "position",
9418
9499
  "valueType": "number"
@@ -9447,20 +9528,10 @@ Object.freeze({
9447
9528
  "valueType": "number"
9448
9529
  }
9449
9530
  ],
9450
- "humidity-sensor": [
9451
- {
9452
- "path": "percent",
9453
- "valueType": "number"
9454
- },
9455
- {
9456
- "path": "unit",
9457
- "valueType": "string"
9458
- },
9459
- {
9460
- "path": "precision",
9461
- "valueType": "number"
9462
- }
9463
- ],
9531
+ "humidity-sensor": [{
9532
+ "path": "percent",
9533
+ "valueType": "number"
9534
+ }],
9464
9535
  "image": [{
9465
9536
  "path": "url",
9466
9537
  "valueType": "string"
@@ -9799,20 +9870,10 @@ Object.freeze({
9799
9870
  "valueType": "boolean"
9800
9871
  }
9801
9872
  ],
9802
- "numeric-sensor": [
9803
- {
9804
- "path": "value",
9805
- "valueType": "number"
9806
- },
9807
- {
9808
- "path": "unit",
9809
- "valueType": "string"
9810
- },
9811
- {
9812
- "path": "precision",
9813
- "valueType": "number"
9814
- }
9815
- ],
9873
+ "numeric-sensor": [{
9874
+ "path": "value",
9875
+ "valueType": "number"
9876
+ }],
9816
9877
  "pet-feeder": [
9817
9878
  {
9818
9879
  "path": "foodLevel",
@@ -9904,14 +9965,6 @@ Object.freeze({
9904
9965
  {
9905
9966
  "path": "powerFactor",
9906
9967
  "valueType": "number"
9907
- },
9908
- {
9909
- "path": "unit",
9910
- "valueType": "string"
9911
- },
9912
- {
9913
- "path": "precision",
9914
- "valueType": "number"
9915
9968
  }
9916
9969
  ],
9917
9970
  "presence": [
@@ -9940,20 +9993,10 @@ Object.freeze({
9940
9993
  "valueType": "number"
9941
9994
  }
9942
9995
  ],
9943
- "pressure-sensor": [
9944
- {
9945
- "path": "hpa",
9946
- "valueType": "number"
9947
- },
9948
- {
9949
- "path": "unit",
9950
- "valueType": "string"
9951
- },
9952
- {
9953
- "path": "precision",
9954
- "valueType": "number"
9955
- }
9956
- ],
9996
+ "pressure-sensor": [{
9997
+ "path": "hpa",
9998
+ "valueType": "number"
9999
+ }],
9957
10000
  "privacy-mask": [{
9958
10001
  "path": "enabled",
9959
10002
  "valueType": "boolean"
@@ -10264,20 +10307,10 @@ Object.freeze({
10264
10307
  "path": "tampered",
10265
10308
  "valueType": "boolean"
10266
10309
  }],
10267
- "temperature-sensor": [
10268
- {
10269
- "path": "celsius",
10270
- "valueType": "number"
10271
- },
10272
- {
10273
- "path": "unit",
10274
- "valueType": "string"
10275
- },
10276
- {
10277
- "path": "precision",
10278
- "valueType": "number"
10279
- }
10280
- ],
10310
+ "temperature-sensor": [{
10311
+ "path": "celsius",
10312
+ "valueType": "number"
10313
+ }],
10281
10314
  "update": [
10282
10315
  {
10283
10316
  "path": "currentVersion",
@@ -10388,10 +10421,6 @@ Object.freeze({
10388
10421
  "path": "temperature",
10389
10422
  "valueType": "number"
10390
10423
  },
10391
- {
10392
- "path": "temperatureUnit",
10393
- "valueType": "string"
10394
- },
10395
10424
  {
10396
10425
  "path": "humidity",
10397
10426
  "valueType": "number"
@@ -10400,18 +10429,10 @@ Object.freeze({
10400
10429
  "path": "pressure",
10401
10430
  "valueType": "number"
10402
10431
  },
10403
- {
10404
- "path": "pressureUnit",
10405
- "valueType": "string"
10406
- },
10407
10432
  {
10408
10433
  "path": "windSpeed",
10409
10434
  "valueType": "number"
10410
10435
  },
10411
- {
10412
- "path": "windSpeedUnit",
10413
- "valueType": "string"
10414
- },
10415
10436
  {
10416
10437
  "path": "windBearing",
10417
10438
  "valueType": "number"
@@ -10814,7 +10835,7 @@ function errMsg(err) {
10814
10835
  return String(err);
10815
10836
  }
10816
10837
  //#endregion
10817
- //#region ../types/dist/composition-kEl9mevu.mjs
10838
+ //#region ../types/dist/composition-OhpuespA.mjs
10818
10839
  /**
10819
10840
  * The ffmpeg build every CamStack node downloads, per platform and arch.
10820
10841
  *
@@ -11569,15 +11590,74 @@ function validateExpressionSource(src) {
11569
11590
  }
11570
11591
  return null;
11571
11592
  }
11572
- /** A composed device's stableId is this prefix plus the block id. */
11573
- var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
11574
- /** Longest snippet a `code` source may carry (slice 4). */
11575
- var MAX_COMPOSITION_CODE_LENGTH = 2e4;
11593
+ /**
11594
+ * A composition source identity: `(addonId, stableId)`, never a numeric device
11595
+ * id. Split out so helper schemas can name it without a cycle through
11596
+ * `composition.ts` (D659).
11597
+ */
11576
11598
  var CompositionSourceRefSchema = object({
11577
11599
  /** The owning addon; `stableId` is unique only within it. */
11578
11600
  addonId: string().min(1),
11579
11601
  stableId: string().min(1)
11580
11602
  });
11603
+ var GROUP_TEMPLATE_IDS = [
11604
+ "temperature",
11605
+ "humidity",
11606
+ "pressure",
11607
+ "illuminance",
11608
+ "power",
11609
+ "energy",
11610
+ "battery",
11611
+ "numeric",
11612
+ "motion",
11613
+ "contact",
11614
+ "leak",
11615
+ "smoke",
11616
+ "occupancy",
11617
+ "binary",
11618
+ "switch",
11619
+ "light"
11620
+ ];
11621
+ var NUMERIC_AGGREGATES = [
11622
+ "mean",
11623
+ "median",
11624
+ "min",
11625
+ "max",
11626
+ "sum"
11627
+ ];
11628
+ var BINARY_AGGREGATES = ["any", "all"];
11629
+ /** How an actuator group decides it is on. Unknown members never count as off. */
11630
+ var ACTIVE_CRITERIA = ["at-least-one", "all"];
11631
+ var AGGREGATE_REDUCERS = [
11632
+ "mean",
11633
+ "median",
11634
+ "min",
11635
+ "max",
11636
+ "sum",
11637
+ "any",
11638
+ "all"
11639
+ ];
11640
+ var GroupTemplateIdSchema = _enum(GROUP_TEMPLATE_IDS);
11641
+ var AggregateReducerSchema = _enum(AGGREGATE_REDUCERS);
11642
+ var ActiveCriterionSchema = _enum(ACTIVE_CRITERIA);
11643
+ /** One member. The field is stored so occupancy can name motion or binary. */
11644
+ var HelperMemberSchema = object({
11645
+ source: CompositionSourceRefSchema,
11646
+ cap: string().min(1),
11647
+ fieldPath: string().min(1)
11648
+ });
11649
+ var HelperSpecSchema = discriminatedUnion("kind", [object({
11650
+ kind: literal("group"),
11651
+ templateId: GroupTemplateIdSchema,
11652
+ aggregate: AggregateReducerSchema,
11653
+ members: array(HelperMemberSchema).min(1).max(64),
11654
+ /** Actuator groups only. Readings leave this unset. */
11655
+ active: ActiveCriterionSchema.optional()
11656
+ })]);
11657
+ /** A composed device's stableId is this prefix plus the block id. */
11658
+ var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
11659
+ /** Longest snippet a `code` source may carry (slice 4). */
11660
+ var MAX_COMPOSITION_CODE_LENGTH = 2e4;
11581
11661
  /** One field of one capability of one source device. */
11582
11662
  var CompositionFieldReadSchema = object({
11583
11663
  source: CompositionSourceRefSchema,
@@ -11621,7 +11701,33 @@ var CompositionCodeSourceSchema = object({
11621
11701
  var CompositionFieldSourceSchema = discriminatedUnion("kind", [
11622
11702
  CompositionFromSourceSchema,
11623
11703
  CompositionExpressionSourceSchema,
11624
- CompositionCodeSourceSchema
11704
+ CompositionCodeSourceSchema,
11705
+ object({
11706
+ kind: literal("aggregate"),
11707
+ reducer: _enum([
11708
+ "mean",
11709
+ "median",
11710
+ "min",
11711
+ "max",
11712
+ "sum",
11713
+ "any",
11714
+ "all"
11715
+ ]),
11716
+ reads: array(CompositionFieldReadSchema).min(1).max(64),
11717
+ /** `value` is the reading; the others are the member counts. */
11718
+ publish: _enum([
11719
+ "value",
11720
+ "included",
11721
+ "excluded",
11722
+ "total"
11723
+ ]),
11724
+ /** What a `value` publish does when nobody is included. Counts ignore this. */
11725
+ empty: _enum([
11726
+ "null",
11727
+ "omit",
11728
+ "offline"
11729
+ ])
11730
+ })
11625
11731
  ]);
11626
11732
  var CompositionCommandTargetSchema = discriminatedUnion("kind", [object({
11627
11733
  kind: literal("forward"),
@@ -11667,7 +11773,13 @@ var CompositionSchema = object({
11667
11773
  kind: literal("existing"),
11668
11774
  device: CompositionSourceRefSchema
11669
11775
  })]),
11670
- features: array(CompositionFeatureSchema).min(1).max(16)
11776
+ features: array(CompositionFeatureSchema).min(1).max(16),
11777
+ /**
11778
+ * Present when the block is a helper template. Absent on a free
11779
+ * composition (the room example, device 4603). The editor reads this,
11780
+ * never the compiled features.
11781
+ */
11782
+ helper: HelperSpecSchema.optional()
11671
11783
  }).superRefine((composition, ctx) => {
11672
11784
  const seen = /* @__PURE__ */ new Set();
11673
11785
  composition.features.forEach((feature, index) => {
@@ -17912,7 +18024,11 @@ var CompositionProblemSchema = object({
17912
18024
  "item-field-reserved",
17913
18025
  "target-missing",
17914
18026
  "target-unreadable",
17915
- "not-replaceable"
18027
+ "not-replaceable",
18028
+ "native-capability-replace",
18029
+ "mixed-quantity",
18030
+ "helper-mismatch",
18031
+ "member-constraint"
17916
18032
  ]),
17917
18033
  path: string(),
17918
18034
  message: string()
@@ -17933,7 +18049,8 @@ var CompositionUnavailableModeSchema = _enum([
17933
18049
  "null",
17934
18050
  "offline",
17935
18051
  "unknown",
17936
- "release"
18052
+ "release",
18053
+ "omit"
17937
18054
  ]);
17938
18055
  /**
17939
18056
  * `derived` reads a source · `clock` reads only `now`, recomputed when a sibling
@@ -17970,9 +18087,11 @@ var CompositionFieldPlanSchema = object({
17970
18087
  reads: array(CompositionFieldReadSchema)
17971
18088
  });
17972
18089
  /**
17973
- * What a feature does to its target (D663): `new` builds a capability on a new
17974
- * device; on an existing device it `add`s a capability the device lacks, or
17975
- * `replace`s named fields of one it has natively.
18090
+ * What a feature does to its target (D663, D944): `new` builds a capability on a
18091
+ * new device; on an existing device it `add`s a capability the device lacks.
18092
+ * Replacing a capability the device already serves is refused
18093
+ * (`native-capability-replace`), not planned. `replace` remains on the claim
18094
+ * wire for a claim the hub already holds.
17976
18095
  */
17977
18096
  var CompositionFeatureModeSchema = _enum([
17978
18097
  "new",
@@ -18145,6 +18264,275 @@ Object.freeze({
18145
18264
  result: ["number", "null"]
18146
18265
  }
18147
18266
  });
18267
+ /**
18268
+ * One catalog row per base reading a group helper can build (D944 §3).
18269
+ * Data, not a form default written into the block.
18270
+ */
18271
+ var NOW = {
18272
+ fieldPath: "lastFetchedAt",
18273
+ expr: "now"
18274
+ };
18275
+ var CHANGED = {
18276
+ fieldPath: "lastChangedAt",
18277
+ expr: "now"
18278
+ };
18279
+ function numeric(input) {
18280
+ return {
18281
+ ...input,
18282
+ family: "numeric",
18283
+ deviceType: DeviceType.Sensor,
18284
+ memberDeviceType: DeviceType.Sensor,
18285
+ commandCaps: [],
18286
+ baseUnit: baseUnitOf(input.quantity),
18287
+ aggregates: NUMERIC_AGGREGATES,
18288
+ accept: [{
18289
+ cap: input.outputCap,
18290
+ fieldPath: input.outputField
18291
+ }]
18292
+ };
18293
+ }
18294
+ function binary(input) {
18295
+ return {
18296
+ ...input,
18297
+ family: "binary",
18298
+ deviceType: DeviceType.Sensor,
18299
+ memberDeviceType: DeviceType.Sensor,
18300
+ commandCaps: [],
18301
+ quantity: "none",
18302
+ baseUnit: void 0,
18303
+ aggregates: BINARY_AGGREGATES,
18304
+ empty: "offline"
18305
+ };
18306
+ }
18307
+ var GROUP_TEMPLATES = [
18308
+ numeric({
18309
+ id: "temperature",
18310
+ summary: "Mean, median, min, max or sum of temperatures. Offline and unknown members are left out, never read as 0 °C.",
18311
+ role: DeviceRole.TemperatureSensor,
18312
+ outputCap: "temperature-sensor",
18313
+ outputField: "celsius",
18314
+ quantity: "temperature",
18315
+ defaultAggregate: "mean",
18316
+ empty: "null",
18317
+ companions: [NOW]
18318
+ }),
18319
+ numeric({
18320
+ id: "humidity",
18321
+ summary: "Humidity in percent. Offline and unknown members are left out, never read as 0 %.",
18322
+ role: DeviceRole.HumiditySensor,
18323
+ outputCap: "humidity-sensor",
18324
+ outputField: "percent",
18325
+ quantity: "humidity",
18326
+ defaultAggregate: "mean",
18327
+ empty: "null",
18328
+ companions: [NOW]
18329
+ }),
18330
+ numeric({
18331
+ id: "pressure",
18332
+ summary: "Pressure in hectopascals. Offline and unknown members are left out, never read as 0 hPa.",
18333
+ role: DeviceRole.PressureSensor,
18334
+ outputCap: "pressure-sensor",
18335
+ outputField: "hpa",
18336
+ quantity: "pressure",
18337
+ defaultAggregate: "mean",
18338
+ empty: "null",
18339
+ companions: [NOW]
18340
+ }),
18341
+ numeric({
18342
+ id: "illuminance",
18343
+ summary: "Illuminance in lux. Offline and unknown members are left out, never read as 0 lx.",
18344
+ role: DeviceRole.AmbientLightSensor,
18345
+ outputCap: "ambient-light-sensor",
18346
+ outputField: "lux",
18347
+ quantity: "illuminance",
18348
+ defaultAggregate: "mean",
18349
+ empty: "null",
18350
+ companions: [NOW]
18351
+ }),
18352
+ numeric({
18353
+ id: "power",
18354
+ summary: "Power in watts, summed by default. Nobody reporting omits the key rather than writing 0 W.",
18355
+ role: DeviceRole.PowerSensor,
18356
+ outputCap: "power-meter",
18357
+ outputField: "watts",
18358
+ quantity: "power",
18359
+ defaultAggregate: "sum",
18360
+ empty: "omit",
18361
+ companions: [NOW]
18362
+ }),
18363
+ numeric({
18364
+ id: "energy",
18365
+ summary: "Energy in kilowatt-hours, summed by default. Nobody reporting omits the key rather than writing 0 kWh.",
18366
+ role: DeviceRole.EnergySensor,
18367
+ outputCap: "power-meter",
18368
+ outputField: "kwhTotal",
18369
+ quantity: "energy",
18370
+ defaultAggregate: "sum",
18371
+ empty: "omit",
18372
+ companions: [NOW]
18373
+ }),
18374
+ numeric({
18375
+ id: "battery",
18376
+ summary: "Battery charge in percent. Offline and unknown members are left out, never read as 0 %.",
18377
+ role: DeviceRole.BatterySensor,
18378
+ outputCap: "battery",
18379
+ outputField: "percentage",
18380
+ quantity: "percentage",
18381
+ defaultAggregate: "mean",
18382
+ empty: "null",
18383
+ companions: [
18384
+ {
18385
+ fieldPath: "charging",
18386
+ expr: "\"unknown\""
18387
+ },
18388
+ {
18389
+ fieldPath: "sleeping",
18390
+ expr: "false"
18391
+ },
18392
+ {
18393
+ fieldPath: "lastUpdated",
18394
+ expr: "now"
18395
+ }
18396
+ ]
18397
+ }),
18398
+ numeric({
18399
+ id: "numeric",
18400
+ summary: "A numeric reading in the members’ shared quantity. Mixed quantities are refused. Nobody reporting publishes null, not 0.",
18401
+ role: DeviceRole.NumericSensor,
18402
+ outputCap: "numeric-sensor",
18403
+ outputField: "value",
18404
+ quantity: "device",
18405
+ defaultAggregate: "mean",
18406
+ empty: "null",
18407
+ companions: [NOW]
18408
+ }),
18409
+ binary({
18410
+ id: "motion",
18411
+ summary: "Any or all motion. Offline and unknown members are left out, never read as off. Nobody reporting takes the device offline.",
18412
+ role: DeviceRole.MotionSensor,
18413
+ outputCap: "motion",
18414
+ outputField: "detected",
18415
+ defaultAggregate: "any",
18416
+ accept: [{
18417
+ cap: "motion",
18418
+ fieldPath: "detected"
18419
+ }],
18420
+ companions: [{
18421
+ fieldPath: "lastDetectedAt",
18422
+ expr: "null"
18423
+ }, {
18424
+ fieldPath: "autoClearAfterMs",
18425
+ expr: "null"
18426
+ }]
18427
+ }),
18428
+ binary({
18429
+ id: "contact",
18430
+ summary: "Any or all open contacts. Offline and unknown members are left out, never read as closed.",
18431
+ role: DeviceRole.ContactSensor,
18432
+ outputCap: "contact",
18433
+ outputField: "entryOpen",
18434
+ defaultAggregate: "any",
18435
+ accept: [{
18436
+ cap: "contact",
18437
+ fieldPath: "entryOpen"
18438
+ }],
18439
+ companions: [CHANGED]
18440
+ }),
18441
+ binary({
18442
+ id: "leak",
18443
+ summary: "Any or all leak detections. Offline and unknown members are left out, never read as dry.",
18444
+ role: DeviceRole.LeakSensor,
18445
+ outputCap: "flood",
18446
+ outputField: "flooded",
18447
+ defaultAggregate: "any",
18448
+ accept: [{
18449
+ cap: "flood",
18450
+ fieldPath: "flooded"
18451
+ }],
18452
+ companions: [CHANGED]
18453
+ }),
18454
+ binary({
18455
+ id: "smoke",
18456
+ summary: "Any or all smoke detections. Offline and unknown members are left out, never read as clear.",
18457
+ role: DeviceRole.SmokeSensor,
18458
+ outputCap: "smoke",
18459
+ outputField: "detected",
18460
+ defaultAggregate: "any",
18461
+ accept: [{
18462
+ cap: "smoke",
18463
+ fieldPath: "detected"
18464
+ }],
18465
+ companions: [CHANGED]
18466
+ }),
18467
+ binary({
18468
+ id: "occupancy",
18469
+ summary: "Any or all of motion or binary sensors, published as a binary. Presence zones are not aggregated. Nobody reporting is offline, not off.",
18470
+ role: DeviceRole.BinarySensor,
18471
+ outputCap: "binary",
18472
+ outputField: "on",
18473
+ defaultAggregate: "any",
18474
+ accept: [{
18475
+ cap: "motion",
18476
+ fieldPath: "detected"
18477
+ }, {
18478
+ cap: "binary",
18479
+ fieldPath: "on"
18480
+ }],
18481
+ companions: [CHANGED]
18482
+ }),
18483
+ binary({
18484
+ id: "binary",
18485
+ summary: "Any or all generic binary sensors. Offline and unknown members are left out, never read as off.",
18486
+ role: DeviceRole.BinarySensor,
18487
+ outputCap: "binary",
18488
+ outputField: "on",
18489
+ defaultAggregate: "any",
18490
+ accept: [{
18491
+ cap: "binary",
18492
+ fieldPath: "on"
18493
+ }],
18494
+ companions: [CHANGED]
18495
+ }),
18496
+ actuator({
18497
+ id: "switch",
18498
+ 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.",
18499
+ deviceType: DeviceType.Switch,
18500
+ outputCap: "switch",
18501
+ commandCaps: ["switch"]
18502
+ }),
18503
+ actuator({
18504
+ id: "light",
18505
+ 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.",
18506
+ deviceType: DeviceType.Light,
18507
+ outputCap: "switch",
18508
+ commandCaps: [
18509
+ "switch",
18510
+ "brightness",
18511
+ "color"
18512
+ ]
18513
+ })
18514
+ ];
18515
+ function actuator(input) {
18516
+ return {
18517
+ ...input,
18518
+ family: "actuator",
18519
+ role: void 0,
18520
+ memberDeviceType: input.deviceType,
18521
+ outputField: "on",
18522
+ quantity: "none",
18523
+ baseUnit: void 0,
18524
+ aggregates: BINARY_AGGREGATES,
18525
+ defaultAggregate: "any",
18526
+ empty: "offline",
18527
+ accept: [{
18528
+ cap: "switch",
18529
+ fieldPath: "on"
18530
+ }],
18531
+ companions: [CHANGED]
18532
+ };
18533
+ }
18534
+ new Map(GROUP_TEMPLATES.map((template) => [template.id, template]));
18535
+ DeviceFeature.LightColorRgb, DeviceFeature.LightColorHsv, DeviceFeature.LightColorMired;
18148
18536
  `${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
18149
18537
  /**
18150
18538
  * What a composition may BUILD on a device type (G2, D676): the caps a new
@@ -19858,12 +20246,12 @@ method(object({ deviceId: number().int().nonnegative() }), DeviceAdminLinkSchema
19858
20246
  * providers detect renames by matching `uniqueId` and patch `id`
19859
20247
  * in-place so dispatch keeps working.
19860
20248
  *
19861
- * **Rendering metadata is NOT stored here.** Display fields (`unit`,
19862
- * `precision`) live in the cap STATUS SLICE so they flow live with every
19863
- * state push and are the single source of truth. The `device_class` tag is
19864
- * an HA-specific input that is consumed at the discovery boundary
19865
- * (`ha-domain-mapping`) to derive the CamStack `DeviceRole`; it is never
19866
- * stored after that point.
20249
+ * **Display unit and precision are NOT stored here.** They are a read-time
20250
+ * preference (D944). A polymorphic reading stores its `quantity` here once,
20251
+ * at adopt, and a date/time value stores `dateTimeShape` the same way —
20252
+ * neither is repeated on each sample. The `device_class` tag is an
20253
+ * HA-specific input consumed at the discovery boundary (`ha-domain-mapping`)
20254
+ * to derive the CamStack `DeviceRole`; it is never stored after that point.
19867
20255
  *
19868
20256
  * The `raw` escape hatch carries provider-specific attributes that don't
19869
20257
  * fit the structured slots (HA `attributes` whitelist, Reolink `deviceCache`
@@ -19877,6 +20265,14 @@ var SourceInfoSchema = object({
19877
20265
  /** Immutable upstream identifier when available (HA `unique_id`, … ).
19878
20266
  * Used to detect rename when `id` changes. */
19879
20267
  uniqueId: string().optional(),
20268
+ /** Quantity of a polymorphic reading, written once at adopt (D944). */
20269
+ quantity: ReadingQuantitySchema.optional(),
20270
+ /** Date / time / datetime shape of a string reading, written once at adopt. */
20271
+ dateTimeShape: _enum([
20272
+ "date",
20273
+ "time",
20274
+ "datetime"
20275
+ ]).optional(),
19880
20276
  /** Provider-specific extras that don't fit the structured slots.
19881
20277
  * Whitelist what goes here per provider — do NOT dump entire HA
19882
20278
  * attribute blobs (would explode the meta JSON column). */
@@ -40814,7 +41210,8 @@ method(object({
40814
41210
  "enum"
40815
41211
  ]),
40816
41212
  enumValues: array(string()).optional(),
40817
- item: boolean().optional()
41213
+ item: boolean().optional(),
41214
+ quantity: ReadingQuantitySchema.optional()
40818
41215
  })).readonly(),
40819
41216
  itemArray: object({
40820
41217
  path: string(),
@@ -44614,8 +45011,8 @@ var MaskPolygonShapeSchema = object({
44614
45011
  /** Boolean cell grid — row-major, length === gridWidth*gridHeight. */
44615
45012
  var MaskGridShapeSchema = object({
44616
45013
  kind: literal("grid"),
44617
- gridWidth: number(),
44618
- gridHeight: number(),
45014
+ gridWidth: number().meta(readingMeta("none")),
45015
+ gridHeight: number().meta(readingMeta("none")),
44619
45016
  cells: array(boolean())
44620
45017
  });
44621
45018
  discriminatedUnion("kind", [
@@ -44727,6 +45124,8 @@ var NcSystemEventKindSchema = _enum([
44727
45124
  "detection-blind",
44728
45125
  "motion-noisy",
44729
45126
  "motion-calm",
45127
+ "package-llm-silent",
45128
+ "package-llm-answered",
44730
45129
  "recording-stalled",
44731
45130
  "recording-healthy",
44732
45131
  "recording-degraded",
@@ -55757,6 +56156,28 @@ var PackageVersionInfoSchema = object({
55757
56156
  deprecated: string().optional(),
55758
56157
  distTags: array(string()).readonly()
55759
56158
  });
56159
+ /**
56160
+ * One published document. `ok` is markdown from the registry. `missing` means
56161
+ * the registry answered and the file was not there. `error` is a registry or
56162
+ * tarball failure — never an empty string standing in for either.
56163
+ */
56164
+ var PackageDocBodySchema = discriminatedUnion("status", [
56165
+ object({
56166
+ status: literal("ok"),
56167
+ markdown: string()
56168
+ }),
56169
+ object({ status: literal("missing") }),
56170
+ object({
56171
+ status: literal("error"),
56172
+ message: string()
56173
+ })
56174
+ ]);
56175
+ var PackageDocsSchema = object({
56176
+ name: string(),
56177
+ version: string(),
56178
+ readme: PackageDocBodySchema,
56179
+ changelog: PackageDocBodySchema
56180
+ });
55760
56181
  var SearchResultSchema = object({
55761
56182
  name: string(),
55762
56183
  version: string(),
@@ -55975,7 +56396,10 @@ method(object({ nodeId: string().optional() }).optional(), array(AddonListItemSc
55975
56396
  }), object({ success: literal(true) }), {
55976
56397
  kind: "mutation",
55977
56398
  auth: "admin"
55978
- }), method(object({ name: string() }), array(PackageVersionInfoSchema).readonly()), method(object({ addonId: string() }), RestartAddonResultSchema, {
56399
+ }), method(object({ name: string() }), array(PackageVersionInfoSchema).readonly()), method(object({
56400
+ name: string().min(1),
56401
+ version: string().min(1).optional()
56402
+ }), PackageDocsSchema, { auth: "admin" }), method(object({ addonId: string() }), RestartAddonResultSchema, {
55979
56403
  kind: "mutation",
55980
56404
  auth: "admin"
55981
56405
  }), method(object({ packageName: string() }), object({ success: literal(true) }), {
@@ -56025,46 +56449,27 @@ method(object({ nodeId: string().optional() }).optional(), array(AddonListItemSc
56025
56449
  }), LogStreamEntrySchema, { kind: "subscription" });
56026
56450
  object({
56027
56451
  /** Carbon dioxide concentration in ppm. */
56028
- co2Ppm: number().min(0).optional(),
56452
+ co2Ppm: number().min(0).optional().meta(readingMeta("concentration-volume")),
56029
56453
  /** Total volatile organic compounds in ppb. */
56030
- vocPpb: number().min(0).optional(),
56454
+ vocPpb: number().min(0).optional().meta(readingMeta("concentration-ppb")),
56031
56455
  /** Particulate matter ≤ 2.5 μm in µg/m³. */
56032
- pm25: number().min(0).optional(),
56456
+ pm25: number().min(0).optional().meta(readingMeta("concentration-mass")),
56033
56457
  /** Particulate matter ≤ 10 μm in µg/m³. */
56034
- pm10: number().min(0).optional(),
56458
+ pm10: number().min(0).optional().meta(readingMeta("concentration-mass")),
56035
56459
  /** Composite AQI value (typically 0..500). */
56036
- aqi: number().optional(),
56460
+ aqi: number().optional().meta(readingMeta("index")),
56037
56461
  /** Ms epoch when the slice was last updated. */
56038
- lastFetchedAt: number(),
56039
- /** Live display unit of the single metric this slice carries (e.g. HA
56040
- * `attributes.unit_of_measurement` → 'ppm' / 'ppb' / 'µg/m³'). Each
56041
- * upstream `sensor.*` entity surfaces ONE device_class, so one unit
56042
- * per slice is unambiguous. */
56043
- unit: string().optional(),
56044
- /** Suggested decimal places for numeric display.
56045
- * Populated live from the upstream source when provided (e.g. HA
56046
- * `attributes.suggested_display_precision`). Falls back to
56047
- * auto-formatting when absent. */
56048
- precision: number().int().min(0).max(10).optional()
56462
+ lastFetchedAt: number()
56049
56463
  });
56050
56464
  DeviceType.Sensor;
56051
56465
  object({
56052
- /** Current illuminance in lux (lx). */
56053
- lux: number().min(0).meta({
56054
- unit: "lx",
56466
+ /** Current illuminance in lux (lx). `null` when the sample was refused (D393). */
56467
+ lux: number().min(0).nullable().meta(readingMeta("illuminance", {
56468
+ precision: 0,
56055
56469
  label: "Illuminance"
56056
- }),
56470
+ })),
56057
56471
  /** Ms epoch when the slice was last updated. */
56058
- lastFetchedAt: number(),
56059
- /** Live display unit from the upstream source (e.g. HA
56060
- * `attributes.unit_of_measurement`). The UI prefers this over the
56061
- * role's canonical unit. Absent → fall back to the canonical unit. */
56062
- unit: string().optional(),
56063
- /** Suggested decimal places for numeric display.
56064
- * Populated live from the upstream source when provided (e.g. HA
56065
- * `attributes.suggested_display_precision`). Falls back to
56066
- * auto-formatting when absent. */
56067
- precision: number().int().min(0).max(10).optional()
56472
+ lastFetchedAt: number()
56068
56473
  });
56069
56474
  DeviceType.Sensor;
56070
56475
  /**
@@ -56209,10 +56614,7 @@ var BatteryStatusSchema = object({
56209
56614
  * Consumers must SKIP a null rather than coerce it — `battery-band` already
56210
56615
  * declines to band a non-finite reading, which is the correct shape.
56211
56616
  */
56212
- percentage: number().min(0).max(100).nullable().meta({
56213
- unit: "%",
56214
- label: "Charge"
56215
- }),
56617
+ percentage: number().min(0).max(100).nullable().meta(readingMeta("percentage", { label: "Charge" })),
56216
56618
  /**
56217
56619
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
56218
56620
  * Reolink-specific for the Solar Panel 2 accessory (will become
@@ -56239,7 +56641,14 @@ var BatteryStatusSchema = object({
56239
56641
  */
56240
56642
  sleeping: boolean().meta({ label: "Sleeping" }),
56241
56643
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
56242
- lastUpdated: number(),
56644
+ lastUpdated: number().meta(readingMeta("none")),
56645
+ /**
56646
+ * Battery voltage in volts, for a cell the firmware reports as voltage
56647
+ * rather than a percentage (Ecowitt capacitor packs). Absent on cameras
56648
+ * that only report charge. A second reading on this cap, not a second
56649
+ * `numeric-sensor` on the same device.
56650
+ */
56651
+ volts: number().nullable().optional().meta(readingMeta("voltage", { label: "Voltage" })),
56243
56652
  /**
56244
56653
  * Ms epoch of the last time the device PROVED it was reachable — a
56245
56654
  * completed firmware round-trip, an observed wake, or an inbound push
@@ -56311,7 +56720,7 @@ DeviceType.Sensor;
56311
56720
  */
56312
56721
  var BrightnessStatusSchema = object({
56313
56722
  /** Current level as 0..100 inclusive. Firmware-reported. */
56314
- percentage: number().min(0).max(100),
56723
+ percentage: number().min(0).max(100).meta(readingMeta("percentage")),
56315
56724
  /** Ms epoch of the last operator-driven change. Useful for UI freshness. */
56316
56725
  lastChangedAt: number()
56317
56726
  });
@@ -56696,21 +57105,21 @@ object({
56696
57105
  /** Single setpoint in Celsius. Used by single-target modes
56697
57106
  * (heat / cool / dry). Null when the device is in a range mode
56698
57107
  * (`heat_cool`) or has no setpoint at all (`fan_only`/`off`). */
56699
- target: number().nullable(),
57108
+ target: number().nullable().meta(readingMeta("temperature")),
56700
57109
  /** Upper bound of the dual setpoint in Celsius. Populated only
56701
57110
  * in `heat_cool` mode. */
56702
- targetHigh: number().nullable(),
57111
+ targetHigh: number().nullable().meta(readingMeta("temperature")),
56703
57112
  /** Lower bound of the dual setpoint in Celsius. Populated only
56704
57113
  * in `heat_cool` mode. */
56705
- targetLow: number().nullable(),
57114
+ targetLow: number().nullable().meta(readingMeta("temperature")),
56706
57115
  /** Target relative humidity (0..100). Null when the device has no
56707
57116
  * humidity control. */
56708
- targetHumidity: number().min(0).max(100).nullable(),
57117
+ targetHumidity: number().min(0).max(100).nullable().meta(readingMeta("humidity")),
56709
57118
  /** Current measured temperature in Celsius. Read-only — pushed by
56710
57119
  * the device's internal sensor. */
56711
- currentTemp: number().nullable(),
57120
+ currentTemp: number().nullable().meta(readingMeta("temperature")),
56712
57121
  /** Current measured relative humidity (0..100). Read-only. */
56713
- currentHumidity: number().min(0).max(100).nullable(),
57122
+ currentHumidity: number().min(0).max(100).nullable().meta(readingMeta("humidity")),
56714
57123
  /** Vertical louver swing on/off. Null when the device has no vertical
56715
57124
  * swing surface (gate with `DeviceFeature.ClimateSwingVertical`). */
56716
57125
  swingVertical: boolean().nullable(),
@@ -56718,11 +57127,11 @@ object({
56718
57127
  * horizontal swing surface (gate with `DeviceFeature.ClimateSwingHorizontal`). */
56719
57128
  swingHorizontal: boolean().nullable(),
56720
57129
  /** Lowest setpoint the device accepts, Celsius. Absent / null = not reported. */
56721
- minTemp: number().nullable().optional(),
57130
+ minTemp: number().nullable().optional().meta(readingMeta("temperature")),
56722
57131
  /** Highest setpoint the device accepts, Celsius. Absent / null = not reported. */
56723
- maxTemp: number().nullable().optional(),
57132
+ maxTemp: number().nullable().optional().meta(readingMeta("temperature")),
56724
57133
  /** Setpoint granularity, Celsius (0.5, 1). Absent / null = not reported. */
56725
- tempStep: number().positive().nullable().optional(),
57134
+ tempStep: number().positive().nullable().optional().meta(readingMeta("temperature")),
56726
57135
  /** Ms epoch when the slice was last updated (push or command). */
56727
57136
  lastFetchedAt: number()
56728
57137
  });
@@ -56801,17 +57210,17 @@ DeviceType.Thermostat, DeviceType.Climate, method(object({
56801
57210
  * modes to expose in the picker without a slice fetch.
56802
57211
  */
56803
57212
  var RgbTripletSchema = object({
56804
- r: number().int().min(0).max(255),
56805
- g: number().int().min(0).max(255),
56806
- b: number().int().min(0).max(255)
57213
+ r: number().int().min(0).max(255).meta(readingMeta("none")),
57214
+ g: number().int().min(0).max(255).meta(readingMeta("none")),
57215
+ b: number().int().min(0).max(255).meta(readingMeta("none"))
56807
57216
  });
56808
57217
  var HsvTripletSchema = object({
56809
57218
  /** Hue in degrees, 0..360. */
56810
- h: number().min(0).max(360),
57219
+ h: number().min(0).max(360).meta(readingMeta("none")),
56811
57220
  /** Saturation as 0..100 inclusive. */
56812
- s: number().min(0).max(100),
57221
+ s: number().min(0).max(100).meta(readingMeta("none")),
56813
57222
  /** Value/brightness as 0..100 inclusive. */
56814
- v: number().min(0).max(100)
57223
+ v: number().min(0).max(100).meta(readingMeta("none"))
56815
57224
  });
56816
57225
  var ColorInputSchema = discriminatedUnion("mode", [
56817
57226
  object({
@@ -56840,7 +57249,7 @@ object({
56840
57249
  /** Populated when `mode === 'hsv'`. */
56841
57250
  hsv: HsvTripletSchema.optional(),
56842
57251
  /** Populated when `mode === 'mired'`. */
56843
- mireds: number().int().optional(),
57252
+ mireds: number().int().optional().meta(readingMeta("colour-temperature")),
56844
57253
  /** Ms epoch of the last operator-driven change. */
56845
57254
  lastChangedAt: number()
56846
57255
  });
@@ -56964,18 +57373,12 @@ _enum([
56964
57373
  "empty",
56965
57374
  "full"
56966
57375
  ]);
56967
- /** Units a remaining-life counter is reported in. Closed: the panel renders
56968
- * each. */
56969
- var ConsumableRemainingUnitSchema = _enum([
56970
- "days",
56971
- "hours",
56972
- "cycles"
56973
- ]);
56974
- /** Remaining life as a COUNT, not a percentage (the PetKit desiccant reports
56975
- * days). `value` null = unknown (D393). */
57376
+ /** Whether `remaining.value` is a duration in seconds or a dimensionless count. */
57377
+ var ConsumableRemainingKindSchema = _enum(["duration", "count"]);
57378
+ /** Remaining life. `value` null = unknown (D393). Duration is seconds. */
56976
57379
  var ConsumableRemainingSchema = object({
56977
- value: number().min(0).nullable(),
56978
- unit: ConsumableRemainingUnitSchema
57380
+ value: number().min(0).nullable().meta(readingMeta("device")),
57381
+ kind: ConsumableRemainingKindSchema
56979
57382
  });
56980
57383
  var ConsumablesStatusSchema = object({
56981
57384
  items: array(object({
@@ -56984,7 +57387,7 @@ var ConsumablesStatusSchema = object({
56984
57387
  /** Display name. */
56985
57388
  label: string().min(1),
56986
57389
  /** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
56987
- level: number().min(0).max(100).nullable(),
57390
+ level: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
56988
57391
  /** The provider's discrete verdict when known (binary mode). */
56989
57392
  status: ConsumableStatusSchema.nullable(),
56990
57393
  /** What the item is — decides whether low or full is bad. Absent = `wear`. */
@@ -57001,7 +57404,7 @@ var ConsumablesStatusSchema = object({
57001
57404
  })),
57002
57405
  lastChangedAt: number()
57003
57406
  });
57004
- Object.values(DeviceType), [...ConsumableRemainingUnitSchema.options], [...ConsumableStatusSchema.options], [...ConsumableKindSchema.options], [...ConsumableFormSchema.options];
57407
+ Object.values(DeviceType), [...ConsumableRemainingKindSchema.options], [...ConsumableStatusSchema.options], [...ConsumableKindSchema.options], [...ConsumableFormSchema.options];
57005
57408
  Object.values(DeviceType), method(object({
57006
57409
  deviceId: number().int().nonnegative(),
57007
57410
  key: string().min(1)
@@ -57026,39 +57429,17 @@ object({
57026
57429
  /** Current value. Numeric kind → number; select/text/datetime → string.
57027
57430
  * Datetime values are ISO 8601 strings (full timestamp, date-only,
57028
57431
  * or time-only — HA accepts all three forms). */
57029
- value: union([number(), string()]),
57432
+ value: union([number().meta(readingMeta("device")), string()]),
57030
57433
  /** Acceptable values when `kind === 'select'`. Empty for other kinds. */
57031
57434
  options: array(string()),
57032
57435
  /** Ms epoch when the slice was last updated. */
57033
57436
  lastChangedAt: number(),
57034
- /** Display unit-of-measurement (e.g. '°C', '%', 'lx').
57035
- * Populated live from HA `attributes.unit_of_measurement` on each push.
57036
- * Meaningful for `kind === 'numeric'`; absent for other kinds. */
57037
- unit: string().optional(),
57038
- /** Minimum allowed value. Populated live from HA `attributes.min`.
57039
- * Meaningful for `kind === 'numeric'`; absent for other kinds. */
57040
- min: number().optional(),
57041
- /** Maximum allowed value. Populated live from HA `attributes.max`.
57042
- * Meaningful for `kind === 'numeric'`; absent for other kinds. */
57043
- max: number().optional(),
57044
- /** Step increment. Populated live from HA `attributes.step`.
57045
- * Meaningful for `kind === 'numeric'`; absent for other kinds. */
57046
- step: number().optional(),
57047
- /** Suggested decimal places for numeric display. Populated live from HA
57048
- * `attributes.suggested_display_precision`, or derived from `step` when the
57049
- * HA attribute is absent. Meaningful for `kind === 'numeric'`; absent for
57050
- * other kinds. Falls back to auto-formatting when absent. */
57051
- precision: number().int().min(0).max(10).optional(),
57052
- /** Date-picker granularity for `kind === 'datetime'`. 'date' → date-only,
57053
- * 'time' → time-only, 'datetime' → full timestamp. Absent for other kinds
57054
- * (UI defaults to 'datetime'). Derived live from the device's HA domain
57055
- * (date.* / time.* / datetime.*) or, for input_datetime, from the entity's
57056
- * `has_date`/`has_time` attributes on each push. */
57057
- format: _enum([
57058
- "date",
57059
- "time",
57060
- "datetime"
57061
- ]).optional()
57437
+ /** Minimum allowed value, in the device quantity's base unit. */
57438
+ min: number().optional().meta(readingMeta("device")),
57439
+ /** Maximum allowed value, in the device quantity's base unit. */
57440
+ max: number().optional().meta(readingMeta("device")),
57441
+ /** Step increment, in the device quantity's base unit. */
57442
+ step: number().optional().meta(readingMeta("device"))
57062
57443
  });
57063
57444
  var ControlSetValueInputSchema = discriminatedUnion("kind", [
57064
57445
  object({
@@ -57096,9 +57477,9 @@ var CoverStatusSchema = object({
57096
57477
  ]),
57097
57478
  /** 0 = fully closed, 100 = fully open. Null when the device has
57098
57479
  * no intermediate position surface. */
57099
- position: number().min(0).max(100).nullable(),
57480
+ position: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
57100
57481
  /** 0 = closed slats, 100 = open slats. Null when no tilt support. */
57101
- tiltPosition: number().min(0).max(100).nullable(),
57482
+ tiltPosition: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
57102
57483
  /** Ms epoch when the slice was last updated. */
57103
57484
  lastChangedAt: number()
57104
57485
  });
@@ -57156,9 +57537,9 @@ var NormalizedRangeSchema$1 = object({
57156
57537
  object({
57157
57538
  mode: DayNightModeSchema,
57158
57539
  /** IR-cut trigger sensitivity, NORMALIZED 0–100 (higher = switches to night sooner). */
57159
- sensitivity: number().optional(),
57540
+ sensitivity: number().optional().meta(readingMeta("none")),
57160
57541
  /** Delay before the IR-cut filter flips, in seconds. */
57161
- switchDelaySec: number().optional(),
57542
+ switchDelaySec: number().optional().meta(readingMeta("duration")),
57162
57543
  lastFetchedAt: number()
57163
57544
  });
57164
57545
  /**
@@ -57313,11 +57694,11 @@ object({
57313
57694
  /** Feature keys of the programs the appliance currently offers — drives the UI selector. */
57314
57695
  availablePrograms: array(string()),
57315
57696
  /** Seconds remaining on the active cycle, or null when not running / not known. */
57316
- remainingSeconds: number().int().nonnegative().nullable(),
57697
+ remainingSeconds: number().int().nonnegative().nullable().meta(readingMeta("duration")),
57317
57698
  /** Seconds the delayed start is set to (time until the cycle starts), or null. */
57318
- delayedStartSeconds: number().int().nonnegative().nullable(),
57699
+ delayedStartSeconds: number().int().nonnegative().nullable().meta(readingMeta("duration")),
57319
57700
  /** Cycle completion 0..100, or null when not applicable. */
57320
- progressPercent: number().min(0).max(100).nullable(),
57701
+ progressPercent: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
57321
57702
  /** True when the door is reported open; null when the door state is not known. */
57322
57703
  doorOpen: boolean().nullable(),
57323
57704
  /** True when the door is latched (locked) during a cycle; null when not reported. */
@@ -57341,7 +57722,7 @@ object({
57341
57722
  /** True while the machine-care (descaling / cleaning-program) reminder is raised; false when clear; null when not reported. */
57342
57723
  machineCareDue: boolean().nullable(),
57343
57724
  /** Program runs left before the machine-care reminder is due; null when the appliance does not say. */
57344
- machineCareRemainingRuns: number().int().nonnegative().nullable(),
57725
+ machineCareRemainingRuns: number().int().nonnegative().nullable().meta(readingMeta("count")),
57345
57726
  /** Option states: null when the appliance does not expose the option or has not said. */
57346
57727
  halfLoad: boolean().nullable(),
57347
57728
  hygienePlus: boolean().nullable(),
@@ -57356,7 +57737,7 @@ object({
57356
57737
  /** Feature keys of the events currently raised (salt low, rinse aid low, program finished, …). */
57357
57738
  activeEvents: array(string()),
57358
57739
  /** Numeric error code when the appliance reports one; null otherwise. */
57359
- errorCode: number().nullable(),
57740
+ errorCode: number().nullable().meta(readingMeta("none")),
57360
57741
  /** Name of the raised alert-level event while the appliance is in error; null otherwise. */
57361
57742
  errorLabel: string().nullable(),
57362
57743
  /** Ms epoch of the last value received from the appliance; 0 = never. */
@@ -57502,24 +57883,14 @@ object({
57502
57883
  /** Ms epoch of the last press. null = never observed since this provider started. */
57503
57884
  lastPressedAt: number().nullable(),
57504
57885
  /** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
57505
- pressCountSinceStart: number()
57886
+ pressCountSinceStart: number().meta(readingMeta("count"))
57506
57887
  });
57507
57888
  object({
57508
57889
  deviceId: number(),
57509
57890
  timestamp: number()
57510
57891
  });
57511
57892
  DeviceType.Button, DeviceType.Camera;
57512
- /**
57513
- * Enum-state sensor — a string value picked from a finite option set.
57514
- * Drives HA `sensor` entries with `state_class: enum` (HVAC action
57515
- * states, weather conditions, contact-source channels, mode strings).
57516
- * The option set is stable across observations; it is persisted in the
57517
- * device config blob (via the control slice at adoption) and is NOT
57518
- * stored in `sourceInfo`.
57519
- */
57520
- /** Locale-render shape for an ISO `value` carried by a `DateTimeSensor`-role
57521
- * enum sensor: `date` (date-only), `time` (time-only), `datetime` (both). */
57522
- var EnumSensorDateTimeFormatSchema = _enum([
57893
+ _enum([
57523
57894
  "date",
57524
57895
  "time",
57525
57896
  "datetime"
@@ -57527,12 +57898,11 @@ var EnumSensorDateTimeFormatSchema = _enum([
57527
57898
  object({
57528
57899
  value: string(),
57529
57900
  /**
57530
- * Set for `DateTimeSensor`-role sensors so the UI renders the ISO `value`
57531
- * as a locale date/time/datetime; absent for plain enum sensors. HA
57532
- * `device_class=timestamp` → `'datetime'`, `device_class=date` → `'date'`,
57533
- * a time-only sensor → `'time'`.
57901
+ * Set when `value` is a timestamp rather than an enum state, so history
57902
+ * does not learn ISO strings as states. The display shape (date / time /
57903
+ * datetime) lives on `SourceInfo.dateTimeShape`, written once at adopt.
57534
57904
  */
57535
- format: EnumSensorDateTimeFormatSchema.optional(),
57905
+ timestamp: boolean().optional(),
57536
57906
  /** Ms epoch when the slice was last updated. */
57537
57907
  lastFetchedAt: number()
57538
57908
  });
@@ -57551,13 +57921,13 @@ var EventFireSchema = object({
57551
57921
  deviceId: number(),
57552
57922
  eventType: string(),
57553
57923
  data: record(string(), unknown()).nullable(),
57554
- timestamp: number(),
57555
- seq: number()
57924
+ timestamp: number().meta(readingMeta("none")),
57925
+ seq: number().meta(readingMeta("count"))
57556
57926
  });
57557
57927
  object({
57558
57928
  eventTypes: array(string()),
57559
57929
  lastEvent: EventFireSchema.nullable(),
57560
- eventCountSinceStart: number()
57930
+ eventCountSinceStart: number().meta(readingMeta("count"))
57561
57931
  });
57562
57932
  DeviceType.EventEmitter;
57563
57933
  var IdentitySchema = object({
@@ -57946,10 +58316,10 @@ var FanDirectionSchema = _enum(["forward", "reverse"]);
57946
58316
  object({
57947
58317
  /** Active speed as 0..100 inclusive. Null when the device has no
57948
58318
  * speed surface (single-speed fan). */
57949
- percentage: number().min(0).max(100).nullable(),
58319
+ percentage: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
57950
58320
  /** Speed granularity the device accepts (HA `percentage_step`, e.g. 25 for
57951
58321
  * a 4-speed fan). Absent when unknown — the UI then falls back to step 1. */
57952
- percentageStep: number().positive().optional(),
58322
+ percentageStep: number().positive().optional().meta(readingMeta("percentage")),
57953
58323
  /** Active preset mode (`auto` / `quiet` / `turbo` / vendor-specific)
57954
58324
  * — empty string when no preset is active or supported. */
57955
58325
  preset: string(),
@@ -58031,7 +58401,7 @@ var FeatureProbeStatusSchema = object({
58031
58401
  /** Camera/firmware model string. `null` when the firmware doesn't expose it. */
58032
58402
  model: string().nullable(),
58033
58403
  /** Channel count for NVR/Hub devices; `1` for standalone cameras; `null` pre-probe. */
58034
- channelCount: number().nullable(),
58404
+ channelCount: number().nullable().meta(readingMeta("count")),
58035
58405
  /**
58036
58406
  * Ms epoch of the last SUCCESSFUL probe. `0` before the first probe
58037
58407
  * completes — drivers' `getAccessoryChildren()` should treat zero as
@@ -58063,9 +58433,39 @@ object({
58063
58433
  lastChangedAt: number()
58064
58434
  });
58065
58435
  DeviceType.Sensor;
58436
+ object({
58437
+ /** One row per member that has been commanded. A later command replaces that member's row. */
58438
+ results: array(object({
58439
+ deviceId: number().int().nonnegative(),
58440
+ cap: string().min(1),
58441
+ method: string().min(1),
58442
+ ok: boolean(),
58443
+ error: string().optional(),
58444
+ /** Ms epoch of the attempt. */
58445
+ at: number()
58446
+ })) });
58447
+ DeviceType.Switch, DeviceType.Light;
58448
+ object({
58449
+ /** Members whose current value entered the aggregate. */
58450
+ included: number().int().nonnegative().meta(readingMeta("count", {
58451
+ precision: 0,
58452
+ label: "Reporting"
58453
+ })),
58454
+ /** Members left out: offline, unknown, or not a finite reading (D393). */
58455
+ excluded: number().int().nonnegative().meta(readingMeta("count", {
58456
+ precision: 0,
58457
+ label: "Excluded"
58458
+ })),
58459
+ /** `included` + `excluded`. */
58460
+ total: number().int().nonnegative().meta(readingMeta("count", {
58461
+ precision: 0,
58462
+ label: "Members"
58463
+ }))
58464
+ });
58465
+ DeviceType.Sensor, DeviceType.Switch, DeviceType.Light;
58066
58466
  object({
58067
58467
  /** Radiator valve opening 0 (closed) .. 100 (open). Null = not yet known. */
58068
- position: number().min(0).max(100).nullable(),
58468
+ position: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
58069
58469
  /** Ms epoch when the slice was last updated (push or poll). */
58070
58470
  lastFetchedAt: number()
58071
58471
  });
@@ -58074,9 +58474,9 @@ object({
58074
58474
  /** Whether the humidifier is currently on. */
58075
58475
  on: boolean(),
58076
58476
  /** Current measured relative humidity (0..100). Null when not reported. */
58077
- currentHumidity: number().min(0).max(100).nullable(),
58477
+ currentHumidity: number().min(0).max(100).nullable().meta(readingMeta("humidity")),
58078
58478
  /** Target relative humidity (0..100). Null when no setpoint surface. */
58079
- targetHumidity: number().min(0).max(100).nullable(),
58479
+ targetHumidity: number().min(0).max(100).nullable().meta(readingMeta("humidity")),
58080
58480
  /** Active mode (`auto` / `normal` / `baby` / vendor). Null when the
58081
58481
  * device has no mode surface. */
58082
58482
  mode: string().nullable(),
@@ -58086,9 +58486,9 @@ object({
58086
58486
  * `idle` / `off`). Null when the device doesn't report it. */
58087
58487
  action: string().nullable(),
58088
58488
  /** HA `min_humidity` attribute. Null → UI uses 0. */
58089
- minHumidity: number().nullable(),
58489
+ minHumidity: number().nullable().meta(readingMeta("humidity")),
58090
58490
  /** HA `max_humidity` attribute. Null → UI uses 100. */
58091
- maxHumidity: number().nullable(),
58491
+ maxHumidity: number().nullable().meta(readingMeta("humidity")),
58092
58492
  /** Ms epoch when the slice was last updated. */
58093
58493
  lastChangedAt: number()
58094
58494
  });
@@ -58112,22 +58512,13 @@ DeviceType.Humidifier, method(object({
58112
58512
  auth: "protected"
58113
58513
  });
58114
58514
  object({
58115
- /** Current relative humidity, 0..100. */
58116
- percent: number().min(0).max(100).meta({
58117
- unit: "%",
58515
+ /** Current relative humidity, 0..100. `null` when the sample was refused (D393). */
58516
+ percent: number().min(0).max(100).nullable().meta(readingMeta("humidity", {
58517
+ precision: 0,
58118
58518
  label: "Humidity"
58119
- }),
58519
+ })),
58120
58520
  /** Ms epoch when the slice was last updated. */
58121
- lastFetchedAt: number(),
58122
- /** Live display unit from the upstream source (e.g. HA
58123
- * `attributes.unit_of_measurement`). The UI prefers this over the
58124
- * role's canonical unit. Absent → fall back to the canonical unit. */
58125
- unit: string().optional(),
58126
- /** Suggested decimal places for numeric display.
58127
- * Populated live from the upstream source when provided (e.g. HA
58128
- * `attributes.suggested_display_precision`). Falls back to
58129
- * auto-formatting when absent. */
58130
- precision: number().int().min(0).max(10).optional()
58521
+ lastFetchedAt: number()
58131
58522
  });
58132
58523
  DeviceType.Sensor, DeviceType.Thermostat;
58133
58524
  object({
@@ -58135,7 +58526,7 @@ object({
58135
58526
  * entity exposes no `entity_picture` (yet). */
58136
58527
  url: string().nullable(),
58137
58528
  /** Ms epoch of the upstream last-updated timestamp. Null at cold-start. */
58138
- lastUpdated: number().nullable()
58529
+ lastUpdated: number().nullable().meta(readingMeta("none"))
58139
58530
  });
58140
58531
  DeviceType.Image;
58141
58532
  /**
@@ -58191,19 +58582,19 @@ var NormalizedRangeSchema = object({
58191
58582
  });
58192
58583
  object({
58193
58584
  /** Normalized 0–100. */
58194
- brightness: number().optional(),
58585
+ brightness: number().optional().meta(readingMeta("none")),
58195
58586
  /** Normalized 0–100. */
58196
- contrast: number().optional(),
58587
+ contrast: number().optional().meta(readingMeta("none")),
58197
58588
  /** Normalized 0–100. */
58198
- saturation: number().optional(),
58589
+ saturation: number().optional().meta(readingMeta("none")),
58199
58590
  /** Normalized 0–100. */
58200
- sharpness: number().optional(),
58591
+ sharpness: number().optional().meta(readingMeta("none")),
58201
58592
  mirror: boolean().optional(),
58202
58593
  flip: boolean().optional(),
58203
58594
  rotate: ImageRotateSchema.optional(),
58204
58595
  whiteBalance: WhiteBalanceModeSchema.optional(),
58205
58596
  /** Manual white-balance warmth, NORMALIZED 0–100. Meaningful only when `whiteBalance === 'manual'`. */
58206
- warmth: number().optional(),
58597
+ warmth: number().optional().meta(readingMeta("none")),
58207
58598
  exposureMode: ExposureModeSchema.optional(),
58208
58599
  backlightMode: BacklightModeSchema.optional(),
58209
58600
  lastFetchedAt: number()
@@ -58448,10 +58839,10 @@ var IntercomAbilitySchema = object({
58448
58839
  /** Codecs accepted by firmware, in preference order. Driver-authored strings. */
58449
58840
  codecs: array(string()),
58450
58841
  /** Sample rate (Hz) the firmware expects. Reolink typical: 16000. */
58451
- sampleRate: number(),
58842
+ sampleRate: number().meta(readingMeta("none")),
58452
58843
  duplex: _enum(["half", "full"]),
58453
58844
  /** Max in-flight audio backlog before drop (ms). Server uses this to bound latency. */
58454
- maxBacklogMs: number()
58845
+ maxBacklogMs: number().meta(readingMeta("duration-ms"))
58455
58846
  });
58456
58847
  var IntercomStatusSchema = object({
58457
58848
  /** True while a talk session is open. */
@@ -58562,13 +58953,13 @@ object({
58562
58953
  activity: LawnMowerActivitySchema,
58563
58954
  /** 0..100 battery percentage. Null when the device has no battery
58564
58955
  * reading. */
58565
- batteryLevel: number().min(0).max(100).nullable(),
58956
+ batteryLevel: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
58566
58957
  /** 0..100 mowing-completion percentage of the current task, or null when no
58567
58958
  * task is active / progress is unavailable. */
58568
- progressPercent: number().min(0).max(100).nullable(),
58959
+ progressPercent: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
58569
58960
  /** Current device/event code (dynamic — mostly status, sometimes an error),
58570
58961
  * or null when unknown. */
58571
- currentCode: number().nullable(),
58962
+ currentCode: number().nullable().meta(readingMeta("none")),
58572
58963
  /** Human label for {@link currentCode}, or null when undecodable. */
58573
58964
  currentCodeLabel: string().nullable(),
58574
58965
  /** Severity of {@link currentCode}. `error` (and often `warning`) warrants UI
@@ -59030,7 +59421,7 @@ object({
59030
59421
  state: MediaPlayerStateSchema,
59031
59422
  /** Volume as 0..100 inclusive. Null when the device has no volume
59032
59423
  * surface. Pair with `DeviceFeature.MediaPlayerVolume`. */
59033
- volumeLevel: number().min(0).max(100).nullable(),
59424
+ volumeLevel: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
59034
59425
  /** Mute toggle distinct from volume=0. Null when no mute surface.
59035
59426
  * Pair with `DeviceFeature.MediaPlayerMute`. */
59036
59427
  isMuted: boolean().nullable(),
@@ -59043,10 +59434,10 @@ object({
59043
59434
  currentMedia: MediaInfoSchema.nullable(),
59044
59435
  /** Current playback position in ms. Null when not seekable or
59045
59436
  * nothing is playing. Pair with `DeviceFeature.MediaPlayerSeek`. */
59046
- positionMs: number().int().nonnegative().nullable(),
59437
+ positionMs: number().int().nonnegative().nullable().meta(readingMeta("duration-ms")),
59047
59438
  /** Total duration of the current media in ms. Null when unknown
59048
59439
  * (live stream) or nothing is playing. */
59049
- durationMs: number().int().nonnegative().nullable(),
59440
+ durationMs: number().int().nonnegative().nullable().meta(readingMeta("duration-ms")),
59050
59441
  /** Shuffle toggle. Null when no shuffle surface.
59051
59442
  * Pair with `DeviceFeature.MediaPlayerShuffle`. */
59052
59443
  shuffle: boolean().nullable(),
@@ -59346,7 +59737,7 @@ object({
59346
59737
  * it, every provider seeded it at boot, and every session left it
59347
59738
  * `detected: true` after its detach.
59348
59739
  */
59349
- autoClearAfterMs: number().nullable()
59740
+ autoClearAfterMs: number().nullable().meta(readingMeta("duration-ms"))
59350
59741
  });
59351
59742
  /**
59352
59743
  * Payload of `motion.onMotionChanged` event + the corresponding bus
@@ -59396,7 +59787,7 @@ var MotionZoneRegionSchema = object({
59396
59787
  });
59397
59788
  object({
59398
59789
  enabled: boolean(),
59399
- sensitivity: number(),
59790
+ sensitivity: number().meta(readingMeta("none")),
59400
59791
  /** Grid region(s). Today exactly one `grid` shape. */
59401
59792
  regions: array(MotionZoneRegionSchema),
59402
59793
  lastFetchedAt: number()
@@ -59700,7 +60091,7 @@ var NavigationStatusSchema = object({
59700
60091
  following: boolean(),
59701
60092
  flash: boolean(),
59702
60093
  lightMode: NavigationLightModeSchema,
59703
- lightLevel: number().min(40).max(100),
60094
+ lightLevel: number().min(40).max(100).meta(readingMeta("none")),
59704
60095
  /** Ms epoch when the slice was last updated. */
59705
60096
  lastChangedAt: number()
59706
60097
  });
@@ -59746,13 +60137,13 @@ var NetworkLinkStatusSchema = object({
59746
60137
  * one whose reading has not landed must not be drawn at 0 %. Consumers
59747
60138
  * SKIP a null rather than coerce it.
59748
60139
  */
59749
- signalPercent: number().min(0).max(100).nullable(),
60140
+ signalPercent: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
59750
60141
  /** Raw received signal strength in dBm, when the firmware reports one. */
59751
- rssiDbm: number().optional(),
60142
+ rssiDbm: number().optional().meta(readingMeta("signal-level")),
59752
60143
  /** Network name of a wireless link, when the firmware reports it. */
59753
60144
  ssid: string().optional(),
59754
60145
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
59755
- lastUpdated: number()
60146
+ lastUpdated: number().meta(readingMeta("none"))
59756
60147
  });
59757
60148
  DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.Light, DeviceType.Lock, DeviceType.Siren, object({
59758
60149
  deviceId: number(),
@@ -60071,7 +60462,7 @@ object({
60071
60462
  lastError: string().nullable(),
60072
60463
  /** Number of deliveries currently buffered server-side (rate-limited
60073
60464
  * notifiers may queue). 0 when the provider sends synchronously. */
60074
- queueDepth: number().int().nonnegative(),
60465
+ queueDepth: number().int().nonnegative().meta(readingMeta("count")),
60075
60466
  /** Per-feature capability matrix — authoritative source for the
60076
60467
  * compose-form field gating. */
60077
60468
  supports: NotifierSupportsSchema
@@ -60121,15 +60512,8 @@ DeviceType.Notifier, method(NotifierSendInputSchema, NotifierSendResultSchema, {
60121
60512
  acceptedAt: number()
60122
60513
  });
60123
60514
  object({
60124
- value: number(),
60125
- /** Display unit-of-measurement (e.g. 'dBm', 's', 'rpm', 'steps').
60126
- * Populated live from the upstream source on each state push.
60127
- * Absent for unitless sensors. */
60128
- unit: string().optional(),
60129
- /** Suggested decimal places for numeric display.
60130
- * Populated live from the upstream source when provided.
60131
- * Falls back to auto-formatting when absent. */
60132
- precision: number().int().min(0).max(10).optional(),
60515
+ /** Reading in the device quantity's base unit. `null` when refused (D393). */
60516
+ value: number().nullable().meta(readingMeta("device")),
60133
60517
  /** Ms epoch when the slice was last updated. */
60134
60518
  lastFetchedAt: number()
60135
60519
  });
@@ -60419,23 +60803,26 @@ object({
60419
60803
  /** Food currently in the bowl (grams). Null when the device has not
60420
60804
  * reported a reading yet. On dual-hopper models this is the combined
60421
60805
  * bowl reading; per-hopper levels live in `food1`/`food2`. */
60422
- foodLevel: number().nullable(),
60806
+ foodLevel: number().nullable().meta(readingMeta("none")),
60423
60807
  /** Hopper-1 food level (grams) on dual-hopper feeders; null on
60424
60808
  * single-hopper models. */
60425
- food1: number().nullable(),
60809
+ food1: number().nullable().meta(readingMeta("none")),
60426
60810
  /** Hopper-2 food level (grams) on dual-hopper feeders; null on
60427
60811
  * single-hopper models. */
60428
- food2: number().nullable(),
60812
+ food2: number().nullable().meta(readingMeta("none")),
60429
60813
  /** Derived low-food flag — mirrors the HA `food_level` binary_sensor
60430
60814
  * (`device_class: problem`, on = low). True when the bowl is empty /
60431
60815
  * below the feeder's low threshold. */
60432
60816
  lowFood: boolean(),
60433
60817
  /** Battery charge 0..100 (%). Null on mains-powered models or when the
60434
60818
  * device has no battery reading. */
60435
- batteryPower: number().min(0).max(100).nullable(),
60436
- /** Days of desiccant life remaining. Null when the model has no
60437
- * desiccant sensor. */
60438
- desiccantLeftDays: number().nullable(),
60819
+ batteryPower: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
60820
+ /**
60821
+ * Desiccant life remaining, stored in seconds (duration base, D944).
60822
+ * Providers convert from the days the feeder reports. Null when the
60823
+ * model has no desiccant sensor.
60824
+ */
60825
+ desiccantLeftDays: number().nullable().meta(readingMeta("duration")),
60439
60826
  /** True while a feed is in progress. */
60440
60827
  feeding: boolean(),
60441
60828
  /** Decoded connectivity / power status (HA petkit device-status enum).
@@ -60446,7 +60833,7 @@ object({
60446
60833
  * with `errorCode` for consumers that want the raw integer. */
60447
60834
  error: string().nullable(),
60448
60835
  /** Raw device error code (0 / null = no error). */
60449
- errorCode: number().nullable(),
60836
+ errorCode: number().nullable().meta(readingMeta("none")),
60450
60837
  /** True for D4S/D4SH dual-hopper hardware — gates the per-hopper UI. */
60451
60838
  isDualHopper: boolean(),
60452
60839
  /** Child-lock (manual-lock) setting — buttons on the unit are disabled. */
@@ -60456,7 +60843,7 @@ object({
60456
60843
  /** Play a chime when dispensing. */
60457
60844
  feedSound: boolean(),
60458
60845
  /** Speaker / prompt volume level (device-scaled integer). */
60459
- volume: number(),
60846
+ volume: number().meta(readingMeta("none")),
60460
60847
  /** Ms epoch when the slice was last refreshed from the cloud. */
60461
60848
  lastFetchedAt: number()
60462
60849
  });
@@ -60893,36 +61280,19 @@ method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema)
60893
61280
  });
60894
61281
  object({
60895
61282
  /** Instantaneous power draw in watts. */
60896
- watts: number().optional().meta({
60897
- unit: "W",
60898
- label: "Power"
60899
- }),
61283
+ watts: number().optional().meta(readingMeta("power", { label: "Power" })),
60900
61284
  /** Cumulative energy in kilowatt-hours since the meter was reset. */
60901
- kwhTotal: number().optional().meta({
60902
- unit: "kWh",
60903
- label: "Energy"
60904
- }),
61285
+ kwhTotal: number().optional().meta(readingMeta("energy", { label: "Energy" })),
60905
61286
  /** Voltage in volts. */
60906
- volts: number().optional(),
61287
+ volts: number().optional().meta(readingMeta("voltage")),
60907
61288
  /** Current in amperes. */
60908
- amps: number().optional(),
60909
- /** Apparent power in volt-amperes (W × power-factor reciprocal). */
60910
- va: number().optional(),
61289
+ amps: number().optional().meta(readingMeta("current")),
61290
+ /** Apparent power in volt-amperes. */
61291
+ va: number().optional().meta(readingMeta("apparent-power")),
60911
61292
  /** Power factor (0..1) if reported. */
60912
- powerFactor: number().min(0).max(1).optional(),
61293
+ powerFactor: number().min(0).max(1).optional().meta(readingMeta("ratio")),
60913
61294
  /** Ms epoch when the slice was last updated. */
60914
- lastFetchedAt: number(),
60915
- /** Live display unit of the single metric this slice carries (e.g. HA
60916
- * `attributes.unit_of_measurement` → 'V' / 'A' / 'W' / 'kW' / 'kWh').
60917
- * Each upstream `sensor.*` entity surfaces ONE device_class, so one
60918
- * unit per slice is unambiguous. The UI prefers this over the role's
60919
- * canonical unit so a 'kW' / 'Wh' feed renders verbatim. */
60920
- unit: string().optional(),
60921
- /** Suggested decimal places for numeric display.
60922
- * Populated live from the upstream source when provided (e.g. HA
60923
- * `attributes.suggested_display_precision`). Falls back to
60924
- * auto-formatting when absent. */
60925
- precision: number().int().min(0).max(10).optional()
61295
+ lastFetchedAt: number()
60926
61296
  });
60927
61297
  DeviceType.Sensor;
60928
61298
  /**
@@ -60943,11 +61313,11 @@ DeviceType.Sensor;
60943
61313
  */
60944
61314
  var GpsLocationSchema = object({
60945
61315
  /** Latitude in decimal degrees, -90..90. */
60946
- latitude: number().min(-90).max(90),
61316
+ latitude: number().min(-90).max(90).meta(readingMeta("angle")),
60947
61317
  /** Longitude in decimal degrees, -180..180. */
60948
- longitude: number().min(-180).max(180),
61318
+ longitude: number().min(-180).max(180).meta(readingMeta("angle")),
60949
61319
  /** Reported accuracy in meters (lower = better). */
60950
- accuracyMeters: number().nonnegative()
61320
+ accuracyMeters: number().nonnegative().meta(readingMeta("length"))
60951
61321
  });
60952
61322
  object({
60953
61323
  /** `home` / `not_home` / any user-defined zone name. */
@@ -60959,25 +61329,16 @@ object({
60959
61329
  gps: GpsLocationSchema.nullable(),
60960
61330
  /** Optional battery level of the tracking device (0..100). Null
60961
61331
  * when not reported. */
60962
- batteryPercent: number().min(0).max(100).nullable(),
61332
+ batteryPercent: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
60963
61333
  /** Ms epoch when the slice was last updated. */
60964
61334
  lastChangedAt: number()
60965
61335
  });
60966
61336
  DeviceType.Presence;
60967
61337
  object({
60968
- /** Current pressure in hPa. */
60969
- hpa: number(),
61338
+ /** Current pressure in hPa. `null` when the sample was refused (D393). */
61339
+ hpa: number().nullable().meta(readingMeta("pressure", { precision: 0 })),
60970
61340
  /** Ms epoch when the slice was last updated. */
60971
- lastFetchedAt: number(),
60972
- /** Live display unit from the upstream source (e.g. HA
60973
- * `attributes.unit_of_measurement`). The UI prefers this over the
60974
- * role's canonical unit. Absent → fall back to the canonical unit. */
60975
- unit: string().optional(),
60976
- /** Suggested decimal places for numeric display.
60977
- * Populated live from the upstream source when provided (e.g. HA
60978
- * `attributes.suggested_display_precision`). Falls back to
60979
- * auto-formatting when absent. */
60980
- precision: number().int().min(0).max(10).optional()
61341
+ lastFetchedAt: number()
60981
61342
  });
60982
61343
  DeviceType.Sensor;
60983
61344
  /**
@@ -61310,8 +61671,8 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
61310
61671
  }), _void(), { kind: "mutation" });
61311
61672
  var PtzAutotrackSettingsSchema = object({
61312
61673
  targetType: string().describe("Vendor target string (people/vehicle/pet); empty = camera default"),
61313
- stopDelaySeconds: number().int().min(0).max(300),
61314
- disappearDelaySeconds: number().int().min(0).max(300)
61674
+ stopDelaySeconds: number().int().min(0).max(300).meta(readingMeta("duration")),
61675
+ disappearDelaySeconds: number().int().min(0).max(300).meta(readingMeta("duration"))
61315
61676
  });
61316
61677
  /**
61317
61678
  * One option the camera advertises as a valid `targetType`. Drivers
@@ -61368,7 +61729,7 @@ object({
61368
61729
  /** null = unknown — never coerced to false (D393). */
61369
61730
  running: boolean().nullable(),
61370
61731
  /** Epoch ms the current boolean began; null while `running` is null. */
61371
- since: number().nullable(),
61732
+ since: number().nullable().meta(readingMeta("none")),
61372
61733
  source: RunningStateSourceSchema.meta({ label: "Source" }),
61373
61734
  phase: string().nullable(),
61374
61735
  /** null until a reading has been published (D393). */
@@ -62566,9 +62927,9 @@ var RecordTriggerSchema = _enum([
62566
62927
  */
62567
62928
  var RecordWindowSchema = object({
62568
62929
  trigger: RecordTriggerSchema,
62569
- day: number().int().min(0).max(6),
62570
- startMinute: number().int().min(0).max(1439),
62571
- endMinute: number().int().min(1).max(1440)
62930
+ day: number().int().min(0).max(6).meta(readingMeta("none")),
62931
+ startMinute: number().int().min(0).max(1439).meta(readingMeta("none")),
62932
+ endMinute: number().int().min(1).max(1440).meta(readingMeta("none"))
62572
62933
  });
62573
62934
  /** Status of one physical volume, as the camera itself describes it. */
62574
62935
  var OnboardStorageVolumeSchema = object({
@@ -62637,10 +62998,10 @@ object({
62637
62998
  /** Master "record to the card at all" switch. */
62638
62999
  enabled: boolean().nullable(),
62639
63000
  overwriteWhenFull: boolean().nullable(),
62640
- preRecordSec: number().nullable(),
62641
- postRecordSec: number().nullable(),
63001
+ preRecordSec: number().nullable().meta(readingMeta("duration")),
63002
+ postRecordSec: number().nullable().meta(readingMeta("duration")),
62642
63003
  /** Length of one recorded file, in minutes. */
62643
- segmentMinutes: number().nullable(),
63004
+ segmentMinutes: number().nullable().meta(readingMeta("none")),
62644
63005
  /** The primary track's weekly windows, flattened. */
62645
63006
  windows: array(RecordWindowSchema),
62646
63007
  /**
@@ -62656,7 +63017,7 @@ object({
62656
63017
  * provider reporting a non-zero count also reports the schedule as not
62657
63018
  * writable.
62658
63019
  */
62659
- unreadableWindows: number(),
63020
+ unreadableWindows: number().meta(readingMeta("count")),
62660
63021
  /**
62661
63022
  * The camera is scheduled to record and has NO usable storage.
62662
63023
  *
@@ -63293,7 +63654,7 @@ var CamStreamDescriptorSchema = object({
63293
63654
  url: string().optional(),
63294
63655
  codec: string().optional(),
63295
63656
  resolution: CamStreamResolutionSchema.optional(),
63296
- fps: number().positive().optional(),
63657
+ fps: number().positive().optional().meta(readingMeta("rate")),
63297
63658
  label: string().optional(),
63298
63659
  /** Device-level features (e.g. `battery-operated`) — drives broker policy. */
63299
63660
  deviceFeatures: array(string()).optional(),
@@ -63323,18 +63684,18 @@ var StreamProfileSchema = _enum([
63323
63684
  ]);
63324
63685
  /** The current encoding config of one stream profile. */
63325
63686
  var StreamProfileConfigSchema = object({
63326
- width: number(),
63327
- height: number(),
63687
+ width: number().meta(readingMeta("none")),
63688
+ height: number().meta(readingMeta("none")),
63328
63689
  codec: _enum(["h264", "h265"]),
63329
- framerate: number(),
63330
- bitrate: number(),
63690
+ framerate: number().meta(readingMeta("rate")),
63691
+ bitrate: number().meta(readingMeta("bitrate")),
63331
63692
  bitrateMode: _enum(["vbr", "cbr"]).optional(),
63332
63693
  encoderProfile: _enum([
63333
63694
  "high",
63334
63695
  "main",
63335
63696
  "baseline"
63336
63697
  ]).optional(),
63337
- gop: number().optional(),
63698
+ gop: number().optional().meta(readingMeta("none")),
63338
63699
  /**
63339
63700
  * Whether THIS profile currently carries an audio track. READ-ONLY here.
63340
63701
  *
@@ -63984,23 +64345,13 @@ object({
63984
64345
  });
63985
64346
  DeviceType.Sensor;
63986
64347
  object({
63987
- /** Current temperature in Celsius. */
63988
- celsius: number().meta({
63989
- unit: "°C",
64348
+ /** Current temperature in Celsius. `null` when the sample was refused (D393). */
64349
+ celsius: number().nullable().meta(readingMeta("temperature", {
64350
+ precision: 1,
63990
64351
  label: "Temperature"
63991
- }),
64352
+ })),
63992
64353
  /** Ms epoch when the slice was last updated (push or poll). */
63993
- lastFetchedAt: number(),
63994
- /** Live display unit from the upstream source (e.g. HA
63995
- * `attributes.unit_of_measurement`). The UI prefers this over the
63996
- * role's canonical unit, so a Fahrenheit feed renders '°F' not '°C'.
63997
- * Absent → the UI falls back to the role's canonical unit. */
63998
- unit: string().optional(),
63999
- /** Suggested decimal places for numeric display.
64000
- * Populated live from the upstream source when provided (e.g. HA
64001
- * `attributes.suggested_display_precision`). Falls back to
64002
- * auto-formatting when absent. */
64003
- precision: number().int().min(0).max(10).optional()
64354
+ lastFetchedAt: number()
64004
64355
  });
64005
64356
  DeviceType.Sensor, DeviceType.Thermostat;
64006
64357
  /**
@@ -64252,16 +64603,16 @@ object({
64252
64603
  ]),
64253
64604
  /** 0..100 battery percentage. Null when the device has no battery
64254
64605
  * reading. */
64255
- batteryLevel: number().min(0).max(100).nullable(),
64606
+ batteryLevel: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
64256
64607
  /** Current fan-speed token (provider-verbatim). Null when unknown or
64257
64608
  * the vacuum has no speed control. */
64258
64609
  fanSpeed: string().nullable(),
64259
64610
  /** Speed tokens the hardware accepts — drives the UI selector. */
64260
64611
  availableFanSpeeds: array(string()),
64261
64612
  /** 0..100 cleaning-completion percentage of the current task, or null. */
64262
- progressPercent: number().min(0).max(100).nullable(),
64613
+ progressPercent: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
64263
64614
  /** Current error code (0 / null = no error). */
64264
- errorCode: number().nullable(),
64615
+ errorCode: number().nullable().meta(readingMeta("none")),
64265
64616
  /** Human label for {@link errorCode}, or null when none / undecodable. */
64266
64617
  errorLabel: string().nullable(),
64267
64618
  /** Ms epoch when the slice was last updated. */
@@ -64300,7 +64651,7 @@ object({
64300
64651
  ]),
64301
64652
  /** 0 = fully closed, 100 = fully open. Null when the device has no
64302
64653
  * intermediate position surface. */
64303
- position: number().min(0).max(100).nullable(),
64654
+ position: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
64304
64655
  /** Ms epoch when the slice was last updated. */
64305
64656
  lastChangedAt: number()
64306
64657
  });
@@ -64328,9 +64679,9 @@ object({
64328
64679
  DeviceType.Sensor;
64329
64680
  object({
64330
64681
  /** Current measured temperature. Null when not reported. */
64331
- currentTemp: number().nullable(),
64682
+ currentTemp: number().nullable().meta(readingMeta("temperature")),
64332
64683
  /** Target temperature setpoint. Null when no setpoint surface. */
64333
- targetTemp: number().nullable(),
64684
+ targetTemp: number().nullable().meta(readingMeta("temperature")),
64334
64685
  /** Active operation mode = HA `state` (`eco` / `electric` / `gas` /
64335
64686
  * `heat_pump` / `high_demand` / `performance` / `off`). Null when the
64336
64687
  * device reports an unknown state. */
@@ -64341,9 +64692,9 @@ object({
64341
64692
  * has no away surface. */
64342
64693
  away: boolean().nullable(),
64343
64694
  /** HA `min_temp` attribute. Null when not reported. */
64344
- minTemp: number().nullable(),
64695
+ minTemp: number().nullable().meta(readingMeta("temperature")),
64345
64696
  /** HA `max_temp` attribute. Null when not reported. */
64346
- maxTemp: number().nullable(),
64697
+ maxTemp: number().nullable().meta(readingMeta("temperature")),
64347
64698
  /** Ms epoch when the slice was last updated. */
64348
64699
  lastChangedAt: number()
64349
64700
  });
@@ -64367,25 +64718,18 @@ DeviceType.WaterHeater, method(object({
64367
64718
  auth: "protected"
64368
64719
  });
64369
64720
  object({
64370
- /** Verbatim HA condition state (`sunny`, `cloudy`, `rainy`, …). Null
64371
- * when no condition has been reported yet. */
64721
+ /** Verbatim condition state (`sunny`, `cloudy`, `rainy`, …). Null when none yet. */
64372
64722
  condition: string().nullable(),
64373
- /** Current temperature in the reported unit. Null when not provided. */
64374
- temperature: number().nullable(),
64375
- /** Temperature unit string (e.g. `°C` / `°F`). Null when not provided. */
64376
- temperatureUnit: string().nullable(),
64723
+ /** Current temperature in Celsius. Null when not provided or refused. */
64724
+ temperature: number().nullable().meta(readingMeta("temperature", { precision: 1 })),
64377
64725
  /** Relative humidity (0..100). Null when not provided. */
64378
- humidity: number().min(0).max(100).nullable(),
64379
- /** Barometric pressure in the reported unit. Null when not provided. */
64380
- pressure: number().nullable(),
64381
- /** Pressure unit string (e.g. `hPa` / `inHg`). Null when not provided. */
64382
- pressureUnit: string().nullable(),
64383
- /** Wind speed in the reported unit. Null when not provided. */
64384
- windSpeed: number().nullable(),
64385
- /** Wind-speed unit string (e.g. `km/h` / `mph`). Null when not provided. */
64386
- windSpeedUnit: string().nullable(),
64726
+ humidity: number().min(0).max(100).nullable().meta(readingMeta("humidity")),
64727
+ /** Barometric pressure in hPa. Null when not provided or refused. */
64728
+ pressure: number().nullable().meta(readingMeta("pressure")),
64729
+ /** Wind speed in metres per second. Null when not provided or refused. */
64730
+ windSpeed: number().nullable().meta(readingMeta("speed")),
64387
64731
  /** Wind bearing in degrees (0..360, meteorological). Null when not provided. */
64388
- windBearing: number().nullable(),
64732
+ windBearing: number().nullable().meta(readingMeta("angle")),
64389
64733
  /** Ms epoch when the slice was last updated. */
64390
64734
  lastFetchedAt: number()
64391
64735
  });
@@ -65297,6 +65641,13 @@ Object.freeze({
65297
65641
  access: "view",
65298
65642
  role: "admin"
65299
65643
  },
65644
+ "addons.getPackageDocs": {
65645
+ capName: "addons",
65646
+ capScope: "system",
65647
+ addonId: null,
65648
+ access: "view",
65649
+ role: "admin"
65650
+ },
65300
65651
  "addons.getVersions": {
65301
65652
  capName: "addons",
65302
65653
  capScope: "system",
@@ -68405,6 +68756,20 @@ Object.freeze({
68405
68756
  access: "view",
68406
68757
  role: "viewer"
68407
68758
  },
68759
+ "groupCommands.getStatus": {
68760
+ capName: "group-commands",
68761
+ capScope: "device",
68762
+ addonId: null,
68763
+ access: "view",
68764
+ role: "viewer"
68765
+ },
68766
+ "groupStatus.getStatus": {
68767
+ capName: "group-status",
68768
+ capScope: "device",
68769
+ addonId: null,
68770
+ access: "view",
68771
+ role: "viewer"
68772
+ },
68408
68773
  "heatingValve.getStatus": {
68409
68774
  capName: "heating-valve",
68410
68775
  capScope: "device",
@@ -78227,6 +78592,37 @@ var SENSOR_CAP_VOCABULARY = {
78227
78592
  icon: "flame"
78228
78593
  }]
78229
78594
  },
78595
+ "group-commands": {
78596
+ scope: "device",
78597
+ noun: t("Group command", "Comando di gruppo")
78598
+ },
78599
+ "group-status": {
78600
+ scope: "device",
78601
+ noun: t("Group", "Gruppo"),
78602
+ state: [
78603
+ {
78604
+ kind: "numeric",
78605
+ field: "included",
78606
+ quantity: t("the members reporting", "i membri che rispondono"),
78607
+ label: t("Reporting", "Rispondono"),
78608
+ icon: "users"
78609
+ },
78610
+ {
78611
+ kind: "numeric",
78612
+ field: "excluded",
78613
+ quantity: t("the members left out", "i membri esclusi"),
78614
+ label: t("Excluded", "Esclusi"),
78615
+ icon: "users"
78616
+ },
78617
+ {
78618
+ kind: "numeric",
78619
+ field: "total",
78620
+ quantity: t("the member count", "il numero di membri"),
78621
+ label: t("Members", "Membri"),
78622
+ icon: "sigma"
78623
+ }
78624
+ ]
78625
+ },
78230
78626
  "humidity-sensor": {
78231
78627
  scope: "device",
78232
78628
  noun: t("Humidity", "Umidità"),
@@ -78260,7 +78656,6 @@ var SENSOR_CAP_VOCABULARY = {
78260
78656
  field: "value",
78261
78657
  quantity: t("the reading", "il valore"),
78262
78658
  label: t("Reading", "Valore"),
78263
- unitField: "unit",
78264
78659
  icon: "gauge"
78265
78660
  }]
78266
78661
  },
@@ -78396,7 +78791,7 @@ var SENSOR_CAP_VOCABULARY = {
78396
78791
  field: "temperature",
78397
78792
  quantity: t("the outdoor temperature", "la temperatura esterna"),
78398
78793
  label: t("Temperature", "Temperatura"),
78399
- unitField: "temperatureUnit",
78794
+ unit: "°C",
78400
78795
  icon: "thermometer"
78401
78796
  },
78402
78797
  {
@@ -78412,7 +78807,7 @@ var SENSOR_CAP_VOCABULARY = {
78412
78807
  field: "windSpeed",
78413
78808
  quantity: t("the wind speed", "la velocità del vento"),
78414
78809
  label: t("Wind", "Vento"),
78415
- unitField: "windSpeedUnit",
78810
+ unit: "m/s",
78416
78811
  icon: "wind"
78417
78812
  },
78418
78813
  {
@@ -78420,7 +78815,7 @@ var SENSOR_CAP_VOCABULARY = {
78420
78815
  field: "pressure",
78421
78816
  quantity: t("the air pressure", "la pressione atmosferica"),
78422
78817
  label: t("Pressure", "Pressione"),
78423
- unitField: "pressureUnit",
78818
+ unit: "hPa",
78424
78819
  icon: "gauge"
78425
78820
  }
78426
78821
  ]
@@ -79693,6 +80088,16 @@ Object.freeze({
79693
80088
  form: "single",
79694
80089
  optional: false
79695
80090
  }],
80091
+ "groupCommands.getStatus": [{
80092
+ name: "deviceId",
80093
+ form: "single",
80094
+ optional: false
80095
+ }],
80096
+ "groupStatus.getStatus": [{
80097
+ name: "deviceId",
80098
+ form: "single",
80099
+ optional: false
80100
+ }],
79696
80101
  "heatingValve.getStatus": [{
79697
80102
  name: "deviceId",
79698
80103
  form: "single",
@@ -81677,6 +82082,8 @@ new Map(Object.entries({
81677
82082
  "detection-blind": "device-events",
81678
82083
  "motion-noisy": "device-events",
81679
82084
  "motion-calm": "device-events",
82085
+ "package-llm-silent": "device-events",
82086
+ "package-llm-answered": "device-events",
81680
82087
  "recording-stalled": "device-events",
81681
82088
  "recording-healthy": "device-events",
81682
82089
  "recording-degraded": "device-events",
@@ -81760,6 +82167,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
81760
82167
  label: "Motion without a subject",
81761
82168
  kinds: ["motion-noisy", "motion-calm"]
81762
82169
  },
82170
+ {
82171
+ id: "package-llm",
82172
+ family: "device-events",
82173
+ label: "Package confirm",
82174
+ kinds: ["package-llm-silent", "package-llm-answered"]
82175
+ },
81763
82176
  {
81764
82177
  id: "recording",
81765
82178
  family: "device-events",
@@ -81941,6 +82354,8 @@ var DEVICE_EVENTS = [
81941
82354
  "detection-blind",
81942
82355
  "motion-noisy",
81943
82356
  "motion-calm",
82357
+ "package-llm-silent",
82358
+ "package-llm-answered",
81944
82359
  "recording-stalled",
81945
82360
  "recording-healthy",
81946
82361
  "recording-degraded",
@@ -82209,6 +82624,15 @@ new Map([
82209
82624
  snapshotLabel: "Cameras with constant motion now",
82210
82625
  snapshotSection: null
82211
82626
  },
82627
+ {
82628
+ id: "package-llm-confirm",
82629
+ family: "device-events",
82630
+ label: "Package confirm (not answering / answering again)",
82631
+ bad: ["package-llm-silent"],
82632
+ recovery: ["package-llm-answered"],
82633
+ snapshotLabel: "Cameras whose package confirm is not answering",
82634
+ snapshotSection: null
82635
+ },
82212
82636
  {
82213
82637
  id: "recording-health",
82214
82638
  family: "device-events",