@camstack/addon-provider-dreame 0.2.156 → 0.2.158

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/addon.mjs CHANGED
@@ -41,7 +41,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
41
41
  var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
42
42
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
43
43
  //#endregion
44
- //#region ../types/dist/event-category-DHXxB8t9.mjs
44
+ //#region ../types/dist/event-category-CT-hz5Rb.mjs
45
45
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
46
46
  EventCategory["SystemBoot"] = "system.boot";
47
47
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -367,6 +367,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
367
367
  /** The recovery edge of {@link PipelineMotionNoisy}: the motion fell back, or a detection arrived. */
368
368
  EventCategory["PipelineMotionCalm"] = "pipeline.motion-calm";
369
369
  /**
370
+ * A camera's package LLM confirm has failed closed three times in a row
371
+ * (D931, 2026-10-26). One edge per camera until
372
+ * {@link PipelinePackageLlmAnswered}.
373
+ */
374
+ EventCategory["PipelinePackageLlmSilent"] = "pipeline.package-llm-silent";
375
+ /** The recovery edge of {@link PipelinePackageLlmSilent}: a confirm returned yes or no. */
376
+ EventCategory["PipelinePackageLlmAnswered"] = "pipeline.package-llm-answered";
377
+ /**
370
378
  * Per-camera pipeline config was mutated by the orchestrator
371
379
  * (a settings change via `setAgentInferenceDevices` /
372
380
  * `setCameraStepToggle` / `setCameraStepSettings`). Orchestrator
@@ -5476,7 +5484,7 @@ var ZodIssueCode$1 = {
5476
5484
  var ZodFirstPartyTypeKind$1;
5477
5485
  ZodFirstPartyTypeKind$1 || (ZodFirstPartyTypeKind$1 = {});
5478
5486
  //#endregion
5479
- //#region ../types/dist/sleep-CARd6wZF.mjs
5487
+ //#region ../types/dist/sleep--jXS9hWo.mjs
5480
5488
  /**
5481
5489
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5482
5490
  * window to float samples (D455).
@@ -8669,6 +8677,9 @@ var CAP_NAMES = Object.freeze([
8669
8677
  "filesystem-browse",
8670
8678
  "flood",
8671
8679
  "gas",
8680
+ "group-active",
8681
+ "group-commands",
8682
+ "group-status",
8672
8683
  "heating-valve",
8673
8684
  "humidifier",
8674
8685
  "humidity-sensor",
@@ -8689,6 +8700,7 @@ var CAP_NAMES = Object.freeze([
8689
8700
  "login-method",
8690
8701
  "media-player",
8691
8702
  "mesh-network",
8703
+ "meter",
8692
8704
  "metrics-provider",
8693
8705
  "model-convert",
8694
8706
  "model-distributor",
@@ -9487,6 +9499,24 @@ Object.freeze({
9487
9499
  "path": "detected",
9488
9500
  "valueType": "boolean"
9489
9501
  }],
9502
+ "group-active": [{
9503
+ "path": "active",
9504
+ "valueType": "boolean"
9505
+ }],
9506
+ "group-status": [
9507
+ {
9508
+ "path": "included",
9509
+ "valueType": "number"
9510
+ },
9511
+ {
9512
+ "path": "excluded",
9513
+ "valueType": "number"
9514
+ },
9515
+ {
9516
+ "path": "total",
9517
+ "valueType": "number"
9518
+ }
9519
+ ],
9490
9520
  "heating-valve": [{
9491
9521
  "path": "position",
9492
9522
  "valueType": "number"
@@ -9732,6 +9762,10 @@ Object.freeze({
9732
9762
  ]
9733
9763
  }
9734
9764
  ],
9765
+ "meter": [{
9766
+ "path": "value",
9767
+ "valueType": "number"
9768
+ }],
9735
9769
  "motion": [
9736
9770
  {
9737
9771
  "path": "detected",
@@ -10489,7 +10523,7 @@ function userError(code, params, englishFallback) {
10489
10523
  return new CamstackError(code, params, englishFallback);
10490
10524
  }
10491
10525
  //#endregion
10492
- //#region ../types/dist/err-msg-BXKzRBwg.mjs
10526
+ //#region ../types/dist/err-msg-DIorGYeC.mjs
10493
10527
  var DeviceType = /* @__PURE__ */ function(DeviceType) {
10494
10528
  DeviceType["Camera"] = "camera";
10495
10529
  DeviceType["Hub"] = "hub";
@@ -10583,8 +10617,14 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
10583
10617
  DeviceType["PetFeeder"] = "pet-feeder";
10584
10618
  /** Built-in dishwasher — program lifecycle, door / remote-start gates,
10585
10619
  * salt and rinse-aid levels. Installed with the `dishwasher` cap.
10586
- * Sources: native Bosch Home Connect, reusable by similar integrations. */
10620
+ * Sources: native Bosch Home Connect, reusable by similar integrations.
10621
+ * A plug-built dishwasher carries running-state and power instead. */
10587
10622
  DeviceType["Dishwasher"] = "dishwasher";
10623
+ /** Washing machine. A plug-built one is running while its power stays
10624
+ * above a threshold. No program cap — that surface is the dishwasher's. */
10625
+ DeviceType["Washer"] = "washer";
10626
+ /** Tumble dryer. Same plug-built running surface as {@link Washer}. */
10627
+ DeviceType["Dryer"] = "dryer";
10588
10628
  return DeviceType;
10589
10629
  }({});
10590
10630
  var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
@@ -10842,7 +10882,7 @@ function errMsg(err) {
10842
10882
  return String(err);
10843
10883
  }
10844
10884
  //#endregion
10845
- //#region ../types/dist/composition-kEl9mevu.mjs
10885
+ //#region ../types/dist/composition-Bb8iwHEJ.mjs
10846
10886
  /**
10847
10887
  * The ffmpeg build every CamStack node downloads, per platform and arch.
10848
10888
  *
@@ -11157,6 +11197,13 @@ var table = {
11157
11197
  apply: () => {
11158
11198
  throw new ExpressionEvalError("latchedAt: stateful evaluation context is required");
11159
11199
  }
11200
+ },
11201
+ schmitt: {
11202
+ minArgs: 3,
11203
+ maxArgs: 5,
11204
+ apply: () => {
11205
+ throw new ExpressionEvalError("schmitt: stateful evaluation context is required");
11206
+ }
11160
11207
  }
11161
11208
  };
11162
11209
  Object.freeze(Object.assign(Object.create(null), table));
@@ -11597,15 +11644,232 @@ function validateExpressionSource(src) {
11597
11644
  }
11598
11645
  return null;
11599
11646
  }
11600
- /** A composed device's stableId is this prefix plus the block id. */
11601
- var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
11602
- /** Longest snippet a `code` source may carry (slice 4). */
11603
- var MAX_COMPOSITION_CODE_LENGTH = 2e4;
11647
+ /**
11648
+ * One power reading becomes a washer, dryer or dishwasher (D944 helper).
11649
+ *
11650
+ * Standby of the control board is under 5 W; a motor or a heater is far
11651
+ * above that, so 5 W is the line. A door lock or a short pump spike is not
11652
+ * a cycle, so running starts only after 30 s above the line.
11653
+ *
11654
+ * A wash, dry or dishwasher pause (soak, heat-wait, heater off between
11655
+ * bursts) lasts several minutes. Ending the cycle on the first dip would
11656
+ * report "finished" in the middle of the program, so the stop dwell is
11657
+ * 10 minutes on every type. The number is stored per type so one machine
11658
+ * can move later without moving the others.
11659
+ */
11660
+ var APPLIANCE_TEMPLATE_ID = "appliance";
11661
+ var APPLIANCE_KINDS = [
11662
+ "washer",
11663
+ "dryer",
11664
+ "dishwasher"
11665
+ ];
11666
+ DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher;
11667
+ /**
11668
+ * Statistics and integrals over a history read (D944).
11669
+ *
11670
+ * Pure: the same points always give the same answer, so a restart recomputes
11671
+ * rather than trusting a buffer. A gauge mean is time-weighted (value × ms),
11672
+ * never the mean of the samples. A hole with no held value is not integrated
11673
+ * as zero. A truncated read is not published.
11674
+ */
11675
+ var STATISTIC_STATS = [
11676
+ "min",
11677
+ "max",
11678
+ "mean",
11679
+ "sum",
11680
+ "count",
11681
+ "change"
11682
+ ];
11683
+ /**
11684
+ * The range a statistics or integral helper asks history for (D944).
11685
+ *
11686
+ * Calendar edges are the hub's timezone, never UTC midnight: a day is 23, 24
11687
+ * or 25 hours across a DST change. A tier is eligible only when its retention
11688
+ * is strictly longer than the longest that range can be. Forever qualifies.
11689
+ * Equal to a tier's retention is a refusal, not a short answer.
11690
+ */
11691
+ var MINUTE_MS = 6e4;
11692
+ var HOUR_MS = 60 * MINUTE_MS;
11693
+ var DAY_MS = 24 * HOUR_MS;
11694
+ var ROLLING_SPANS = [
11695
+ "1h",
11696
+ "24h",
11697
+ "2d",
11698
+ "7d",
11699
+ "30d",
11700
+ "custom"
11701
+ ];
11702
+ var CALENDAR_PERIODS = [
11703
+ "today",
11704
+ "yesterday",
11705
+ "this-week",
11706
+ "this-month"
11707
+ ];
11708
+ var RESET_PERIODS = [
11709
+ "never",
11710
+ "daily",
11711
+ "weekly",
11712
+ "monthly"
11713
+ ];
11714
+ 5 * MINUTE_MS;
11715
+ 24 * HOUR_MS, 2 * DAY_MS, 7 * DAY_MS, 30 * DAY_MS;
11716
+ 7 * DAY_MS, 30 * DAY_MS, 365 * DAY_MS;
11717
+ var rollingWindowObject = object({
11718
+ kind: literal("rolling"),
11719
+ span: _enum(ROLLING_SPANS),
11720
+ customMinutes: number().int().min(5).optional()
11721
+ }).check((payload) => {
11722
+ if (payload.value.span === "custom" && payload.value.customMinutes === void 0) payload.issues.push({
11723
+ code: "custom",
11724
+ message: "a custom range needs a duration in minutes",
11725
+ path: ["customMinutes"],
11726
+ input: payload.value
11727
+ });
11728
+ if (payload.value.span !== "custom" && payload.value.customMinutes !== void 0) payload.issues.push({
11729
+ code: "custom",
11730
+ message: "only a custom range carries a duration",
11731
+ path: ["customMinutes"],
11732
+ input: payload.value
11733
+ });
11734
+ });
11735
+ var RollingWindowSchema = rollingWindowObject;
11736
+ var StatisticWindowSchema = discriminatedUnion("kind", [rollingWindowObject, object({
11737
+ kind: literal("calendar"),
11738
+ period: _enum(CALENDAR_PERIODS)
11739
+ })]);
11740
+ /**
11741
+ * A composition source identity: `(addonId, stableId)`, never a numeric device
11742
+ * id. Split out so helper schemas can name it without a cycle through
11743
+ * `composition.ts` (D659).
11744
+ */
11604
11745
  var CompositionSourceRefSchema = object({
11605
11746
  /** The owning addon; `stableId` is unique only within it. */
11606
11747
  addonId: string().min(1),
11607
11748
  stableId: string().min(1)
11608
11749
  });
