@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.
@@ -5516,7 +5516,7 @@ var ZodIssueCode = {
5516
5516
  var ZodFirstPartyTypeKind;
5517
5517
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5518
5518
  //#endregion
5519
- //#region ../types/dist/sleep-bykKrTgu.mjs
5519
+ //#region ../types/dist/sleep--jXS9hWo.mjs
5520
5520
  /**
5521
5521
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5522
5522
  * window to float samples (D455).
@@ -8660,6 +8660,7 @@ var CAP_NAMES = Object.freeze([
8660
8660
  "filesystem-browse",
8661
8661
  "flood",
8662
8662
  "gas",
8663
+ "group-active",
8663
8664
  "group-commands",
8664
8665
  "group-status",
8665
8666
  "heating-valve",
@@ -8682,6 +8683,7 @@ var CAP_NAMES = Object.freeze([
8682
8683
  "login-method",
8683
8684
  "media-player",
8684
8685
  "mesh-network",
8686
+ "meter",
8685
8687
  "metrics-provider",
8686
8688
  "model-convert",
8687
8689
  "model-distributor",
@@ -9480,6 +9482,10 @@ Object.freeze({
9480
9482
  "path": "detected",
9481
9483
  "valueType": "boolean"
9482
9484
  }],
9485
+ "group-active": [{
9486
+ "path": "active",
9487
+ "valueType": "boolean"
9488
+ }],
9483
9489
  "group-status": [
9484
9490
  {
9485
9491
  "path": "included",
@@ -9739,6 +9745,10 @@ Object.freeze({
9739
9745
  ]
9740
9746
  }
9741
9747
  ],
9748
+ "meter": [{
9749
+ "path": "value",
9750
+ "valueType": "number"
9751
+ }],
9742
9752
  "motion": [
9743
9753
  {
9744
9754
  "path": "detected",
@@ -10482,7 +10492,7 @@ object({
10482
10492
  params: record(string(), union([string(), number()])).optional()
10483
10493
  });
10484
10494
  //#endregion
10485
- //#region ../types/dist/err-msg-BXKzRBwg.mjs
10495
+ //#region ../types/dist/err-msg-DIorGYeC.mjs
10486
10496
  var DeviceType = /* @__PURE__ */ function(DeviceType) {
10487
10497
  DeviceType["Camera"] = "camera";
10488
10498
  DeviceType["Hub"] = "hub";
@@ -10576,8 +10586,14 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
10576
10586
  DeviceType["PetFeeder"] = "pet-feeder";
10577
10587
  /** Built-in dishwasher — program lifecycle, door / remote-start gates,
10578
10588
  * salt and rinse-aid levels. Installed with the `dishwasher` cap.
10579
- * Sources: native Bosch Home Connect, reusable by similar integrations. */
10589
+ * Sources: native Bosch Home Connect, reusable by similar integrations.
10590
+ * A plug-built dishwasher carries running-state and power instead. */
10580
10591
  DeviceType["Dishwasher"] = "dishwasher";
10592
+ /** Washing machine. A plug-built one is running while its power stays
10593
+ * above a threshold. No program cap — that surface is the dishwasher's. */
10594
+ DeviceType["Washer"] = "washer";
10595
+ /** Tumble dryer. Same plug-built running surface as {@link Washer}. */
10596
+ DeviceType["Dryer"] = "dryer";
10581
10597
  return DeviceType;
10582
10598
  }({});
10583
10599
  var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
@@ -10835,7 +10851,7 @@ function errMsg(err) {
10835
10851
  return String(err);
10836
10852
  }
10837
10853
  //#endregion
10838
- //#region ../types/dist/composition-OhpuespA.mjs
10854
+ //#region ../types/dist/composition-Bb8iwHEJ.mjs
10839
10855
  /**
10840
10856
  * The ffmpeg build every CamStack node downloads, per platform and arch.
10841
10857
  *
@@ -11150,6 +11166,13 @@ var table = {
11150
11166
  apply: () => {
11151
11167
  throw new ExpressionEvalError("latchedAt: stateful evaluation context is required");
11152
11168
  }
11169
+ },
11170
+ schmitt: {
11171
+ minArgs: 3,
11172
+ maxArgs: 5,
11173
+ apply: () => {
11174
+ throw new ExpressionEvalError("schmitt: stateful evaluation context is required");
11175
+ }
11153
11176
  }
11154
11177
  };
11155
11178
  Object.freeze(Object.assign(Object.create(null), table));
@@ -11591,6 +11614,99 @@ function validateExpressionSource(src) {
11591
11614
  return null;
11592
11615
  }
11593
11616
  /**
11617
+ * One power reading becomes a washer, dryer or dishwasher (D944 helper).
11618
+ *
11619
+ * Standby of the control board is under 5 W; a motor or a heater is far
11620
+ * above that, so 5 W is the line. A door lock or a short pump spike is not
11621
+ * a cycle, so running starts only after 30 s above the line.
11622
+ *
11623
+ * A wash, dry or dishwasher pause (soak, heat-wait, heater off between
11624
+ * bursts) lasts several minutes. Ending the cycle on the first dip would
11625
+ * report "finished" in the middle of the program, so the stop dwell is
11626
+ * 10 minutes on every type. The number is stored per type so one machine
11627
+ * can move later without moving the others.
11628
+ */
11629
+ var APPLIANCE_TEMPLATE_ID = "appliance";
11630
+ var APPLIANCE_KINDS = [
11631
+ "washer",
11632
+ "dryer",
11633
+ "dishwasher"
11634
+ ];
11635
+ DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher;
11636
+ /**
11637
+ * Statistics and integrals over a history read (D944).
11638
+ *
11639
+ * Pure: the same points always give the same answer, so a restart recomputes
11640
+ * rather than trusting a buffer. A gauge mean is time-weighted (value × ms),
11641
+ * never the mean of the samples. A hole with no held value is not integrated
11642
+ * as zero. A truncated read is not published.
11643
+ */
11644
+ var STATISTIC_STATS = [
11645
+ "min",
11646
+ "max",
11647
+ "mean",
11648
+ "sum",
11649
+ "count",
11650
+ "change"
11651
+ ];
11652
+ /**
11653
+ * The range a statistics or integral helper asks history for (D944).
11654
+ *
11655
+ * Calendar edges are the hub's timezone, never UTC midnight: a day is 23, 24
11656
+ * or 25 hours across a DST change. A tier is eligible only when its retention
11657
+ * is strictly longer than the longest that range can be. Forever qualifies.
11658
+ * Equal to a tier's retention is a refusal, not a short answer.
11659
+ */
11660
+ var MINUTE_MS = 6e4;
11661
+ var HOUR_MS = 60 * MINUTE_MS;
11662
+ var DAY_MS = 24 * HOUR_MS;
11663
+ var ROLLING_SPANS = [
11664
+ "1h",
11665
+ "24h",
11666
+ "2d",
11667
+ "7d",
11668
+ "30d",
11669
+ "custom"
11670
+ ];
11671
+ var CALENDAR_PERIODS = [
11672
+ "today",
11673
+ "yesterday",
11674
+ "this-week",
11675
+ "this-month"
11676
+ ];
11677
+ var RESET_PERIODS = [
11678
+ "never",
11679
+ "daily",
11680
+ "weekly",
11681
+ "monthly"
11682
+ ];
11683
+ 5 * MINUTE_MS;
11684
+ 24 * HOUR_MS, 2 * DAY_MS, 7 * DAY_MS, 30 * DAY_MS;
11685
+ 7 * DAY_MS, 30 * DAY_MS, 365 * DAY_MS;
11686
+ var rollingWindowObject = object({
11687
+ kind: literal("rolling"),
11688
+ span: _enum(ROLLING_SPANS),
11689
+ customMinutes: number().int().min(5).optional()
11690
+ }).check((payload) => {
11691
+ if (payload.value.span === "custom" && payload.value.customMinutes === void 0) payload.issues.push({
11692
+ code: "custom",
11693
+ message: "a custom range needs a duration in minutes",
11694
+ path: ["customMinutes"],
11695
+ input: payload.value
11696
+ });
11697
+ if (payload.value.span !== "custom" && payload.value.customMinutes !== void 0) payload.issues.push({
11698
+ code: "custom",
11699
+ message: "only a custom range carries a duration",
11700
+ path: ["customMinutes"],
11701
+ input: payload.value
11702
+ });
11703
+ });
11704
+ var RollingWindowSchema = rollingWindowObject;
11705
+ var StatisticWindowSchema = discriminatedUnion("kind", [rollingWindowObject, object({
11706
+ kind: literal("calendar"),
11707
+ period: _enum(CALENDAR_PERIODS)
11708
+ })]);
11709
+ /**
11594
11710
  * A composition source identity: `(addonId, stableId)`, never a numeric device
11595
11711
  * id. Split out so helper schemas can name it without a cycle through
11596
11712
  * `composition.ts` (D659).
@@ -11616,7 +11732,13 @@ var GROUP_TEMPLATE_IDS = [
11616
11732
  "occupancy",
11617
11733
  "binary",
11618
11734
  "switch",
11619
- "light"
11735
+ "light",
11736
+ "fan",
11737
+ "cover",
11738
+ "valve",
11739
+ "lock",
11740
+ "media-player",
11741
+ "climate"
11620
11742
  ];
11621
11743
  var NUMERIC_AGGREGATES = [
11622
11744
  "mean",
@@ -11646,14 +11768,73 @@ var HelperMemberSchema = object({
11646
11768
  cap: string().min(1),
11647
11769
  fieldPath: string().min(1)
11648
11770
  });
11649
- var HelperSpecSchema = discriminatedUnion("kind", [object({
11650
- kind: literal("group"),
11651
- templateId: GroupTemplateIdSchema,
11652
- aggregate: AggregateReducerSchema,
11653
- members: array(HelperMemberSchema).min(1).max(64),
11654
- /** Actuator groups only. Readings leave this unset. */
11655
- active: ActiveCriterionSchema.optional()
11656
- })]);
11771
+ var HelperSpecSchema = discriminatedUnion("kind", [
11772
+ object({
11773
+ kind: literal("group"),
11774
+ templateId: GroupTemplateIdSchema,
11775
+ aggregate: AggregateReducerSchema,
11776
+ members: array(HelperMemberSchema).min(1).max(64),
11777
+ /** Actuator groups only. Readings leave this unset. */
11778
+ active: ActiveCriterionSchema.optional()
11779
+ }),
11780
+ object({
11781
+ kind: literal("appliance"),
11782
+ templateId: literal(APPLIANCE_TEMPLATE_ID),
11783
+ appliance: _enum(APPLIANCE_KINDS),
11784
+ thresholdWatts: number().positive(),
11785
+ startDwellMs: number().int().nonnegative(),
11786
+ stopDwellMs: number().int().nonnegative(),
11787
+ member: HelperMemberSchema
11788
+ }),
11789
+ object({
11790
+ kind: literal("statistic"),
11791
+ stat: _enum(STATISTIC_STATS),
11792
+ window: StatisticWindowSchema,
11793
+ source: HelperMemberSchema
11794
+ }),
11795
+ object({
11796
+ kind: literal("integral"),
11797
+ reset: _enum(RESET_PERIODS),
11798
+ output: _enum(["energy", "meter"]),
11799
+ source: HelperMemberSchema
11800
+ }),
11801
+ object({
11802
+ kind: literal("threshold"),
11803
+ source: HelperMemberSchema,
11804
+ high: number(),
11805
+ low: number(),
11806
+ onForMs: number().int().nonnegative(),
11807
+ offForMs: number().int().nonnegative()
11808
+ }),
11809
+ object({
11810
+ kind: literal("arithmetic"),
11811
+ op: _enum([
11812
+ "sum",
11813
+ "difference",
11814
+ "ratio"
11815
+ ]),
11816
+ inputs: array(HelperMemberSchema).min(2).max(64)
11817
+ }),
11818
+ object({
11819
+ kind: literal("expression"),
11820
+ expr: string().min(1),
11821
+ inputs: array(object({
11822
+ name: string().min(1),
11823
+ member: HelperMemberSchema
11824
+ })).min(1).max(64),
11825
+ output: _enum(["number", "boolean"])
11826
+ }),
11827
+ object({
11828
+ kind: literal("derivative"),
11829
+ window: RollingWindowSchema,
11830
+ per: _enum([
11831
+ "second",
11832
+ "minute",
11833
+ "hour"
11834
+ ]),
11835
+ source: HelperMemberSchema
11836
+ })
11837
+ ]);
11657
11838
  /** A composed device's stableId is this prefix plus the block id. */
