@camstack/addon-export-google 0.1.114 → 0.1.116

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.
@@ -5520,7 +5520,7 @@ var ZodIssueCode = {
5520
5520
  var ZodFirstPartyTypeKind;
5521
5521
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5522
5522
  //#endregion
5523
- //#region ../types/dist/sleep-bykKrTgu.mjs
5523
+ //#region ../types/dist/sleep--jXS9hWo.mjs
5524
5524
  /**
5525
5525
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5526
5526
  * window to float samples (D455).
@@ -8664,6 +8664,7 @@ var CAP_NAMES = Object.freeze([
8664
8664
  "filesystem-browse",
8665
8665
  "flood",
8666
8666
  "gas",
8667
+ "group-active",
8667
8668
  "group-commands",
8668
8669
  "group-status",
8669
8670
  "heating-valve",
@@ -8686,6 +8687,7 @@ var CAP_NAMES = Object.freeze([
8686
8687
  "login-method",
8687
8688
  "media-player",
8688
8689
  "mesh-network",
8690
+ "meter",
8689
8691
  "metrics-provider",
8690
8692
  "model-convert",
8691
8693
  "model-distributor",
@@ -9484,6 +9486,10 @@ Object.freeze({
9484
9486
  "path": "detected",
9485
9487
  "valueType": "boolean"
9486
9488
  }],
9489
+ "group-active": [{
9490
+ "path": "active",
9491
+ "valueType": "boolean"
9492
+ }],
9487
9493
  "group-status": [
9488
9494
  {
9489
9495
  "path": "included",
@@ -9743,6 +9749,10 @@ Object.freeze({
9743
9749
  ]
9744
9750
  }
9745
9751
  ],
9752
+ "meter": [{
9753
+ "path": "value",
9754
+ "valueType": "number"
9755
+ }],
9746
9756
  "motion": [
9747
9757
  {
9748
9758
  "path": "detected",
@@ -10486,7 +10496,7 @@ object({
10486
10496
  params: record(string(), union([string(), number()])).optional()
10487
10497
  });
10488
10498
  //#endregion
10489
- //#region ../types/dist/err-msg-BXKzRBwg.mjs
10499
+ //#region ../types/dist/err-msg-DIorGYeC.mjs
10490
10500
  var DeviceType = /* @__PURE__ */ function(DeviceType) {
10491
10501
  DeviceType["Camera"] = "camera";
10492
10502
  DeviceType["Hub"] = "hub";
@@ -10580,8 +10590,14 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
10580
10590
  DeviceType["PetFeeder"] = "pet-feeder";
10581
10591
  /** Built-in dishwasher — program lifecycle, door / remote-start gates,
10582
10592
  * salt and rinse-aid levels. Installed with the `dishwasher` cap.
10583
- * Sources: native Bosch Home Connect, reusable by similar integrations. */
10593
+ * Sources: native Bosch Home Connect, reusable by similar integrations.
10594
+ * A plug-built dishwasher carries running-state and power instead. */
10584
10595
  DeviceType["Dishwasher"] = "dishwasher";
10596
+ /** Washing machine. A plug-built one is running while its power stays
10597
+ * above a threshold. No program cap — that surface is the dishwasher's. */
10598
+ DeviceType["Washer"] = "washer";
10599
+ /** Tumble dryer. Same plug-built running surface as {@link Washer}. */
10600
+ DeviceType["Dryer"] = "dryer";
10585
10601
  return DeviceType;
10586
10602
  }({});
10587
10603
  var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
@@ -10839,7 +10855,7 @@ function errMsg(err) {
10839
10855
  return String(err);
10840
10856
  }
10841
10857
  //#endregion
10842
- //#region ../types/dist/composition-OhpuespA.mjs
10858
+ //#region ../types/dist/composition-Bb8iwHEJ.mjs
10843
10859
  /**
10844
10860
  * The ffmpeg build every CamStack node downloads, per platform and arch.
10845
10861
  *
@@ -11154,6 +11170,13 @@ var table = {
11154
11170
  apply: () => {
11155
11171
  throw new ExpressionEvalError("latchedAt: stateful evaluation context is required");
11156
11172
  }
11173
+ },
11174
+ schmitt: {
11175
+ minArgs: 3,
11176
+ maxArgs: 5,
11177
+ apply: () => {
11178
+ throw new ExpressionEvalError("schmitt: stateful evaluation context is required");
11179
+ }
11157
11180
  }
11158
11181
  };
11159
11182
  Object.freeze(Object.assign(Object.create(null), table));
@@ -11595,6 +11618,99 @@ function validateExpressionSource(src) {
11595
11618
  return null;
11596
11619
  }
11597
11620
  /**
11621
+ * One power reading becomes a washer, dryer or dishwasher (D944 helper).
11622
+ *
11623
+ * Standby of the control board is under 5 W; a motor or a heater is far
11624
+ * above that, so 5 W is the line. A door lock or a short pump spike is not
11625
+ * a cycle, so running starts only after 30 s above the line.
11626
+ *
11627
+ * A wash, dry or dishwasher pause (soak, heat-wait, heater off between
11628
+ * bursts) lasts several minutes. Ending the cycle on the first dip would
11629
+ * report "finished" in the middle of the program, so the stop dwell is
11630
+ * 10 minutes on every type. The number is stored per type so one machine
11631
+ * can move later without moving the others.
11632
+ */
11633
+ var APPLIANCE_TEMPLATE_ID = "appliance";
11634
+ var APPLIANCE_KINDS = [
11635
+ "washer",
11636
+ "dryer",
11637
+ "dishwasher"
11638
+ ];
11639
+ DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher;
11640
+ /**
11641
+ * Statistics and integrals over a history read (D944).
11642
+ *
11643
+ * Pure: the same points always give the same answer, so a restart recomputes
11644
+ * rather than trusting a buffer. A gauge mean is time-weighted (value × ms),
11645
+ * never the mean of the samples. A hole with no held value is not integrated
11646
+ * as zero. A truncated read is not published.
11647
+ */
11648
+ var STATISTIC_STATS = [
11649
+ "min",
11650
+ "max",
11651
+ "mean",
11652
+ "sum",
11653
+ "count",
11654
+ "change"
11655
+ ];
11656
+ /**
11657
+ * The range a statistics or integral helper asks history for (D944).
11658
+ *
11659
+ * Calendar edges are the hub's timezone, never UTC midnight: a day is 23, 24
11660
+ * or 25 hours across a DST change. A tier is eligible only when its retention
11661
+ * is strictly longer than the longest that range can be. Forever qualifies.
11662
+ * Equal to a tier's retention is a refusal, not a short answer.
11663
+ */
11664
+ var MINUTE_MS = 6e4;
11665
+ var HOUR_MS = 60 * MINUTE_MS;
11666
+ var DAY_MS = 24 * HOUR_MS;
11667
+ var ROLLING_SPANS = [
11668
+ "1h",
11669
+ "24h",
11670
+ "2d",
11671
+ "7d",
11672
+ "30d",
11673
+ "custom"
11674
+ ];
11675
+ var CALENDAR_PERIODS = [
11676
+ "today",
11677
+ "yesterday",
11678
+ "this-week",
11679
+ "this-month"
11680
+ ];
11681
+ var RESET_PERIODS = [
11682
+ "never",
11683
+ "daily",
11684
+ "weekly",
11685
+ "monthly"
11686
+ ];
11687
+ 5 * MINUTE_MS;
11688
+ 24 * HOUR_MS, 2 * DAY_MS, 7 * DAY_MS, 30 * DAY_MS;
11689
+ 7 * DAY_MS, 30 * DAY_MS, 365 * DAY_MS;
11690
+ var rollingWindowObject = object({
11691
+ kind: literal("rolling"),
11692
+ span: _enum(ROLLING_SPANS),
11693
+ customMinutes: number().int().min(5).optional()
11694
+ }).check((payload) => {
11695
+ if (payload.value.span === "custom" && payload.value.customMinutes === void 0) payload.issues.push({
11696
+ code: "custom",
11697
+ message: "a custom range needs a duration in minutes",
11698
+ path: ["customMinutes"],
11699
+ input: payload.value
11700
+ });
11701
+ if (payload.value.span !== "custom" && payload.value.customMinutes !== void 0) payload.issues.push({
11702
+ code: "custom",
11703
+ message: "only a custom range carries a duration",
11704
+ path: ["customMinutes"],
11705
+ input: payload.value
11706
+ });
11707
+ });
11708
+ var RollingWindowSchema = rollingWindowObject;
11709
+ var StatisticWindowSchema = discriminatedUnion("kind", [rollingWindowObject, object({
11710
+ kind: literal("calendar"),
11711
+ period: _enum(CALENDAR_PERIODS)
11712
+ })]);
11713
+ /**
11598
11714
  * A composition source identity: `(addonId, stableId)`, never a numeric device
11599
11715
  * id. Split out so helper schemas can name it without a cycle through
11600
11716
  * `composition.ts` (D659).
@@ -11620,7 +11736,13 @@ var GROUP_TEMPLATE_IDS = [
11620
11736
  "occupancy",
11621
11737
  "binary",
11622
11738
  "switch",
11623
- "light"
11739
+ "light",
11740
+ "fan",
11741
+ "cover",
11742
+ "valve",
11743
+ "lock",
11744
+ "media-player",
11745
+ "climate"
11624
11746
  ];
11625
11747
  var NUMERIC_AGGREGATES = [
11626
11748
  "mean",
@@ -11650,14 +11772,73 @@ var HelperMemberSchema = object({
11650
11772
  cap: string().min(1),
11651
11773
  fieldPath: string().min(1)
11652
11774
  });
11653
- var HelperSpecSchema = discriminatedUnion("kind", [object({
11654
- kind: literal("group"),
11655
- templateId: GroupTemplateIdSchema,
11656
- aggregate: AggregateReducerSchema,
11657
- members: array(HelperMemberSchema).min(1).max(64),
11658
- /** Actuator groups only. Readings leave this unset. */
11659
- active: ActiveCriterionSchema.optional()
11660
- })]);
11775
+ var HelperSpecSchema = discriminatedUnion("kind", [
11776
+ object({
11777
+ kind: literal("group"),
11778
+ templateId: GroupTemplateIdSchema,
11779
+ aggregate: AggregateReducerSchema,
11780
+ members: array(HelperMemberSchema).min(1).max(64),
11781
+ /** Actuator groups only. Readings leave this unset. */
11782
+ active: ActiveCriterionSchema.optional()
11783
+ }),
11784
+ object({
11785
+ kind: literal("appliance"),
11786
+ templateId: literal(APPLIANCE_TEMPLATE_ID),
11787
+ appliance: _enum(APPLIANCE_KINDS),
11788
+ thresholdWatts: number().positive(),
11789
+ startDwellMs: number().int().nonnegative(),
11790
+ stopDwellMs: number().int().nonnegative(),
11791
+ member: HelperMemberSchema
11792
+ }),
11793
+ object({
11794
+ kind: literal("statistic"),
11795
+ stat: _enum(STATISTIC_STATS),
11796
+ window: StatisticWindowSchema,
11797
+ source: HelperMemberSchema
11798
+ }),
11799
+ object({
11800
+ kind: literal("integral"),
11801
+ reset: _enum(RESET_PERIODS),
11802
+ output: _enum(["energy", "meter"]),
11803
+ source: HelperMemberSchema
11804
+ }),
11805
+ object({
11806
+ kind: literal("threshold"),
11807
+ source: HelperMemberSchema,
11808
+ high: number(),
11809
+ low: number(),
11810
+ onForMs: number().int().nonnegative(),
11811
+ offForMs: number().int().nonnegative()
11812
+ }),
11813
+ object({
11814
+ kind: literal("arithmetic"),
11815
+ op: _enum([
11816
+ "sum",
11817
+ "difference",
11818
+ "ratio"
11819
+ ]),
11820
+ inputs: array(HelperMemberSchema).min(2).max(64)
11821
+ }),
11822
+ object({
11823
+ kind: literal("expression"),
11824
+ expr: string().min(1),
11825
+ inputs: array(object({
11826
+ name: string().min(1),
11827
+ member: HelperMemberSchema
11828
+ })).min(1).max(64),
11829
+ output: _enum(["number", "boolean"])
11830
+ }),
11831
+ object({
11832
+ kind: literal("derivative"),
11833
+ window: RollingWindowSchema,
11834
+ per: _enum([
11835
+ "second",
11836
+ "minute",
11837
+ "hour"
11838
+ ]),
11839
+ source: HelperMemberSchema
11840
+ })
11841
+ ]);
11661
11842
  /** A composed device's stableId is this prefix plus the block id. */