11750
+ var GROUP_TEMPLATE_IDS = [
11751
+ "temperature",
11752
+ "humidity",
11753
+ "pressure",
11754
+ "illuminance",
11755
+ "power",
11756
+ "energy",
11757
+ "battery",
11758
+ "numeric",
11759
+ "motion",
11760
+ "contact",
11761
+ "leak",
11762
+ "smoke",
11763
+ "occupancy",
11764
+ "binary",
11765
+ "switch",
11766
+ "light",
11767
+ "fan",
11768
+ "cover",
11769
+ "valve",
11770
+ "lock",
11771
+ "media-player",
11772
+ "climate"
11773
+ ];
11774
+ var NUMERIC_AGGREGATES = [
11775
+ "mean",
11776
+ "median",
11777
+ "min",
11778
+ "max",
11779
+ "sum"
11780
+ ];
11781
+ var BINARY_AGGREGATES = ["any", "all"];
11782
+ /** How an actuator group decides it is on. Unknown members never count as off. */
11783
+ var ACTIVE_CRITERIA = ["at-least-one", "all"];
11784
+ var AGGREGATE_REDUCERS = [
11785
+ "mean",
11786
+ "median",
11787
+ "min",
11788
+ "max",
11789
+ "sum",
11790
+ "any",
11791
+ "all"
11792
+ ];
11793
+ var GroupTemplateIdSchema = _enum(GROUP_TEMPLATE_IDS);
11794
+ var AggregateReducerSchema = _enum(AGGREGATE_REDUCERS);
11795
+ var ActiveCriterionSchema = _enum(ACTIVE_CRITERIA);
11796
+ /** One member. The field is stored so occupancy can name motion or binary. */
11797
+ var HelperMemberSchema = object({
11798
+ source: CompositionSourceRefSchema,
11799
+ cap: string().min(1),
11800
+ fieldPath: string().min(1)
11801
+ });
11802
+ var HelperSpecSchema = discriminatedUnion("kind", [
11803
+ object({
11804
+ kind: literal("group"),
11805
+ templateId: GroupTemplateIdSchema,
11806
+ aggregate: AggregateReducerSchema,
11807
+ members: array(HelperMemberSchema).min(1).max(64),
11808
+ /** Actuator groups only. Readings leave this unset. */
11809
+ active: ActiveCriterionSchema.optional()
11810
+ }),
11811
+ object({
11812
+ kind: literal("appliance"),
11813
+ templateId: literal(APPLIANCE_TEMPLATE_ID),
11814
+ appliance: _enum(APPLIANCE_KINDS),
11815
+ thresholdWatts: number().positive(),
11816
+ startDwellMs: number().int().nonnegative(),
11817
+ stopDwellMs: number().int().nonnegative(),
11818
+ member: HelperMemberSchema
11819
+ }),
11820
+ object({
11821
+ kind: literal("statistic"),
11822
+ stat: _enum(STATISTIC_STATS),
11823
+ window: StatisticWindowSchema,
11824
+ source: HelperMemberSchema
11825
+ }),
11826
+ object({
11827
+ kind: literal("integral"),
11828
+ reset: _enum(RESET_PERIODS),
11829
+ output: _enum(["energy", "meter"]),
11830
+ source: HelperMemberSchema
11831
+ }),
11832
+ object({
11833
+ kind: literal("threshold"),
11834
+ source: HelperMemberSchema,
11835
+ high: number(),
11836
+ low: number(),
11837
+ onForMs: number().int().nonnegative(),
11838
+ offForMs: number().int().nonnegative()
11839
+ }),
11840
+ object({
11841
+ kind: literal("arithmetic"),
11842
+ op: _enum([
11843
+ "sum",
11844
+ "difference",
11845
+ "ratio"
11846
+ ]),
11847
+ inputs: array(HelperMemberSchema).min(2).max(64)
11848
+ }),
11849
+ object({
11850
+ kind: literal("expression"),
11851
+ expr: string().min(1),
11852
+ inputs: array(object({
11853
+ name: string().min(1),
11854
+ member: HelperMemberSchema
11855
+ })).min(1).max(64),
11856
+ output: _enum(["number", "boolean"])
11857
+ }),
11858
+ object({
11859
+ kind: literal("derivative"),
11860
+ window: RollingWindowSchema,
11861
+ per: _enum([
11862
+ "second",
11863
+ "minute",
11864
+ "hour"
11865
+ ]),
11866
+ source: HelperMemberSchema
11867
+ })
11868
+ ]);
11869
+ /** A composed device's stableId is this prefix plus the block id. */
11870
+ var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
11871
+ /** Longest snippet a `code` source may carry (slice 4). */
11872
+ var MAX_COMPOSITION_CODE_LENGTH = 2e4;
11609
11873
  /** One field of one capability of one source device. */