11658
11839
  var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
11659
11840
  /** Longest snippet a `code` source may carry (slice 4). */
@@ -11714,6 +11895,12 @@ var CompositionFieldSourceSchema = discriminatedUnion("kind", [
11714
11895
  "all"
11715
11896
  ]),
11716
11897
  reads: array(CompositionFieldReadSchema).min(1).max(64),
11898
+ /**
11899
+ * Set when the reads are an enum state, not a yes/no: the listed states
11900
+ * count as active (a cover is `open`). A state outside the list is inactive;
11901
+ * a read that is not a state at all is left out. Only `any` / `all` use it.
11902
+ */
11903
+ activeWhen: array(string().min(1)).min(1).optional(),
11717
11904
  /** `value` is the reading; the others are the member counts. */
11718
11905
  publish: _enum([
11719
11906
  "value",
@@ -11727,6 +11914,26 @@ var CompositionFieldSourceSchema = discriminatedUnion("kind", [
11727
11914
  "omit",
11728
11915
  "offline"
11729
11916
  ])
11917
+ }),
11918
+ object({
11919
+ kind: literal("series"),
11920
+ read: CompositionFieldReadSchema,
11921
+ /** `value` is the statistic or the integral. The others are the gap counts. */
11922
+ publish: _enum([
11923
+ "value",
11924
+ "included",
11925
+ "excluded",
11926
+ "total"
11927
+ ]),
11928
+ /**
11929
+ * What an unanswered `value` does. Counts ignore this. `offline` leaves the
11930
+ * device unseeded until history answers, so a restart cannot publish 0.
11931
+ */
11932
+ empty: _enum([
11933
+ "null",
11934
+ "omit",
11935
+ "offline"
11936
+ ])
11730
11937
  })