11662
11843
  var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
11663
11844
  /** Longest snippet a `code` source may carry (slice 4). */
@@ -11718,6 +11899,12 @@ var CompositionFieldSourceSchema = discriminatedUnion("kind", [
11718
11899
  "all"
11719
11900
  ]),
11720
11901
  reads: array(CompositionFieldReadSchema).min(1).max(64),
11902
+ /**
11903
+ * Set when the reads are an enum state, not a yes/no: the listed states
11904
+ * count as active (a cover is `open`). A state outside the list is inactive;
11905
+ * a read that is not a state at all is left out. Only `any` / `all` use it.
11906
+ */
11907
+ activeWhen: array(string().min(1)).min(1).optional(),
11721
11908
  /** `value` is the reading; the others are the member counts. */
11722
11909
  publish: _enum([
11723
11910
  "value",
@@ -11731,6 +11918,26 @@ var CompositionFieldSourceSchema = discriminatedUnion("kind", [
11731
11918
  "omit",
11732
11919
  "offline"
11733
11920
  ])
11921
+ }),
11922
+ object({
11923
+ kind: literal("series"),
11924
+ read: CompositionFieldReadSchema,
11925
+ /** `value` is the statistic or the integral. The others are the gap counts. */
11926
+ publish: _enum([
11927
+ "value",
11928
+ "included",
11929
+ "excluded",
11930
+ "total"
11931
+ ]),
11932
+ /**
11933
+ * What an unanswered `value` does. Counts ignore this. `offline` leaves the
11934
+ * device unseeded until history answers, so a restart cannot publish 0.
11935
+ */
11936
+ empty: _enum([
11937
+ "null",
11938
+ "omit",
11939
+ "offline"
11940
+ ])
11734
11941
  })