11610
11874
  var CompositionFieldReadSchema = object({
11611
11875
  source: CompositionSourceRefSchema,
@@ -11649,7 +11913,59 @@ var CompositionCodeSourceSchema = object({
11649
11913
  var CompositionFieldSourceSchema = discriminatedUnion("kind", [
11650
11914
  CompositionFromSourceSchema,
11651
11915
  CompositionExpressionSourceSchema,
11652
- CompositionCodeSourceSchema
11916
+ CompositionCodeSourceSchema,
11917
+ object({
11918
+ kind: literal("aggregate"),
11919
+ reducer: _enum([
11920
+ "mean",
11921
+ "median",
11922
+ "min",
11923
+ "max",
11924
+ "sum",
11925
+ "any",
11926
+ "all"
11927
+ ]),
11928
+ reads: array(CompositionFieldReadSchema).min(1).max(64),
11929
+ /**
11930
+ * Set when the reads are an enum state, not a yes/no: the listed states
11931
+ * count as active (a cover is `open`). A state outside the list is inactive;
11932
+ * a read that is not a state at all is left out. Only `any` / `all` use it.
11933
+ */
11934
+ activeWhen: array(string().min(1)).min(1).optional(),
11935
+ /** `value` is the reading; the others are the member counts. */
11936
+ publish: _enum([
11937
+ "value",
11938
+ "included",
11939
+ "excluded",
11940
+ "total"
11941
+ ]),
11942
+ /** What a `value` publish does when nobody is included. Counts ignore this. */
11943
+ empty: _enum([
11944
+ "null",
11945
+ "omit",
11946
+ "offline"
11947
+ ])
11948
+ }),
11949
+ object({
11950
+ kind: literal("series"),
11951
+ read: CompositionFieldReadSchema,
11952
+ /** `value` is the statistic or the integral. The others are the gap counts. */
11953
+ publish: _enum([
11954
+ "value",
11955
+ "included",
11956
+ "excluded",
11957
+ "total"
11958
+ ]),
11959
+ /**
11960
+ * What an unanswered `value` does. Counts ignore this. `offline` leaves the
11961
+ * device unseeded until history answers, so a restart cannot publish 0.
11962
+ */
11963
+ empty: _enum([
11964
+ "null",
11965
+ "omit",
11966
+ "offline"
11967
+ ])
11968
+ })
11653
11969
  ]);
11654
11970
  var CompositionCommandTargetSchema = discriminatedUnion("kind", [object({
11655
11971
  kind: literal("forward"),
@@ -11695,7 +12011,13 @@ var CompositionSchema = object({
11695
12011
  kind: literal("existing"),
11696
12012
  device: CompositionSourceRefSchema
11697
12013
  })]),
11698
- features: array(CompositionFeatureSchema).min(1).max(16)
12014
+ features: array(CompositionFeatureSchema).min(1).max(16),
12015
+ /**
12016
+ * Present when the block is a helper template. Absent on a free
12017
+ * composition (the room example, device 4603). The editor reads this,
12018
+ * never the compiled features.
12019
+ */
12020
+ helper: HelperSpecSchema.optional()
11699
12021
  }).superRefine((composition, ctx) => {
11700
12022
  const seen = /* @__PURE__ */ new Set();
11701
12023
  composition.features.forEach((feature, index) => {
@@ -16802,7 +17124,22 @@ var BrokerProviderInfoSchema = object({
16802
17124
  */
16803
17125
  interactiveConnectPath: string().min(1).optional(),
16804
17126
  /** Relative hub path to disconnect the linked account (same popup pattern). */
16805
- interactiveDisconnectPath: string().min(1).optional()
17127
+ interactiveDisconnectPath: string().min(1).optional(),
17128
+ /**
17129
+ * The kind signs in through a server-held interactive session instead of
17130
+ * (or before) typed credentials. `basePath` is a hub-relative route set
17131
+ * served by the owning addon (`/addon/<id>/...`) speaking the sign-in
17132
+ * contract: `POST {basePath}/start` (body: the form's settings) answers
17133
+ * `{ sessionId, loginUrl }`; `GET {basePath}/status?sessionId=` answers
17134
+ * `{ phase: 'starting' | 'awaiting-login' | 'captured' | 'error' |
17135
+ * 'cancelled', loginUrl, error }`; `POST {basePath}/commit`
17136
+ * (`{ sessionId, name, brokerId? }`) stores the credentials on a new or
17137
+ * existing broker and answers `{ brokerId }`; `POST {basePath}/cancel`
17138
+ * (`{ sessionId }`) drops the session. The dialog that edits a broker
17139
+ * offers it as the default path; the fields the session fills are
17140
+ * marked `filledBySignIn` in the kind's settings schema.
17141
+ */
17142
+ signIn: object({ basePath: string().min(1) }).optional()
16806
17143
  }))
16807
17144
  });
16808
17145
  var ListInputSchema = object({
@@ -17904,7 +18241,11 @@ var CompositionProblemSchema = object({
17904
18241
  "target-missing",
17905
18242
  "target-unreadable",
17906
18243
  "not-replaceable",
17907
- "native-capability-replace"
18244
+ "native-capability-replace",
18245
+ "mixed-quantity",
18246
+ "helper-mismatch",
18247
+ "member-constraint",
18248
+ "retention"
17908
18249
  ]),
17909
18250
  path: string(),
17910
18251
  message: string()
@@ -17925,7 +18266,8 @@ var CompositionUnavailableModeSchema = _enum([
17925
18266
  "null",
17926
18267
  "offline",
17927
18268
  "unknown",
17928
- "release"
18269
+ "release",
18270
+ "omit"
17929
18271
  ]);
17930
18272
  /**
17931
18273
  * `derived` reads a source · `clock` reads only `now`, recomputed when a sibling
@@ -18137,8 +18479,392 @@ Object.freeze({
18137
18479
  latchedAt: {
18138
18480
  kind: "fixed",
18139
18481
  result: ["number", "null"]
18482
+ },
18483
+ schmitt: {
18484
+ kind: "fixed",
18485
+ result: ["boolean", "null"]
18140
18486
  }
18141
18487
  });
18488
+ /**
18489
+ * One catalog row per base reading a group helper can build (D944 §3).
18490
+ * Data, not a form default written into the block.
18491
+ */
18492
+ var NOW$2 = {
18493
+ fieldPath: "lastFetchedAt",
18494
+ expr: "now"
18495
+ };
18496
+ var CHANGED = {
18497
+ fieldPath: "lastChangedAt",
18498
+ expr: "now"
18499
+ };
18500
+ function numeric(input) {
18501
+ return {
18502
+ ...input,
18503
+ family: "numeric",
18504
+ deviceType: DeviceType.Sensor,
18505
+ memberDeviceType: DeviceType.Sensor,
18506
+ memberDeviceTypes: [DeviceType.Sensor],
18507
+ activeWhen: void 0,
18508
+ commandCaps: [],
18509
+ baseUnit: baseUnitOf(input.quantity),
18510
+ aggregates: NUMERIC_AGGREGATES,
18511
+ accept: [{
18512
+ cap: input.outputCap,
18513
+ fieldPath: input.outputField
18514
+ }]
18515
+ };
18516
+ }
18517
+ function binary(input) {
18518
+ return {
18519
+ ...input,
18520
+ family: "binary",
18521
+ deviceType: DeviceType.Sensor,
18522
+ memberDeviceType: DeviceType.Sensor,
18523
+ memberDeviceTypes: [DeviceType.Sensor],
18524
+ activeWhen: void 0,
18525
+ commandCaps: [],
18526
+ quantity: "none",
18527
+ baseUnit: void 0,
18528
+ aggregates: BINARY_AGGREGATES,
18529
+ empty: "offline"
18530
+ };
18531
+ }
18532
+ var GROUP_TEMPLATES = [
18533
+ numeric({
18534
+ id: "temperature",
18535
+ summary: "Mean, median, min, max or sum of temperatures. Offline and unknown members are left out, never read as 0 °C.",
18536
+ role: DeviceRole.TemperatureSensor,
18537
+ outputCap: "temperature-sensor",
18538
+ outputField: "celsius",
18539
+ quantity: "temperature",
18540
+ defaultAggregate: "mean",
18541
+ empty: "null",
18542
+ companions: [NOW$2]
18543
+ }),
18544
+ numeric({
18545
+ id: "humidity",
18546
+ summary: "Humidity in percent. Offline and unknown members are left out, never read as 0 %.",
18547
+ role: DeviceRole.HumiditySensor,
18548
+ outputCap: "humidity-sensor",
18549
+ outputField: "percent",
18550
+ quantity: "humidity",
18551
+ defaultAggregate: "mean",
18552
+ empty: "null",
18553
+ companions: [NOW$2]
18554
+ }),
18555
+ numeric({
18556
+ id: "pressure",
18557
+ summary: "Pressure in hectopascals. Offline and unknown members are left out, never read as 0 hPa.",
18558
+ role: DeviceRole.PressureSensor,
18559
+ outputCap: "pressure-sensor",
18560
+ outputField: "hpa",
18561
+ quantity: "pressure",
18562
+ defaultAggregate: "mean",
18563
+ empty: "null",
18564
+ companions: [NOW$2]
18565
+ }),
18566
+ numeric({
18567
+ id: "illuminance",
18568
+ summary: "Illuminance in lux. Offline and unknown members are left out, never read as 0 lx.",
18569
+ role: DeviceRole.AmbientLightSensor,
18570
+ outputCap: "ambient-light-sensor",
18571
+ outputField: "lux",
18572
+ quantity: "illuminance",
18573
+ defaultAggregate: "mean",
18574
+ empty: "null",
18575
+ companions: [NOW$2]
18576
+ }),
18577
+ numeric({
18578
+ id: "power",
18579
+ summary: "Power in watts, summed by default. Nobody reporting omits the key rather than writing 0 W.",
18580
+ role: DeviceRole.PowerSensor,
18581
+ outputCap: "power-meter",
18582
+ outputField: "watts",
18583
+ quantity: "power",
18584
+ defaultAggregate: "sum",
18585
+ empty: "omit",
18586
+ companions: [NOW$2]
18587
+ }),
18588
+ numeric({
18589
+ id: "energy",
18590
+ summary: "Energy in kilowatt-hours, summed by default. Nobody reporting omits the key rather than writing 0 kWh.",
18591
+ role: DeviceRole.EnergySensor,
18592
+ outputCap: "power-meter",
18593
+ outputField: "kwhTotal",
18594
+ quantity: "energy",
18595
+ defaultAggregate: "sum",
18596
+ empty: "omit",
18597
+ companions: [NOW$2]
18598
+ }),
18599
+ numeric({
18600
+ id: "battery",
18601
+ summary: "Battery charge in percent. Offline and unknown members are left out, never read as 0 %.",
18602
+ role: DeviceRole.BatterySensor,
18603
+ outputCap: "battery",
18604
+ outputField: "percentage",
18605
+ quantity: "percentage",
18606
+ defaultAggregate: "mean",
18607
+ empty: "null",
18608
+ companions: [
18609
+ {
18610
+ fieldPath: "charging",
18611
+ expr: "\"unknown\""
18612
+ },
18613
+ {
18614
+ fieldPath: "sleeping",
18615
+ expr: "false"
18616
+ },
18617
+ {
18618
+ fieldPath: "lastUpdated",
18619
+ expr: "now"
18620
+ }
18621
+ ]
18622
+ }),
18623
+ numeric({
18624
+ id: "numeric",
18625
+ summary: "A numeric reading in the members’ shared quantity. Mixed quantities are refused. Nobody reporting publishes null, not 0.",
18626
+ role: DeviceRole.NumericSensor,
18627
+ outputCap: "numeric-sensor",
18628
+ outputField: "value",
18629
+ quantity: "device",
18630
+ defaultAggregate: "mean",
18631
+ empty: "null",
18632
+ companions: [NOW$2]
18633
+ }),
18634
+ binary({
18635
+ id: "motion",
18636
+ summary: "Any or all motion. Offline and unknown members are left out, never read as off. Nobody reporting takes the device offline.",
18637
+ role: DeviceRole.MotionSensor,
18638
+ outputCap: "motion",
18639
+ outputField: "detected",
18640
+ defaultAggregate: "any",
18641
+ accept: [{
18642
+ cap: "motion",
18643
+ fieldPath: "detected"
18644
+ }],
18645
+ companions: [{
18646
+ fieldPath: "lastDetectedAt",
18647
+ expr: "null"
18648
+ }, {
18649
+ fieldPath: "autoClearAfterMs",
18650
+ expr: "null"
18651
+ }]
18652
+ }),
18653
+ binary({
18654
+ id: "contact",
18655
+ summary: "Any or all open contacts. Offline and unknown members are left out, never read as closed.",
18656
+ role: DeviceRole.ContactSensor,
18657
+ outputCap: "contact",
18658
+ outputField: "entryOpen",
18659
+ defaultAggregate: "any",
18660
+ accept: [{
18661
+ cap: "contact",
18662
+ fieldPath: "entryOpen"
18663
+ }],
18664
+ companions: [CHANGED]
18665
+ }),
18666
+ binary({
18667
+ id: "leak",
18668
+ summary: "Any or all leak detections. Offline and unknown members are left out, never read as dry.",
18669
+ role: DeviceRole.LeakSensor,
18670
+ outputCap: "flood",
18671
+ outputField: "flooded",
18672
+ defaultAggregate: "any",
18673
+ accept: [{
18674
+ cap: "flood",
18675
+ fieldPath: "flooded"
18676
+ }],
18677
+ companions: [CHANGED]
18678
+ }),
18679
+ binary({
18680
+ id: "smoke",
18681
+ summary: "Any or all smoke detections. Offline and unknown members are left out, never read as clear.",
18682
+ role: DeviceRole.SmokeSensor,
18683
+ outputCap: "smoke",
18684
+ outputField: "detected",
18685
+ defaultAggregate: "any",
18686
+ accept: [{
18687
+ cap: "smoke",
18688
+ fieldPath: "detected"
18689
+ }],
18690
+ companions: [CHANGED]
18691
+ }),
18692
+ binary({
18693
+ id: "occupancy",
18694
+ summary: "Any or all of motion or binary sensors, published as a binary. Presence zones are not aggregated. Nobody reporting is offline, not off.",
18695
+ role: DeviceRole.BinarySensor,
18696
+ outputCap: "binary",
18697
+ outputField: "on",
18698
+ defaultAggregate: "any",
18699
+ accept: [{
18700
+ cap: "motion",
18701
+ fieldPath: "detected"
18702
+ }, {
18703
+ cap: "binary",
18704
+ fieldPath: "on"
18705
+ }],
18706
+ companions: [CHANGED]
18707
+ }),
18708
+ binary({
18709
+ id: "binary",
18710
+ summary: "Any or all generic binary sensors. Offline and unknown members are left out, never read as off.",
18711
+ role: DeviceRole.BinarySensor,
18712
+ outputCap: "binary",
18713
+ outputField: "on",
18714
+ defaultAggregate: "any",
18715
+ accept: [{
18716
+ cap: "binary",
18717
+ fieldPath: "on"
18718
+ }],
18719
+ companions: [CHANGED]
18720
+ }),
18721
+ actuator({
18722
+ id: "switch",
18723
+ 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.",
18724
+ deviceType: DeviceType.Switch,
18725
+ outputCap: "switch",
18726
+ outputField: "on",
18727
+ member: {
18728
+ cap: "switch",
18729
+ fieldPath: "on"
18730
+ },
18731
+ commandCaps: ["switch"]
18732
+ }),
18733
+ actuator({
18734
+ id: "light",
18735
+ 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.",
18736
+ deviceType: DeviceType.Light,
18737
+ outputCap: "switch",
18738
+ outputField: "on",
18739
+ member: {
18740
+ cap: "switch",
18741
+ fieldPath: "on"
18742
+ },
18743
+ commandCaps: [
18744
+ "switch",
18745
+ "brightness",
18746
+ "color"
18747
+ ]
18748
+ }),
18749
+ actuator({
18750
+ id: "fan",
18751
+ summary: "On when at least one fan is on, or when all of them are. Speed, preset, direction and oscillation are offered only when every fan has them. A command is not sent to a fan that lacks it.",
18752
+ deviceType: DeviceType.Fan,
18753
+ outputCap: "switch",
18754
+ outputField: "on",
18755
+ member: {
18756
+ cap: "switch",
18757
+ fieldPath: "on"
18758
+ },
18759
+ commandCaps: ["switch", "fan-control"]
18760
+ }),
18761
+ actuator({
18762
+ id: "cover",
18763
+ summary: "Open when at least one cover is open or part-open, or only when all of them are. Position and tilt are offered only when every cover has them. A cover that reports nothing is left out, never read as closed.",
18764
+ deviceType: DeviceType.Cover,
18765
+ outputCap: "group-active",
18766
+ outputField: "active",
18767
+ member: {
18768
+ cap: "cover",
18769
+ fieldPath: "state"
18770
+ },
18771
+ activeWhen: [
18772
+ "open",
18773
+ "opening",
18774
+ "stopped"
18775
+ ],
18776
+ commandCaps: ["cover"]
18777
+ }),
18778
+ actuator({
18779
+ id: "valve",
18780
+ summary: "Open when at least one valve is open or part-open, or only when all of them are. Position is offered only when every valve has it. A valve that reports nothing is left out, never read as closed.",
18781
+ deviceType: DeviceType.Valve,
18782
+ outputCap: "group-active",
18783
+ outputField: "active",
18784
+ member: {
18785
+ cap: "valve",
18786
+ fieldPath: "state"
18787
+ },
18788
+ activeWhen: [
18789
+ "open",
18790
+ "opening",
18791
+ "stopped"
18792
+ ],
18793
+ commandCaps: ["valve"]
18794
+ }),
18795
+ actuator({
18796
+ id: "lock",
18797
+ summary: "Locked when at least one lock is locked, or only when all of them are. A jammed or moving lock is not locked. Locking is one tap; unlocking the group needs a confirmation every time, and nothing is sent without it.",
18798
+ deviceType: DeviceType.Lock,
18799
+ outputCap: "group-active",
18800
+ outputField: "active",
18801
+ member: {
18802
+ cap: "lock-control",
18803
+ fieldPath: "state"
18804
+ },
18805
+ activeWhen: ["locked"],
18806
+ commandCaps: ["lock-control"]
18807
+ }),
18808
+ actuator({
18809
+ id: "media-player",
18810
+ summary: "Playing when at least one player is playing, or only when all of them are. Volume is offered only when every player has it. A player that reports nothing is left out, never read as stopped.",
18811
+ deviceType: DeviceType.MediaPlayer,
18812
+ outputCap: "group-active",
18813
+ outputField: "active",
18814
+ member: {
18815
+ cap: "media-player",
18816
+ fieldPath: "state"
18817
+ },
18818
+ activeWhen: ["playing", "buffering"],
18819
+ commandCaps: ["media-player"]
18820
+ }),
18821
+ actuator({
18822
+ id: "climate",
18823
+ summary: "Running when at least one thermostat or air conditioner is not off, or only when all of them are. Target temperature and fan are offered only when every device has them. A device that reports nothing is left out, never read as off.",
18824
+ deviceType: DeviceType.Thermostat,
18825
+ memberDeviceTypes: [DeviceType.Thermostat, DeviceType.Climate],
18826
+ outputCap: "group-active",
18827
+ outputField: "active",
18828
+ member: {
18829
+ cap: "climate-control",
18830
+ fieldPath: "mode"
18831
+ },
18832
+ activeWhen: [
18833
+ "heat",
18834
+ "cool",
18835
+ "auto",
18836
+ "heat_cool",
18837
+ "fan_only",
18838
+ "dry"
18839
+ ],
18840
+ commandCaps: ["climate-control"]
18841
+ })
18842
+ ];
18843
+ function actuator(input) {
18844
+ return {
18845
+ id: input.id,
18846
+ summary: input.summary,
18847
+ deviceType: input.deviceType,
18848
+ outputCap: input.outputCap,
18849
+ outputField: input.outputField,
18850
+ commandCaps: input.commandCaps,
18851
+ family: "actuator",
18852
+ role: void 0,
18853
+ memberDeviceType: input.deviceType,
18854
+ memberDeviceTypes: input.memberDeviceTypes ?? [input.deviceType],
18855
+ activeWhen: input.activeWhen,
18856
+ quantity: "none",
18857
+ baseUnit: void 0,
18858
+ aggregates: BINARY_AGGREGATES,
18859
+ defaultAggregate: "any",
18860
+ empty: "offline",
18861
+ accept: [input.member],
18862
+ companions: [CHANGED]
18863
+ };
18864
+ }
18865
+ new Map(GROUP_TEMPLATES.map((template) => [template.id, template]));
18866
+ DeviceFeature.LightColorRgb, DeviceFeature.LightColorHsv, DeviceFeature.LightColorMired;
18867
+ DeviceType.Camera;
18142
18868
  `${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
18143
18869
  /**
18144
18870
  * What a composition may BUILD on a device type (G2, D676): the caps a new
@@ -43448,7 +44174,7 @@ var NetworkAccessStatusSchema = object({
43448
44174
  });
43449
44175
  /**
43450
44176
  * Optional, richer endpoint shape returned by providers that expose
43451
- * MORE than one ingress concurrently (Tailscale Ingress with mixed
44177
+ * MORE than one ingress concurrently (Tailscale Funnel with mixed
43452
44178
  * serve+funnel rules, future ngrok multi-tunnel, …). Each entry carries
43453
44179
  * the originating provider config (mode + sourcePort) so the
43454
44180
  * orchestrator UI can label rows distinctly. Providers that expose only
@@ -45044,6 +45770,8 @@ var NcSystemEventKindSchema = _enum([
45044
45770
  "detection-blind",
45045
45771
  "motion-noisy",
45046
45772
  "motion-calm",
45773
+ "package-llm-silent",
45774
+ "package-llm-answered",
45047
45775
  "recording-stalled",
45048
45776
  "recording-healthy",
45049
45777
  "recording-degraded",
@@ -46133,7 +46861,20 @@ var NcRuleInputSchema = object({
46133
46861
  * save by the hub's grouping guard). `.optional()`, never `.default()`: the addon cap
46134
46862
  * path does not run Zod defaults.
46135
46863
  */
46136
- groupingSec: number().int().min(5).max(60).optional()
46864
+ groupingSec: number().int().min(5).max(60).optional(),
46865
+ /**
46866
+ * ASK ME TO CONFIRM DETECTIONS (#243): a DETECTION notification of this rule
46867
+ * carries "Correct" / "Wrong" buttons (and, where the channel has room, a
46868
+ * "Wrong, it is a <class>" choice). A tap marks the track for retraining, the
46869
+ * same mark the Library writes, and records whose notification it was and
46870
+ * when. A channel with no buttons gets the same two choices as links.
46871
+ *
46872
+ * `.optional()`, never `.default()` (a Zod default does not run on the addon
46873
+ * cap path): absent and `false` both mean off, which is what every rule
46874
+ * authored before this field meant. An editor turns it off by writing
46875
+ * `false`, so it needs no `clear` key.
46876
+ */
46877
+ askVerdict: boolean().optional()
46137
46878
  });
46138
46879
  /**
46139
46880
  * Partial patch for `updateRule` — any subset of the input fields, plus the
@@ -56135,6 +56876,28 @@ var PackageVersionInfoSchema = object({
56135
56876
  deprecated: string().optional(),
56136
56877
  distTags: array(string()).readonly()
56137
56878
  });
56879
+ /**
56880
+ * One published document. `ok` is markdown from the registry. `missing` means
56881
+ * the registry answered and the file was not there. `error` is a registry or
56882
+ * tarball failure — never an empty string standing in for either.
56883
+ */
56884
+ var PackageDocBodySchema = discriminatedUnion("status", [
56885
+ object({
56886
+ status: literal("ok"),
56887
+ markdown: string()
56888
+ }),
56889
+ object({ status: literal("missing") }),
56890
+ object({
56891
+ status: literal("error"),
56892
+ message: string()
56893
+ })
56894
+ ]);
56895
+ var PackageDocsSchema = object({
56896
+ name: string(),
56897
+ version: string(),
56898
+ readme: PackageDocBodySchema,
56899
+ changelog: PackageDocBodySchema
56900
+ });
56138
56901
  var SearchResultSchema = object({
56139
56902
  name: string(),
56140
56903
  version: string(),
@@ -56353,7 +57116,10 @@ method(object({ nodeId: string().optional() }).optional(), array(AddonListItemSc
56353
57116
  }), object({ success: literal(true) }), {
56354
57117
  kind: "mutation",
56355
57118
  auth: "admin"
56356
- }), method(object({ name: string() }), array(PackageVersionInfoSchema).readonly()), method(object({ addonId: string() }), RestartAddonResultSchema, {
57119
+ }), method(object({ name: string() }), array(PackageVersionInfoSchema).readonly()), method(object({
57120
+ name: string().min(1),
57121
+ version: string().min(1).optional()
57122
+ }), PackageDocsSchema, { auth: "admin" }), method(object({ addonId: string() }), RestartAddonResultSchema, {
56357
57123
  kind: "mutation",
56358
57124
  auth: "admin"
56359
57125
  }), method(object({ packageName: string() }), object({ success: literal(true) }), {
@@ -56828,7 +57594,8 @@ var BATTERY_DEVICE_TYPES = [
56828
57594
  DeviceType.Switch,
56829
57595
  DeviceType.PetFeeder,
56830
57596
  DeviceType.Container,
56831
- DeviceType.Thermostat
57597
+ DeviceType.Thermostat,
57598
+ DeviceType.EventEmitter
56832
57599
  ];
56833
57600
  /** Generic Customize target for the percentage reading (D936). */
56834
57601
  var batteryCustomize = {
@@ -59701,6 +60468,148 @@ var gasCapability = {
59701
60468
  * whether persisting is worth a SQLite commit. */
59702
60469
  volatileStateFields: ["lastChangedAt"]
59703
60470
  };
60471
+ var GroupCommandsSchema = object({
60472
+ /** One row per member that has been commanded. A later command replaces that member's row. */
60473
+ results: array(object({
60474
+ deviceId: number().int().nonnegative(),
60475
+ cap: string().min(1),
60476
+ method: string().min(1),
60477
+ ok: boolean(),
60478
+ error: string().optional(),
60479
+ /** Ms epoch of the attempt. */
60480
+ at: number()
60481
+ })) });
60482
+ var groupCommandsCapability = {
60483
+ name: "group-commands",
60484
+ scope: "device",
60485
+ deviceNative: true,
60486
+ mode: "singleton",
60487
+ deviceTypes: [
60488
+ DeviceType.Switch,
60489
+ DeviceType.Light,
60490
+ DeviceType.Fan,
60491
+ DeviceType.Cover,
60492
+ DeviceType.Valve,
60493
+ DeviceType.Lock,
60494
+ DeviceType.MediaPlayer,
60495
+ DeviceType.Thermostat,
60496
+ DeviceType.Climate
60497
+ ],
60498
+ methods: {},
60499
+ status: {
60500
+ schema: GroupCommandsSchema,
60501
+ kind: "push"
60502
+ },
60503
+ runtimeState: GroupCommandsSchema,
60504
+ /**
60505
+ * Runtime-state durability: **session** — the last attempt. A restored
60506
+ * failure would outlive the command that caused it.
60507
+ *
60508
+ * See `RuntimeStateDurability`. Enforced by
60509
+ * `scripts/check-runtime-state-durability.ts`.
60510
+ */
60511
+ durability: "session",
60512
+ history: "none"
60513
+ };
60514
+ /**
60515
+ * Whether a helper actuator group counts as active (D944): at least one
60516
+ * included member is, or every included member is. What "active" means is the
60517
+ * type's: a cover is open, a lock is locked, a media player is playing, a
60518
+ * climate device is not off. A group of lights, switches and fans reports
60519
+ * `switch.on` instead; this cap is for the types whose own state is not a
60520
+ * yes/no. Unknown members are left out (`group-status` counts them) and an
60521
+ * empty included set takes the device offline, never `active: false`.
60522
+ */
60523
+ var GroupActiveSchema = object({
60524
+ active: boolean().meta({ label: "Active" }),
60525
+ /** Ms epoch when the slice was last updated. */
60526
+ lastChangedAt: number()
60527
+ });
60528
+ var groupActiveCapability = {
60529
+ name: "group-active",
60530
+ scope: "device",
60531
+ deviceNative: true,
60532
+ mode: "singleton",
60533
+ deviceTypes: [
60534
+ DeviceType.Cover,
60535
+ DeviceType.Valve,
60536
+ DeviceType.Lock,
60537
+ DeviceType.MediaPlayer,
60538
+ DeviceType.Climate,
60539
+ DeviceType.Thermostat
60540
+ ],
60541
+ methods: {},
60542
+ status: {
60543
+ schema: GroupActiveSchema,
60544
+ kind: "push"
60545
+ },
60546
+ runtimeState: GroupActiveSchema,
60547
+ /**
60548
+ * Runtime-state durability: **session** — recomputed from the members on the
60549
+ * next source event; a restored value would outlive the members it named.
60550
+ *
60551
+ * See `RuntimeStateDurability`. Enforced by
60552
+ * `scripts/check-runtime-state-durability.ts`.
60553
+ */
60554
+ durability: "session",
60555
+ history: "none"
60556
+ };
60557
+ /**
60558
+ * How many members of a helper group answered (D944). Counts are integers,
60559
+ * not measurements: zero included is a real count, never a stand-in reading.
60560
+ * The reading itself stays on the output capability. History is none — the
60561
+ * series that later statistics read is the output cap's own history block.
60562
+ */
60563
+ var GroupStatusSchema = object({
60564
+ /** Members whose current value entered the aggregate. */
60565
+ included: number().int().nonnegative().meta(readingMeta("count", {
60566
+ precision: 0,
60567
+ label: "Reporting"
60568
+ })),
60569
+ /** Members left out: offline, unknown, or not a finite reading (D393). */
60570
+ excluded: number().int().nonnegative().meta(readingMeta("count", {
60571
+ precision: 0,
60572
+ label: "Excluded"
60573
+ })),
60574
+ /** `included` + `excluded`. */
60575
+ total: number().int().nonnegative().meta(readingMeta("count", {
60576
+ precision: 0,
60577
+ label: "Members"
60578
+ }))
60579
+ });
60580
+ var groupStatusCapability = {
60581
+ name: "group-status",
60582
+ scope: "device",
60583
+ deviceNative: true,
60584
+ mode: "singleton",
60585
+ deviceTypes: [
60586
+ DeviceType.Sensor,
60587
+ DeviceType.Switch,
60588
+ DeviceType.Light,
60589
+ DeviceType.Fan,
60590
+ DeviceType.Cover,
60591
+ DeviceType.Valve,
60592
+ DeviceType.Lock,
60593
+ DeviceType.MediaPlayer,
60594
+ DeviceType.Thermostat,
60595
+ DeviceType.Climate
60596
+ ],
60597
+ methods: {},
60598
+ status: {
60599
+ schema: GroupStatusSchema,
60600
+ kind: "push"
60601
+ },
60602
+ runtimeState: GroupStatusSchema,
60603
+ /**
60604
+ * Runtime-state durability: **session** — recomputed from members on the
60605
+ * next source event; a restored count would outlive the readings it named.
60606
+ *
60607
+ * See `RuntimeStateDurability`. Enforced by
60608
+ * `scripts/check-runtime-state-durability.ts`.
60609
+ */
60610
+ durability: "session",
60611
+ history: "none"
60612
+ };
59704
60613
  var HeatingValveStatusSchema = object({
59705
60614
  /** Radiator valve opening 0 (closed) .. 100 (open). Null = not yet known. */
59706
60615
  position: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
@@ -60956,7 +61865,14 @@ var lockControlCapability = {
60956
61865
  }),
60957
61866
  unlock: method(object({
60958
61867
  deviceId: number().int().nonnegative(),
60959
- code: string().min(1).optional()
61868
+ code: string().min(1).optional(),
61869
+ /**
61870
+ * Honoured by a helper lock GROUP only (D944): unlocking several doors
61871
+ * with one call is refused unless the caller says it was confirmed. A
61872
+ * single lock ignores it. The refusal lives in the callee, so no
61873
+ * automation or API caller reaches the doors by skipping a dialog.
61874
+ */
61875
+ confirm: boolean().optional()
60960
61876
  }), _void(), {
60961
61877
  kind: "mutation",
60962
61878
  auth: "protected"
@@ -60993,6 +61909,44 @@ var lockControlCapability = {
60993
61909
  volatileStateFields: ["lastChangedAt"]
60994
61910
  };
60995
61911
  /**
61912
+ * A monotonic total between resets (D944). Energy uses `power-meter.kwhTotal`
61913
+ * so dashboards keep one series; every other instantaneous reading lands here.
61914
+ * `value` is the time integral in the source quantity's accumulated base
61915
+ * (base-unit seconds, or kWh on the power meter). `null` is a gap, never zero.
61916
+ */
61917
+ var MeterStatusSchema = object({
61918
+ value: number().nullable().meta(readingMeta("device", { label: "Total" })),
61919
+ lastFetchedAt: number()
61920
+ });
61921
+ var meterCapability = {
61922
+ name: "meter",
61923
+ scope: "device",
61924
+ deviceNative: true,
61925
+ mode: "singleton",
61926
+ deviceTypes: [DeviceType.Sensor],
61927
+ methods: {},
61928
+ status: {
61929
+ schema: MeterStatusSchema,
61930
+ kind: "push"
61931
+ },
61932
+ runtimeState: MeterStatusSchema,
61933
+ /**
61934
+ * Runtime-state durability: **restored** — the total is a cache of the
61935
+ * history integral. A restart shows it only until the history pass
61936
+ * recomputes the open period; it is not an in-memory buffer.
61937
+ *
61938
+ * See `RuntimeStateDurability`. Enforced by
61939
+ * `scripts/check-runtime-state-durability.ts`.
61940
+ */
61941
+ durability: "restored",
61942
+ history: { fields: { value: {
61943
+ kind: "counter",
61944
+ deadband: .001,
61945
+ minIntervalMs: 6e4
61946
+ } } },
61947
+ volatileStateFields: ["lastFetchedAt"]
61948
+ };
61949
+ /**
60996
61950
  * Media-player cap. Models HA `media_player.*` (Sonos, Chromecast,
60997
61951
  * Apple TV, Spotify, Roku, generic OTT receivers, …) on
60998
61952
  * `DeviceType.MediaPlayer`. Disjoint from the camera streaming
@@ -61470,12 +62424,18 @@ var motionCapability = {
61470
62424
  methods: {
61471
62425
  /**
61472
62426
  * Pull the current motion state synchronously. Convenience shortcut
61473
- * for consumers that don't need the full status object; equivalent
61474
- * to `getStatus()?.detected ?? false`. Will likely be folded into
61475
- * `getStatus` once the auto-injected status surface lands in every
61476
- * consumer.
62427
+ * for consumers that don't need the full status object. A composed
62428
+ * group answers from its slice (D944): unknown throws, it is not off.
61477
62429
  */
61478
62430
  isDetected: method(object({ deviceId: number() }), boolean()) },
62431
+ /**
62432
+ * A composed motion group serves `isDetected` from `detected` (D944).
62433
+ * Without this the cap stays uncomposable (`has-commands`).
62434
+ */
62435
+ composedMethods: { isDetected: {
62436
+ kind: "slice",
62437
+ field: "detected"
62438
+ } },
61479
62439
  events: {
61480
62440
  /**
61481
62441
  * Fires every time the runner transitions a camera between
@@ -63646,9 +64606,9 @@ var PowerMeterStatusSchema = object({
63646
64606
  /** Cumulative energy in kilowatt-hours since the meter was reset. */
63647
64607
  kwhTotal: number().optional().meta(readingMeta("energy", { label: "Energy" })),
63648
64608
  /** Voltage in volts. */
63649
- volts: number().optional().meta(readingMeta("voltage")),
64609
+ volts: number().optional().meta(readingMeta("voltage", { label: "Voltage" })),
63650
64610
  /** Current in amperes. */
63651
- amps: number().optional().meta(readingMeta("current")),
64611
+ amps: number().optional().meta(readingMeta("current", { label: "Current" })),
63652
64612
  /** Apparent power in volt-amperes. */
63653
64613
  va: number().optional().meta(readingMeta("apparent-power")),
63654
64614
  /** Power factor (0..1) if reported. */
@@ -63656,12 +64616,74 @@ var PowerMeterStatusSchema = object({
63656
64616
  /** Ms epoch when the slice was last updated. */
63657
64617
  lastFetchedAt: number()
63658
64618
  });
64619
+ /**
64620
+ * Loads that draw metered mains power (D951). The reading is a feature of the
64621
+ * device itself — a plug, a lamp, a fan, an air conditioner, a boiler, a
64622
+ * vacuum dock — not a separate sensor beside it. A `Sensor` stays: a clamp
64623
+ * meter or a standalone energy monitor IS the device. Cover, lock, valve,
64624
+ * camera and the like are left out: their draw is not what anyone meters.
64625
+ */
64626
+ var POWER_METER_DEVICE_TYPES = [
64627
+ DeviceType.Sensor,
64628
+ DeviceType.Switch,
64629
+ DeviceType.Light,
64630
+ DeviceType.Fan,
64631
+ DeviceType.Climate,
64632
+ DeviceType.Thermostat,
64633
+ DeviceType.Humidifier,
64634
+ DeviceType.WaterHeater,
64635
+ DeviceType.MediaPlayer,
64636
+ DeviceType.Washer,
64637
+ DeviceType.Dryer,
64638
+ DeviceType.Dishwasher,
64639
+ DeviceType.Vacuum,
64640
+ DeviceType.LawnMower,
64641
+ DeviceType.PetFeeder
64642
+ ];
64643
+ /** Everything but a bare `Sensor`: a sensor that takes its reading from another sensor adds nothing. */
64644
+ var POWER_METER_CUSTOMIZE_DEVICE_TYPES = POWER_METER_DEVICE_TYPES.filter((type) => type !== DeviceType.Sensor);
64645
+ /** One scalar target per reading; each is sourced from a device of its own (D951). */
64646
+ function powerTarget(id, unit) {
64647
+ return {
64648
+ id,
64649
+ cardinality: "scalar",
64650
+ vocabulary: {
64651
+ cap: "power-meter",
64652
+ stateField: id
64653
+ },
64654
+ deviceTypes: POWER_METER_CUSTOMIZE_DEVICE_TYPES,
64655
+ apply: "add",
64656
+ path: id,
64657
+ sources: [{
64658
+ kind: "numeric",
64659
+ requiredUnit: unit,
64660
+ transforms: [{ kind: "identity" }]
64661
+ }],
64662
+ companions: [{
64663
+ kind: "clock",
64664
+ path: "lastFetchedAt",
64665
+ when: "always"
64666
+ }],
64667
+ sourceReport: { status: "assignment-status" },
64668
+ advancedExpression: true
64669
+ };
64670
+ }
64671
+ /** "Power and energy" extension: watts, energy, voltage and current from other devices (D951). */
64672
+ var powerMeterCustomize = {
64673
+ version: 1,
64674
+ targets: [
64675
+ powerTarget("watts", "W"),
64676
+ powerTarget("kwhTotal", "kWh"),
64677
+ powerTarget("volts", "V"),
64678
+ powerTarget("amps", "A")
64679
+ ]
64680
+ };
63659
64681
  var powerMeterCapability = {
63660
64682
  name: "power-meter",
63661
64683
  scope: "device",
63662
64684
  deviceNative: true,
63663
64685
  mode: "singleton",
63664
- deviceTypes: [DeviceType.Sensor],
64686
+ deviceTypes: POWER_METER_DEVICE_TYPES,
63665
64687
  methods: {},
63666
64688
  status: {
63667
64689
  schema: PowerMeterStatusSchema,
@@ -63718,7 +64740,8 @@ var powerMeterCapability = {
63718
64740
  } },
63719
64741
  /** Clock fields: written, but excluded from the compare that decides
63720
64742
  * whether persisting is worth a SQLite commit. */
63721
- volatileStateFields: ["lastFetchedAt"]
64743
+ volatileStateFields: ["lastFetchedAt"],
64744
+ customize: powerMeterCustomize
63722
64745
  };
63723
64746
  /**
63724
64747
  * Presence cap. Models HA `person.*` and `device_tracker.*` entities
@@ -64407,6 +65430,8 @@ var runningCustomize = {
64407
65430
  stateField: "running"
64408
65431
  },
64409
65432
  deviceTypes: [
65433
+ DeviceType.Washer,
65434
+ DeviceType.Dryer,
64410
65435
  DeviceType.Dishwasher,
64411
65436
  DeviceType.Vacuum,
64412
65437
  DeviceType.LawnMower,
@@ -66896,7 +67921,8 @@ var switchCapability = {
66896
67921
  deviceTypes: [
66897
67922
  DeviceType.Switch,
66898
67923
  DeviceType.Siren,
66899
- DeviceType.Light
67924
+ DeviceType.Light,
67925
+ DeviceType.Fan
66900
67926
  ],
66901
67927
  methods: { setState: method(object({
66902
67928
  deviceId: number(),
@@ -69139,6 +70165,7 @@ function runningFromLawnMower(activity, previous, fetchedAt, transitionAt) {
69139
70165
  if (activity === "paused") return nativeSlice(false, "paused", previous, transitionAtMs, fetchedAt, null);
69140
70166
  return nativeSlice(false, activity, previous, transitionAtMs, fetchedAt, null);
69141
70167
  }
70168
+ DeviceFeature.FanSpeed, DeviceFeature.FanPreset, DeviceFeature.FanDirection, DeviceFeature.FanOscillating, DeviceFeature.CoverPositionable, DeviceFeature.CoverTilt, DeviceFeature.ValvePositionable, DeviceFeature.MediaPlayerVolume, DeviceFeature.ClimateFanMode;
69142
70169
  /**
69143
70170
  * Frozen unit → spec table. `•` in the doc marks each dimension's canonical
69144
70171
  * unit (`factor: 1, offset: 0`). °F derives from `°C = (°F − 32) × 5/9` ⇒
@@ -69538,7 +70565,7 @@ function tryConvertDelta(value, from, to) {
69538
70565
  return shifted - origin;
69539
70566
  }
69540
70567
  SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
69541
- DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat, DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.Dishwasher, DeviceType.Camera, DeviceType.Camera, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.PetFeeder;
70568
+ DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat, DeviceType.EventEmitter, DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Camera, DeviceType.Camera, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.PetFeeder;
69542
70569
  String.raw`rose\(active(\d+), changed(\d+), (\d+(?:\.\d+)?)\)`;
69543
70570
  DeviceRole.BinarySensor, DeviceRole.MotionSensor;
69544
70571
  new Set(CAP_NAMES);
@@ -69867,6 +70894,9 @@ var DEVICE_LOCAL_STATE_CAPS = {
69867
70894
  featureProbe: featureProbeCapability,
69868
70895
  flood: floodCapability,
69869
70896
  gas: gasCapability,
70897
+ groupActive: groupActiveCapability,
70898
+ groupCommands: groupCommandsCapability,
70899
+ groupStatus: groupStatusCapability,
69870
70900
  heatingValve: heatingValveCapability,
69871
70901
  humidifier: humidifierCapability,
69872
70902
  humiditySensor: humiditySensorCapability,
@@ -69876,6 +70906,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
69876
70906
  lawnMowerControl: lawnMowerControlCapability,
69877
70907
  lockControl: lockControlCapability,
69878
70908
  mediaPlayer: mediaPlayerCapability,
70909
+ meter: meterCapability,
69879
70910
  motion: motionCapability,
69880
70911
  motionTrigger: motionTriggerCapability,
69881
70912
  motionZones: motionZonesCapability,
@@ -71151,7 +72182,7 @@ var BaseDeviceProvider = class extends BaseAddon {
71151
72182
  return toDeviceSummary(device, this.addonId);
71152
72183
  }
71153
72184
  };
71154
- DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Camera, DeviceType.Hub, DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.Dishwasher;
72185
+ DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Camera, DeviceType.Hub, DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer;
71155
72186
  new Set(Object.values(DeviceType));
71156
72187
  Object.freeze({
71157
72188
  "accessories.getStatus": {
@@ -71259,6 +72290,13 @@ Object.freeze({
71259
72290
  access: "view",
71260
72291
  role: "admin"
71261
72292
  },
72293
+ "addons.getPackageDocs": {
72294
+ capName: "addons",
72295
+ capScope: "system",
72296
+ addonId: null,
72297
+ access: "view",
72298
+ role: "admin"
72299
+ },
71262
72300
  "addons.getVersions": {
71263
72301
  capName: "addons",
71264
72302
  capScope: "system",
@@ -74367,6 +75405,27 @@ Object.freeze({
74367
75405
  access: "view",
74368
75406
  role: "viewer"
74369
75407
  },
75408
+ "groupActive.getStatus": {
75409
+ capName: "group-active",
75410
+ capScope: "device",
75411
+ addonId: null,
75412
+ access: "view",
75413
+ role: "viewer"
75414
+ },
75415
+ "groupCommands.getStatus": {
75416
+ capName: "group-commands",
75417
+ capScope: "device",
75418
+ addonId: null,
75419
+ access: "view",
75420
+ role: "viewer"
75421
+ },
75422
+ "groupStatus.getStatus": {
75423
+ capName: "group-status",
75424
+ capScope: "device",
75425
+ addonId: null,
75426
+ access: "view",
75427
+ role: "viewer"
75428
+ },
74370
75429
  "heatingValve.getStatus": {
74371
75430
  capName: "heating-valve",
74372
75431
  capScope: "device",
@@ -75319,6 +76378,13 @@ Object.freeze({
75319
76378
  access: "create",
75320
76379
  role: "admin"
75321
76380
  },
76381
+ "meter.getStatus": {
76382
+ capName: "meter",
76383
+ capScope: "device",
76384
+ addonId: null,
76385
+ access: "view",
76386
+ role: "viewer"
76387
+ },
75322
76388
  "metricsProvider.collectSnapshot": {
75323
76389
  capName: "metrics-provider",
75324
76390
  capScope: "system",
@@ -83417,7 +84483,39 @@ var APPLIANCE_CAP_VOCABULARY = {
83417
84483
  phrase: t("When {device} finishes", "Quando {device} finisce"),
83418
84484
  icon: "square"
83419
84485
  }
83420
- }
84486
+ },
84487
+ overrides: { byType: {
84488
+ [DeviceType.Washer]: {
84489
+ state: { running: {
84490
+ whenTrue: t("When the washing machine starts", "Quando la lavatrice inizia"),
84491
+ whenFalse: t("When the washing machine has finished", "Quando la lavatrice ha finito")
84492
+ } },
84493
+ events: {
84494
+ onStarted: { phrase: t("When the washing machine starts", "Quando la lavatrice inizia") },
84495
+ onFinished: { phrase: t("When the washing machine has finished", "Quando la lavatrice ha finito") }
84496
+ }
84497
+ },
84498
+ [DeviceType.Dryer]: {
84499
+ state: { running: {
84500
+ whenTrue: t("When the dryer starts", "Quando l'asciugatrice inizia"),
84501
+ whenFalse: t("When the dryer has finished", "Quando l'asciugatrice ha finito")
84502
+ } },
84503
+ events: {
84504
+ onStarted: { phrase: t("When the dryer starts", "Quando l'asciugatrice inizia") },
84505
+ onFinished: { phrase: t("When the dryer has finished", "Quando l'asciugatrice ha finito") }
84506
+ }
84507
+ },
84508
+ [DeviceType.Dishwasher]: {
84509
+ state: { running: {
84510
+ whenTrue: t("When the dishwasher starts", "Quando la lavastoviglie inizia"),
84511
+ whenFalse: t("When the dishwasher has finished", "Quando la lavastoviglie ha finito")
84512
+ } },
84513
+ events: {
84514
+ onStarted: { phrase: t("When the dishwasher starts", "Quando la lavastoviglie inizia") },
84515
+ onFinished: { phrase: t("When the dishwasher has finished", "Quando la lavastoviglie ha finito") }
84516
+ }
84517
+ }
84518
+ } }
83421
84519
  },
83422
84520
  update: {
83423
84521
  scope: "device",
@@ -84189,6 +85287,41 @@ var SENSOR_CAP_VOCABULARY = {
84189
85287
  icon: "flame"
84190
85288
  }]
84191
85289
  },
85290
+ "group-active": {
85291
+ scope: "device",
85292
+ noun: t("Group state", "Stato del gruppo")
85293
+ },
85294
+ "group-commands": {
85295
+ scope: "device",
85296
+ noun: t("Group command", "Comando di gruppo")
85297
+ },
85298
+ "group-status": {
85299
+ scope: "device",
85300
+ noun: t("Group", "Gruppo"),
85301
+ state: [
85302
+ {
85303
+ kind: "numeric",
85304
+ field: "included",
85305
+ quantity: t("the members reporting", "i membri che rispondono"),
85306
+ label: t("Reporting", "Rispondono"),
85307
+ icon: "users"
85308
+ },
85309
+ {
85310
+ kind: "numeric",
85311
+ field: "excluded",
85312
+ quantity: t("the members left out", "i membri esclusi"),
85313
+ label: t("Excluded", "Esclusi"),
85314
+ icon: "users"
85315
+ },
85316
+ {
85317
+ kind: "numeric",
85318
+ field: "total",
85319
+ quantity: t("the member count", "il numero di membri"),
85320
+ label: t("Members", "Membri"),
85321
+ icon: "sigma"
85322
+ }
85323
+ ]
85324
+ },
84192
85325
  "humidity-sensor": {
84193
85326
  scope: "device",
84194
85327
  noun: t("Humidity", "Umidità"),
@@ -84214,6 +85347,17 @@ var SENSOR_CAP_VOCABULARY = {
84214
85347
  }],
84215
85348
  events: { onMotionChanged: { notOperatorFacing: "the `detected` state trigger phrases both edges, from the mirror that survives a dropped event (D49)" } }
84216
85349
  },
85350
+ meter: {
85351
+ scope: "device",
85352
+ noun: t("Meter", "Contatore"),
85353
+ state: [{
85354
+ kind: "numeric",
85355
+ field: "value",
85356
+ quantity: t("the total", "il totale"),
85357
+ label: t("Total", "Totale"),
85358
+ icon: "gauge"
85359
+ }]
85360
+ },
84217
85361
  "numeric-sensor": {
84218
85362
  scope: "device",
84219
85363
  noun: t("Sensor", "Sensore"),
@@ -84686,8 +85830,47 @@ function projectAction(cap, action) {
84686
85830
  };
84687
85831
  }
84688
85832
  Object.entries(CAP_VOCABULARY_BY_NAME).flatMap(([cap, entry]) => entry.scope === "device" ? (entry.actions ?? []).map((a) => projectAction(cap, a)) : []);
84689
- DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.Dishwasher;
85833
+ DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer;
84690
85834
  DeviceFeature.BatteryOperated;
85835
+ DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher;
85836
+ var HA_AS = "a power sensor (device_class power). Home Assistant has no laundry domain. running-state stays unexported until a null reading can be published as unavailable.";
85837
+ var HOMEKIT_REASON = "HomeKit has no laundry-appliance service. The export tab would pair an accessory with nothing on it: running-state is withheld until a null reading can be unavailable, and power is not a HomeKit service this export honours.";
85838
+ var ALEXA_REASON = "Alexa has no laundry category in this export, and neither power nor running has an Alexa interface.";
85839
+ var GOOGLE_REASON = "Google WASHER, DRYER and DISHWASHER require RunCycle. A power threshold is not that trait, and this export does not publish RunCycle.";
85840
+ var MATTER_REASON = "No Matter export is built. The closest device types are Laundry Washer (0x0073) and Laundry Dryer (0x0074); a power threshold is not the Laundry Washer Mode cluster.";
85841
+ function withheld(reason) {
85842
+ return {
85843
+ [DeviceType.Washer]: {
85844
+ exported: false,
85845
+ reason
85846
+ },
85847
+ [DeviceType.Dryer]: {
85848
+ exported: false,
85849
+ reason
85850
+ },
85851
+ [DeviceType.Dishwasher]: {
85852
+ exported: false,
85853
+ reason
85854
+ }
85855
+ };
85856
+ }
85857
+ function offered(received) {
85858
+ return {
85859
+ [DeviceType.Washer]: {
85860
+ exported: true,
85861
+ as: received
85862
+ },
85863
+ [DeviceType.Dryer]: {
85864
+ exported: true,
85865
+ as: received
85866
+ },
85867
+ [DeviceType.Dishwasher]: {
85868
+ exported: true,
85869
+ as: received
85870
+ }
85871
+ };
85872
+ }
85873
+ offered(HA_AS), withheld(HOMEKIT_REASON), withheld(ALEXA_REASON), withheld(GOOGLE_REASON), withheld(MATTER_REASON);
84691
85874
  Object.freeze({
84692
85875
  "accessories.getStatus": [{
84693
85876
  name: "deviceId",
@@ -85654,6 +86837,21 @@ Object.freeze({
85654
86837
  form: "single",
85655
86838
  optional: false
85656
86839
  }],
86840
+ "groupActive.getStatus": [{
86841
+ name: "deviceId",
86842
+ form: "single",
86843
+ optional: false
86844
+ }],
86845
+ "groupCommands.getStatus": [{
86846
+ name: "deviceId",
86847
+ form: "single",
86848
+ optional: false
86849
+ }],
86850
+ "groupStatus.getStatus": [{
86851
+ name: "deviceId",
86852
+ form: "single",
86853
+ optional: false
86854
+ }],
85657
86855
  "heatingValve.getStatus": [{
85658
86856
  name: "deviceId",
85659
86857
  form: "single",
@@ -85854,6 +87052,11 @@ Object.freeze({
85854
87052
  form: "single",
85855
87053
  optional: false
85856
87054
  }],
87055
+ "meter.getStatus": [{
87056
+ name: "deviceId",
87057
+ form: "single",
87058
+ optional: false
87059
+ }],
85857
87060
  "motion.getStatus": [{
85858
87061
  name: "deviceId",
85859
87062
  form: "single",
@@ -87461,7 +88664,6 @@ Object.freeze({
87461
88664
  "network-access": "ingress",
87462
88665
  "smtp-provider": "email"
87463
88666
  });
87464
- DeviceType.Camera;
87465
88667
  /**
87466
88668
  * A saved Customize assignment (D936). The schema is the type: callers use
87467
88669
  * `z.infer`, they do not restate the shape.
@@ -87638,6 +88840,8 @@ new Map(Object.entries({
87638
88840
  "detection-blind": "device-events",
87639
88841
  "motion-noisy": "device-events",
87640
88842
  "motion-calm": "device-events",
88843
+ "package-llm-silent": "device-events",
88844
+ "package-llm-answered": "device-events",
87641
88845
  "recording-stalled": "device-events",
87642
88846
  "recording-healthy": "device-events",
87643
88847
  "recording-degraded": "device-events",
@@ -87721,6 +88925,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
87721
88925
  label: "Motion without a subject",
87722
88926
  kinds: ["motion-noisy", "motion-calm"]
87723
88927
  },
88928
+ {
88929
+ id: "package-llm",
88930
+ family: "device-events",
88931
+ label: "Package confirm",
88932
+ kinds: ["package-llm-silent", "package-llm-answered"]
88933
+ },
87724
88934
  {
87725
88935
  id: "recording",
87726
88936
  family: "device-events",
@@ -87902,6 +89112,8 @@ var DEVICE_EVENTS = [
87902
89112
  "detection-blind",
87903
89113
  "motion-noisy",
87904
89114
  "motion-calm",
89115
+ "package-llm-silent",
89116
+ "package-llm-answered",
87905
89117
  "recording-stalled",
87906
89118
  "recording-healthy",
87907
89119
  "recording-degraded",
@@ -88170,6 +89382,15 @@ new Map([
88170
89382
  snapshotLabel: "Cameras with constant motion now",
88171
89383
  snapshotSection: null
88172
89384
  },
89385
+ {
89386
+ id: "package-llm-confirm",
89387
+ family: "device-events",
89388
+ label: "Package confirm (not answering / answering again)",
89389
+ bad: ["package-llm-silent"],
89390
+ recovery: ["package-llm-answered"],
89391
+ snapshotLabel: "Cameras whose package confirm is not answering",
89392
+ snapshotSection: null
89393
+ },
88173
89394
  {
88174
89395
  id: "recording-health",
88175
89396
  family: "device-events",