11731
11938
  ]);
11732
11939
  var CompositionCommandTargetSchema = discriminatedUnion("kind", [object({
@@ -17029,7 +17236,22 @@ var BrokerProviderInfoSchema = object({
17029
17236
  */
17030
17237
  interactiveConnectPath: string().min(1).optional(),
17031
17238
  /** Relative hub path to disconnect the linked account (same popup pattern). */
17032
- interactiveDisconnectPath: string().min(1).optional()
17239
+ interactiveDisconnectPath: string().min(1).optional(),
17240
+ /**
17241
+ * The kind signs in through a server-held interactive session instead of
17242
+ * (or before) typed credentials. `basePath` is a hub-relative route set
17243
+ * served by the owning addon (`/addon/<id>/...`) speaking the sign-in
17244
+ * contract: `POST {basePath}/start` (body: the form's settings) answers
17245
+ * `{ sessionId, loginUrl }`; `GET {basePath}/status?sessionId=` answers
17246
+ * `{ phase: 'starting' | 'awaiting-login' | 'captured' | 'error' |
17247
+ * 'cancelled', loginUrl, error }`; `POST {basePath}/commit`
17248
+ * (`{ sessionId, name, brokerId? }`) stores the credentials on a new or
17249
+ * existing broker and answers `{ brokerId }`; `POST {basePath}/cancel`
17250
+ * (`{ sessionId }`) drops the session. The dialog that edits a broker
17251
+ * offers it as the default path; the fields the session fills are
17252
+ * marked `filledBySignIn` in the kind's settings schema.
17253
+ */
17254
+ signIn: object({ basePath: string().min(1) }).optional()
17033
17255
  }))
17034
17256
  });
17035
17257
  var ListInputSchema = object({
@@ -18028,7 +18250,8 @@ var CompositionProblemSchema = object({
18028
18250
  "native-capability-replace",
18029
18251
  "mixed-quantity",
18030
18252
  "helper-mismatch",
18031
- "member-constraint"
18253
+ "member-constraint",
18254
+ "retention"
18032
18255
  ]),
18033
18256
  path: string(),
18034
18257
  message: string()
@@ -18262,13 +18485,17 @@ Object.freeze({
18262
18485
  latchedAt: {
18263
18486
  kind: "fixed",
18264
18487
  result: ["number", "null"]
18488
+ },
18489
+ schmitt: {
18490
+ kind: "fixed",
18491
+ result: ["boolean", "null"]
18265
18492
  }
18266
18493
  });
18267
18494
  /**
18268
18495
  * One catalog row per base reading a group helper can build (D944 §3).
18269
18496
  * Data, not a form default written into the block.
18270
18497
  */
18271
- var NOW = {
18498
+ var NOW$2 = {
18272
18499
  fieldPath: "lastFetchedAt",
18273
18500
  expr: "now"
18274
18501
  };
@@ -18282,6 +18509,8 @@ function numeric(input) {
18282
18509
  family: "numeric",
18283
18510
  deviceType: DeviceType.Sensor,
18284
18511
  memberDeviceType: DeviceType.Sensor,
18512
+ memberDeviceTypes: [DeviceType.Sensor],
18513
+ activeWhen: void 0,
18285
18514
  commandCaps: [],
18286
18515
  baseUnit: baseUnitOf(input.quantity),
18287
18516
  aggregates: NUMERIC_AGGREGATES,
@@ -18297,6 +18526,8 @@ function binary(input) {
18297
18526
  family: "binary",
18298
18527
  deviceType: DeviceType.Sensor,
18299
18528
  memberDeviceType: DeviceType.Sensor,
18529
+ memberDeviceTypes: [DeviceType.Sensor],
18530
+ activeWhen: void 0,
18300
18531
  commandCaps: [],
18301
18532
  quantity: "none",
18302
18533
  baseUnit: void 0,
@@ -18314,7 +18545,7 @@ var GROUP_TEMPLATES = [
18314
18545
  quantity: "temperature",
18315
18546
  defaultAggregate: "mean",
18316
18547
  empty: "null",
18317
- companions: [NOW]
18548
+ companions: [NOW$2]
18318
18549
  }),
18319
18550
  numeric({
18320
18551
  id: "humidity",
@@ -18325,7 +18556,7 @@ var GROUP_TEMPLATES = [
18325
18556
  quantity: "humidity",
18326
18557
  defaultAggregate: "mean",
18327
18558
  empty: "null",
18328
- companions: [NOW]
18559
+ companions: [NOW$2]
18329
18560
  }),
18330
18561
  numeric({
18331
18562
  id: "pressure",
@@ -18336,7 +18567,7 @@ var GROUP_TEMPLATES = [
18336
18567
  quantity: "pressure",
18337
18568
  defaultAggregate: "mean",
18338
18569
  empty: "null",
18339
- companions: [NOW]
18570
+ companions: [NOW$2]
18340
18571
  }),
18341
18572
  numeric({
18342
18573
  id: "illuminance",
@@ -18347,7 +18578,7 @@ var GROUP_TEMPLATES = [
18347
18578
  quantity: "illuminance",
18348
18579
  defaultAggregate: "mean",
18349
18580
  empty: "null",
18350
- companions: [NOW]
18581
+ companions: [NOW$2]
18351
18582
  }),
18352
18583
  numeric({
18353
18584
  id: "power",
@@ -18358,7 +18589,7 @@ var GROUP_TEMPLATES = [
18358
18589
  quantity: "power",
18359
18590
  defaultAggregate: "sum",
18360
18591
  empty: "omit",
18361
- companions: [NOW]
18592
+ companions: [NOW$2]
18362
18593
  }),
18363
18594
  numeric({
18364
18595
  id: "energy",
@@ -18369,7 +18600,7 @@ var GROUP_TEMPLATES = [
18369
18600
  quantity: "energy",
18370
18601
  defaultAggregate: "sum",
18371
18602
  empty: "omit",
18372
- companions: [NOW]
18603
+ companions: [NOW$2]
18373
18604
  }),
18374
18605
  numeric({
18375
18606
  id: "battery",
@@ -18404,7 +18635,7 @@ var GROUP_TEMPLATES = [
18404
18635
  quantity: "device",
18405
18636
  defaultAggregate: "mean",
18406
18637
  empty: "null",
18407
- companions: [NOW]
18638
+ companions: [NOW$2]
18408
18639
  }),
18409
18640
  binary({
18410
18641
  id: "motion",
@@ -18498,6 +18729,11 @@ var GROUP_TEMPLATES = [
18498
18729
  summary: "On when at least one switch is on, or when all of them are. Offline and unknown members are left out of that decision, never read as off, and still receive the command.",
18499
18730
  deviceType: DeviceType.Switch,
18500
18731
  outputCap: "switch",
18732
+ outputField: "on",
18733
+ member: {
18734
+ cap: "switch",
18735
+ fieldPath: "on"
18736
+ },
18501
18737
  commandCaps: ["switch"]
18502
18738
  }),
18503
18739
  actuator({
@@ -18505,34 +18741,136 @@ var GROUP_TEMPLATES = [
18505
18741
  summary: "On when at least one light is on, or when all of them are. Brightness and colour are offered only when every member has them. A command is not sent to a member that lacks it.",
18506
18742
  deviceType: DeviceType.Light,
18507
18743
  outputCap: "switch",
18744
+ outputField: "on",
18745
+ member: {
18746
+ cap: "switch",
18747
+ fieldPath: "on"
18748
+ },
18508
18749
  commandCaps: [
18509
18750
  "switch",
18510
18751
  "brightness",
18511
18752
  "color"
18512
18753
  ]
18754
+ }),
18755
+ actuator({
18756
+ id: "fan",
18757
+ 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.",
18758
+ deviceType: DeviceType.Fan,
18759
+ outputCap: "switch",
18760
+ outputField: "on",
18761
+ member: {
18762
+ cap: "switch",
18763
+ fieldPath: "on"
18764
+ },
18765
+ commandCaps: ["switch", "fan-control"]
18766
+ }),
18767
+ actuator({
18768
+ id: "cover",
18769
+ 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.",
18770
+ deviceType: DeviceType.Cover,
18771
+ outputCap: "group-active",
18772
+ outputField: "active",
18773
+ member: {
18774
+ cap: "cover",
18775
+ fieldPath: "state"
18776
+ },
18777
+ activeWhen: [
18778
+ "open",
18779
+ "opening",
18780
+ "stopped"
18781
+ ],
18782
+ commandCaps: ["cover"]
18783
+ }),
18784
+ actuator({
18785
+ id: "valve",
18786
+ 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.",
18787
+ deviceType: DeviceType.Valve,
18788
+ outputCap: "group-active",
18789
+ outputField: "active",
18790
+ member: {
18791
+ cap: "valve",
18792
+ fieldPath: "state"
18793
+ },
18794
+ activeWhen: [
18795
+ "open",
18796
+ "opening",
18797
+ "stopped"
18798
+ ],
18799
+ commandCaps: ["valve"]
18800
+ }),
18801
+ actuator({
18802
+ id: "lock",
18803
+ 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.",
18804
+ deviceType: DeviceType.Lock,
18805
+ outputCap: "group-active",
18806
+ outputField: "active",
18807
+ member: {
18808
+ cap: "lock-control",
18809
+ fieldPath: "state"
18810
+ },
18811
+ activeWhen: ["locked"],
18812
+ commandCaps: ["lock-control"]
18813
+ }),
18814
+ actuator({
18815
+ id: "media-player",
18816
+ 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.",
18817
+ deviceType: DeviceType.MediaPlayer,
18818
+ outputCap: "group-active",
18819
+ outputField: "active",
18820
+ member: {
18821
+ cap: "media-player",
18822
+ fieldPath: "state"
18823
+ },
18824
+ activeWhen: ["playing", "buffering"],
18825
+ commandCaps: ["media-player"]
18826
+ }),
18827
+ actuator({
18828
+ id: "climate",
18829
+ 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.",
18830
+ deviceType: DeviceType.Thermostat,
18831
+ memberDeviceTypes: [DeviceType.Thermostat, DeviceType.Climate],
18832
+ outputCap: "group-active",
18833
+ outputField: "active",
18834
+ member: {
18835
+ cap: "climate-control",
18836
+ fieldPath: "mode"
18837
+ },
18838
+ activeWhen: [
18839
+ "heat",
18840
+ "cool",
18841
+ "auto",
18842
+ "heat_cool",
18843
+ "fan_only",
18844
+ "dry"
18845
+ ],
18846
+ commandCaps: ["climate-control"]
18513
18847
  })
18514
18848
  ];
18515
18849
  function actuator(input) {
18516
18850
  return {
18517
- ...input,
18851
+ id: input.id,
18852
+ summary: input.summary,
18853
+ deviceType: input.deviceType,
18854
+ outputCap: input.outputCap,
18855
+ outputField: input.outputField,
18856
+ commandCaps: input.commandCaps,
18518
18857
  family: "actuator",
18519
18858
  role: void 0,
18520
18859
  memberDeviceType: input.deviceType,
18521
- outputField: "on",
18860
+ memberDeviceTypes: input.memberDeviceTypes ?? [input.deviceType],
18861
+ activeWhen: input.activeWhen,
18522
18862
  quantity: "none",
18523
18863
  baseUnit: void 0,
18524
18864
  aggregates: BINARY_AGGREGATES,
18525
18865
  defaultAggregate: "any",
18526
18866
  empty: "offline",
18527
- accept: [{
18528
- cap: "switch",
18529
- fieldPath: "on"
18530
- }],
18867
+ accept: [input.member],
18531
18868
  companions: [CHANGED]
18532
18869
  };
18533
18870
  }
18534
18871
  new Map(GROUP_TEMPLATES.map((template) => [template.id, template]));
18535
18872
  DeviceFeature.LightColorRgb, DeviceFeature.LightColorHsv, DeviceFeature.LightColorMired;
18873
+ DeviceType.Camera;
18536
18874
  `${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
18537
18875
  /**
18538
18876
  * What a composition may BUILD on a device type (G2, D676): the caps a new
@@ -43572,7 +43910,7 @@ var NetworkAccessStatusSchema = object({
43572
43910
  });
43573
43911
  /**
43574
43912
  * Optional, richer endpoint shape returned by providers that expose
43575
- * MORE than one ingress concurrently (Tailscale Ingress with mixed
43913
+ * MORE than one ingress concurrently (Tailscale Funnel with mixed
43576
43914
  * serve+funnel rules, future ngrok multi-tunnel, …). Each entry carries
43577
43915
  * the originating provider config (mode + sourcePort) so the
43578
43916
  * orchestrator UI can label rows distinctly. Providers that expose only
@@ -46215,7 +46553,20 @@ var NcRuleInputSchema = object({
46215
46553
  * save by the hub's grouping guard). `.optional()`, never `.default()`: the addon cap
46216
46554
  * path does not run Zod defaults.
46217
46555
  */
46218
- groupingSec: number().int().min(5).max(60).optional()
46556
+ groupingSec: number().int().min(5).max(60).optional(),
46557
+ /**
46558
+ * ASK ME TO CONFIRM DETECTIONS (#243): a DETECTION notification of this rule
46559
+ * carries "Correct" / "Wrong" buttons (and, where the channel has room, a
46560
+ * "Wrong, it is a <class>" choice). A tap marks the track for retraining, the
46561
+ * same mark the Library writes, and records whose notification it was and
46562
+ * when. A channel with no buttons gets the same two choices as links.
46563
+ *
46564
+ * `.optional()`, never `.default()` (a Zod default does not run on the addon
46565
+ * cap path): absent and `false` both mean off, which is what every rule
46566
+ * authored before this field meant. An editor turns it off by writing
46567
+ * `false`, so it needs no `clear` key.
46568
+ */
46569
+ askVerdict: boolean().optional()
46219
46570
  });
46220
46571
  /**
46221
46572
  * Partial patch for `updateRule` — any subset of the input fields, plus the
@@ -56688,7 +57039,7 @@ var BatteryStatusSchema = object({
56688
57039
  */
56689
57040
  binary: boolean().optional().meta({ label: "Binary indicator" })
56690
57041
  });
56691
- DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat;
57042
+ DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat, DeviceType.EventEmitter;
56692
57043
  method(object({
56693
57044
  deviceId: number(),
56694
57045
  /** Bound on the wait. Sensible range 3000–10000ms. */
@@ -58444,7 +58795,13 @@ results: array(object({
58444
58795
  /** Ms epoch of the attempt. */
58445
58796
  at: number()
58446
58797
  })) });
58447
- DeviceType.Switch, DeviceType.Light;
58798
+ DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Cover, DeviceType.Valve, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.Thermostat, DeviceType.Climate;
58799
+ object({
58800
+ active: boolean().meta({ label: "Active" }),
58801
+ /** Ms epoch when the slice was last updated. */
58802
+ lastChangedAt: number()
58803
+ });
58804
+ DeviceType.Cover, DeviceType.Valve, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.Climate, DeviceType.Thermostat;
58448
58805
  object({
58449
58806
  /** Members whose current value entered the aggregate. */
58450
58807
  included: number().int().nonnegative().meta(readingMeta("count", {
@@ -58462,7 +58819,7 @@ object({
58462
58819
  label: "Members"
58463
58820
  }))
58464
58821
  });
58465
- DeviceType.Sensor, DeviceType.Switch, DeviceType.Light;
58822
+ DeviceType.Sensor, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Cover, DeviceType.Valve, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.Thermostat, DeviceType.Climate;
58466
58823
  object({
58467
58824
  /** Radiator valve opening 0 (closed) .. 100 (open). Null = not yet known. */
58468
58825
  position: number().min(0).max(100).nullable().meta(readingMeta("percentage")),
@@ -59369,7 +59726,14 @@ DeviceType.Lock, method(object({
59369
59726
  auth: "protected"
59370
59727
  }), method(object({
59371
59728
  deviceId: number().int().nonnegative(),
59372
- code: string().min(1).optional()
59729
+ code: string().min(1).optional(),
59730
+ /**
59731
+ * Honoured by a helper lock GROUP only (D944): unlocking several doors
59732
+ * with one call is refused unless the caller says it was confirmed. A
59733
+ * single lock ignores it. The refusal lives in the callee, so no
59734
+ * automation or API caller reaches the doors by skipping a dialog.
59735
+ */
59736
+ confirm: boolean().optional()
59373
59737
  }), _void(), {
59374
59738
  kind: "mutation",
59375
59739
  auth: "protected"
@@ -59377,6 +59741,11 @@ DeviceType.Lock, method(object({
59377
59741
  kind: "mutation",
59378
59742
  auth: "protected"
59379
59743
  });
59744
+ object({
59745
+ value: number().nullable().meta(readingMeta("device", { label: "Total" })),
59746
+ lastFetchedAt: number()
59747
+ });
59748
+ DeviceType.Sensor;
59380
59749
  /**
59381
59750
  * Media-player cap. Models HA `media_player.*` (Sonos, Chromecast,
59382
59751
  * Apple TV, Spotify, Roku, generic OTT receivers, …) on
@@ -61284,9 +61653,9 @@ object({
61284
61653
  /** Cumulative energy in kilowatt-hours since the meter was reset. */
61285
61654
  kwhTotal: number().optional().meta(readingMeta("energy", { label: "Energy" })),
61286
61655
  /** Voltage in volts. */
61287
- volts: number().optional().meta(readingMeta("voltage")),
61656
+ volts: number().optional().meta(readingMeta("voltage", { label: "Voltage" })),
61288
61657
  /** Current in amperes. */
61289
- amps: number().optional().meta(readingMeta("current")),
61658
+ amps: number().optional().meta(readingMeta("current", { label: "Current" })),
61290
61659
  /** Apparent power in volt-amperes. */
61291
61660
  va: number().optional().meta(readingMeta("apparent-power")),
61292
61661
  /** Power factor (0..1) if reported. */
@@ -61294,7 +61663,23 @@ object({
61294
61663
  /** Ms epoch when the slice was last updated. */
61295
61664
  lastFetchedAt: number()
61296
61665
  });
61297
- DeviceType.Sensor;
61666
+ [
61667
+ DeviceType.Sensor,
61668
+ DeviceType.Switch,
61669
+ DeviceType.Light,
61670
+ DeviceType.Fan,
61671
+ DeviceType.Climate,
61672
+ DeviceType.Thermostat,
61673
+ DeviceType.Humidifier,
61674
+ DeviceType.WaterHeater,
61675
+ DeviceType.MediaPlayer,
61676
+ DeviceType.Washer,
61677
+ DeviceType.Dryer,
61678
+ DeviceType.Dishwasher,
61679
+ DeviceType.Vacuum,
61680
+ DeviceType.LawnMower,
61681
+ DeviceType.PetFeeder
61682
+ ].filter((type) => type !== DeviceType.Sensor);
61298
61683
  /**
61299
61684
  * Presence cap. Models HA `person.*` and `device_tracker.*` entities
61300
61685
  * on `DeviceType.Presence`. Read-only — no setters: presence is
@@ -61741,7 +62126,7 @@ object({
61741
62126
  phase: string().nullable()
61742
62127
  });
61743
62128
  Object.values(DeviceType);
61744
- DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.PetFeeder;
62129
+ DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.PetFeeder;
61745
62130
  DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
61746
62131
  kind: "mutation",
61747
62132
  auth: "admin"
@@ -63787,7 +64172,7 @@ var SwitchStatusSchema = object({
63787
64172
  /** Ms epoch of the last state change. Useful for UI "X minutes ago". */
63788
64173
  lastChangedAt: number()
63789
64174
  });
63790
- DeviceType.Switch, DeviceType.Siren, DeviceType.Light, method(object({
64175
+ DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, method(object({
63791
64176
  deviceId: number(),
63792
64177
  on: boolean()
63793
64178
  }), _void(), {
@@ -65479,8 +65864,9 @@ method(object({}), array(TrainingBaseModelSchema).readonly(), { auth: "admin" })
65479
65864
  kind: "mutation",
65480
65865
  auth: "admin"
65481
65866
  });
65867
+ DeviceFeature.FanSpeed, DeviceFeature.FanPreset, DeviceFeature.FanDirection, DeviceFeature.FanOscillating, DeviceFeature.CoverPositionable, DeviceFeature.CoverTilt, DeviceFeature.ValvePositionable, DeviceFeature.MediaPlayerVolume, DeviceFeature.ClimateFanMode;
65482
65868
  SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
65483
- 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;
65869
+ 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;
65484
65870
  String.raw`rose\(active(\d+), changed(\d+), (\d+(?:\.\d+)?)\)`;
65485
65871
  DeviceRole.BinarySensor, DeviceRole.MotionSensor;
65486
65872
  new Set(CAP_NAMES);
@@ -65533,7 +65919,7 @@ var AccessoryKind = {
65533
65919
  PrivacyMask: DeviceRole.PrivacyMask
65534
65920
  };
65535
65921
  AccessoryKind.Siren, AccessoryKind.Floodlight, AccessoryKind.Spotlight, AccessoryKind.PirSensor, AccessoryKind.Chime, AccessoryKind.Autotrack, AccessoryKind.Nightvision, AccessoryKind.PrivacyMask;
65536
- 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;
65922
+ 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;
65537
65923
  new Set(Object.values(DeviceType));
65538
65924
  Object.freeze({
65539
65925
  "accessories.getStatus": {
@@ -68756,6 +69142,13 @@ Object.freeze({
68756
69142
  access: "view",
68757
69143
  role: "viewer"
68758
69144
  },
69145
+ "groupActive.getStatus": {
69146
+ capName: "group-active",
69147
+ capScope: "device",
69148
+ addonId: null,
69149
+ access: "view",
69150
+ role: "viewer"
69151
+ },
68759
69152
  "groupCommands.getStatus": {
68760
69153
  capName: "group-commands",
68761
69154
  capScope: "device",
@@ -69722,6 +70115,13 @@ Object.freeze({
69722
70115
  access: "create",
69723
70116
  role: "admin"
69724
70117
  },
70118
+ "meter.getStatus": {
70119
+ capName: "meter",
70120
+ capScope: "device",
70121
+ addonId: null,
70122
+ access: "view",
70123
+ role: "viewer"
70124
+ },
69725
70125
  "metricsProvider.collectSnapshot": {
69726
70126
  capName: "metrics-provider",
69727
70127
  capScope: "system",
@@ -77820,7 +78220,39 @@ var APPLIANCE_CAP_VOCABULARY = {
77820
78220
  phrase: t("When {device} finishes", "Quando {device} finisce"),
77821
78221
  icon: "square"
77822
78222
  }
77823
- }
78223
+ },
78224
+ overrides: { byType: {
78225
+ [DeviceType.Washer]: {
78226
+ state: { running: {
78227
+ whenTrue: t("When the washing machine starts", "Quando la lavatrice inizia"),
78228
+ whenFalse: t("When the washing machine has finished", "Quando la lavatrice ha finito")
78229
+ } },
78230
+ events: {
78231
+ onStarted: { phrase: t("When the washing machine starts", "Quando la lavatrice inizia") },
78232
+ onFinished: { phrase: t("When the washing machine has finished", "Quando la lavatrice ha finito") }
78233
+ }
78234
+ },
78235
+ [DeviceType.Dryer]: {
78236
+ state: { running: {
78237
+ whenTrue: t("When the dryer starts", "Quando l'asciugatrice inizia"),
78238
+ whenFalse: t("When the dryer has finished", "Quando l'asciugatrice ha finito")
78239
+ } },
78240
+ events: {
78241
+ onStarted: { phrase: t("When the dryer starts", "Quando l'asciugatrice inizia") },
78242
+ onFinished: { phrase: t("When the dryer has finished", "Quando l'asciugatrice ha finito") }
78243
+ }
78244
+ },
78245
+ [DeviceType.Dishwasher]: {
78246
+ state: { running: {
78247
+ whenTrue: t("When the dishwasher starts", "Quando la lavastoviglie inizia"),
78248
+ whenFalse: t("When the dishwasher has finished", "Quando la lavastoviglie ha finito")
78249
+ } },
78250
+ events: {
78251
+ onStarted: { phrase: t("When the dishwasher starts", "Quando la lavastoviglie inizia") },
78252
+ onFinished: { phrase: t("When the dishwasher has finished", "Quando la lavastoviglie ha finito") }
78253
+ }
78254
+ }
78255
+ } }
77824
78256
  },
77825
78257
  update: {
77826
78258
  scope: "device",
@@ -78592,6 +79024,10 @@ var SENSOR_CAP_VOCABULARY = {
78592
79024
  icon: "flame"
78593
79025
  }]
78594
79026
  },
79027
+ "group-active": {
79028
+ scope: "device",
79029
+ noun: t("Group state", "Stato del gruppo")
79030
+ },
78595
79031
  "group-commands": {
78596
79032
  scope: "device",
78597
79033
  noun: t("Group command", "Comando di gruppo")
@@ -78648,6 +79084,17 @@ var SENSOR_CAP_VOCABULARY = {
78648
79084
  }],
78649
79085
  events: { onMotionChanged: { notOperatorFacing: "the `detected` state trigger phrases both edges, from the mirror that survives a dropped event (D49)" } }
78650
79086
  },
79087
+ meter: {
79088
+ scope: "device",
79089
+ noun: t("Meter", "Contatore"),
79090
+ state: [{
79091
+ kind: "numeric",
79092
+ field: "value",
79093
+ quantity: t("the total", "il totale"),
79094
+ label: t("Total", "Totale"),
79095
+ icon: "gauge"
79096
+ }]
79097
+ },
78651
79098
  "numeric-sensor": {
78652
79099
  scope: "device",
78653
79100
  noun: t("Sensor", "Sensore"),
@@ -79120,8 +79567,72 @@ function projectAction(cap, action) {
79120
79567
  };
79121
79568
  }
79122
79569
  Object.entries(CAP_VOCABULARY_BY_NAME).flatMap(([cap, entry]) => entry.scope === "device" ? (entry.actions ?? []).map((a) => projectAction(cap, a)) : []);
79123
- 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;
79570
+ 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;
79124
79571
  DeviceFeature.BatteryOperated;
79572
+ /**
79573
+ * How a washer, dryer or dishwasher leaves CamStack.
79574
+ *
79575
+ * Home Assistant has no laundry domain: the device is offered, and what
79576
+ * travels is its power reading. The others have a laundry type that this
79577
+ * export cannot honour yet, so they are named and withheld.
79578
+ */
79579
+ var PLUG_APPLIANCE_TYPES = [
79580
+ DeviceType.Washer,
79581
+ DeviceType.Dryer,
79582
+ DeviceType.Dishwasher
79583
+ ];
79584
+ 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.";
79585
+ 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.";
79586
+ var ALEXA_REASON = "Alexa has no laundry category in this export, and neither power nor running has an Alexa interface.";
79587
+ var GOOGLE_REASON = "Google WASHER, DRYER and DISHWASHER require RunCycle. A power threshold is not that trait, and this export does not publish RunCycle.";
79588
+ 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.";
79589
+ function withheld(reason) {
79590
+ return {
79591
+ [DeviceType.Washer]: {
79592
+ exported: false,
79593
+ reason
79594
+ },
79595
+ [DeviceType.Dryer]: {
79596
+ exported: false,
79597
+ reason
79598
+ },
79599
+ [DeviceType.Dishwasher]: {
79600
+ exported: false,
79601
+ reason
79602
+ }
79603
+ };
79604
+ }
79605
+ function offered(received) {
79606
+ return {
79607
+ [DeviceType.Washer]: {
79608
+ exported: true,
79609
+ as: received
79610
+ },
79611
+ [DeviceType.Dryer]: {
79612
+ exported: true,
79613
+ as: received
79614
+ },
79615
+ [DeviceType.Dishwasher]: {
79616
+ exported: true,
79617
+ as: received
79618
+ }
79619
+ };
79620
+ }
79621
+ var APPLIANCE_EXPORT = {
79622
+ ha: offered(HA_AS),
79623
+ homekit: withheld(HOMEKIT_REASON),
79624
+ alexa: withheld(ALEXA_REASON),
79625
+ google: withheld(GOOGLE_REASON),
79626
+ matter: withheld(MATTER_REASON)
79627
+ };
79628
+ function isPlugApplianceType(deviceType) {
79629
+ return PLUG_APPLIANCE_TYPES.some((type) => type === deviceType);
79630
+ }
79631
+ /** The decision for this ecosystem, or null when the type is not an appliance. */
79632
+ function applianceExport(ecosystem, deviceType) {
79633
+ if (!isPlugApplianceType(deviceType)) return null;
79634
+ return APPLIANCE_EXPORT[ecosystem][deviceType];
79635
+ }
79125
79636
  Object.freeze({
79126
79637
  "accessories.getStatus": [{
79127
79638
  name: "deviceId",
@@ -80088,6 +80599,11 @@ Object.freeze({
80088
80599
  form: "single",
80089
80600
  optional: false
80090
80601
  }],
80602
+ "groupActive.getStatus": [{
80603
+ name: "deviceId",
80604
+ form: "single",
80605
+ optional: false
80606
+ }],
80091
80607
  "groupCommands.getStatus": [{
80092
80608
  name: "deviceId",
80093
80609
  form: "single",
@@ -80298,6 +80814,11 @@ Object.freeze({
80298
80814
  form: "single",
80299
80815
  optional: false
80300
80816
  }],
80817
+ "meter.getStatus": [{
80818
+ name: "deviceId",
80819
+ form: "single",
80820
+ optional: false
80821
+ }],
80301
80822
  "motion.getStatus": [{
80302
80823
  name: "deviceId",
80303
80824
  form: "single",
@@ -81905,7 +82426,6 @@ Object.freeze({
81905
82426
  "network-access": "ingress",
81906
82427
  "smtp-provider": "email"
81907
82428
  });
81908
- DeviceType.Camera;
81909
82429
  /**
81910
82430
  * A saved Customize assignment (D936). The schema is the type: callers use
81911
82431
  * `z.infer`, they do not restate the shape.
@@ -83214,7 +83734,7 @@ var MB = 1024 * 1024;
83214
83734
  //#endregion
83215
83735
  //#region src/custom-actions.ts
83216
83736
  /**
83217
- * Google Home export — customActions catalog.
83737
+ * Google Home Export — customActions catalog.
83218
83738
  *
83219
83739
  * One entry. The settings form's `addon-action-button` dispatches through the
83220
83740
  * generic `api.addons.custom.mutate({ addonId, action, input })` channel and
@@ -83490,8 +84010,9 @@ function traitForCommand(capNames, command) {
83490
84010
  * (`SUPPORTED_DEVICE_KINDS` in `ha-export.addon.ts`) and it is what kept the
83491
84011
  * previous exporter confined to cameras. `DeviceType` is consulted for exactly
83492
84012
  * one thing here — picking between two Google types that carry the SAME traits
83493
- * (a LIGHT and a SWITCH are both OnOff) — and never to decide whether a device
83494
- * exports at all.
84013
+ * (a LIGHT and a SWITCH are both OnOff). A washer, dryer or dishwasher is
84014
+ * withheld even when some other trait would match: Google's laundry types
84015
+ * require RunCycle, and this export does not publish that trait.
83495
84016
  */
83496
84017
  var MANUFACTURER = "CamStack";
83497
84018
  /**
@@ -83507,6 +84028,8 @@ var MANUFACTURER = "CamStack";
83507
84028
  * A SECURITYSYSTEM would promise `ArmDisarm`, which nothing here answers.
83508
84029
  */
83509
84030
  function resolveGoogleDeviceType(deviceType, traits) {
84031
+ const withheld = applianceExport("google", deviceType);
84032
+ if (withheld !== null && !withheld.exported) return null;
83510
84033
  if (traits.includes("action.devices.traits.LockUnlock")) return "action.devices.types.LOCK";
83511
84034
  if (traits.includes("action.devices.traits.OpenClose")) return "action.devices.types.SHUTTER";
83512
84035
  if (!traits.includes("action.devices.traits.OnOff") && !traits.includes("action.devices.traits.Brightness")) return null;
@@ -84290,7 +84813,7 @@ var DEFAULT_SETTINGS = {
84290
84813
  //#endregion
84291
84814
  //#region src/export-google.addon.ts
84292
84815
  /**
84293
- * Google Home export addon — hub-side.
84816
+ * Google Home Export addon — hub-side.
84294
84817
  *
84295
84818
  * Architecture:
84296
84819
  *