11735
11942
  ]);
11736
11943
  var CompositionCommandTargetSchema = discriminatedUnion("kind", [object({
@@ -17033,7 +17240,22 @@ var BrokerProviderInfoSchema = object({
17033
17240
  */
17034
17241
  interactiveConnectPath: string().min(1).optional(),
17035
17242
  /** Relative hub path to disconnect the linked account (same popup pattern). */
17036
- interactiveDisconnectPath: string().min(1).optional()
17243
+ interactiveDisconnectPath: string().min(1).optional(),
17244
+ /**
17245
+ * The kind signs in through a server-held interactive session instead of
17246
+ * (or before) typed credentials. `basePath` is a hub-relative route set
17247
+ * served by the owning addon (`/addon/<id>/...`) speaking the sign-in
17248
+ * contract: `POST {basePath}/start` (body: the form's settings) answers
17249
+ * `{ sessionId, loginUrl }`; `GET {basePath}/status?sessionId=` answers
17250
+ * `{ phase: 'starting' | 'awaiting-login' | 'captured' | 'error' |
17251
+ * 'cancelled', loginUrl, error }`; `POST {basePath}/commit`
17252
+ * (`{ sessionId, name, brokerId? }`) stores the credentials on a new or
17253
+ * existing broker and answers `{ brokerId }`; `POST {basePath}/cancel`
17254
+ * (`{ sessionId }`) drops the session. The dialog that edits a broker
17255
+ * offers it as the default path; the fields the session fills are
17256
+ * marked `filledBySignIn` in the kind's settings schema.
17257
+ */
17258
+ signIn: object({ basePath: string().min(1) }).optional()
17037
17259
  }))
17038
17260
  });
17039
17261
  var ListInputSchema = object({
@@ -18032,7 +18254,8 @@ var CompositionProblemSchema = object({
18032
18254
  "native-capability-replace",
18033
18255
  "mixed-quantity",
18034
18256
  "helper-mismatch",
18035
- "member-constraint"
18257
+ "member-constraint",
18258
+ "retention"
18036
18259
  ]),
18037
18260
  path: string(),
18038
18261
  message: string()
@@ -18266,13 +18489,17 @@ Object.freeze({
18266
18489
  latchedAt: {
18267
18490
  kind: "fixed",
18268
18491
  result: ["number", "null"]
18492
+ },
18493
+ schmitt: {
18494
+ kind: "fixed",
18495
+ result: ["boolean", "null"]
18269
18496
  }
18270
18497
  });
18271
18498
  /**
18272
18499
  * One catalog row per base reading a group helper can build (D944 §3).
18273
18500
  * Data, not a form default written into the block.
18274
18501
  */
18275
- var NOW = {
18502
+ var NOW$2 = {
18276
18503
  fieldPath: "lastFetchedAt",
18277
18504
  expr: "now"
18278
18505
  };
@@ -18286,6 +18513,8 @@ function numeric(input) {
18286
18513
  family: "numeric",
18287
18514
  deviceType: DeviceType.Sensor,
18288
18515
  memberDeviceType: DeviceType.Sensor,
18516
+ memberDeviceTypes: [DeviceType.Sensor],
18517
+ activeWhen: void 0,
18289
18518
  commandCaps: [],
18290
18519
  baseUnit: baseUnitOf(input.quantity),
18291
18520
  aggregates: NUMERIC_AGGREGATES,
@@ -18301,6 +18530,8 @@ function binary(input) {
18301
18530
  family: "binary",
18302
18531
  deviceType: DeviceType.Sensor,
18303
18532
  memberDeviceType: DeviceType.Sensor,
18533
+ memberDeviceTypes: [DeviceType.Sensor],
18534
+ activeWhen: void 0,
18304
18535
  commandCaps: [],
18305
18536
  quantity: "none",
18306
18537
  baseUnit: void 0,
@@ -18318,7 +18549,7 @@ var GROUP_TEMPLATES = [
18318
18549
  quantity: "temperature",
18319
18550
  defaultAggregate: "mean",
18320
18551
  empty: "null",
18321
- companions: [NOW]
18552
+ companions: [NOW$2]
18322
18553
  }),
18323
18554
  numeric({
18324
18555
  id: "humidity",
@@ -18329,7 +18560,7 @@ var GROUP_TEMPLATES = [
18329
18560
  quantity: "humidity",
18330
18561
  defaultAggregate: "mean",
18331
18562
  empty: "null",
18332
- companions: [NOW]
18563
+ companions: [NOW$2]
18333
18564
  }),
18334
18565
  numeric({
18335
18566
  id: "pressure",
@@ -18340,7 +18571,7 @@ var GROUP_TEMPLATES = [
18340
18571
  quantity: "pressure",
18341
18572
  defaultAggregate: "mean",
18342
18573
  empty: "null",
18343
- companions: [NOW]
18574
+ companions: [NOW$2]
18344
18575
  }),
18345
18576
  numeric({
18346
18577
  id: "illuminance",
@@ -18351,7 +18582,7 @@ var GROUP_TEMPLATES = [
18351
18582
  quantity: "illuminance",
18352
18583
  defaultAggregate: "mean",
18353
18584
  empty: "null",
18354
- companions: [NOW]
18585
+ companions: [NOW$2]
18355
18586
  }),
18356
18587
  numeric({
18357
18588
  id: "power",
@@ -18362,7 +18593,7 @@ var GROUP_TEMPLATES = [
18362
18593
  quantity: "power",
18363
18594
  defaultAggregate: "sum",
18364
18595
  empty: "omit",
18365
- companions: [NOW]
18596
+ companions: [NOW$2]
18366
18597
  }),
18367
18598
  numeric({
18368
18599
  id: "energy",
@@ -18373,7 +18604,7 @@ var GROUP_TEMPLATES = [
18373
18604
  quantity: "energy",
18374
18605
  defaultAggregate: "sum",
18375
18606
  empty: "omit",
18376
- companions: [NOW]
18607
+ companions: [NOW$2]
18377
18608
  }),
18378
18609
  numeric({
18379
18610
  id: "battery",
@@ -18408,7 +18639,7 @@ var GROUP_TEMPLATES = [
18408
18639
  quantity: "device",
18409
18640
  defaultAggregate: "mean",
18410
18641
  empty: "null",
18411
- companions: [NOW]
18642
+ companions: [NOW$2]
18412
18643
  }),
18413
18644
  binary({
18414
18645
  id: "motion",
@@ -18502,6 +18733,11 @@ var GROUP_TEMPLATES = [
18502
18733
  summary: "On when at least one switch is on, or when all of them are. Offline and unknown members are left out of that decision, never read as off, and still receive the command.",
18503
18734
  deviceType: DeviceType.Switch,
18504
18735
  outputCap: "switch",
18736
+ outputField: "on",
18737
+ member: {
18738
+ cap: "switch",
18739
+ fieldPath: "on"
18740
+ },
18505
18741
  commandCaps: ["switch"]
18506
18742
  }),
18507
18743
  actuator({
@@ -18509,34 +18745,136 @@ var GROUP_TEMPLATES = [
18509
18745
  summary: "On when at least one light is on, or when all of them are. Brightness and colour are offered only when every member has them. A command is not sent to a member that lacks it.",
18510
18746
  deviceType: DeviceType.Light,
18511
18747
  outputCap: "switch",
18748
+ outputField: "on",
18749
+ member: {
18750
+ cap: "switch",
18751
+ fieldPath: "on"
18752
+ },
18512
18753
  commandCaps: [
18513
18754
  "switch",
18514
18755
  "brightness",
18515
18756
  "color"
18516
18757
  ]
18758
+ }),
18759
+ actuator({
18760
+ id: "fan",
18761
+ 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.",
18762
+ deviceType: DeviceType.Fan,
18763
+ outputCap: "switch",
18764
+ outputField: "on",
18765
+ member: {
18766
+ cap: "switch",
18767
+ fieldPath: "on"
18768
+ },
18769
+ commandCaps: ["switch", "fan-control"]
18770
+ }),
18771
+ actuator({
18772
+ id: "cover",
18773
+ 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.",
18774
+ deviceType: DeviceType.Cover,
18775
+ outputCap: "group-active",
18776
+ outputField: "active",
18777
+ member: {
18778
+ cap: "cover",
18779
+ fieldPath: "state"
18780
+ },
18781
+ activeWhen: [
18782
+ "open",
18783
+ "opening",
18784
+ "stopped"
18785
+ ],
18786
+ commandCaps: ["cover"]
18787
+ }),
18788
+ actuator({
18789
+ id: "valve",
18790
+ 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.",
18791
+ deviceType: DeviceType.Valve,
18792
+ outputCap: "group-active",
18793
+ outputField: "active",
18794
+ member: {
18795
+ cap: "valve",
18796
+ fieldPath: "state"
18797
+ },
18798
+ activeWhen: [
18799
+ "open",
18800
+ "opening",
18801
+ "stopped"
18802
+ ],
18803
+ commandCaps: ["valve"]
18804
+ }),
18805
+ actuator({
18806
+ id: "lock",
18807
+ 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.",
18808
+ deviceType: DeviceType.Lock,
18809
+ outputCap: "group-active",
18810
+ outputField: "active",
18811
+ member: {
18812
+ cap: "lock-control",
18813
+ fieldPath: "state"
18814
+ },
18815
+ activeWhen: ["locked"],
18816
+ commandCaps: ["lock-control"]
18817
+ }),
18818
+ actuator({
18819
+ id: "media-player",
18820
+ 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.",
18821
+ deviceType: DeviceType.MediaPlayer,
18822
+ outputCap: "group-active",
18823
+ outputField: "active",
18824
+ member: {
18825
+ cap: "media-player",
18826
+ fieldPath: "state"
18827
+ },
18828
+ activeWhen: ["playing", "buffering"],
18829
+ commandCaps: ["media-player"]
18830
+ }),
18831
+ actuator({
18832
+ id: "climate",
18833
+ 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.",
18834
+ deviceType: DeviceType.Thermostat,
18835
+ memberDeviceTypes: [DeviceType.Thermostat, DeviceType.Climate],
18836
+ outputCap: "group-active",
18837
+ outputField: "active",
18838
+ member: {
18839
+ cap: "climate-control",
18840
+ fieldPath: "mode"
18841
+ },
18842
+ activeWhen: [
18843
+ "heat",
18844
+ "cool",
18845
+ "auto",
18846
+ "heat_cool",
18847
+ "fan_only",
18848
+ "dry"
18849
+ ],
18850
+ commandCaps: ["climate-control"]
18517
18851
  })
18518
18852
  ];
18519
18853
  function actuator(input) {
18520
18854
  return {
18521
- ...input,
18855
+ id: input.id,
18856
+ summary: input.summary,
18857
+ deviceType: input.deviceType,
18858
+ outputCap: input.outputCap,
18859
+ outputField: input.outputField,
18860
+ commandCaps: input.commandCaps,
18522
18861
  family: "actuator",
18523
18862
  role: void 0,
18524
18863
  memberDeviceType: input.deviceType,
18525
- outputField: "on",
18864
+ memberDeviceTypes: input.memberDeviceTypes ?? [input.deviceType],
18865
+ activeWhen: input.activeWhen,
18526
18866
  quantity: "none",
18527
18867
  baseUnit: void 0,
18528
18868
  aggregates: BINARY_AGGREGATES,
18529
18869
  defaultAggregate: "any",
18530
18870
  empty: "offline",
18531
- accept: [{
18532
- cap: "switch",
18533
- fieldPath: "on"
18534
- }],
18871
+ accept: [input.member],
18535
18872
  companions: [CHANGED]
18536
18873
  };
18537
18874
  }
18538
18875
  new Map(GROUP_TEMPLATES.map((template) => [template.id, template]));
18539
18876
  DeviceFeature.LightColorRgb, DeviceFeature.LightColorHsv, DeviceFeature.LightColorMired;
18877
+ DeviceType.Camera;
18540
18878
  `${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
18541
18879
  /**
18542
18880
  * What a composition may BUILD on a device type (G2, D676): the caps a new
@@ -43576,7 +43914,7 @@ var NetworkAccessStatusSchema = object({
43576
43914
  });
43577
43915
  /**
43578
43916
  * Optional, richer endpoint shape returned by providers that expose
43579
- * MORE than one ingress concurrently (Tailscale Ingress with mixed
43917
+ * MORE than one ingress concurrently (Tailscale Funnel with mixed
43580
43918
  * serve+funnel rules, future ngrok multi-tunnel, …). Each entry carries
43581
43919
  * the originating provider config (mode + sourcePort) so the
43582
43920
  * orchestrator UI can label rows distinctly. Providers that expose only
@@ -46219,7 +46557,20 @@ var NcRuleInputSchema = object({
46219
46557
  * save by the hub's grouping guard). `.optional()`, never `.default()`: the addon cap
46220
46558
  * path does not run Zod defaults.
46221
46559
  */
46222
- groupingSec: number().int().min(5).max(60).optional()
46560
+ groupingSec: number().int().min(5).max(60).optional(),
46561
+ /**
46562
+ * ASK ME TO CONFIRM DETECTIONS (#243): a DETECTION notification of this rule
46563
+ * carries "Correct" / "Wrong" buttons (and, where the channel has room, a
46564
+ * "Wrong, it is a <class>" choice). A tap marks the track for retraining, the
46565
+ * same mark the Library writes, and records whose notification it was and
46566
+ * when. A channel with no buttons gets the same two choices as links.
46567
+ *
46568
+ * `.optional()`, never `.default()` (a Zod default does not run on the addon
46569
+ * cap path): absent and `false` both mean off, which is what every rule
46570
+ * authored before this field meant. An editor turns it off by writing
46571
+ * `false`, so it needs no `clear` key.
46572
+ */
46573
+ askVerdict: boolean().optional()
46223
46574
  });
46224
46575
  /**
46225
46576
  * Partial patch for `updateRule` — any subset of the input fields, plus the
@@ -56692,7 +57043,7 @@ var BatteryStatusSchema = object({
56692
57043
  */
56693
57044
  binary: boolean().optional().meta({ label: "Binary indicator" })
56694
57045
  });
56695
- DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat;
57046
+ DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat, DeviceType.EventEmitter;
56696
57047
  method(object({
56697
57048
  deviceId: number(),
56698
57049
  /** Bound on the wait. Sensible range 3000–10000ms. */
@@ -58448,7 +58799,13 @@ results: array(object({
58448
58799
  /** Ms epoch of the attempt. */
58449
58800
  at: number()
58450
58801
  })) });
58451
- DeviceType.Switch, DeviceType.Light;
58802
+ DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Cover, DeviceType.Valve, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.Thermostat, DeviceType.Climate;
58803
+ object({
58804
+ active: boolean().meta({ label: "Active" }),
58805
+ /** Ms epoch when the slice was last updated. */
58806
+ lastChangedAt: number()
58807
+ });
58808
+ DeviceType.Cover, DeviceType.Valve, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.Climate, DeviceType.Thermostat;
58452
58809
  object({
58453
58810
  /** Members whose current value entered the aggregate. */
58454
58811
  included: number().int().nonnegative().meta(readingMeta("count", {
@@ -58466,7 +58823,7 @@ object({
58466
58823
  label: "Members"
58467
58824
  }))
58468
58825
  });
58469
- DeviceType.Sensor, DeviceType.Switch, DeviceType.Light;
58826
+ DeviceType.Sensor, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Cover, DeviceType.Valve, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.Thermostat, DeviceType.Climate;
58470
58827
  object({
58471
58828
  /** Radiator valve opening 0 (closed) .. 100 (open). Null = not yet known. */
58472
58829
  position: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
@@ -59373,7 +59730,14 @@ DeviceType.Lock, method(object({
59373
59730
  auth: "protected"
59374
59731
  }), method(object({
59375
59732
  deviceId: number().int().nonnegative(),
59376
- code: string().min(1).optional()
59733
+ code: string().min(1).optional(),
59734
+ /**
59735
+ * Honoured by a helper lock GROUP only (D944): unlocking several doors
59736
+ * with one call is refused unless the caller says it was confirmed. A
59737
+ * single lock ignores it. The refusal lives in the callee, so no
59738
+ * automation or API caller reaches the doors by skipping a dialog.
59739
+ */
59740
+ confirm: boolean().optional()
59377
59741
  }), _void(), {
59378
59742
  kind: "mutation",
59379
59743
  auth: "protected"
@@ -59381,6 +59745,11 @@ DeviceType.Lock, method(object({
59381
59745
  kind: "mutation",
59382
59746
  auth: "protected"
59383
59747
  });
59748
+ object({
59749
+ value: number().nullable().meta(readingMeta("device", { label: "Total" })),
59750
+ lastFetchedAt: number()
59751
+ });
59752
+ DeviceType.Sensor;
59384
59753
  /**
59385
59754
  * Media-player cap. Models HA `media_player.*` (Sonos, Chromecast,
59386
59755
  * Apple TV, Spotify, Roku, generic OTT receivers, …) on
@@ -61288,9 +61657,9 @@ object({
61288
61657
  /** Cumulative energy in kilowatt-hours since the meter was reset. */
61289
61658
  kwhTotal: number().optional().meta(readingMeta("energy", { label: "Energy" })),
61290
61659
  /** Voltage in volts. */
61291
- volts: number().optional().meta(readingMeta("voltage")),
61660
+ volts: number().optional().meta(readingMeta("voltage", { label: "Voltage" })),
61292
61661
  /** Current in amperes. */
61293
- amps: number().optional().meta(readingMeta("current")),
61662
+ amps: number().optional().meta(readingMeta("current", { label: "Current" })),
61294
61663
  /** Apparent power in volt-amperes. */
61295
61664
  va: number().optional().meta(readingMeta("apparent-power")),
61296
61665
  /** Power factor (0..1) if reported. */
@@ -61298,7 +61667,23 @@ object({
61298
61667
  /** Ms epoch when the slice was last updated. */
61299
61668
  lastFetchedAt: number()
61300
61669
  });
61301
- DeviceType.Sensor;
61670
+ [
61671
+ DeviceType.Sensor,
61672
+ DeviceType.Switch,
61673
+ DeviceType.Light,
61674
+ DeviceType.Fan,
61675
+ DeviceType.Climate,
61676
+ DeviceType.Thermostat,
61677
+ DeviceType.Humidifier,
61678
+ DeviceType.WaterHeater,
61679
+ DeviceType.MediaPlayer,
61680
+ DeviceType.Washer,
61681
+ DeviceType.Dryer,
61682
+ DeviceType.Dishwasher,
61683
+ DeviceType.Vacuum,
61684
+ DeviceType.LawnMower,
61685
+ DeviceType.PetFeeder
61686
+ ].filter((type) => type !== DeviceType.Sensor);
61302
61687
  /**
61303
61688
  * Presence cap. Models HA `person.*` and `device_tracker.*` entities
61304
61689
  * on `DeviceType.Presence`. Read-only — no setters: presence is
@@ -61745,7 +62130,7 @@ object({
61745
62130
  phase: string().nullable()
61746
62131
  });
61747
62132
  Object.values(DeviceType);
61748
- DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.PetFeeder;
62133
+ DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.PetFeeder;
61749
62134
  DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
61750
62135
  kind: "mutation",
61751
62136
  auth: "admin"
@@ -63791,7 +64176,7 @@ var SwitchStatusSchema = object({
63791
64176
  /** Ms epoch of the last state change. Useful for UI "X minutes ago". */
63792
64177
  lastChangedAt: number()
63793
64178
  });
63794
- DeviceType.Switch, DeviceType.Siren, DeviceType.Light, method(object({
64179
+ DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, method(object({
63795
64180
  deviceId: number(),
63796
64181
  on: boolean()
63797
64182
  }), _void(), {
@@ -65483,8 +65868,9 @@ method(object({}), array(TrainingBaseModelSchema).readonly(), { auth: "admin" })
65483
65868
  kind: "mutation",
65484
65869
  auth: "admin"
65485
65870
  });
65871
+ DeviceFeature.FanSpeed, DeviceFeature.FanPreset, DeviceFeature.FanDirection, DeviceFeature.FanOscillating, DeviceFeature.CoverPositionable, DeviceFeature.CoverTilt, DeviceFeature.ValvePositionable, DeviceFeature.MediaPlayerVolume, DeviceFeature.ClimateFanMode;
65486
65872
  SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
65487
- 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;
65873
+ 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;
65488
65874
  String.raw`rose\(active(\d+), changed(\d+), (\d+(?:\.\d+)?)\)`;
65489
65875
  DeviceRole.BinarySensor, DeviceRole.MotionSensor;
65490
65876
  new Set(CAP_NAMES);
@@ -65537,7 +65923,7 @@ var AccessoryKind = {
65537
65923
  PrivacyMask: DeviceRole.PrivacyMask
65538
65924
  };
65539
65925
  AccessoryKind.Siren, AccessoryKind.Floodlight, AccessoryKind.Spotlight, AccessoryKind.PirSensor, AccessoryKind.Chime, AccessoryKind.Autotrack, AccessoryKind.Nightvision, AccessoryKind.PrivacyMask;
65540
- 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;
65926
+ 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;
65541
65927
  new Set(Object.values(DeviceType));
65542
65928
  Object.freeze({
65543
65929
  "accessories.getStatus": {
@@ -68760,6 +69146,13 @@ Object.freeze({
68760
69146
  access: "view",
68761
69147
  role: "viewer"
68762
69148
  },
69149
+ "groupActive.getStatus": {
69150
+ capName: "group-active",
69151
+ capScope: "device",
69152
+ addonId: null,
69153
+ access: "view",
69154
+ role: "viewer"
69155
+ },
68763
69156
  "groupCommands.getStatus": {
68764
69157
  capName: "group-commands",
68765
69158
  capScope: "device",
@@ -69726,6 +70119,13 @@ Object.freeze({
69726
70119
  access: "create",
69727
70120
  role: "admin"
69728
70121
  },
70122
+ "meter.getStatus": {
70123
+ capName: "meter",
70124
+ capScope: "device",
70125
+ addonId: null,
70126
+ access: "view",
70127
+ role: "viewer"
70128
+ },
69729
70129
  "metricsProvider.collectSnapshot": {
69730
70130
  capName: "metrics-provider",
69731
70131
  capScope: "system",
@@ -77824,7 +78224,39 @@ var APPLIANCE_CAP_VOCABULARY = {
77824
78224
  phrase: t("When {device} finishes", "Quando {device} finisce"),
77825
78225
  icon: "square"
77826
78226
  }
77827
- }
78227
+ },
78228
+ overrides: { byType: {
78229
+ [DeviceType.Washer]: {
78230
+ state: { running: {
78231
+ whenTrue: t("When the washing machine starts", "Quando la lavatrice inizia"),
78232
+ whenFalse: t("When the washing machine has finished", "Quando la lavatrice ha finito")
78233
+ } },
78234
+ events: {
78235
+ onStarted: { phrase: t("When the washing machine starts", "Quando la lavatrice inizia") },
78236
+ onFinished: { phrase: t("When the washing machine has finished", "Quando la lavatrice ha finito") }
78237
+ }
78238
+ },
78239
+ [DeviceType.Dryer]: {
78240
+ state: { running: {
78241
+ whenTrue: t("When the dryer starts", "Quando l'asciugatrice inizia"),
78242
+ whenFalse: t("When the dryer has finished", "Quando l'asciugatrice ha finito")
78243
+ } },
78244
+ events: {
78245
+ onStarted: { phrase: t("When the dryer starts", "Quando l'asciugatrice inizia") },
78246
+ onFinished: { phrase: t("When the dryer has finished", "Quando l'asciugatrice ha finito") }
78247
+ }
78248
+ },
78249
+ [DeviceType.Dishwasher]: {
78250
+ state: { running: {
78251
+ whenTrue: t("When the dishwasher starts", "Quando la lavastoviglie inizia"),
78252
+ whenFalse: t("When the dishwasher has finished", "Quando la lavastoviglie ha finito")
78253
+ } },
78254
+ events: {
78255
+ onStarted: { phrase: t("When the dishwasher starts", "Quando la lavastoviglie inizia") },
78256
+ onFinished: { phrase: t("When the dishwasher has finished", "Quando la lavastoviglie ha finito") }
78257
+ }
78258
+ }
78259
+ } }
77828
78260
  },
77829
78261
  update: {
77830
78262
  scope: "device",
@@ -78596,6 +79028,10 @@ var SENSOR_CAP_VOCABULARY = {
78596
79028
  icon: "flame"
78597
79029
  }]
78598
79030
  },
79031
+ "group-active": {
79032
+ scope: "device",
79033
+ noun: t("Group state", "Stato del gruppo")
79034
+ },
78599
79035
  "group-commands": {
78600
79036
  scope: "device",
78601
79037
  noun: t("Group command", "Comando di gruppo")
@@ -78652,6 +79088,17 @@ var SENSOR_CAP_VOCABULARY = {
78652
79088
  }],
78653
79089
  events: { onMotionChanged: { notOperatorFacing: "the `detected` state trigger phrases both edges, from the mirror that survives a dropped event (D49)" } }
78654
79090
  },
79091
+ meter: {
79092
+ scope: "device",
79093
+ noun: t("Meter", "Contatore"),
79094
+ state: [{
79095
+ kind: "numeric",
79096
+ field: "value",
79097
+ quantity: t("the total", "il totale"),
79098
+ label: t("Total", "Totale"),
79099
+ icon: "gauge"
79100
+ }]
79101
+ },
78655
79102
  "numeric-sensor": {
78656
79103
  scope: "device",
78657
79104
  noun: t("Sensor", "Sensore"),
@@ -79124,8 +79571,72 @@ function projectAction(cap, action) {
79124
79571
  };
79125
79572
  }
79126
79573
  Object.entries(CAP_VOCABULARY_BY_NAME).flatMap(([cap, entry]) => entry.scope === "device" ? (entry.actions ?? []).map((a) => projectAction(cap, a)) : []);
79127
- 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;
79574
+ 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;
79128
79575
  DeviceFeature.BatteryOperated;
79576
+ /**
79577
+ * How a washer, dryer or dishwasher leaves CamStack.
79578
+ *
79579
+ * Home Assistant has no laundry domain: the device is offered, and what
79580
+ * travels is its power reading. The others have a laundry type that this
79581
+ * export cannot honour yet, so they are named and withheld.
79582
+ */
79583
+ var PLUG_APPLIANCE_TYPES = [
79584
+ DeviceType.Washer,
79585
+ DeviceType.Dryer,
79586
+ DeviceType.Dishwasher
79587
+ ];
79588
+ 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.";
79589
+ 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.";
79590
+ var ALEXA_REASON = "Alexa has no laundry category in this export, and neither power nor running has an Alexa interface.";
79591
+ var GOOGLE_REASON = "Google WASHER, DRYER and DISHWASHER require RunCycle. A power threshold is not that trait, and this export does not publish RunCycle.";
79592
+ 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.";
79593
+ function withheld(reason) {
79594
+ return {
79595
+ [DeviceType.Washer]: {
79596
+ exported: false,
79597
+ reason
79598
+ },
79599
+ [DeviceType.Dryer]: {
79600
+ exported: false,
79601
+ reason
79602
+ },
79603
+ [DeviceType.Dishwasher]: {
79604
+ exported: false,
79605
+ reason
79606
+ }
79607
+ };
79608
+ }
79609
+ function offered(received) {
79610
+ return {
79611
+ [DeviceType.Washer]: {
79612
+ exported: true,
79613
+ as: received
79614
+ },
79615
+ [DeviceType.Dryer]: {
79616
+ exported: true,
79617
+ as: received
79618
+ },
79619
+ [DeviceType.Dishwasher]: {
79620
+ exported: true,
79621
+ as: received
79622
+ }
79623
+ };
79624
+ }
79625
+ var APPLIANCE_EXPORT = {
79626
+ ha: offered(HA_AS),
79627
+ homekit: withheld(HOMEKIT_REASON),
79628
+ alexa: withheld(ALEXA_REASON),
79629
+ google: withheld(GOOGLE_REASON),
79630
+ matter: withheld(MATTER_REASON)
79631
+ };
79632
+ function isPlugApplianceType(deviceType) {
79633
+ return PLUG_APPLIANCE_TYPES.some((type) => type === deviceType);
79634
+ }
79635
+ /** The decision for this ecosystem, or null when the type is not an appliance. */
79636
+ function applianceExport(ecosystem, deviceType) {
79637
+ if (!isPlugApplianceType(deviceType)) return null;
79638
+ return APPLIANCE_EXPORT[ecosystem][deviceType];
79639
+ }
79129
79640
  Object.freeze({
79130
79641
  "accessories.getStatus": [{
79131
79642
  name: "deviceId",
@@ -80092,6 +80603,11 @@ Object.freeze({
80092
80603
  form: "single",
80093
80604
  optional: false
80094
80605
  }],
80606
+ "groupActive.getStatus": [{
80607
+ name: "deviceId",
80608
+ form: "single",
80609
+ optional: false
80610
+ }],
80095
80611
  "groupCommands.getStatus": [{
80096
80612
  name: "deviceId",
80097
80613
  form: "single",
@@ -80302,6 +80818,11 @@ Object.freeze({
80302
80818
  form: "single",
80303
80819
  optional: false
80304
80820
  }],
80821
+ "meter.getStatus": [{
80822
+ name: "deviceId",
80823
+ form: "single",
80824
+ optional: false
80825
+ }],
80305
80826
  "motion.getStatus": [{
80306
80827
  name: "deviceId",
80307
80828
  form: "single",
@@ -81909,7 +82430,6 @@ Object.freeze({
81909
82430
  "network-access": "ingress",
81910
82431
  "smtp-provider": "email"
81911
82432
  });
81912
- DeviceType.Camera;
81913
82433
  /**
81914
82434
  * A saved Customize assignment (D936). The schema is the type: callers use
81915
82435
  * `z.infer`, they do not restate the shape.
@@ -83218,7 +83738,7 @@ var MB = 1024 * 1024;
83218
83738
  //#endregion
83219
83739
  //#region src/custom-actions.ts
83220
83740
  /**
83221
- * Google Home export — customActions catalog.
83741
+ * Google Home Export — customActions catalog.
83222
83742
  *
83223
83743
  * One entry. The settings form's `addon-action-button` dispatches through the
83224
83744
  * generic `api.addons.custom.mutate({ addonId, action, input })` channel and
@@ -83494,8 +84014,9 @@ function traitForCommand(capNames, command) {
83494
84014
  * (`SUPPORTED_DEVICE_KINDS` in `ha-export.addon.ts`) and it is what kept the
83495
84015
  * previous exporter confined to cameras. `DeviceType` is consulted for exactly
83496
84016
  * one thing here — picking between two Google types that carry the SAME traits
83497
- * (a LIGHT and a SWITCH are both OnOff) — and never to decide whether a device
83498
- * exports at all.
84017
+ * (a LIGHT and a SWITCH are both OnOff). A washer, dryer or dishwasher is
84018
+ * withheld even when some other trait would match: Google's laundry types
84019
+ * require RunCycle, and this export does not publish that trait.
83499
84020
  */
83500
84021
  var MANUFACTURER = "CamStack";
83501
84022
  /**
@@ -83511,6 +84032,8 @@ var MANUFACTURER = "CamStack";
83511
84032
  * A SECURITYSYSTEM would promise `ArmDisarm`, which nothing here answers.
83512
84033
  */
83513
84034
  function resolveGoogleDeviceType(deviceType, traits) {
84035
+ const withheld = applianceExport("google", deviceType);
84036
+ if (withheld !== null && !withheld.exported) return null;
83514
84037
  if (traits.includes("action.devices.traits.LockUnlock")) return "action.devices.types.LOCK";
83515
84038
  if (traits.includes("action.devices.traits.OpenClose")) return "action.devices.types.SHUTTER";
83516
84039
  if (!traits.includes("action.devices.traits.OnOff") && !traits.includes("action.devices.traits.Brightness")) return null;
@@ -84294,7 +84817,7 @@ var DEFAULT_SETTINGS = {
84294
84817
  //#endregion
84295
84818
  //#region src/export-google.addon.ts
84296
84819
  /**
84297
- * Google Home export addon — hub-side.
84820
+ * Google Home Export addon — hub-side.
84298
84821
  *
84299
84822
  * Architecture:
84300
84823
  *