@camstack/addon-provider-homematic 1.2.206 → 1.2.208

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.
Files changed (18) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/_stub.js +658 -658
  3. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_page-DZpqsn6u.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_page-CWWYk9PV.mjs} +4 -4
  4. package/dist/_virtual_mf___mfe_internal__addon_provider_homematic_page__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-O65jH-mE.mjs +26 -0
  5. package/dist/addon-provider-homematic.css +1 -1
  6. package/dist/addon.js +1304 -93
  7. package/dist/addon.mjs +1304 -93
  8. package/dist/{hostInit-DBO78Hu-.mjs → hostInit-D_zf6ohM.mjs} +3 -3
  9. package/dist/remoteEntry.js +1 -1
  10. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_provider_homematic_page__remoteEntry_js-D1CbMi19.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_provider_homematic_page__remoteEntry_js-Bgts9bVd.mjs} +1 -1
  11. package/dist/widgets/_stub.js +138 -138
  12. package/dist/widgets/{_virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_widgets-Bwve1HPK.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_widgets-Dlfyrtfr.mjs} +2 -2
  13. package/dist/widgets/_virtual_mf___mfe_internal__addon_provider_homematic_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-DPAzT3m6.mjs +26 -0
  14. package/dist/widgets/{hostInit-DSjxilwJ.mjs → hostInit-Yhkl--bk.mjs} +2 -2
  15. package/dist/widgets/remoteEntry.js +1 -1
  16. package/package.json +4 -4
  17. package/dist/_virtual_mf___mfe_internal__addon_provider_homematic_page__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-CiaZc7Zu.mjs +0 -26
  18. package/dist/widgets/_virtual_mf___mfe_internal__addon_provider_homematic_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-DaUa1YeZ.mjs +0 -26
package/dist/addon.mjs CHANGED
@@ -9,7 +9,7 @@ import { networkInterfaces } from "node:os";
9
9
  var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
10
10
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
11
11
  //#endregion
12
- //#region ../types/dist/event-category-CY27-fF0.mjs
12
+ //#region ../types/dist/event-category-7P4A3bYA.mjs
13
13
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
14
14
  EventCategory["SystemBoot"] = "system.boot";
15
15
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -240,6 +240,20 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
240
240
  * dropped) — consumers MUST also gate on the device record's `probed` flag.
241
241
  */
242
242
  EventCategory["DeviceReady"] = "device.ready";
243
+ /**
244
+ * An identity link (D1063) became `linked` — auto on strong evidence or
245
+ * confirmed by the operator — or a confirmed link's evidence came back. Telemetry: the `identity-links` record is the
246
+ * truth, and core-blocks reconciles its contributions from it as well.
247
+ * Payload: `IdentityLinkEventPayload`.
248
+ */
249
+ EventCategory["IdentityLinkCreated"] = "identity-link.created";
250
+ /**
251
+ * A `linked` identity link stopped acting: its evidence is gone (an auto link
252
+ * is deleted; an operator-confirmed one stays `linked`, flagged
253
+ * `evidenceGone`, and no longer acts), a side was removed, or the operator
254
+ * unlinked it. Payload: `IdentityLinkEventPayload` with `reason`.
255
+ */
256
+ EventCategory["IdentityLinkLost"] = "identity-link.lost";
243
257
  EventCategory["IntegrationEnabled"] = "integration.enabled";
244
258
  EventCategory["IntegrationDisabled"] = "integration.disabled";
245
259
  EventCategory["IntegrationDeleted"] = "integration.deleted";
@@ -841,7 +855,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
841
855
  return EventCategory;
842
856
  }({});
843
857
  //#endregion
844
- //#region ../types/dist/composed-stable-id-BNTaDZEh.mjs
858
+ //#region ../types/dist/composed-stable-id-DIeNz933.mjs
845
859
  /**
846
860
  import { errMsg } from '@camstack/types'
847
861
  * Extract a human-readable message from an unknown error value.
@@ -1289,6 +1303,9 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
1289
1303
  /** A machine that runs workloads or is an appliance with its own OS: a
1290
1304
  * server, a hypervisor, a gateway console, a CCU. */
1291
1305
  DeviceRole["Host"] = "host";
1306
+ /** An uninterruptible power supply: battery charge, mains status and load. A
1307
+ * `DeviceType.Sensor` device. */
1308
+ DeviceRole["Ups"] = "ups";
1292
1309
  return DeviceRole;
1293
1310
  }({});
1294
1311
  /**
@@ -6115,7 +6132,7 @@ var ZodIssueCode = {
6115
6132
  var ZodFirstPartyTypeKind;
6116
6133
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
6117
6134
  //#endregion
6118
- //#region ../types/dist/sleep-BT1bLgPq.mjs
6135
+ //#region ../types/dist/runtime-capabilities-B36VcCR6.mjs
6119
6136
  /**
6120
6137
  * The audio chunk plane's byte format, and the ONE expansion from a coded
6121
6138
  * window to float samples (D455).
@@ -7324,6 +7341,18 @@ function isInstanceEnabled(body) {
7324
7341
  }
7325
7342
  /** The body key of the switch; only {@link RecordIntegrationInstances.setInstanceEnabled} writes it. */
7326
7343
  var SWITCH_KEY = "enabled";
7344
+ /**
7345
+ * The "Add device" mode an instance gets when its provider states none, from how the provider's
7346
+ * devices are found: `lan` scans, `account` adopts the account's children, anything else is manual.
7347
+ * The one place this default lives.
7348
+ */
7349
+ function defaultAddDeviceMode(description) {
7350
+ switch (description.discovery?.mode) {
7351
+ case "lan": return "scan";
7352
+ case "account": return "children";
7353
+ default: return "none";
7354
+ }
7355
+ }
7327
7356
  /** The keys of the kind's secret fields that sit at the top level of the body. */
7328
7357
  function topLevelSecretKeys(paths) {
7329
7358
  return new Set(paths.filter((p) => !p.includes(".") && !p.includes("[") && !p.includes("{")));
@@ -7426,6 +7455,7 @@ var RecordIntegrationInstances = class {
7426
7455
  enabled: isInstanceEnabled(record.data),
7427
7456
  formValues: shown,
7428
7457
  kind,
7458
+ addDevice: this.hooks.addDevice?.(record.data) ?? defaultAddDeviceMode(this.hooks.description),
7429
7459
  ...health?.status !== void 0 ? { status: health.status } : {},
7430
7460
  ...health?.lastCheckedAt !== void 0 ? { lastCheckedAt: health.lastCheckedAt } : {}
7431
7461
  };
@@ -10695,14 +10725,104 @@ var SubscribeAudioChunksInputSchema = object({
10695
10725
  var SubscribeAudioChunksResultSchema = object({
10696
10726
  /** Opaque id passed to `pullAudioChunks` / `unsubscribeAudioChunks`. */
10697
10727
  subscriptionId: string() });
10698
- var BrokerStatsSchema = object({
10699
- status: _enum([
10700
- "idle",
10701
- "connecting",
10702
- "streaming",
10703
- "error",
10704
- "stopped"
10728
+ var BrokerStatusSchema = _enum([
10729
+ "idle",
10730
+ "connecting",
10731
+ "streaming",
10732
+ "error",
10733
+ "stopped"
10734
+ ]);
10735
+ /**
10736
+ * The encode a derived stream's feeder was last spawned with — the read-only
10737
+ * "effective encode". Read off the ffmpeg argv that runs, so it cannot drift
10738
+ * from what the operator's profile and the carrier's rules resolved to.
10739
+ */
10740
+ var DerivedEffectiveEncodeSchema = object({
10741
+ /** `-c:v` of the argv (`libx264`, a hardware encoder, `copy`); null when absent. */
10742
+ encoder: string().nullable(),
10743
+ /** Output frame rate; null when the source cadence passes through unmeasured. */
10744
+ fps: number$1().nullable(),
10745
+ gopFrames: number$1(),
10746
+ /** ABR target (`-b:v`), kbps. */
10747
+ targetKbps: number$1().nullable(),
10748
+ /** Ceiling (`-maxrate`), kbps. */
10749
+ capKbps: number$1().nullable(),
10750
+ bufsizeKbps: number$1().nullable(),
10751
+ /**
10752
+ * `copy` = source audio untouched, `aac` = re-encoded, `profile` = operator's
10753
+ * encode, `none` = the operator dropped the track.
10754
+ */
10755
+ audio: _enum([
10756
+ "copy",
10757
+ "aac",
10758
+ "profile",
10759
+ "none"
10760
+ ])
10761
+ });
10762
+ /**
10763
+ * A derived stream's source: a **profile** slot (follows whatever physical
10764
+ * stream that profile is assigned to) or a **camStream** (pinned to one
10765
+ * physical stream regardless of assignment).
10766
+ */
10767
+ var DerivedSourceRefSchema = union([object({
10768
+ kind: literal("profile"),
10769
+ profile: _enum([
10770
+ "high",
10771
+ "mid",
10772
+ "low"
10773
+ ])
10774
+ }), object({
10775
+ kind: literal("camStream"),
10776
+ camStreamId: string()
10777
+ })]);
10778
+ object({
10779
+ width: number$1().nullable(),
10780
+ height: number$1().nullable(),
10781
+ fps: number$1().nullable(),
10782
+ idrIntervalMs: number$1().nullable(),
10783
+ /** `h264` / `h265` when observed. */
10784
+ videoCodec: _enum(["h264", "h265"]).nullable(),
10785
+ /** Upper-cased SDP name (`AAC`, `PCMU`) when the source has an audio track. */
10786
+ audioCodec: string().nullable()
10787
+ });
10788
+ /**
10789
+ * The full effective encode of a derived-stream profile: the stats the broker
10790
+ * publishes in `getBrokerStats.derivedEncode` plus the resolved geometry, the
10791
+ * flags that say WHY a number differs from the request, and the ffmpeg output
10792
+ * argv. One function (`computeDerivedEncode`) produces it for both the
10793
+ * broker's start path and `previewDerivedEncode`.
10794
+ */
10795
+ var DerivedEncodePreviewSchema = DerivedEffectiveEncodeSchema.extend({
10796
+ /** Final picture size; `null` when neither the profile nor the source names it. */
10797
+ width: number$1().nullable(),
10798
+ height: number$1().nullable(),
10799
+ /** `h264` / `h265` re-encode, `copy` remux; `null` is never returned (the encoder always resolves). */
10800
+ videoCodec: _enum([
10801
+ "h264",
10802
+ "h265",
10803
+ "copy"
10705
10804
  ]),
10805
+ requestedFps: number$1().nullable(),
10806
+ /** The requested fps exceeded the source and the source cadence won. */
10807
+ fpsClampedToSource: boolean(),
10808
+ /** Lowest bitrate accepted for this geometry x fps; `null` when unknown. */
10809
+ floorKbps: number$1().nullable(),
10810
+ /** The explicit bitrate was below the floor and was raised to it. */
10811
+ raisedToFloor: boolean(),
10812
+ /** What the profile asked for when it was raised; `null` otherwise. */
10813
+ requestedKbps: number$1().nullable(),
10814
+ /** Seconds between keyframes; `null` when the output cadence is unknown. */
10815
+ keyframeIntervalSec: number$1().nullable(),
10816
+ /** The ffmpeg argv, with the source loopback URL in `-i`. */
10817
+ args: array(string())
10818
+ });
10819
+ /** Result of `previewDerivedEncode`: a plan, or the reason there is none. */
10820
+ var PreviewDerivedEncodeResultSchema = discriminatedUnion("kind", [object({
10821
+ kind: literal("preview"),
10822
+ preview: DerivedEncodePreviewSchema
10823
+ }), object({ kind: literal("no-source") })]);
10824
+ var BrokerStatsSchema = object({
10825
+ status: BrokerStatusSchema,
10706
10826
  inputFps: number$1(),
10707
10827
  encodedSubscribers: number$1(),
10708
10828
  uptimeMs: number$1(),
@@ -10742,7 +10862,9 @@ var BrokerStatsSchema = object({
10742
10862
  * alone that the mute is on the packet path and not merely persisted.
10743
10863
  */
10744
10864
  audioMuted: boolean().optional(),
10745
- audioMutedDropped: number$1().optional()
10865
+ audioMutedDropped: number$1().optional(),
10866
+ /** Present for a derived broker once its feeder has spawned at least once. */
10867
+ derivedEncode: DerivedEffectiveEncodeSchema.optional()
10746
10868
  });
10747
10869
  /**
10748
10870
  * Exporter-facing "profile restream" entry. Returned by
@@ -10857,6 +10979,10 @@ var CAP_VOCABULARY_BY_NAME = {
10857
10979
  it: "Commuta {device}"
10858
10980
  },
10859
10981
  icon: "toggle-right",
10982
+ sideEffects: [{
10983
+ field: "on",
10984
+ negate: true
10985
+ }],
10860
10986
  offeredWhen: {
10861
10987
  method: "getOptions",
10862
10988
  field: "supportsSetState"
@@ -11971,7 +12097,15 @@ var CAP_VOCABULARY_BY_NAME = {
11971
12097
  effect: {
11972
12098
  field: "state",
11973
12099
  value: "locked"
11974
- }
12100
+ },
12101
+ hold: { effects: [{
12102
+ field: "state",
12103
+ value: "locking",
12104
+ when: {
12105
+ field: "state",
12106
+ notIn: ["locked"]
12107
+ }
12108
+ }] }
11975
12109
  },
11976
12110
  {
11977
12111
  id: "lock.unlock",
@@ -12000,7 +12134,15 @@ var CAP_VOCABULARY_BY_NAME = {
12000
12134
  effect: {
12001
12135
  field: "state",
12002
12136
  value: "unlocked"
12003
- }
12137
+ },
12138
+ hold: { effects: [{
12139
+ field: "state",
12140
+ value: "unlocking",
12141
+ when: {
12142
+ field: "state",
12143
+ notIn: ["unlocked"]
12144
+ }
12145
+ }] }
12004
12146
  },
12005
12147
  {
12006
12148
  id: "lock.open",
@@ -12314,6 +12456,14 @@ var CAP_VOCABULARY_BY_NAME = {
12314
12456
  step: .5,
12315
12457
  unit: "°C"
12316
12458
  }
12459
+ }],
12460
+ effect: {
12461
+ field: "targetLow",
12462
+ fromArg: "targetLow"
12463
+ },
12464
+ sideEffects: [{
12465
+ field: "targetHigh",
12466
+ fromArg: "targetHigh"
12317
12467
  }]
12318
12468
  },
12319
12469
  {
@@ -12370,7 +12520,11 @@ var CAP_VOCABULARY_BY_NAME = {
12370
12520
  from: "status",
12371
12521
  field: "availableFanModes"
12372
12522
  }
12373
- }]
12523
+ }],
12524
+ effect: {
12525
+ field: "fanMode",
12526
+ fromArg: "fanMode"
12527
+ }
12374
12528
  },
12375
12529
  {
12376
12530
  id: "climate.preset",
@@ -12395,7 +12549,11 @@ var CAP_VOCABULARY_BY_NAME = {
12395
12549
  from: "status",
12396
12550
  field: "availablePresets"
12397
12551
  }
12398
- }]
12552
+ }],
12553
+ effect: {
12554
+ field: "preset",
12555
+ fromArg: "preset"
12556
+ }
12399
12557
  },
12400
12558
  {
12401
12559
  id: "climate.swingVerticalOn",
@@ -12628,7 +12786,15 @@ var CAP_VOCABULARY_BY_NAME = {
12628
12786
  effect: {
12629
12787
  field: "speed",
12630
12788
  value: 100
12631
- }
12789
+ },
12790
+ sideEffects: [{
12791
+ field: "preset",
12792
+ value: "",
12793
+ when: {
12794
+ field: "preset",
12795
+ notIn: [""]
12796
+ }
12797
+ }]
12632
12798
  },
12633
12799
  {
12634
12800
  id: "fan.speed",
@@ -12659,7 +12825,15 @@ var CAP_VOCABULARY_BY_NAME = {
12659
12825
  effect: {
12660
12826
  field: "speed",
12661
12827
  fromArg: "speed"
12662
- }
12828
+ },
12829
+ sideEffects: [{
12830
+ field: "preset",
12831
+ value: "",
12832
+ when: {
12833
+ field: "preset",
12834
+ notIn: [""]
12835
+ }
12836
+ }]
12663
12837
  },
12664
12838
  {
12665
12839
  id: "fan.preset",
@@ -12684,7 +12858,11 @@ var CAP_VOCABULARY_BY_NAME = {
12684
12858
  from: "status",
12685
12859
  field: "availablePresets"
12686
12860
  }
12687
- }]
12861
+ }],
12862
+ effect: {
12863
+ field: "preset",
12864
+ fromArg: "preset"
12865
+ }
12688
12866
  },
12689
12867
  {
12690
12868
  id: "fan.forward",
@@ -13229,7 +13407,15 @@ var CAP_VOCABULARY_BY_NAME = {
13229
13407
  effect: {
13230
13408
  field: "state",
13231
13409
  value: "disarmed"
13232
- }
13410
+ },
13411
+ hold: { effects: [{
13412
+ field: "state",
13413
+ value: "disarming",
13414
+ when: {
13415
+ field: "state",
13416
+ notIn: ["disarmed"]
13417
+ }
13418
+ }] }
13233
13419
  },
13234
13420
  {
13235
13421
  id: "alarm.arm.home",
@@ -13259,7 +13445,15 @@ var CAP_VOCABULARY_BY_NAME = {
13259
13445
  effect: {
13260
13446
  field: "state",
13261
13447
  value: "armed_home"
13262
- }
13448
+ },
13449
+ hold: { effects: [{
13450
+ field: "state",
13451
+ value: "arming",
13452
+ when: {
13453
+ field: "state",
13454
+ notIn: ["armed_home"]
13455
+ }
13456
+ }] }
13263
13457
  },
13264
13458
  {
13265
13459
  id: "alarm.arm.away",
@@ -13289,7 +13483,15 @@ var CAP_VOCABULARY_BY_NAME = {
13289
13483
  effect: {
13290
13484
  field: "state",
13291
13485
  value: "armed_away"
13292
- }
13486
+ },
13487
+ hold: { effects: [{
13488
+ field: "state",
13489
+ value: "arming",
13490
+ when: {
13491
+ field: "state",
13492
+ notIn: ["armed_away"]
13493
+ }
13494
+ }] }
13293
13495
  },
13294
13496
  {
13295
13497
  id: "alarm.arm.night",
@@ -13319,7 +13521,15 @@ var CAP_VOCABULARY_BY_NAME = {
13319
13521
  effect: {
13320
13522
  field: "state",
13321
13523
  value: "armed_night"
13322
- }
13524
+ },
13525
+ hold: { effects: [{
13526
+ field: "state",
13527
+ value: "arming",
13528
+ when: {
13529
+ field: "state",
13530
+ notIn: ["armed_night"]
13531
+ }
13532
+ }] }
13323
13533
  },
13324
13534
  {
13325
13535
  id: "alarm.arm.vacation",
@@ -13349,7 +13559,15 @@ var CAP_VOCABULARY_BY_NAME = {
13349
13559
  effect: {
13350
13560
  field: "state",
13351
13561
  value: "armed_vacation"
13352
- }
13562
+ },
13563
+ hold: { effects: [{
13564
+ field: "state",
13565
+ value: "arming",
13566
+ when: {
13567
+ field: "state",
13568
+ notIn: ["armed_vacation"]
13569
+ }
13570
+ }] }
13353
13571
  },
13354
13572
  {
13355
13573
  id: "alarm.arm.custom_bypass",
@@ -13379,7 +13597,15 @@ var CAP_VOCABULARY_BY_NAME = {
13379
13597
  effect: {
13380
13598
  field: "state",
13381
13599
  value: "armed_custom_bypass"
13382
- }
13600
+ },
13601
+ hold: { effects: [{
13602
+ field: "state",
13603
+ value: "arming",
13604
+ when: {
13605
+ field: "state",
13606
+ notIn: ["armed_custom_bypass"]
13607
+ }
13608
+ }] }
13383
13609
  }
13384
13610
  ],
13385
13611
  state: [{
@@ -14521,7 +14747,14 @@ var CAP_VOCABULARY_BY_NAME = {
14521
14747
  quantity: "mass"
14522
14748
  },
14523
14749
  optional: true
14524
- }]
14750
+ }],
14751
+ hold: {
14752
+ effects: [{
14753
+ field: "feeding",
14754
+ value: true
14755
+ }],
14756
+ holdMs: 1e4
14757
+ }
14525
14758
  },
14526
14759
  {
14527
14760
  id: "petFeeder.feedHoppers",
@@ -14565,7 +14798,14 @@ var CAP_VOCABULARY_BY_NAME = {
14565
14798
  quantity: "mass"
14566
14799
  },
14567
14800
  optional: true
14568
- }]
14801
+ }],
14802
+ hold: {
14803
+ effects: [{
14804
+ field: "feeding",
14805
+ value: true
14806
+ }],
14807
+ holdMs: 1e4
14808
+ }
14569
14809
  },
14570
14810
  {
14571
14811
  id: "petFeeder.cancelFeed",
@@ -14656,7 +14896,11 @@ var CAP_VOCABULARY_BY_NAME = {
14656
14896
  it: "Attiva il blocco bambini di {device}"
14657
14897
  },
14658
14898
  icon: "lock",
14659
- args: { on: true }
14899
+ args: { on: true },
14900
+ effect: {
14901
+ field: "childLock",
14902
+ value: true
14903
+ }
14660
14904
  },
14661
14905
  {
14662
14906
  id: "petFeeder.childLockOff",
@@ -14670,7 +14914,11 @@ var CAP_VOCABULARY_BY_NAME = {
14670
14914
  it: "Disattiva il blocco bambini di {device}"
14671
14915
  },
14672
14916
  icon: "lock-open",
14673
- args: { on: false }
14917
+ args: { on: false },
14918
+ effect: {
14919
+ field: "childLock",
14920
+ value: false
14921
+ }
14674
14922
  },
14675
14923
  {
14676
14924
  id: "petFeeder.lightOn",
@@ -14684,7 +14932,11 @@ var CAP_VOCABULARY_BY_NAME = {
14684
14932
  it: "Accendi la spia di {device}"
14685
14933
  },
14686
14934
  icon: "lightbulb",
14687
- args: { on: true }
14935
+ args: { on: true },
14936
+ effect: {
14937
+ field: "indicatorLight",
14938
+ value: true
14939
+ }
14688
14940
  },
14689
14941
  {
14690
14942
  id: "petFeeder.lightOff",
@@ -14698,7 +14950,11 @@ var CAP_VOCABULARY_BY_NAME = {
14698
14950
  it: "Spegni la spia di {device}"
14699
14951
  },
14700
14952
  icon: "lightbulb-off",
14701
- args: { on: false }
14953
+ args: { on: false },
14954
+ effect: {
14955
+ field: "indicatorLight",
14956
+ value: false
14957
+ }
14702
14958
  },
14703
14959
  {
14704
14960
  id: "petFeeder.feedSoundOn",
@@ -14712,7 +14968,11 @@ var CAP_VOCABULARY_BY_NAME = {
14712
14968
  it: "Attiva il suono di erogazione di {device}"
14713
14969
  },
14714
14970
  icon: "volume-2",
14715
- args: { on: true }
14971
+ args: { on: true },
14972
+ effect: {
14973
+ field: "feedSound",
14974
+ value: true
14975
+ }
14716
14976
  },
14717
14977
  {
14718
14978
  id: "petFeeder.feedSoundOff",
@@ -14726,7 +14986,11 @@ var CAP_VOCABULARY_BY_NAME = {
14726
14986
  it: "Disattiva il suono di erogazione di {device}"
14727
14987
  },
14728
14988
  icon: "volume-x",
14729
- args: { on: false }
14989
+ args: { on: false },
14990
+ effect: {
14991
+ field: "feedSound",
14992
+ value: false
14993
+ }
14730
14994
  },
14731
14995
  {
14732
14996
  id: "petFeeder.volume",
@@ -14751,7 +15015,11 @@ var CAP_VOCABULARY_BY_NAME = {
14751
15015
  min: 0,
14752
15016
  step: 1
14753
15017
  }
14754
- }]
15018
+ }],
15019
+ effect: {
15020
+ field: "volume",
15021
+ fromArg: "level"
15022
+ }
14755
15023
  }
14756
15024
  ],
14757
15025
  state: [
@@ -14823,7 +15091,11 @@ var CAP_VOCABULARY_BY_NAME = {
14823
15091
  it: "Avvia la pompa di {device}"
14824
15092
  },
14825
15093
  icon: "play",
14826
- args: { on: true }
15094
+ args: { on: true },
15095
+ effect: {
15096
+ field: "pumpRunning",
15097
+ value: true
15098
+ }
14827
15099
  }, {
14828
15100
  id: "petFountain.pumpOff",
14829
15101
  method: "setPump",
@@ -14836,7 +15108,11 @@ var CAP_VOCABULARY_BY_NAME = {
14836
15108
  it: "Ferma la pompa di {device}"
14837
15109
  },
14838
15110
  icon: "square",
14839
- args: { on: false }
15111
+ args: { on: false },
15112
+ effect: {
15113
+ field: "pumpRunning",
15114
+ value: false
15115
+ }
14840
15116
  }],
14841
15117
  state: [{
14842
15118
  kind: "boolean",
@@ -14888,7 +15164,11 @@ var CAP_VOCABULARY_BY_NAME = {
14888
15164
  it: "Fai lavorare la pompa di {device} a ciclo acceso/spento"
14889
15165
  },
14890
15166
  icon: "timer",
14891
- args: { on: true }
15167
+ args: { on: true },
15168
+ effect: {
15169
+ field: "enabled",
15170
+ value: true
15171
+ }
14892
15172
  },
14893
15173
  {
14894
15174
  id: "pumpCycle.off",
@@ -14902,7 +15182,11 @@ var CAP_VOCABULARY_BY_NAME = {
14902
15182
  it: "Fai lavorare la pompa di {device} in continuo"
14903
15183
  },
14904
15184
  icon: "timer-off",
14905
- args: { on: false }
15185
+ args: { on: false },
15186
+ effect: {
15187
+ field: "enabled",
15188
+ value: false
15189
+ }
14906
15190
  },
14907
15191
  {
14908
15192
  id: "pumpCycle.onMinutes",
@@ -14928,7 +15212,12 @@ var CAP_VOCABULARY_BY_NAME = {
14928
15212
  step: 1,
14929
15213
  unit: "min"
14930
15214
  }
14931
- }]
15215
+ }],
15216
+ effect: {
15217
+ field: "onTime",
15218
+ fromArg: "minutes",
15219
+ scale: 60
15220
+ }
14932
15221
  },
14933
15222
  {
14934
15223
  id: "pumpCycle.offMinutes",
@@ -14954,7 +15243,12 @@ var CAP_VOCABULARY_BY_NAME = {
14954
15243
  step: 1,
14955
15244
  unit: "min"
14956
15245
  }
14957
- }]
15246
+ }],
15247
+ effect: {
15248
+ field: "offTime",
15249
+ fromArg: "minutes",
15250
+ scale: 60
15251
+ }
14958
15252
  }
14959
15253
  ],
14960
15254
  state: [{
@@ -15071,7 +15365,11 @@ var CAP_VOCABULARY_BY_NAME = {
15071
15365
  en: "Play on {device}",
15072
15366
  it: "Avvia la riproduzione su {device}"
15073
15367
  },
15074
- icon: "play"
15368
+ icon: "play",
15369
+ effect: {
15370
+ field: "state",
15371
+ value: "playing"
15372
+ }
15075
15373
  },
15076
15374
  {
15077
15375
  id: "media.pause",
@@ -15084,7 +15382,11 @@ var CAP_VOCABULARY_BY_NAME = {
15084
15382
  en: "Pause {device}",
15085
15383
  it: "Metti in pausa {device}"
15086
15384
  },
15087
- icon: "pause"
15385
+ icon: "pause",
15386
+ effect: {
15387
+ field: "state",
15388
+ value: "paused"
15389
+ }
15088
15390
  },
15089
15391
  {
15090
15392
  id: "media.stop",
@@ -15150,7 +15452,11 @@ var CAP_VOCABULARY_BY_NAME = {
15150
15452
  step: 1,
15151
15453
  unit: "%"
15152
15454
  }
15153
- }]
15455
+ }],
15456
+ effect: {
15457
+ field: "volumeLevel",
15458
+ fromArg: "volumeLevel"
15459
+ }
15154
15460
  },
15155
15461
  {
15156
15462
  id: "media.mute",
@@ -15164,7 +15470,11 @@ var CAP_VOCABULARY_BY_NAME = {
15164
15470
  it: "Silenzia {device}"
15165
15471
  },
15166
15472
  icon: "volume-x",
15167
- args: { muted: true }
15473
+ args: { muted: true },
15474
+ effect: {
15475
+ field: "isMuted",
15476
+ value: true
15477
+ }
15168
15478
  },
15169
15479
  {
15170
15480
  id: "media.unmute",
@@ -15178,7 +15488,11 @@ var CAP_VOCABULARY_BY_NAME = {
15178
15488
  it: "Riattiva l’audio di {device}"
15179
15489
  },
15180
15490
  icon: "volume-2",
15181
- args: { muted: false }
15491
+ args: { muted: false },
15492
+ effect: {
15493
+ field: "isMuted",
15494
+ value: false
15495
+ }
15182
15496
  },
15183
15497
  {
15184
15498
  id: "media.shuffleOn",
@@ -15192,7 +15506,11 @@ var CAP_VOCABULARY_BY_NAME = {
15192
15506
  it: "Attiva la riproduzione casuale su {device}"
15193
15507
  },
15194
15508
  icon: "shuffle",
15195
- args: { shuffle: true }
15509
+ args: { shuffle: true },
15510
+ effect: {
15511
+ field: "shuffle",
15512
+ value: true
15513
+ }
15196
15514
  },
15197
15515
  {
15198
15516
  id: "media.shuffleOff",
@@ -15206,7 +15524,11 @@ var CAP_VOCABULARY_BY_NAME = {
15206
15524
  it: "Disattiva la riproduzione casuale su {device}"
15207
15525
  },
15208
15526
  icon: "shuffle",
15209
- args: { shuffle: false }
15527
+ args: { shuffle: false },
15528
+ effect: {
15529
+ field: "shuffle",
15530
+ value: false
15531
+ }
15210
15532
  },
15211
15533
  {
15212
15534
  id: "media.repeat",
@@ -15252,7 +15574,11 @@ var CAP_VOCABULARY_BY_NAME = {
15252
15574
  }
15253
15575
  ]
15254
15576
  }
15255
- }]
15577
+ }],
15578
+ effect: {
15579
+ field: "repeat",
15580
+ fromArg: "repeat"
15581
+ }
15256
15582
  },
15257
15583
  {
15258
15584
  id: "media.source",
@@ -15277,7 +15603,11 @@ var CAP_VOCABULARY_BY_NAME = {
15277
15603
  from: "status",
15278
15604
  field: "availableSources"
15279
15605
  }
15280
- }]
15606
+ }],
15607
+ effect: {
15608
+ field: "source",
15609
+ fromArg: "source"
15610
+ }
15281
15611
  },
15282
15612
  {
15283
15613
  id: "media.seek",
@@ -15817,7 +16147,14 @@ var CAP_VOCABULARY_BY_NAME = {
15817
16147
  en: "Run {device}",
15818
16148
  it: "Esegui {device}"
15819
16149
  },
15820
- icon: "scroll-text"
16150
+ icon: "scroll-text",
16151
+ hold: {
16152
+ effects: [{
16153
+ field: "isRunning",
16154
+ value: true
16155
+ }],
16156
+ holdMs: 1e4
16157
+ }
15821
16158
  }, {
15822
16159
  id: "script.stop",
15823
16160
  method: "stop",
@@ -15829,7 +16166,11 @@ var CAP_VOCABULARY_BY_NAME = {
15829
16166
  en: "Stop {device}",
15830
16167
  it: "Ferma {device}"
15831
16168
  },
15832
- icon: "square"
16169
+ icon: "square",
16170
+ effect: {
16171
+ field: "isRunning",
16172
+ value: false
16173
+ }
15833
16174
  }],
15834
16175
  state: [{
15835
16176
  kind: "boolean",
@@ -15867,7 +16208,11 @@ var CAP_VOCABULARY_BY_NAME = {
15867
16208
  en: "Enable {device}",
15868
16209
  it: "Abilita {device}"
15869
16210
  },
15870
- icon: "toggle-right"
16211
+ icon: "toggle-right",
16212
+ effect: {
16213
+ field: "enabled",
16214
+ value: true
16215
+ }
15871
16216
  },
15872
16217
  {
15873
16218
  id: "haAutomation.disable",
@@ -15880,7 +16225,11 @@ var CAP_VOCABULARY_BY_NAME = {
15880
16225
  en: "Disable {device}",
15881
16226
  it: "Disabilita {device}"
15882
16227
  },
15883
- icon: "toggle-left"
16228
+ icon: "toggle-left",
16229
+ effect: {
16230
+ field: "enabled",
16231
+ value: false
16232
+ }
15884
16233
  },
15885
16234
  {
15886
16235
  id: "haAutomation.trigger",
@@ -17482,6 +17831,17 @@ var CAP_VOCABULARY_BY_NAME = {
17482
17831
  },
17483
17832
  notOperatorFacing: { resync: "device adoption — re-aligning a device with its source is an onboarding step, not an automation action" }
17484
17833
  },
17834
+ "device-state-refresh": {
17835
+ scope: "device",
17836
+ noun: {
17837
+ en: "State refresh",
17838
+ it: "Aggiornamento dello stato"
17839
+ },
17840
+ notOperatorFacing: {
17841
+ refresh: "the core schedules state refreshes itself; an operator never asks for one",
17842
+ resubscribe: "the core schedules state refreshes itself; an operator never asks for one"
17843
+ }
17844
+ },
17485
17845
  "recording": {
17486
17846
  scope: "device",
17487
17847
  noun: {
@@ -20476,6 +20836,7 @@ var CAP_NAMES = Object.freeze([
20476
20836
  "device-removal-hook",
20477
20837
  "device-runs",
20478
20838
  "device-state",
20839
+ "device-state-refresh",
20479
20840
  "device-status",
20480
20841
  "device-transitions",
20481
20842
  "dishwasher",
@@ -22116,6 +22477,10 @@ Object.freeze({
22116
22477
  "path": "power",
22117
22478
  "valueType": "number"
22118
22479
  },
22480
+ {
22481
+ "path": "deliveredPower",
22482
+ "valueType": "number"
22483
+ },
22119
22484
  {
22120
22485
  "path": "energy",
22121
22486
  "valueType": "number"
@@ -22934,7 +23299,7 @@ Object.freeze({
22934
23299
  }
22935
23300
  });
22936
23301
  //#endregion
22937
- //#region ../types/dist/implemented-methods-k3KProJd.mjs
23302
+ //#region ../types/dist/implemented-methods-BUBqZ2a0.mjs
22938
23303
  /**
22939
23304
  * The ffmpeg build every CamStack node downloads, per platform and arch.
22940
23305
  *
@@ -24094,6 +24459,8 @@ var CompositionItemEntrySchema = object({
24094
24459
  */
24095
24460
  reset: CompositionForwardCommandSchema.optional()
24096
24461
  });
24462
+ /** Which identity link added a feature (D1063). */
24463
+ var CompositionContributedBySchema = object({ linkId: string().min(1) });
24097
24464
  var CompositionFeatureSchema = discriminatedUnion("kind", [object({
24098
24465
  kind: literal("fields"),
24099
24466
  cap: string().min(1),
@@ -24105,7 +24472,14 @@ var CompositionFeatureSchema = discriminatedUnion("kind", [object({
24105
24472
  */
24106
24473
  items: record$1(string().regex(COMPOSITION_ITEM_KEY_RE), CompositionItemEntrySchema).refine((items) => Object.keys(items).length <= 16, { message: `at most 16 items` }).optional(),
24107
24474
  /** Method name → what serves it. Only a BUILT capability takes commands (D967). */
24108
- commands: record$1(string().min(1), CompositionCommandTargetSchema).optional()
24475
+ commands: record$1(string().min(1), CompositionCommandTargetSchema).optional(),
24476
+ /**
24477
+ * Provenance only (D1063): the identity link that added this feature. The
24478
+ * source ref stays in `fields`; `enabled` stays the operator's switch. An
24479
+ * operator edit of the source drops the stamp and the feature becomes the
24480
+ * operator's; a lost link removes only stamped features.
24481
+ */
24482
+ contributedBy: CompositionContributedBySchema.optional()
24109
24483
  }), object({
24110
24484
  kind: literal("passthrough"),
24111
24485
  cap: string().min(1),
@@ -25533,10 +25907,16 @@ looseObject({
25533
25907
  TargetSchema.omit({ id: true });
25534
25908
  var EncodeProfileSchema = object({
25535
25909
  video: object({
25910
+ /**
25911
+ * `h264` / `h265` re-encode into that codec; `source` re-encodes in whatever
25912
+ * codec the source speaks (a resize that keeps the codec); `copy` remuxes
25913
+ * with no encode at all (so no resize either).
25914
+ */
25536
25915
  codec: _enum([
25537
25916
  "h264",
25538
25917
  "h265",
25539
- "copy"
25918
+ "copy",
25919
+ "source"
25540
25920
  ]),
25541
25921
  profile: _enum([
25542
25922
  "baseline",
@@ -25588,12 +25968,14 @@ var EncodeProfileSchema = object({
25588
25968
  singleSlicePerFrame: boolean().optional()
25589
25969
  }),
25590
25970
  audio: union([literal("passthrough"), object({
25971
+ /** `none` drops the audio track (`-an`); `copy` carries the source's. */
25591
25972
  codec: _enum([
25592
25973
  "opus",
25593
25974
  "aac",
25594
25975
  "pcmu",
25595
25976
  "pcma",
25596
- "copy"
25977
+ "copy",
25978
+ "none"
25597
25979
  ]),
25598
25980
  bitrateKbps: number$1().int().positive().optional(),
25599
25981
  sampleRateHz: number$1().int().positive().optional(),
@@ -53378,6 +53760,14 @@ var alarmPanelCapability = {
53378
53760
  field: "state",
53379
53761
  value: "disarmed"
53380
53762
  },
53763
+ hold: { effects: [{
53764
+ field: "state",
53765
+ value: "disarming",
53766
+ when: {
53767
+ field: "state",
53768
+ notIn: ["disarmed"]
53769
+ }
53770
+ }] },
53381
53771
  openArgs: [{
53382
53772
  key: "code",
53383
53773
  label: t("PIN code", "Codice PIN"),
@@ -53408,6 +53798,14 @@ var alarmPanelCapability = {
53408
53798
  field: "state",
53409
53799
  value: "armed_home"
53410
53800
  },
53801
+ hold: { effects: [{
53802
+ field: "state",
53803
+ value: "arming",
53804
+ when: {
53805
+ field: "state",
53806
+ notIn: ["armed_home"]
53807
+ }
53808
+ }] },
53411
53809
  args: { mode: "home" },
53412
53810
  openArgs: [{
53413
53811
  key: "code",
@@ -53428,6 +53826,14 @@ var alarmPanelCapability = {
53428
53826
  field: "state",
53429
53827
  value: "armed_away"
53430
53828
  },
53829
+ hold: { effects: [{
53830
+ field: "state",
53831
+ value: "arming",
53832
+ when: {
53833
+ field: "state",
53834
+ notIn: ["armed_away"]
53835
+ }
53836
+ }] },
53431
53837
  args: { mode: "away" },
53432
53838
  openArgs: [{
53433
53839
  key: "code",
@@ -53448,6 +53854,14 @@ var alarmPanelCapability = {
53448
53854
  field: "state",
53449
53855
  value: "armed_night"
53450
53856
  },
53857
+ hold: { effects: [{
53858
+ field: "state",
53859
+ value: "arming",
53860
+ when: {
53861
+ field: "state",
53862
+ notIn: ["armed_night"]
53863
+ }
53864
+ }] },
53451
53865
  args: { mode: "night" },
53452
53866
  openArgs: [{
53453
53867
  key: "code",
@@ -53468,6 +53882,14 @@ var alarmPanelCapability = {
53468
53882
  field: "state",
53469
53883
  value: "armed_vacation"
53470
53884
  },
53885
+ hold: { effects: [{
53886
+ field: "state",
53887
+ value: "arming",
53888
+ when: {
53889
+ field: "state",
53890
+ notIn: ["armed_vacation"]
53891
+ }
53892
+ }] },
53471
53893
  args: { mode: "vacation" },
53472
53894
  openArgs: [{
53473
53895
  key: "code",
@@ -53488,6 +53910,14 @@ var alarmPanelCapability = {
53488
53910
  field: "state",
53489
53911
  value: "armed_custom_bypass"
53490
53912
  },
53913
+ hold: { effects: [{
53914
+ field: "state",
53915
+ value: "arming",
53916
+ when: {
53917
+ field: "state",
53918
+ notIn: ["armed_custom_bypass"]
53919
+ }
53920
+ }] },
53491
53921
  args: { mode: "custom_bypass" },
53492
53922
  openArgs: [{
53493
53923
  key: "code",
@@ -54171,6 +54601,10 @@ var automationControlCapability = {
54171
54601
  auth: "admin",
54172
54602
  actions: [{
54173
54603
  id: "haAutomation.enable",
54604
+ effect: {
54605
+ field: "enabled",
54606
+ value: true
54607
+ },
54174
54608
  label: t("Enable automation", "Abilita l’automazione"),
54175
54609
  phrase: t("Enable {device}", "Abilita {device}"),
54176
54610
  icon: "toggle-right"
@@ -54181,6 +54615,10 @@ var automationControlCapability = {
54181
54615
  auth: "admin",
54182
54616
  actions: [{
54183
54617
  id: "haAutomation.disable",
54618
+ effect: {
54619
+ field: "enabled",
54620
+ value: false
54621
+ },
54184
54622
  label: t("Disable automation", "Disabilita l’automazione"),
54185
54623
  phrase: t("Disable {device}", "Disabilita {device}"),
54186
54624
  icon: "toggle-left"
@@ -56259,7 +56697,11 @@ method(object({
56259
56697
  }).nullable(), {
56260
56698
  kind: "mutation",
56261
56699
  auth: "admin"
56262
- }), method(_void(), array(CameraStreamSchema).readonly()), method(_void(), array(ProfileSlotSchema).readonly()), method(object({ brokerId: string() }), BrokerStatsSchema), method(object({ brokerId: string() }), object({
56700
+ }), method(_void(), array(CameraStreamSchema).readonly()), method(_void(), array(ProfileSlotSchema).readonly()), method(object({ brokerId: string() }), BrokerStatsSchema), method(object({
56701
+ deviceId: number$1().int().nonnegative(),
56702
+ profile: EncodeProfileSchema,
56703
+ source: DerivedSourceRefSchema.optional()
56704
+ }), PreviewDerivedEncodeResultSchema), method(object({ brokerId: string() }), object({
56263
56705
  probed: boolean(),
56264
56706
  summary: string()
56265
56707
  }), {
@@ -56991,6 +57433,14 @@ var climateControlCapability = {
56991
57433
  label: t("Set temperature range", "Imposta l’intervallo di temperatura"),
56992
57434
  phrase: t("Keep {device} between {targetLow} and {targetHigh}", "Mantieni {device} tra {targetLow} e {targetHigh}"),
56993
57435
  icon: "thermometer",
57436
+ effect: {
57437
+ field: "targetLow",
57438
+ fromArg: "targetLow"
57439
+ },
57440
+ sideEffects: [{
57441
+ field: "targetHigh",
57442
+ fromArg: "targetHigh"
57443
+ }],
56994
57444
  openArgs: [{
56995
57445
  key: "targetLow",
56996
57446
  label: t("Lowest", "Minima"),
@@ -57049,6 +57499,10 @@ var climateControlCapability = {
57049
57499
  label: t("Set fan mode", "Imposta la ventilazione"),
57050
57500
  phrase: t("Set the fan of {device} to {fanMode}", "Imposta la ventilazione di {device} su {fanMode}"),
57051
57501
  icon: "fan",
57502
+ effect: {
57503
+ field: "fanMode",
57504
+ fromArg: "fanMode"
57505
+ },
57052
57506
  openArgs: [{
57053
57507
  key: "fanMode",
57054
57508
  label: t("Fan mode", "Ventilazione"),
@@ -57071,6 +57525,10 @@ var climateControlCapability = {
57071
57525
  label: t("Set preset", "Imposta il preset"),
57072
57526
  phrase: t("Set {device} to preset {preset}", "Imposta {device} sul preset {preset}"),
57073
57527
  icon: "list",
57528
+ effect: {
57529
+ field: "preset",
57530
+ fromArg: "preset"
57531
+ },
57074
57532
  openArgs: [{
57075
57533
  key: "preset",
57076
57534
  label: t("Preset", "Preset"),
@@ -57658,7 +58116,8 @@ var CompositionProblemSchema = object({
57658
58116
  "command-source-unknown",
57659
58117
  "command-input-unknown",
57660
58118
  "command-input-missing",
57661
- "power-source-is-actuator"
58119
+ "power-source-is-actuator",
58120
+ "link-contribution-removed"
57662
58121
  ]),
57663
58122
  path: string(),
57664
58123
  message: string()
@@ -59085,6 +59544,10 @@ var mediaPlayerCapability = {
59085
59544
  auth: "protected",
59086
59545
  actions: [{
59087
59546
  id: "media.play",
59547
+ effect: {
59548
+ field: "state",
59549
+ value: "playing"
59550
+ },
59088
59551
  label: t("Play", "Riproduci"),
59089
59552
  phrase: t("Play on {device}", "Avvia la riproduzione su {device}"),
59090
59553
  icon: "play"
@@ -59095,6 +59558,10 @@ var mediaPlayerCapability = {
59095
59558
  auth: "protected",
59096
59559
  actions: [{
59097
59560
  id: "media.pause",
59561
+ effect: {
59562
+ field: "state",
59563
+ value: "paused"
59564
+ },
59098
59565
  label: t("Pause media", "Metti in pausa"),
59099
59566
  phrase: t("Pause {device}", "Metti in pausa {device}"),
59100
59567
  icon: "pause"
@@ -59138,6 +59605,10 @@ var mediaPlayerCapability = {
59138
59605
  auth: "protected",
59139
59606
  actions: [{
59140
59607
  id: "media.volume",
59608
+ effect: {
59609
+ field: "volumeLevel",
59610
+ fromArg: "volumeLevel"
59611
+ },
59141
59612
  label: t("Set volume", "Imposta il volume"),
59142
59613
  phrase: t("Set the volume of {device} to {volumeLevel}", "Imposta il volume di {device} al {volumeLevel}"),
59143
59614
  icon: "volume-2",
@@ -59162,12 +59633,20 @@ var mediaPlayerCapability = {
59162
59633
  auth: "protected",
59163
59634
  actions: [{
59164
59635
  id: "media.mute",
59636
+ effect: {
59637
+ field: "isMuted",
59638
+ value: true
59639
+ },
59165
59640
  label: t("Mute", "Silenzia"),
59166
59641
  phrase: t("Mute {device}", "Silenzia {device}"),
59167
59642
  icon: "volume-x",
59168
59643
  args: { muted: true }
59169
59644
  }, {
59170
59645
  id: "media.unmute",
59646
+ effect: {
59647
+ field: "isMuted",
59648
+ value: false
59649
+ },
59171
59650
  label: t("Unmute", "Riattiva l’audio"),
59172
59651
  phrase: t("Unmute {device}", "Riattiva l’audio di {device}"),
59173
59652
  icon: "volume-2",
@@ -59182,12 +59661,20 @@ var mediaPlayerCapability = {
59182
59661
  auth: "protected",
59183
59662
  actions: [{
59184
59663
  id: "media.shuffleOn",
59664
+ effect: {
59665
+ field: "shuffle",
59666
+ value: true
59667
+ },
59185
59668
  label: t("Shuffle on", "Riproduzione casuale attiva"),
59186
59669
  phrase: t("Turn on shuffle on {device}", "Attiva la riproduzione casuale su {device}"),
59187
59670
  icon: "shuffle",
59188
59671
  args: { shuffle: true }
59189
59672
  }, {
59190
59673
  id: "media.shuffleOff",
59674
+ effect: {
59675
+ field: "shuffle",
59676
+ value: false
59677
+ },
59191
59678
  label: t("Shuffle off", "Riproduzione casuale spenta"),
59192
59679
  phrase: t("Turn off shuffle on {device}", "Disattiva la riproduzione casuale su {device}"),
59193
59680
  icon: "shuffle",
@@ -59202,6 +59689,10 @@ var mediaPlayerCapability = {
59202
59689
  auth: "protected",
59203
59690
  actions: [{
59204
59691
  id: "media.repeat",
59692
+ effect: {
59693
+ field: "repeat",
59694
+ fromArg: "repeat"
59695
+ },
59205
59696
  label: t("Set repeat", "Imposta la ripetizione"),
59206
59697
  phrase: t("Set repeat on {device} to {repeat}", "Imposta la ripetizione di {device} su {repeat}"),
59207
59698
  icon: "repeat",
@@ -59236,6 +59727,10 @@ var mediaPlayerCapability = {
59236
59727
  auth: "protected",
59237
59728
  actions: [{
59238
59729
  id: "media.source",
59730
+ effect: {
59731
+ field: "source",
59732
+ fromArg: "source"
59733
+ },
59239
59734
  label: t("Select source", "Scegli la sorgente"),
59240
59735
  phrase: t("Switch {device} to {source}", "Passa {device} alla sorgente {source}"),
59241
59736
  icon: "cast",
@@ -59404,7 +59899,7 @@ var mediaPlayerCapability = {
59404
59899
  ]
59405
59900
  }
59406
59901
  };
59407
- DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Climate, DeviceType.EventEmitter, DeviceType.Climate, DeviceType.Climate, DeviceType.Camera, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, 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.WeatherStation, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway, DeviceType.HeatPump, DeviceType.EnergySystem, DeviceType.Workload, DeviceType.Camera, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Lock, DeviceType.Camera, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, 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.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.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.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Gateway, DeviceType.Camera, DeviceType.Sensor, DeviceType.MediaPlayer, DeviceType.Vacuum, DeviceType.Generic, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.PetFountain, DeviceType.Fan, DeviceType.Humidifier, DeviceType.Climate, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.PetFeeder, DeviceType.MediaPlayer, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation;
59902
+ DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Climate, DeviceType.EventEmitter, DeviceType.Climate, DeviceType.Climate, DeviceType.Camera, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, 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.WeatherStation, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway, DeviceType.HeatPump, DeviceType.EnergySystem, DeviceType.Workload, DeviceType.Camera, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Lock, DeviceType.Camera, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Workload, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Workload, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Workload, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Workload, DeviceType.Gateway, DeviceType.Camera, DeviceType.Sensor, DeviceType.MediaPlayer, DeviceType.Vacuum, DeviceType.Generic, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.PetFountain, DeviceType.Fan, DeviceType.Humidifier, DeviceType.Climate, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.PetFeeder, DeviceType.MediaPlayer, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation;
59408
59903
  var NUMBER = {
59409
59904
  kind: "fixed",
59410
59905
  result: ["number"]
@@ -59896,7 +60391,9 @@ var PowerSourceRefusalReasonSchema = _enum([
59896
60391
  "switch-call-failed",
59897
60392
  "switch-options-unreadable",
59898
60393
  "not-settable",
59899
- "switch-is-actuator"
60394
+ "switch-is-actuator",
60395
+ "link-lost",
60396
+ "link-unknown"
59900
60397
  ]);
59901
60398
  var PowerSourceActionResultSchema = discriminatedUnion("accepted", [object({ accepted: literal(true) }), object({
59902
60399
  accepted: literal(false),
@@ -61983,6 +62480,79 @@ var IdentityCandidatesSchema = discriminatedUnion("status", [object({
61983
62480
  pairs: array(IdentityCandidatePairSchema).readonly(),
61984
62481
  undeclaredDeviceIds: array(number$1().int()).readonly()
61985
62482
  })]);
62483
+ var IdentityLinkKindSchema = _enum(["same-device", "poe-power"]);
62484
+ /**
62485
+ * - `proposed` — one strong key matched: waits for the operator;
62486
+ * - `linked` — confirmed by the operator, or auto-linked on strong evidence;
62487
+ * - `dismissed` — the operator said no (or unlinked): sticky, never re-proposed.
62488
+ */
62489
+ var IdentityLinkStateSchema = _enum([
62490
+ "proposed",
62491
+ "linked",
62492
+ "dismissed"
62493
+ ]);
62494
+ /** Who decided the current state: the matcher (`auto`) or the operator. */
62495
+ var IdentityLinkOriginSchema = _enum(["auto", "operator"]);
62496
+ /** One side: the device ref that survives re-registration, plus its current numeric id. */
62497
+ var IdentityLinkSideSchema = object({
62498
+ addonId: string().min(1),
62499
+ stableId: string().min(1),
62500
+ deviceId: number$1().int()
62501
+ });
62502
+ var IdentityLinkSchema = object({
62503
+ kind: IdentityLinkKindSchema,
62504
+ a: IdentityLinkSideSchema,
62505
+ b: IdentityLinkSideSchema,
62506
+ state: IdentityLinkStateSchema,
62507
+ origin: IdentityLinkOriginSchema,
62508
+ /** The identifiers that matched when the link was last evaluated, ordered by key then value. */
62509
+ evidence: array(IdentityMatchedKeySchema).readonly(),
62510
+ /** An operator-confirmed link whose evidence no longer matches: kept, flagged. */
62511
+ evidenceGone: literal(true).optional(),
62512
+ createdAt: number$1().int().nonnegative(),
62513
+ decidedAt: number$1().int().nonnegative().optional()
62514
+ }).extend({ id: string().min(1) });
62515
+ DeviceRole.PoePort;
62516
+ /**
62517
+ * The answer of `device-manager.listIdentityLinks`. `not-loaded` until the
62518
+ * links have been read — never an empty list (D315).
62519
+ */
62520
+ var IdentityLinksReadSchema = discriminatedUnion("status", [object({
62521
+ status: literal("not-loaded"),
62522
+ reason: string()
62523
+ }), object({
62524
+ status: literal("answered"),
62525
+ links: array(IdentityLinkSchema).readonly()
62526
+ })]);
62527
+ /** Why an operator decision on a link was refused. */
62528
+ var IdentityLinkDecisionRefusalSchema = _enum([
62529
+ "not-loaded",
62530
+ "unknown-link",
62531
+ "wrong-state"
62532
+ ]);
62533
+ /** The answer of `confirmIdentityLink` / `dismissIdentityLink` / `unlinkIdentity`. */
62534
+ var IdentityLinkDecisionSchema = discriminatedUnion("ok", [object({
62535
+ ok: literal(true),
62536
+ link: IdentityLinkSchema
62537
+ }), object({
62538
+ ok: literal(false),
62539
+ reason: IdentityLinkDecisionRefusalSchema,
62540
+ message: string()
62541
+ })]);
62542
+ /** Why a link was lost. */
62543
+ var IdentityLinkLostReasonSchema = _enum([
62544
+ "evidence-gone",
62545
+ "device-removed",
62546
+ "operator-unlinked"
62547
+ ]);
62548
+ object({
62549
+ linkId: string(),
62550
+ kind: IdentityLinkKindSchema,
62551
+ aDeviceId: number$1().int(),
62552
+ bDeviceId: number$1().int(),
62553
+ origin: IdentityLinkOriginSchema,
62554
+ reason: IdentityLinkLostReasonSchema.optional()
62555
+ });
61986
62556
  var DeviceSearchRequiresSchema = object({
61987
62557
  /** Capability names the field wants a value of. Absent when the field wants actions only. */
61988
62558
  caps: array(string()).readonly().optional(),
@@ -62549,6 +63119,11 @@ var DeviceInfoSchema = object({
62549
63119
  * the owning provider via `setIdentifiers`; read-only for the operator.
62550
63120
  * Absent ⇒ the provider declared none. */
62551
63121
  identifiers: DeviceIdentifiersSchema.optional(),
63122
+ /** The identity of the device at the far end of this device's physical
63123
+ * link (D1059 amended by D1063) — a PoE port's wired client. Written only by
63124
+ * the owning provider via `setAttachedIdentifiers`; it never makes the two
63125
+ * devices the same device. Absent ⇒ none declared. */
63126
+ attachedIdentifiers: DeviceIdentifiersSchema.optional(),
62552
63127
  /** Optional upstream-system identity + rendering envelope. See
62553
63128
  * `SourceInfo` in `packages/types/src/device/source-info.ts`. */
62554
63129
  sourceInfo: SourceInfoSchema.optional(),
@@ -62702,6 +63277,8 @@ var DeviceMetaSchema = object({
62702
63277
  metadata: record$1(string(), unknown()).nullable().optional(),
62703
63278
  /** Provider-declared identifiers (D1059). See `DeviceMeta.identifiers`. */
62704
63279
  identifiers: DeviceIdentifiersSchema.optional(),
63280
+ /** The far end of the device's physical link (D1063). See `DeviceMeta.attachedIdentifiers`. */
63281
+ attachedIdentifiers: DeviceIdentifiersSchema.optional(),
62705
63282
  /** Optional upstream-system identity + rendering envelope. See
62706
63283
  * `SourceInfo`. Present when the device has been persisted with a
62707
63284
  * non-synthetic source identifier (HA entities, vendor MAC, …);
@@ -63026,6 +63603,26 @@ method(object({
63026
63603
  }), method(object({}), IdentityCandidatesSchema, {
63027
63604
  kind: "query",
63028
63605
  auth: "admin"
63606
+ }), method(object({
63607
+ deviceId: number$1(),
63608
+ identifiers: DeviceIdentifiersSchema.nullable(),
63609
+ /** Kinds the provider tried to read and could not: their stored value is kept. */
63610
+ unread: array(DeviceIdentifierKeySchema).optional()
63611
+ }), _void(), {
63612
+ kind: "mutation",
63613
+ auth: "admin"
63614
+ }), method(object({ deviceId: number$1().int().optional() }), IdentityLinksReadSchema, {
63615
+ kind: "query",
63616
+ auth: "admin"
63617
+ }), method(object({ linkId: string().min(1) }), IdentityLinkDecisionSchema, {
63618
+ kind: "mutation",
63619
+ auth: "admin"
63620
+ }), method(object({ linkId: string().min(1) }), IdentityLinkDecisionSchema, {
63621
+ kind: "mutation",
63622
+ auth: "admin"
63623
+ }), method(object({ linkId: string().min(1) }), IdentityLinkDecisionSchema, {
63624
+ kind: "mutation",
63625
+ auth: "admin"
63029
63626
  }), method(_void(), array(string())), method(object({ name: string() }), _void(), {
63030
63627
  kind: "mutation",
63031
63628
  auth: "admin"
@@ -63976,8 +64573,12 @@ var ClaimsListingSchema = discriminatedUnion("state", [object({
63976
64573
  })]);
63977
64574
  method(object({ deviceId: number$1() }), record$1(string(), record$1(string(), unknown()))), method(object({
63978
64575
  deviceId: number$1(),
63979
- capName: string()
63980
- }), record$1(string(), unknown()).nullable()), method(object({}), record$1(string(), record$1(string(), record$1(string(), unknown())))), method(object({
64576
+ capName: string(),
64577
+ /** The slice the device CONFIRMED, without a held command (D1061) — history and automations. */
64578
+ confirmed: boolean().optional()
64579
+ }), record$1(string(), unknown()).nullable()), method(object({
64580
+ /** The slices the devices CONFIRMED, without held commands (D1061). */
64581
+ confirmed: boolean().optional() }), record$1(string(), record$1(string(), record$1(string(), unknown())))), method(object({
63981
64582
  deviceId: number$1(),
63982
64583
  capName: string(),
63983
64584
  slice: record$1(string(), unknown())
@@ -64015,6 +64616,88 @@ method(object({ deviceId: number$1() }), record$1(string(), record$1(string(), u
64015
64616
  slice: record$1(string(), unknown())
64016
64617
  }));
64017
64618
  /**
64619
+ * Server-driven device state refresh (D1062): the core decides WHEN a device is
64620
+ * re-read, the integration only knows HOW.
64621
+ *
64622
+ * A provider states its policy where it registers the device's
64623
+ * `device-state-refresh` cap (`ctx.registerNativeCap(cap, provider, {
64624
+ * stateRefresh })`). It reaches the hub by the road the command-hold options
64625
+ * take (D1061): written directly in-process, carried on a forked child's cap
64626
+ * descriptors otherwise. Plain data, wire-safe.
64627
+ */
64628
+ /** Why the core asks for a refresh. */
64629
+ var StateRefreshReasonSchema = _enum([
64630
+ "schedule",
64631
+ "command",
64632
+ "burst"
64633
+ ]);
64634
+ /**
64635
+ * What arrives without asking: `none` (everything is read), `partial` (some
64636
+ * fields arrive by push, the rest is read on the schedule), `full` (everything
64637
+ * arrives by push — never read on a schedule).
64638
+ */
64639
+ var StateRefreshPushSchema = _enum([
64640
+ "none",
64641
+ "partial",
64642
+ "full"
64643
+ ]);
64644
+ object({
64645
+ /**
64646
+ * The integration instance the device belongs to. Devices of one instance
64647
+ * share one schedule group: a batching provider is asked once for all of
64648
+ * them, and the heartbeat is judged across them.
64649
+ */
64650
+ integrationId: string().min(1),
64651
+ /** The fastest interval the integration can afford for its devices. The core polls at it by default. */
64652
+ minIntervalMs: number$1().int().min(1e3),
64653
+ /**
64654
+ * The operator's per-integration setting, when there is one. It can only SLOW
64655
+ * the cadence: the core polls at `max(minIntervalMs, intervalMs)`.
64656
+ */
64657
+ intervalMs: number$1().int().positive().optional(),
64658
+ /** One `refresh` call can read every device of the integration at once. */
64659
+ batch: boolean(),
64660
+ push: StateRefreshPushSchema,
64661
+ /** Longest silence a push integration may keep before the core re-reads it and asks it to resubscribe. */
64662
+ heartbeatMs: number$1().int().positive().optional(),
64663
+ /**
64664
+ * Bumped by the provider each time its push subscription reconnected on its
64665
+ * own. A change makes the core re-read every device of the integration
64666
+ * (pushes lost while it was down; events may be dropped, D8).
64667
+ */
64668
+ connectionEpoch: number$1().int().nonnegative().optional()
64669
+ });
64670
+ /**
64671
+ * device-state-refresh — the HOW of a device's state refresh, called by the
64672
+ * core, which owns the WHEN (D1062).
64673
+ *
64674
+ * The provider registers it per device with its policy
64675
+ * (`registerNativeCap(cap, provider, { stateRefresh })`). The hub's scheduler
64676
+ * calls `refresh` on the schedule, after a command and in the burst that
64677
+ * follows it, and `resubscribe` when a push integration fell silent. The
64678
+ * provider re-reads and writes the slices it already writes; nothing is
64679
+ * returned but completion.
64680
+ */
64681
+ var DeviceStateRefreshInputSchema = object({
64682
+ /** The device the call is routed by (one of `deviceIds`). */
64683
+ deviceId: number$1().int().nonnegative(),
64684
+ /** Every device to re-read: one, or the integration's whole set when the provider batches. */
64685
+ deviceIds: array(number$1().int().nonnegative()).min(1),
64686
+ reason: StateRefreshReasonSchema
64687
+ });
64688
+ var DeviceStateResubscribeInputSchema = object({ deviceId: number$1().int().nonnegative() });
64689
+ var DeviceStateRefreshResultSchema = object({ ok: literal(true) });
64690
+ var NOT_OPERATOR_FACING = "the core schedules state refreshes itself; an operator never asks for one";
64691
+ method(DeviceStateRefreshInputSchema, DeviceStateRefreshResultSchema, {
64692
+ kind: "mutation",
64693
+ auth: "admin",
64694
+ notOperatorFacing: NOT_OPERATOR_FACING
64695
+ }), method(DeviceStateResubscribeInputSchema, DeviceStateRefreshResultSchema, {
64696
+ kind: "mutation",
64697
+ auth: "admin",
64698
+ notOperatorFacing: NOT_OPERATOR_FACING
64699
+ });
64700
+ /**
64018
64701
  * Generic device-level status snapshot. Auto-registered by `BaseDevice`
64019
64702
  * for every device, regardless of provider — the kernel needs a uniform
64020
64703
  * cap-keyed slice for the basic device flags every consumer expects to
@@ -66424,7 +67107,15 @@ var fanControlCapability = {
66424
67107
  field: "speed",
66425
67108
  value: 100
66426
67109
  },
66427
- args: { speed: 100 }
67110
+ args: { speed: 100 },
67111
+ sideEffects: [{
67112
+ field: "preset",
67113
+ value: "",
67114
+ when: {
67115
+ field: "preset",
67116
+ notIn: [""]
67117
+ }
67118
+ }]
66428
67119
  },
66429
67120
  {
66430
67121
  id: "fan.speed",
@@ -66435,6 +67126,14 @@ var fanControlCapability = {
66435
67126
  field: "speed",
66436
67127
  fromArg: "speed"
66437
67128
  },
67129
+ sideEffects: [{
67130
+ field: "preset",
67131
+ value: "",
67132
+ when: {
67133
+ field: "preset",
67134
+ notIn: [""]
67135
+ }
67136
+ }],
66438
67137
  openArgs: [{
66439
67138
  key: "speed",
66440
67139
  label: t("Speed", "Velocità"),
@@ -66460,6 +67159,10 @@ var fanControlCapability = {
66460
67159
  label: t("Set preset", "Imposta il preset"),
66461
67160
  phrase: t("Set {device} to preset {preset}", "Imposta {device} sul preset {preset}"),
66462
67161
  icon: "list",
67162
+ effect: {
67163
+ field: "preset",
67164
+ fromArg: "preset"
67165
+ },
66463
67166
  openArgs: [{
66464
67167
  key: "preset",
66465
67168
  label: t("Preset", "Preset"),
@@ -68190,7 +68893,7 @@ var HeroSceneSchema = object({
68190
68893
  level: number$1().min(0).max(1).nullable()
68191
68894
  });
68192
68895
  DeviceType.Camera, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, 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.HeatPump, DeviceType.EnergySystem, DeviceType.Workload, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.WeatherStation, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway;
68193
- DeviceRole.Siren, DeviceRole.Floodlight, DeviceRole.Spotlight, DeviceRole.PirSensor, DeviceRole.Chime, DeviceRole.Autotrack, DeviceRole.Nightvision, DeviceRole.PrivacyMask, DeviceRole.Doorbell, DeviceRole.CoverBlind, DeviceRole.CoverShutter, DeviceRole.CoverAwning, DeviceRole.CoverCurtain, DeviceRole.CoverGarage, DeviceRole.CoverGate, DeviceRole.CoverDoor, DeviceRole.CoverWindow, DeviceRole.BinaryHelper, DeviceRole.Outlet, DeviceRole.SwitchHeater, DeviceRole.SwitchFan, DeviceRole.SwitchLight, DeviceRole.PoePort, DeviceRole.ClimateAc, DeviceRole.ClimateThermostat, DeviceRole.ClimateFloor, DeviceRole.ClimateRadiator, DeviceRole.ClimateHeater, DeviceRole.ClimateHeatPumpCircuit, DeviceRole.MotionSensor, DeviceRole.ContactSensor, DeviceRole.LeakSensor, DeviceRole.SmokeSensor, DeviceRole.COSensor, DeviceRole.GasSensor, DeviceRole.TamperSensor, DeviceRole.VibrationSensor, DeviceRole.ConnectivitySensor, DeviceRole.SoundSensor, DeviceRole.BinarySensor, DeviceRole.TemperatureSensor, DeviceRole.HumiditySensor, DeviceRole.AmbientLightSensor, DeviceRole.PressureSensor, DeviceRole.WindSensor, DeviceRole.RainSensor, DeviceRole.UvSensor, DeviceRole.SolarRadiationSensor, DeviceRole.SoilMoistureSensor, DeviceRole.PowerSensor, DeviceRole.EnergySensor, DeviceRole.VoltageSensor, DeviceRole.CurrentSensor, DeviceRole.AirQualitySensor, DeviceRole.BatterySensor, DeviceRole.NumericSensor, DeviceRole.EnumSensor, DeviceRole.DateTimeSensor, DeviceRole.GenericSensor, DeviceRole.NumericControl, DeviceRole.SelectControl, DeviceRole.TextControl, DeviceRole.DateTimeControl, DeviceRole.MobilePushNotifier, DeviceRole.MessagingNotifier, DeviceRole.EmailNotifier, DeviceRole.GenericNotifier, DeviceRole.IrTransmitter, DeviceRole.Vm, DeviceRole.AppContainer, DeviceRole.Lxc, DeviceRole.App, DeviceRole.Host;
68896
+ DeviceRole.Siren, DeviceRole.Floodlight, DeviceRole.Spotlight, DeviceRole.PirSensor, DeviceRole.Chime, DeviceRole.Autotrack, DeviceRole.Nightvision, DeviceRole.PrivacyMask, DeviceRole.Doorbell, DeviceRole.CoverBlind, DeviceRole.CoverShutter, DeviceRole.CoverAwning, DeviceRole.CoverCurtain, DeviceRole.CoverGarage, DeviceRole.CoverGate, DeviceRole.CoverDoor, DeviceRole.CoverWindow, DeviceRole.BinaryHelper, DeviceRole.Outlet, DeviceRole.SwitchHeater, DeviceRole.SwitchFan, DeviceRole.SwitchLight, DeviceRole.PoePort, DeviceRole.ClimateAc, DeviceRole.ClimateThermostat, DeviceRole.ClimateFloor, DeviceRole.ClimateRadiator, DeviceRole.ClimateHeater, DeviceRole.ClimateHeatPumpCircuit, DeviceRole.MotionSensor, DeviceRole.ContactSensor, DeviceRole.LeakSensor, DeviceRole.SmokeSensor, DeviceRole.COSensor, DeviceRole.GasSensor, DeviceRole.TamperSensor, DeviceRole.VibrationSensor, DeviceRole.ConnectivitySensor, DeviceRole.SoundSensor, DeviceRole.BinarySensor, DeviceRole.TemperatureSensor, DeviceRole.HumiditySensor, DeviceRole.AmbientLightSensor, DeviceRole.PressureSensor, DeviceRole.WindSensor, DeviceRole.RainSensor, DeviceRole.UvSensor, DeviceRole.SolarRadiationSensor, DeviceRole.SoilMoistureSensor, DeviceRole.PowerSensor, DeviceRole.EnergySensor, DeviceRole.VoltageSensor, DeviceRole.CurrentSensor, DeviceRole.AirQualitySensor, DeviceRole.BatterySensor, DeviceRole.NumericSensor, DeviceRole.EnumSensor, DeviceRole.DateTimeSensor, DeviceRole.GenericSensor, DeviceRole.NumericControl, DeviceRole.SelectControl, DeviceRole.TextControl, DeviceRole.DateTimeControl, DeviceRole.MobilePushNotifier, DeviceRole.MessagingNotifier, DeviceRole.EmailNotifier, DeviceRole.GenericNotifier, DeviceRole.IrTransmitter, DeviceRole.Vm, DeviceRole.AppContainer, DeviceRole.Lxc, DeviceRole.App, DeviceRole.Host, DeviceRole.Ups;
68194
68897
  var HeroRowIdSchema = _enum([
68195
68898
  "progress",
68196
68899
  "run-for",
@@ -69462,6 +70165,16 @@ var IntegrationInstanceStatusSchema = object({
69462
70165
  /** A short human word for the state ("Signed in", "Token expired"); shown instead of `state`. */
69463
70166
  label: string().optional()
69464
70167
  });
70168
+ /**
70169
+ * What "Add device" inside ONE instance offers, decided per instance by its provider. `scan`: the
70170
+ * LAN scan finds devices this instance holds; `children`: only the instance's own children, via
70171
+ * adoption (a scan would offer other hosts, which are new integrations); `none`: manual add only.
70172
+ */
70173
+ var IntegrationInstanceAddDeviceSchema = _enum([
70174
+ "scan",
70175
+ "children",
70176
+ "none"
70177
+ ]);
69465
70178
  var IntegrationInstanceSchema = object({
69466
70179
  id: IntegrationInstanceIdSchema,
69467
70180
  name: string(),
@@ -69479,7 +70192,9 @@ var IntegrationInstanceSchema = object({
69479
70192
  formValues: record$1(string(), unknown()),
69480
70193
  status: IntegrationInstanceStatusSchema.optional(),
69481
70194
  /** Epoch ms of the last probe of the remote that produced `status`; absent when never checked. */
69482
- lastCheckedAt: number$1().optional()
70195
+ lastCheckedAt: number$1().optional(),
70196
+ /** What "Add device" inside this instance offers; see {@link IntegrationInstanceAddDeviceSchema}. Absent means the caller derives it from `describe().discovery` with `defaultAddDeviceMode` (lan → scan, account → children, else none). */
70197
+ addDevice: IntegrationInstanceAddDeviceSchema.optional()
69483
70198
  });
69484
70199
  var IntegrationInstancePatchSchema = object({
69485
70200
  id: IntegrationInstanceIdSchema,
@@ -71630,6 +72345,14 @@ var lockControlCapability = {
71630
72345
  field: "state",
71631
72346
  value: "locked"
71632
72347
  },
72348
+ hold: { effects: [{
72349
+ field: "state",
72350
+ value: "locking",
72351
+ when: {
72352
+ field: "state",
72353
+ notIn: ["locked"]
72354
+ }
72355
+ }] },
71633
72356
  openArgs: [{
71634
72357
  key: "code",
71635
72358
  label: t("PIN code", "Codice PIN"),
@@ -71663,6 +72386,14 @@ var lockControlCapability = {
71663
72386
  field: "state",
71664
72387
  value: "unlocked"
71665
72388
  },
72389
+ hold: { effects: [{
72390
+ field: "state",
72391
+ value: "unlocking",
72392
+ when: {
72393
+ field: "state",
72394
+ notIn: ["unlocked"]
72395
+ }
72396
+ }] },
71666
72397
  openArgs: [{
71667
72398
  key: "code",
71668
72399
  label: t("PIN code", "Codice PIN"),
@@ -76052,6 +76783,16 @@ DeviceType.Camera, method(object({ deviceId: number$1() }), array(TrackSchema).r
76052
76783
  timestamp: number$1()
76053
76784
  }), EventCategory.PipelineAnalyticsDetectionEvent, EventCategory.PipelineAnalyticsPackageDelivered, EventCategory.PipelineAnalyticsPackagePickedUp;
76054
76785
  /**
76786
+ * A rectangle as a fraction of a frame, `[0, 1]` on both axes — the wire shape
76787
+ * of `NormalizedRect` (which is derived from it).
76788
+ */
76789
+ var NormalizedRectSchema = object({
76790
+ x: number$1(),
76791
+ y: number$1(),
76792
+ w: number$1(),
76793
+ h: number$1()
76794
+ });
76795
+ /**
76055
76796
  * A root model's boxes standing in for one crop-kind step's own inference
76056
76797
  * (D730) — see `runPipeline.suppliedRoot`.
76057
76798
  */
@@ -76352,7 +77093,13 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
76352
77093
  /** Pool deaths inside the current window. */
76353
77094
  deaths: number$1(),
76354
77095
  /** The last death's message. */
76355
- lastError: string()
77096
+ lastError: string(),
77097
+ /**
77098
+ * Present when the device is ABSENT rather than dead: the runtime
77099
+ * itself enumerates no such device (`no-gpu-device` — OpenVINO sees
77100
+ * no supported GPU; driver/runtime does not support this iGPU).
77101
+ */
77102
+ absentReason: _enum(["no-gpu-device"]).optional()
76356
77103
  })).readonly() })), method(object({
76357
77104
  nodeId: string(),
76358
77105
  deviceKey: string()
@@ -76444,7 +77191,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
76444
77191
  * reader) run on them through their own crop policy. Boxes are in the
76445
77192
  * PIXELS of the image this call carries. Absent ⇒ the root step runs.
76446
77193
  */
76447
- suppliedRoot: SuppliedRootOutputSchema.optional()
77194
+ suppliedRoot: SuppliedRootOutputSchema.optional(),
77195
+ /**
77196
+ * The motion analyzer's merged subjects (D394) for this camera, fresh,
77197
+ * normalised to the frame (0..1). Feeds the motion-guided root crop
77198
+ * (D1060): the executor picks per frame whether the object-detection
77199
+ * root runs on the full frame or on a crop around them. Honoured only
77200
+ * on the live `frame` plane with a `frameRef`. Absent or empty ⇒ no
77201
+ * motion known ⇒ full frame.
77202
+ */
77203
+ motionRegions: array(NormalizedRectSchema).optional()
76448
77204
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
76449
77205
  steps: array(PipelineStepInputSchema).min(1),
76450
77206
  frames: array(FrameInputSchema).min(1).max(255),
@@ -77237,7 +77993,8 @@ var StatelessStepRefusalSchema = _enum([
77237
77993
  "unknown-step",
77238
77994
  "model-not-servable",
77239
77995
  "unreadable-frame",
77240
- "execution-failed"
77996
+ "execution-failed",
77997
+ "no-eligible-device"
77241
77998
  ]);
77242
77999
  /**
77243
78000
  * Answer to `runStatelessStep` — a discriminated union rather than a nullable
@@ -77536,7 +78293,15 @@ var RunnerInferenceDeviceSchema = object({
77536
78293
  * Absent field ⇒ an orchestrator that predates D650: the jumped step keeps
77537
78294
  * the elected device's provisioning, as before.
77538
78295
  */
77539
- steps: record$1(string(), RunnerJumpStepProvisioningSchema).optional()
78296
+ steps: record$1(string(), RunnerJumpStepProvisioningSchema).optional(),
78297
+ /**
78298
+ * Steps switched OFF on this device (D1065, `inferenceDevices[key].steps[s]
78299
+ * .enabled === false`). The runner never runs a subtree containing one of
78300
+ * them here: it auto-jumps it to an allowed device, and when none can take
78301
+ * it the subtree is skipped (`disabled-on-device`), never run here anyway.
78302
+ * Absent ⇒ none (an orchestrator that predates D1065).
78303
+ */
78304
+ disabledSteps: array(string()).readonly().optional()
77540
78305
  });
77541
78306
  /**
77542
78307
  * Camera assignment payload sent by `addon-pipeline-orchestrator` to a
@@ -83180,6 +83945,14 @@ method(object({ deviceId: number$1().int() }), object({
83180
83945
  auth: "admin"
83181
83946
  }), NOT_A_DEVICE.PIPELINE;
83182
83947
  /**
83948
+ * Hold limits a cap's vocabulary may declare on an action (D1061).
83949
+ *
83950
+ * A one-shot command (feed, run a script) has no lasting state to confirm; it
83951
+ * holds its in-progress flag just long enough that a second tap, before the
83952
+ * device reports, is seen as "already running" and refused.
83953
+ */
83954
+ var ONE_SHOT_HOLD_MS = 1e4;
83955
+ /**
83183
83956
  * Feeder connectivity / power status — mirrors the HA petkit device-status
83184
83957
  * enum: `normal` (online, mains), `offline` (not reaching PetKit cloud),
83185
83958
  * `on_batteries` (running on battery backup). `null` until first reported.
@@ -83297,6 +84070,13 @@ var petFeederCapability = {
83297
84070
  label: t("Feed", "Dai da mangiare"),
83298
84071
  phrase: t("Dispense {grams} from {device}", "Eroga {grams} da {device}"),
83299
84072
  icon: "paw-print",
84073
+ hold: {
84074
+ effects: [{
84075
+ field: "feeding",
84076
+ value: true
84077
+ }],
84078
+ holdMs: ONE_SHOT_HOLD_MS
84079
+ },
83300
84080
  openArgs: [{
83301
84081
  key: "grams",
83302
84082
  label: t("Grams", "Grammi"),
@@ -83315,6 +84095,13 @@ var petFeederCapability = {
83315
84095
  label: t("Feed from both hoppers", "Eroga da entrambi i serbatoi"),
83316
84096
  phrase: t("Dispense {hopper1} and {hopper2} from {device}", "Eroga {hopper1} e {hopper2} da {device}"),
83317
84097
  icon: "paw-print",
84098
+ hold: {
84099
+ effects: [{
84100
+ field: "feeding",
84101
+ value: true
84102
+ }],
84103
+ holdMs: ONE_SHOT_HOLD_MS
84104
+ },
83318
84105
  openArgs: [{
83319
84106
  key: "hopper1",
83320
84107
  label: t("Hopper 1", "Serbatoio 1"),
@@ -83420,12 +84207,20 @@ var petFeederCapability = {
83420
84207
  auth: "protected",
83421
84208
  actions: [{
83422
84209
  id: "petFeeder.childLockOn",
84210
+ effect: {
84211
+ field: "childLock",
84212
+ value: true
84213
+ },
83423
84214
  label: t("Child lock on", "Blocco bambini attivo"),
83424
84215
  phrase: t("Turn on the child lock of {device}", "Attiva il blocco bambini di {device}"),
83425
84216
  icon: "lock",
83426
84217
  args: { on: true }
83427
84218
  }, {
83428
84219
  id: "petFeeder.childLockOff",
84220
+ effect: {
84221
+ field: "childLock",
84222
+ value: false
84223
+ },
83429
84224
  label: t("Child lock off", "Blocco bambini spento"),
83430
84225
  phrase: t("Turn off the child lock of {device}", "Disattiva il blocco bambini di {device}"),
83431
84226
  icon: "lock-open",
@@ -83441,12 +84236,20 @@ var petFeederCapability = {
83441
84236
  auth: "protected",
83442
84237
  actions: [{
83443
84238
  id: "petFeeder.lightOn",
84239
+ effect: {
84240
+ field: "indicatorLight",
84241
+ value: true
84242
+ },
83444
84243
  label: t("Indicator light on", "Spia accesa"),
83445
84244
  phrase: t("Turn on the indicator light of {device}", "Accendi la spia di {device}"),
83446
84245
  icon: "lightbulb",
83447
84246
  args: { on: true }
83448
84247
  }, {
83449
84248
  id: "petFeeder.lightOff",
84249
+ effect: {
84250
+ field: "indicatorLight",
84251
+ value: false
84252
+ },
83450
84253
  label: t("Indicator light off", "Spia spenta"),
83451
84254
  phrase: t("Turn off the indicator light of {device}", "Spegni la spia di {device}"),
83452
84255
  icon: "lightbulb-off",
@@ -83462,12 +84265,20 @@ var petFeederCapability = {
83462
84265
  auth: "protected",
83463
84266
  actions: [{
83464
84267
  id: "petFeeder.feedSoundOn",
84268
+ effect: {
84269
+ field: "feedSound",
84270
+ value: true
84271
+ },
83465
84272
  label: t("Feeding sound on", "Suono di erogazione attivo"),
83466
84273
  phrase: t("Turn on the feeding sound of {device}", "Attiva il suono di erogazione di {device}"),
83467
84274
  icon: "volume-2",
83468
84275
  args: { on: true }
83469
84276
  }, {
83470
84277
  id: "petFeeder.feedSoundOff",
84278
+ effect: {
84279
+ field: "feedSound",
84280
+ value: false
84281
+ },
83471
84282
  label: t("Feeding sound off", "Suono di erogazione spento"),
83472
84283
  phrase: t("Turn off the feeding sound of {device}", "Disattiva il suono di erogazione di {device}"),
83473
84284
  icon: "volume-x",
@@ -83483,6 +84294,10 @@ var petFeederCapability = {
83483
84294
  auth: "protected",
83484
84295
  actions: [{
83485
84296
  id: "petFeeder.volume",
84297
+ effect: {
84298
+ field: "volume",
84299
+ fromArg: "level"
84300
+ },
83486
84301
  label: t("Set volume", "Imposta il volume"),
83487
84302
  phrase: t("Set the volume of {device} to {level}", "Imposta il volume di {device} a {level}"),
83488
84303
  icon: "volume-2",
@@ -83628,12 +84443,20 @@ setPump: method(object({
83628
84443
  auth: "protected",
83629
84444
  actions: [{
83630
84445
  id: "petFountain.pumpOn",
84446
+ effect: {
84447
+ field: "pumpRunning",
84448
+ value: true
84449
+ },
83631
84450
  label: t("Pump on", "Pompa accesa"),
83632
84451
  phrase: t("Start the pump of {device}", "Avvia la pompa di {device}"),
83633
84452
  icon: "play",
83634
84453
  args: { on: true }
83635
84454
  }, {
83636
84455
  id: "petFountain.pumpOff",
84456
+ effect: {
84457
+ field: "pumpRunning",
84458
+ value: false
84459
+ },
83637
84460
  label: t("Pump off", "Pompa spenta"),
83638
84461
  phrase: t("Stop the pump of {device}", "Ferma la pompa di {device}"),
83639
84462
  icon: "square",
@@ -84180,7 +85003,15 @@ var DeviceStepConfigSchema = object({
84180
85003
  * at a disabled/absent device on that node at save time. Absent ⇒ the runner
84181
85004
  * auto-jumps only when the effective device's format cannot run the step.
84182
85005
  */
84183
- jumpDeviceKey: string().optional()
85006
+ jumpDeviceKey: string().optional(),
85007
+ /**
85008
+ * DEVICE switch for this step (D1065). `false` = the step is never
85009
+ * provisioned on this accelerator: a detail step jumps to another enabled
85010
+ * device of the node where it is allowed, else it is skipped with reason
85011
+ * `disabled-on-device`; a root is skipped. Absent = inherit (on). Written by
85012
+ * `setDeviceStepEnabled`.
85013
+ */
85014
+ enabled: boolean().optional()
84184
85015
  });
84185
85016
  var AgentPipelineSettingsSchema = object({
84186
85017
  maxCameras: number$1().int().nonnegative().nullable().default(null),
@@ -84224,6 +85055,12 @@ var AgentPipelineSettingsSchema = object({
84224
85055
  */
84225
85056
  stepSettings: record$1(string(), record$1(string(), unknown()).readonly()).optional(),
84226
85057
  /**
85058
+ * NODE switch per step (D1065): `stepId → enabled`. `false` = the step never
85059
+ * runs on a camera whose pipeline runs on this node (skip reason
85060
+ * `disabled-on-node`). Absent = inherit. Written by `setNodeStepEnabled`.
85061
+ */
85062
+ stepEnabled: record$1(string(), boolean()).optional(),
85063
+ /**
84227
85064
  * Multi-device inference opt-in (Phase 4). Per-node map deviceKey → {enabled,
84228
85065
  * weight, steps}. Absent / all-disabled ⇒ the node's single default
84229
85066
  * accelerator (safe default); two+ enabled ⇒ the dispatcher balances
@@ -84545,7 +85382,9 @@ var InferenceDeviceExclusionReasonSchema = _enum([
84545
85382
  "disabled",
84546
85383
  "unavailable",
84547
85384
  "cannot-host-camera-root",
84548
- "accelerator-preferred"
85385
+ "accelerator-preferred",
85386
+ "root-switched-off",
85387
+ "no-gpu-device"
84549
85388
  ]);
84550
85389
  var NodeInferenceDeviceSchema = object({
84551
85390
  /** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
@@ -84578,7 +85417,13 @@ var NodeInferenceDeviceSchema = object({
84578
85417
  enabled: boolean(),
84579
85418
  /** Relative balancer weight for the enabled device (default 1). */
84580
85419
  weight: number$1(),
84581
- /** Per-device concurrent-session cap; null = unlimited (multi-device C4). */
85420
+ /**
85421
+ * Per-device concurrent-session cap; null = unlimited (multi-device C4). A
85422
+ * limit: a camera no device can take within its cap stays on the node's
85423
+ * default pool — EXCEPT when that default pool is an excluded device
85424
+ * (`defaultPoolExcluded`), where it goes over the cap on the least-loaded
85425
+ * eligible device instead (#610).
85426
+ */
84582
85427
  maxSessions: number$1().nullable(),
84583
85428
  /** Object-detection model the executor defaults to for this deviceKey. */
84584
85429
  defaultModelId: string(),
@@ -84628,8 +85473,85 @@ var NodeInferenceDevicesSchema = object({
84628
85473
  nodeId: string(),
84629
85474
  /** False when the node's platform-probe was unreachable (no live device set). */
84630
85475
  reachable: boolean(),
84631
- devices: array(NodeInferenceDeviceSchema).readonly()
85476
+ devices: array(NodeInferenceDeviceSchema).readonly(),
85477
+ /**
85478
+ * The election left NO device and one was excluded because the operator
85479
+ * turned it off or it is not functional (#610): the runner's default pool is
85480
+ * that device, so work with no explicit device (a stateless step, a bench with
85481
+ * no `deviceKey`) is refused rather than run there. Absent = an orchestrator
85482
+ * older than the field, or an unreachable node: nothing is claimed (D315).
85483
+ */
85484
+ defaultPoolExcluded: boolean().optional()
85485
+ });
85486
+ /**
85487
+ * The CLUSTER switch of one pipeline step (D1065):
85488
+ * - `off` — hard off: no camera, node or device can turn it on;
85489
+ * - `on` — on by default; a camera may turn it off (`stepToggles`);
85490
+ * - `opt-in` — off by default; a camera turns it on (`stepToggles`).
85491
+ * Absent = the catalog's `enabledByDefault` (`true` → `on`, `false` → `opt-in`).
85492
+ */
85493
+ var StepClusterModeSchema = _enum([
85494
+ "off",
85495
+ "on",
85496
+ "opt-in"
85497
+ ]);
85498
+ /**
85499
+ * What one step does on one (node, device) — computed by the orchestrator with
85500
+ * the SAME placement function the attach path runs (`pipeline-resolver.ts`),
85501
+ * so a client never re-derives it. Precedence: cluster off > camera toggle
85502
+ * (else the cluster default) > node off > device off / jump.
85503
+ */
85504
+ var StepSwitchCellSchema = discriminatedUnion("kind", [
85505
+ object({ kind: literal("on") }),
85506
+ object({ kind: literal("off-cluster") }),
85507
+ object({ kind: literal("off-node") }),
85508
+ object({ kind: literal("off-device") }),
85509
+ object({
85510
+ kind: literal("jump"),
85511
+ toDeviceKey: string()
85512
+ }),
85513
+ object({
85514
+ kind: literal("skip"),
85515
+ reason: _enum(["no-compatible-model", "root-not-runnable-on-elected-device"])
85516
+ }),
85517
+ object({ kind: literal("zone-driven") }),
85518
+ object({
85519
+ kind: literal("supplied-by-root"),
85520
+ rootModelId: string()
85521
+ }),
85522
+ object({ kind: literal("opt-in-unused") })
85523
+ ]);
85524
+ var StepSwitchDeviceSchema = object({
85525
+ deviceKey: string(),
85526
+ format: _enum(MODEL_FORMATS),
85527
+ /** The device switch as stored (`inferenceDevices[key].steps[step].enabled`); `null` = inherit. */
85528
+ stepEnabled: boolean().nullable(),
85529
+ /** Whether the device is in the node's dispatch roster (enabled, available, not excluded). */
85530
+ eligible: boolean(),
85531
+ cell: StepSwitchCellSchema
84632
85532
  });
85533
+ var StepSwitchNodeSchema = object({
85534
+ nodeId: string(),
85535
+ /** False when the node's catalog or device probe did not answer — no cells are claimed. */
85536
+ reachable: boolean(),
85537
+ /** The node switch as stored (`stepEnabled[step]`); `null` = inherit. */
85538
+ stepEnabled: boolean().nullable(),
85539
+ devices: array(StepSwitchDeviceSchema).readonly()
85540
+ });
85541
+ var StepSwitchMatrixSchema = object({ steps: array(object({
85542
+ stepId: string(),
85543
+ name: string(),
85544
+ slot: string(),
85545
+ /** The stored cluster mode; `null` = the catalog default applies. */
85546
+ clusterMode: StepClusterModeSchema.nullable(),
85547
+ /** The mode in force (stored, else derived from `enabledByDefault`). */
85548
+ effectiveMode: StepClusterModeSchema,
85549
+ /** Cameras whose `stepToggles[step]` is `true`. */
85550
+ camerasEnabling: number$1().int().nonnegative(),
85551
+ /** Cameras whose `stepToggles[step]` is `false`. */
85552
+ camerasDisabling: number$1().int().nonnegative(),
85553
+ nodes: array(StepSwitchNodeSchema).readonly()
85554
+ })).readonly() });
84633
85555
  /**
84634
85556
  * Pipeline Orchestrator capability — global load balancer + camera dispatcher.
84635
85557
  *
@@ -84801,7 +85723,28 @@ method(object({
84801
85723
  }), object({ success: literal(true) }), {
84802
85724
  kind: "mutation",
84803
85725
  auth: "admin"
84804
- }), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({
85726
+ }), method(object({
85727
+ stepId: string(),
85728
+ mode: StepClusterModeSchema.nullable()
85729
+ }), object({ success: literal(true) }), {
85730
+ kind: "mutation",
85731
+ auth: "admin"
85732
+ }), method(object({
85733
+ agentNodeId: string(),
85734
+ stepId: string(),
85735
+ enabled: boolean().nullable()
85736
+ }), object({ success: literal(true) }), {
85737
+ kind: "mutation",
85738
+ auth: "admin"
85739
+ }), method(object({
85740
+ agentNodeId: string(),
85741
+ deviceKey: string(),
85742
+ stepId: string(),
85743
+ enabled: boolean().nullable()
85744
+ }), object({ success: literal(true) }), {
85745
+ kind: "mutation",
85746
+ auth: "admin"
85747
+ }), method(_void(), StepSwitchMatrixSchema), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({
84805
85748
  agentNodeId: string(),
84806
85749
  deviceKey: string()
84807
85750
  }), object({ success: literal(true) }), {
@@ -85216,6 +86159,16 @@ var CoralInfoSchema = object({
85216
86159
  reason: _enum(["driver-missing", "device-not-accessible"])
85217
86160
  })).readonly().optional()
85218
86161
  });
86162
+ var NvidiaInfoBaseSchema = object({
86163
+ type: literal("nvidia"),
86164
+ name: string(),
86165
+ memoryMB: number$1().optional()
86166
+ });
86167
+ /** An NVIDIA GPU: usable ⇔ the CUDA execution provider exists; otherwise the reason. */
86168
+ var NvidiaInfoSchema = discriminatedUnion("usable", [NvidiaInfoBaseSchema.extend({ usable: literal(true) }), NvidiaInfoBaseSchema.extend({
86169
+ usable: literal(false),
86170
+ reason: _enum(["no-cuda-execution-provider"])
86171
+ })]);
85219
86172
  var HardwareInfoSchema = object({
85220
86173
  platform: HardwarePlatformSchema,
85221
86174
  arch: HardwareArchSchema,
@@ -85226,6 +86179,7 @@ var HardwareInfoSchema = object({
85226
86179
  gpu: GpuInfoSchema.nullable(),
85227
86180
  npu: NpuInfoSchema.nullable(),
85228
86181
  coral: CoralInfoSchema.nullable().optional(),
86182
+ nvidia: NvidiaInfoSchema.nullable().optional(),
85229
86183
  /**
85230
86184
  * Per-accelerator compute (D930). Omitted by a node that has not probed it.
85231
86185
  * `null` fields inside an entry are a failed query, never a zero.
@@ -85313,8 +86267,14 @@ method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema)
85313
86267
  * in real-world devices.
85314
86268
  */
85315
86269
  var PowerMeterStatusSchema = object({
85316
- /** Instantaneous power draw (watts). */
86270
+ /** Instantaneous TOTAL power draw of the device (watts), when known. */
85317
86271
  power: number$1().optional().meta(readingMeta("power", { label: "Power" })),
86272
+ /**
86273
+ * Power the device passes on to downstream loads (watts), e.g. the PoE a switch delivers to
86274
+ * its ports. When `power` is known it already includes this (the own draw is `netPowerOf`);
86275
+ * a device that reports no total (a UniFi switch) carries this field alone.
86276
+ */
86277
+ deliveredPower: number$1().optional().meta(readingMeta("power", { label: "Delivered" })),
85318
86278
  /** Cumulative energy in kilowatt-hours since the meter was reset. */
85319
86279
  energy: number$1().optional().meta(readingMeta("energy", { label: "Energy" })),
85320
86280
  /** Voltage (volts). */
@@ -85349,7 +86309,8 @@ var POWER_METER_DEVICE_TYPES = [
85349
86309
  DeviceType.Dishwasher,
85350
86310
  DeviceType.Vacuum,
85351
86311
  DeviceType.LawnMower,
85352
- DeviceType.PetFeeder
86312
+ DeviceType.PetFeeder,
86313
+ DeviceType.Workload
85353
86314
  ];
85354
86315
  /** Everything but a bare `Sensor`: a sensor that takes its reading from another sensor adds nothing. */
85355
86316
  var POWER_METER_CUSTOMIZE_DEVICE_TYPES = POWER_METER_DEVICE_TYPES.filter((type) => type !== DeviceType.Sensor);
@@ -86404,12 +87365,20 @@ var pumpCycleCapability = {
86404
87365
  auth: "protected",
86405
87366
  actions: [{
86406
87367
  id: "pumpCycle.on",
87368
+ effect: {
87369
+ field: "enabled",
87370
+ value: true
87371
+ },
86407
87372
  label: t("Pump cycle on", "Ciclo pompa attivo"),
86408
87373
  phrase: t("Run the pump of {device} on its on/off cycle", "Fai lavorare la pompa di {device} a ciclo acceso/spento"),
86409
87374
  icon: "timer",
86410
87375
  args: { on: true }
86411
87376
  }, {
86412
87377
  id: "pumpCycle.off",
87378
+ effect: {
87379
+ field: "enabled",
87380
+ value: false
87381
+ },
86413
87382
  label: t("Pump cycle off", "Ciclo pompa spento"),
86414
87383
  phrase: t("Run the pump of {device} continuously", "Fai lavorare la pompa di {device} in continuo"),
86415
87384
  icon: "timer-off",
@@ -86428,6 +87397,11 @@ var pumpCycleCapability = {
86428
87397
  label: t("Set pump run time", "Imposta il tempo di lavoro della pompa"),
86429
87398
  phrase: t("Set the pump of {device} to run {minutes} minutes per cycle", "Imposta la pompa di {device} a lavorare {minutes} minuti per ciclo"),
86430
87399
  icon: "timer",
87400
+ effect: {
87401
+ field: "onTime",
87402
+ fromArg: "minutes",
87403
+ scale: 60
87404
+ },
86431
87405
  openArgs: [{
86432
87406
  key: "minutes",
86433
87407
  label: t("Minutes", "Minuti"),
@@ -86452,6 +87426,11 @@ var pumpCycleCapability = {
86452
87426
  label: t("Set pump rest time", "Imposta il tempo di riposo della pompa"),
86453
87427
  phrase: t("Set the pump of {device} to rest {minutes} minutes per cycle", "Imposta la pompa di {device} a riposare {minutes} minuti per ciclo"),
86454
87428
  icon: "timer-off",
87429
+ effect: {
87430
+ field: "offTime",
87431
+ fromArg: "minutes",
87432
+ scale: 60
87433
+ },
86455
87434
  openArgs: [{
86456
87435
  key: "minutes",
86457
87436
  label: t("Minutes", "Minuti"),
@@ -89981,7 +90960,14 @@ var scriptRunnerCapability = {
89981
90960
  id: "script.run",
89982
90961
  label: t("Run script", "Esegui lo script"),
89983
90962
  phrase: t("Run {device}", "Esegui {device}"),
89984
- icon: "scroll-text"
90963
+ icon: "scroll-text",
90964
+ hold: {
90965
+ effects: [{
90966
+ field: "isRunning",
90967
+ value: true
90968
+ }],
90969
+ holdMs: ONE_SHOT_HOLD_MS
90970
+ }
89985
90971
  }]
89986
90972
  }),
89987
90973
  /** Cancel a running script. Provider rejects when the script
@@ -89991,6 +90977,10 @@ var scriptRunnerCapability = {
89991
90977
  auth: "admin",
89992
90978
  actions: [{
89993
90979
  id: "script.stop",
90980
+ effect: {
90981
+ field: "isRunning",
90982
+ value: false
90983
+ },
89994
90984
  label: t("Stop script", "Ferma lo script"),
89995
90985
  phrase: t("Stop {device}", "Ferma {device}"),
89996
90986
  icon: "square"
@@ -91849,6 +92839,10 @@ var switchCapability = {
91849
92839
  auth: "protected",
91850
92840
  actions: [{
91851
92841
  id: "switch.toggle",
92842
+ sideEffects: [{
92843
+ field: "on",
92844
+ negate: true
92845
+ }],
91852
92846
  label: t("Toggle", "Commuta"),
91853
92847
  phrase: t("Toggle {device}", "Commuta {device}"),
91854
92848
  icon: "toggle-right",
@@ -98033,6 +99027,20 @@ var BaseDevice = class {
98033
99027
  }, raw, options);
98034
99028
  }
98035
99029
  /**
99030
+ * Declare the identity of the device at the FAR END of this device's physical
99031
+ * link (D1063): a PoE port's wired client. Same normalisation, `unread`
99032
+ * rule and owner check as {@link declareIdentifiers}, written through
99033
+ * `device-manager.setAttachedIdentifiers`. It never makes the two devices the
99034
+ * same device. Best-effort: never throws.
99035
+ */
99036
+ async declareAttachedIdentifiers(raw, options) {
99037
+ return declareDeviceIdentifiers({
99038
+ deviceId: this.id,
99039
+ logger: this.ctx.logger,
99040
+ writer: this.ctx.api.deviceManager?.setAttachedIdentifiers
99041
+ }, raw, options);
99042
+ }
99043
+ /**
98036
99044
  * Re-publish the device's current `features` array to the persisted
98037
99045
  * meta blob. Drivers call this after a probe finishes when the live
98038
99046
  * `features` getter has gained new flags (e.g. `hasIntercom` flips
@@ -99763,23 +100771,56 @@ var fountainContribution = contribution("pet-fountain", PetFountainStatusSchema,
99763
100771
  };
99764
100772
  });
99765
100773
  var minutesOf = (seconds) => Math.max(0, Math.round(seconds / 60));
100774
+ var pumpCycleContribution = contribution("pump-cycle", PumpCycleStatusSchema, (slice) => {
100775
+ const enabled = slice?.enabled ?? null;
100776
+ const cycle = slice?.onTime != null && slice.offTime != null ? t(`${minutesOf(slice.onTime)} min on · ${minutesOf(slice.offTime)} min off`, `${minutesOf(slice.onTime)} min acceso · ${minutesOf(slice.offTime)} min spento`) : null;
100777
+ return { rows: [row$1("pump-cycle", "timer", enabled === null ? unknownText : enabled ? joinText([t("Cycling", "A cicli"), cycle]) : t("Runs continuously", "Sempre attiva"), [{
100778
+ kind: "toggle",
100779
+ id: "pump-cycle.enabled",
100780
+ label: t("Pump cycle", "Ciclo pompa"),
100781
+ on: enabled,
100782
+ turnOn: action("pump-cycle.on", t("Cycle the pump", "Attiva il ciclo"), "timer", "pump-cycle", "setEnabled", { on: true }),
100783
+ turnOff: action("pump-cycle.off", t("Run continuously", "Sempre attiva"), "timer-off", "pump-cycle", "setEnabled", { on: false })
100784
+ }])] };
100785
+ });
100786
+ var WORKLOAD_WORDS = {
100787
+ running: {
100788
+ state: "on",
100789
+ title: t("Running", "In esecuzione")
100790
+ },
100791
+ paused: {
100792
+ state: "standby",
100793
+ title: t("Paused", "In pausa")
100794
+ },
100795
+ stopped: {
100796
+ state: "off",
100797
+ title: t("Stopped", "Fermo")
100798
+ },
100799
+ starting: {
100800
+ state: "running",
100801
+ title: t("Starting", "In avvio")
100802
+ },
100803
+ stopping: {
100804
+ state: "running",
100805
+ title: t("Stopping", "In arresto")
100806
+ },
100807
+ crashed: {
100808
+ state: "alert",
100809
+ title: t("Crashed", "Andato in errore")
100810
+ }
100811
+ };
99766
100812
  var DEVICES_FAMILY_CONTRIBUTIONS = {
99767
100813
  "fan-control": fanContribution,
99768
100814
  "vacuum-control": vacuumContribution,
99769
100815
  "lawn-mower-control": mowerContribution,
99770
100816
  "pet-feeder": feederContribution,
99771
100817
  "pet-fountain": fountainContribution,
99772
- "pump-cycle": contribution("pump-cycle", PumpCycleStatusSchema, (slice) => {
99773
- const enabled = slice?.enabled ?? null;
99774
- const cycle = slice?.onTime != null && slice.offTime != null ? t(`${minutesOf(slice.onTime)} min on · ${minutesOf(slice.offTime)} min off`, `${minutesOf(slice.onTime)} min acceso · ${minutesOf(slice.offTime)} min spento`) : null;
99775
- return { rows: [row$1("pump-cycle", "timer", enabled === null ? unknownText : enabled ? joinText([t("Cycling", "A cicli"), cycle]) : t("Runs continuously", "Sempre attiva"), [{
99776
- kind: "toggle",
99777
- id: "pump-cycle.enabled",
99778
- label: t("Pump cycle", "Ciclo pompa"),
99779
- on: enabled,
99780
- turnOn: action("pump-cycle.on", t("Cycle the pump", "Attiva il ciclo"), "timer", "pump-cycle", "setEnabled", { on: true }),
99781
- turnOff: action("pump-cycle.off", t("Run continuously", "Sempre attiva"), "timer-off", "pump-cycle", "setEnabled", { on: false })
99782
- }])] };
100818
+ "pump-cycle": pumpCycleContribution,
100819
+ workload: contribution("workload", WorkloadStatusSchema, (slice) => {
100820
+ const state = slice?.state ?? null;
100821
+ if (state === null) return { reading: reading$1("workload", "unknown") };
100822
+ const words = WORKLOAD_WORDS[state];
100823
+ return { reading: reading$1("workload", words.state, false, words.title) };
99783
100824
  })
99784
100825
  };
99785
100826
  /**
@@ -101794,7 +102835,7 @@ lookOf({
101794
102835
  });
101795
102836
  DeviceType.Climate;
101796
102837
  DeviceType.Camera, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, 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.HeatPump, DeviceType.EnergySystem, DeviceType.Workload, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.WeatherStation, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway;
101797
- DeviceRole.Siren, DeviceRole.Floodlight, DeviceRole.Spotlight, DeviceRole.PirSensor, DeviceRole.Chime, DeviceRole.Autotrack, DeviceRole.Nightvision, DeviceRole.PrivacyMask, DeviceRole.Doorbell, DeviceRole.CoverBlind, DeviceRole.CoverShutter, DeviceRole.CoverAwning, DeviceRole.CoverCurtain, DeviceRole.CoverGarage, DeviceRole.CoverGate, DeviceRole.CoverDoor, DeviceRole.CoverWindow, DeviceRole.BinaryHelper, DeviceRole.Outlet, DeviceRole.SwitchHeater, DeviceRole.SwitchFan, DeviceRole.SwitchLight, DeviceRole.PoePort, DeviceRole.ClimateAc, DeviceRole.ClimateThermostat, DeviceRole.ClimateFloor, DeviceRole.ClimateRadiator, DeviceRole.ClimateHeater, DeviceRole.ClimateHeatPumpCircuit, DeviceRole.MotionSensor, DeviceRole.ContactSensor, DeviceRole.LeakSensor, DeviceRole.SmokeSensor, DeviceRole.COSensor, DeviceRole.GasSensor, DeviceRole.TamperSensor, DeviceRole.VibrationSensor, DeviceRole.ConnectivitySensor, DeviceRole.SoundSensor, DeviceRole.BinarySensor, DeviceRole.TemperatureSensor, DeviceRole.HumiditySensor, DeviceRole.AmbientLightSensor, DeviceRole.PressureSensor, DeviceRole.WindSensor, DeviceRole.RainSensor, DeviceRole.UvSensor, DeviceRole.SolarRadiationSensor, DeviceRole.SoilMoistureSensor, DeviceRole.PowerSensor, DeviceRole.EnergySensor, DeviceRole.VoltageSensor, DeviceRole.CurrentSensor, DeviceRole.AirQualitySensor, DeviceRole.BatterySensor, DeviceRole.NumericSensor, DeviceRole.EnumSensor, DeviceRole.DateTimeSensor, DeviceRole.GenericSensor, DeviceRole.NumericControl, DeviceRole.SelectControl, DeviceRole.TextControl, DeviceRole.DateTimeControl, DeviceRole.MobilePushNotifier, DeviceRole.MessagingNotifier, DeviceRole.EmailNotifier, DeviceRole.GenericNotifier, DeviceRole.IrTransmitter, DeviceRole.Vm, DeviceRole.AppContainer, DeviceRole.Lxc, DeviceRole.App, DeviceRole.Host;
102838
+ DeviceRole.Siren, DeviceRole.Floodlight, DeviceRole.Spotlight, DeviceRole.PirSensor, DeviceRole.Chime, DeviceRole.Autotrack, DeviceRole.Nightvision, DeviceRole.PrivacyMask, DeviceRole.Doorbell, DeviceRole.CoverBlind, DeviceRole.CoverShutter, DeviceRole.CoverAwning, DeviceRole.CoverCurtain, DeviceRole.CoverGarage, DeviceRole.CoverGate, DeviceRole.CoverDoor, DeviceRole.CoverWindow, DeviceRole.BinaryHelper, DeviceRole.Outlet, DeviceRole.SwitchHeater, DeviceRole.SwitchFan, DeviceRole.SwitchLight, DeviceRole.PoePort, DeviceRole.ClimateAc, DeviceRole.ClimateThermostat, DeviceRole.ClimateFloor, DeviceRole.ClimateRadiator, DeviceRole.ClimateHeater, DeviceRole.ClimateHeatPumpCircuit, DeviceRole.MotionSensor, DeviceRole.ContactSensor, DeviceRole.LeakSensor, DeviceRole.SmokeSensor, DeviceRole.COSensor, DeviceRole.GasSensor, DeviceRole.TamperSensor, DeviceRole.VibrationSensor, DeviceRole.ConnectivitySensor, DeviceRole.SoundSensor, DeviceRole.BinarySensor, DeviceRole.TemperatureSensor, DeviceRole.HumiditySensor, DeviceRole.AmbientLightSensor, DeviceRole.PressureSensor, DeviceRole.WindSensor, DeviceRole.RainSensor, DeviceRole.UvSensor, DeviceRole.SolarRadiationSensor, DeviceRole.SoilMoistureSensor, DeviceRole.PowerSensor, DeviceRole.EnergySensor, DeviceRole.VoltageSensor, DeviceRole.CurrentSensor, DeviceRole.AirQualitySensor, DeviceRole.BatterySensor, DeviceRole.NumericSensor, DeviceRole.EnumSensor, DeviceRole.DateTimeSensor, DeviceRole.GenericSensor, DeviceRole.NumericControl, DeviceRole.SelectControl, DeviceRole.TextControl, DeviceRole.DateTimeControl, DeviceRole.MobilePushNotifier, DeviceRole.MessagingNotifier, DeviceRole.EmailNotifier, DeviceRole.GenericNotifier, DeviceRole.IrTransmitter, DeviceRole.Vm, DeviceRole.AppContainer, DeviceRole.Lxc, DeviceRole.App, DeviceRole.Host, DeviceRole.Ups;
101798
102839
  Object.freeze({
101799
102840
  "accessories.getStatus": {
101800
102841
  capName: "accessories",
@@ -103994,6 +105035,13 @@ Object.freeze({
103994
105035
  access: "create",
103995
105036
  role: "admin"
103996
105037
  },
105038
+ "deviceManager.confirmIdentityLink": {
105039
+ capName: "device-manager",
105040
+ capScope: "system",
105041
+ addonId: null,
105042
+ access: "create",
105043
+ role: "admin"
105044
+ },
103997
105045
  "deviceManager.createDevice": {
103998
105046
  capName: "device-manager",
103999
105047
  capScope: "system",
@@ -104043,6 +105091,13 @@ Object.freeze({
104043
105091
  access: "create",
104044
105092
  role: "admin"
104045
105093
  },
105094
+ "deviceManager.dismissIdentityLink": {
105095
+ capName: "device-manager",
105096
+ capScope: "system",
105097
+ addonId: null,
105098
+ access: "create",
105099
+ role: "admin"
105100
+ },
104046
105101
  "deviceManager.enable": {
104047
105102
  capName: "device-manager",
104048
105103
  capScope: "system",
@@ -104239,6 +105294,13 @@ Object.freeze({
104239
105294
  access: "view",
104240
105295
  role: "admin"
104241
105296
  },
105297
+ "deviceManager.listIdentityLinks": {
105298
+ capName: "device-manager",
105299
+ capScope: "system",
105300
+ addonId: null,
105301
+ access: "view",
105302
+ role: "admin"
105303
+ },
104242
105304
  "deviceManager.listLocationDescriptions": {
104243
105305
  capName: "device-manager",
104244
105306
  capScope: "system",
@@ -104435,6 +105497,13 @@ Object.freeze({
104435
105497
  access: "create",
104436
105498
  role: "admin"
104437
105499
  },
105500
+ "deviceManager.setAttachedIdentifiers": {
105501
+ capName: "device-manager",
105502
+ capScope: "system",
105503
+ addonId: null,
105504
+ access: "create",
105505
+ role: "admin"
105506
+ },
104438
105507
  "deviceManager.setChildLayout": {
104439
105508
  capName: "device-manager",
104440
105509
  capScope: "system",
@@ -104596,6 +105665,13 @@ Object.freeze({
104596
105665
  access: "create",
104597
105666
  role: "admin"
104598
105667
  },
105668
+ "deviceManager.unlinkIdentity": {
105669
+ capName: "device-manager",
105670
+ capScope: "system",
105671
+ addonId: null,
105672
+ access: "delete",
105673
+ role: "admin"
105674
+ },
104599
105675
  "deviceManager.updateConfig": {
104600
105676
  capName: "device-manager",
104601
105677
  capScope: "system",
@@ -104876,6 +105952,20 @@ Object.freeze({
104876
105952
  access: "create",
104877
105953
  role: "admin"
104878
105954
  },
105955
+ "deviceStateRefresh.refresh": {
105956
+ capName: "device-state-refresh",
105957
+ capScope: "device",
105958
+ addonId: null,
105959
+ access: "create",
105960
+ role: "admin"
105961
+ },
105962
+ "deviceStateRefresh.resubscribe": {
105963
+ capName: "device-state-refresh",
105964
+ capScope: "device",
105965
+ addonId: null,
105966
+ access: "create",
105967
+ role: "admin"
105968
+ },
104879
105969
  "deviceStatus.getStatus": {
104880
105970
  capName: "device-status",
104881
105971
  capScope: "device",
@@ -108747,6 +109837,13 @@ Object.freeze({
108747
109837
  access: "view",
108748
109838
  role: "admin"
108749
109839
  },
109840
+ "pipelineOrchestrator.getStepSwitches": {
109841
+ capName: "pipeline-orchestrator",
109842
+ capScope: "system",
109843
+ addonId: null,
109844
+ access: "view",
109845
+ role: "admin"
109846
+ },
108750
109847
  "pipelineOrchestrator.listAgentSettings": {
108751
109848
  capName: "pipeline-orchestrator",
108752
109849
  capScope: "system",
@@ -108901,6 +109998,20 @@ Object.freeze({
108901
109998
  access: "create",
108902
109999
  role: "admin"
108903
110000
  },
110001
+ "pipelineOrchestrator.setClusterStepMode": {
110002
+ capName: "pipeline-orchestrator",
110003
+ capScope: "system",
110004
+ addonId: null,
110005
+ access: "create",
110006
+ role: "admin"
110007
+ },
110008
+ "pipelineOrchestrator.setDeviceStepEnabled": {
110009
+ capName: "pipeline-orchestrator",
110010
+ capScope: "system",
110011
+ addonId: null,
110012
+ access: "create",
110013
+ role: "admin"
110014
+ },
108904
110015
  "pipelineOrchestrator.setLoadBalancingShares": {
108905
110016
  capName: "pipeline-orchestrator",
108906
110017
  capScope: "system",
@@ -108908,6 +110019,13 @@ Object.freeze({
108908
110019
  access: "create",
108909
110020
  role: "admin"
108910
110021
  },
110022
+ "pipelineOrchestrator.setNodeStepEnabled": {
110023
+ capName: "pipeline-orchestrator",
110024
+ capScope: "system",
110025
+ addonId: null,
110026
+ access: "create",
110027
+ role: "admin"
110028
+ },
108911
110029
  "pipelineOrchestrator.setNodeStepSettings": {
108912
110030
  capName: "pipeline-orchestrator",
108913
110031
  capScope: "system",
@@ -111064,6 +112182,13 @@ Object.freeze({
111064
112182
  access: "view",
111065
112183
  role: "admin"
111066
112184
  },
112185
+ "streamBroker.previewDerivedEncode": {
112186
+ capName: "stream-broker",
112187
+ capScope: "system",
112188
+ addonId: null,
112189
+ access: "view",
112190
+ role: "admin"
112191
+ },
111067
112192
  "streamBroker.probeStream": {
111068
112193
  capName: "stream-broker",
111069
112194
  capScope: "system",
@@ -112510,7 +113635,7 @@ function offered(received) {
112510
113635
  }
112511
113636
  offered(HA_AS), withheld(HOMEKIT_REASON), withheld(ALEXA_REASON), withheld(GOOGLE_REASON), withheld(MATTER_REASON);
112512
113637
  DeviceType.Camera, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.HeatPump, DeviceType.EnergySystem, DeviceType.Workload, 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.WeatherStation, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway;
112513
- DeviceRole.Siren, DeviceRole.Floodlight, DeviceRole.Spotlight, DeviceRole.PirSensor, DeviceRole.Chime, DeviceRole.Autotrack, DeviceRole.Nightvision, DeviceRole.PrivacyMask, DeviceRole.Doorbell, DeviceRole.CoverBlind, DeviceRole.CoverShutter, DeviceRole.CoverAwning, DeviceRole.CoverCurtain, DeviceRole.CoverGarage, DeviceRole.CoverGate, DeviceRole.CoverDoor, DeviceRole.CoverWindow, DeviceRole.BinaryHelper, DeviceRole.Outlet, DeviceRole.SwitchHeater, DeviceRole.SwitchFan, DeviceRole.SwitchLight, DeviceRole.PoePort, DeviceRole.ClimateAc, DeviceRole.ClimateThermostat, DeviceRole.ClimateFloor, DeviceRole.ClimateRadiator, DeviceRole.ClimateHeater, DeviceRole.ClimateHeatPumpCircuit, DeviceRole.MotionSensor, DeviceRole.ContactSensor, DeviceRole.LeakSensor, DeviceRole.SmokeSensor, DeviceRole.COSensor, DeviceRole.GasSensor, DeviceRole.TamperSensor, DeviceRole.VibrationSensor, DeviceRole.ConnectivitySensor, DeviceRole.SoundSensor, DeviceRole.BinarySensor, DeviceRole.TemperatureSensor, DeviceRole.HumiditySensor, DeviceRole.AmbientLightSensor, DeviceRole.PressureSensor, DeviceRole.WindSensor, DeviceRole.RainSensor, DeviceRole.UvSensor, DeviceRole.SolarRadiationSensor, DeviceRole.SoilMoistureSensor, DeviceRole.PowerSensor, DeviceRole.EnergySensor, DeviceRole.VoltageSensor, DeviceRole.CurrentSensor, DeviceRole.AirQualitySensor, DeviceRole.BatterySensor, DeviceRole.NumericSensor, DeviceRole.EnumSensor, DeviceRole.DateTimeSensor, DeviceRole.GenericSensor, DeviceRole.NumericControl, DeviceRole.SelectControl, DeviceRole.TextControl, DeviceRole.DateTimeControl, DeviceRole.MobilePushNotifier, DeviceRole.MessagingNotifier, DeviceRole.EmailNotifier, DeviceRole.GenericNotifier, DeviceRole.IrTransmitter, DeviceRole.Vm, DeviceRole.AppContainer, DeviceRole.Lxc, DeviceRole.App, DeviceRole.Host;
113638
+ DeviceRole.Siren, DeviceRole.Floodlight, DeviceRole.Spotlight, DeviceRole.PirSensor, DeviceRole.Chime, DeviceRole.Autotrack, DeviceRole.Nightvision, DeviceRole.PrivacyMask, DeviceRole.Doorbell, DeviceRole.CoverBlind, DeviceRole.CoverShutter, DeviceRole.CoverAwning, DeviceRole.CoverCurtain, DeviceRole.CoverGarage, DeviceRole.CoverGate, DeviceRole.CoverDoor, DeviceRole.CoverWindow, DeviceRole.BinaryHelper, DeviceRole.Outlet, DeviceRole.SwitchHeater, DeviceRole.SwitchFan, DeviceRole.SwitchLight, DeviceRole.PoePort, DeviceRole.ClimateAc, DeviceRole.ClimateThermostat, DeviceRole.ClimateFloor, DeviceRole.ClimateRadiator, DeviceRole.ClimateHeater, DeviceRole.ClimateHeatPumpCircuit, DeviceRole.MotionSensor, DeviceRole.ContactSensor, DeviceRole.LeakSensor, DeviceRole.SmokeSensor, DeviceRole.COSensor, DeviceRole.GasSensor, DeviceRole.TamperSensor, DeviceRole.VibrationSensor, DeviceRole.ConnectivitySensor, DeviceRole.SoundSensor, DeviceRole.BinarySensor, DeviceRole.TemperatureSensor, DeviceRole.HumiditySensor, DeviceRole.AmbientLightSensor, DeviceRole.PressureSensor, DeviceRole.WindSensor, DeviceRole.RainSensor, DeviceRole.UvSensor, DeviceRole.SolarRadiationSensor, DeviceRole.SoilMoistureSensor, DeviceRole.PowerSensor, DeviceRole.EnergySensor, DeviceRole.VoltageSensor, DeviceRole.CurrentSensor, DeviceRole.AirQualitySensor, DeviceRole.BatterySensor, DeviceRole.NumericSensor, DeviceRole.EnumSensor, DeviceRole.DateTimeSensor, DeviceRole.GenericSensor, DeviceRole.NumericControl, DeviceRole.SelectControl, DeviceRole.TextControl, DeviceRole.DateTimeControl, DeviceRole.MobilePushNotifier, DeviceRole.MessagingNotifier, DeviceRole.EmailNotifier, DeviceRole.GenericNotifier, DeviceRole.IrTransmitter, DeviceRole.Vm, DeviceRole.AppContainer, DeviceRole.Lxc, DeviceRole.App, DeviceRole.Host, DeviceRole.Ups;
112514
113639
  new Set(Object.values(DeviceType));
112515
113640
  new Set(Object.values(DeviceRole));
112516
113641
  var PowerSwitchRefusedError = class extends Error {
@@ -113285,6 +114410,11 @@ Object.freeze({
113285
114410
  form: "array",
113286
114411
  optional: true
113287
114412
  }],
114413
+ "deviceManager.listIdentityLinks": [{
114414
+ name: "deviceId",
114415
+ form: "single",
114416
+ optional: true
114417
+ }],
113288
114418
  "deviceManager.loadConfig": [{
113289
114419
  name: "deviceId",
113290
114420
  form: "single",
@@ -113335,6 +114465,11 @@ Object.freeze({
113335
114465
  form: "single",
113336
114466
  optional: false
113337
114467
  }],
114468
+ "deviceManager.setAttachedIdentifiers": [{
114469
+ name: "deviceId",
114470
+ form: "single",
114471
+ optional: false
114472
+ }],
113338
114473
  "deviceManager.setChildLayout": [{
113339
114474
  name: "deviceId",
113340
114475
  form: "single",
@@ -113529,6 +114664,20 @@ Object.freeze({
113529
114664
  form: "single",
113530
114665
  optional: false
113531
114666
  }],
114667
+ "deviceStateRefresh.refresh": [{
114668
+ name: "deviceId",
114669
+ form: "single",
114670
+ optional: false
114671
+ }, {
114672
+ name: "deviceIds",
114673
+ form: "array",
114674
+ optional: false
114675
+ }],
114676
+ "deviceStateRefresh.resubscribe": [{
114677
+ name: "deviceId",
114678
+ form: "single",
114679
+ optional: false
114680
+ }],
113532
114681
  "deviceStatus.getStatus": [{
113533
114682
  name: "deviceId",
113534
114683
  form: "single",
@@ -115486,6 +116635,11 @@ Object.freeze({
115486
116635
  form: "single",
115487
116636
  optional: false
115488
116637
  }],
116638
+ "streamBroker.previewDerivedEncode": [{
116639
+ name: "deviceId",
116640
+ form: "single",
116641
+ optional: false
116642
+ }],
115489
116643
  "streamBroker.produceEventMedia": [{
115490
116644
  name: "deviceId",
115491
116645
  form: "single",
@@ -118461,12 +119615,38 @@ function toCcuDeviceRow(device) {
118461
119615
  }))
118462
119616
  };
118463
119617
  }
119618
+ /** Per live facade: a reconnect builds a new facade, whose names were just read. */
119619
+ var states = /* @__PURE__ */ new WeakMap();
119620
+ /**
119621
+ * Serve-and-revalidate for the CCU names a page shows: the caller answers from
119622
+ * the names the facade holds now, and when they are older than the window one
119623
+ * background re-read starts, so the next read shows the new names. No timer:
119624
+ * only a read starts it, and a read never waits for it.
119625
+ */
119626
+ function revalidateCcuNames(deps, integrationId, facade, now = Date.now()) {
119627
+ const state = states.get(facade);
119628
+ if (state !== void 0 && (state.inFlight || now - state.startedAt < 6e4)) return;
119629
+ const next = {
119630
+ startedAt: now,
119631
+ inFlight: true
119632
+ };
119633
+ states.set(facade, next);
119634
+ facade.refreshNames().catch((err) => {
119635
+ deps.logger.warn("Homematic: CCU names could not be re-read, keeping the ones shown", { meta: {
119636
+ integrationId,
119637
+ error: errorText(err)
119638
+ } });
119639
+ }).finally(() => {
119640
+ next.inFlight = false;
119641
+ });
119642
+ }
118464
119643
  //#endregion
118465
119644
  //#region src/ccu/ccu-devices-actions.ts
118466
119645
  /** The CCU device list: every device the CCU knows, with its radio and maintenance health. */
118467
119646
  function buildCcuDevicesHandlers(deps) {
118468
119647
  return { listCcuDevices: async (input) => {
118469
119648
  const facade = requireFacade(deps, input.integrationId);
119649
+ revalidateCcuNames(deps, input.integrationId, facade);
118470
119650
  const adopted = await deps.adoptedAddresses(input.integrationId);
118471
119651
  return { devices: await Promise.all(facade.devices().map(async (device) => {
118472
119652
  const links = await keyChannelsForDevice(deps, input.integrationId, device, adopted);
@@ -118946,8 +120126,15 @@ var SetValueInputSchema = IntegrationRefSchema.extend({
118946
120126
  });
118947
120127
  //#endregion
118948
120128
  //#region src/ccu/ccu-heating-actions.ts
118949
- /** Channel types that can sit in a heating group (HmIP and HomeMatic thermostats, wall thermostats, radiator valves). */
118950
- var HEATING_CHANNEL = /THERMOSTAT|CLIMATECONTROL|THERMALCONTROL/i;
120129
+ /**
120130
+ * Channel types the CCU accepts as heating-group members: the climate channel
120131
+ * that both reports and is commanded (`*_TRANSCEIVER`: HmIP thermostats and
120132
+ * radiator valves `:1`, floor-heating actuators, the HomeMatic RT thermostat),
120133
+ * and the classic wall thermostat's `THERMALCONTROL_TRANSMIT`. The device's other
120134
+ * climate channels (`*_RECEIVER`, `*_TRANSMITTER`: link endpoints for the
120135
+ * shutter contact, key, floor sensor, boiler demand) are not members.
120136
+ */
120137
+ var HEATING_GROUP_MEMBER = /^(?:HEATING_)?CLIMATECONTROL_(?:RT_|FLOOR_)?TRANSCEIVER$|^THERMALCONTROL_TRANSMIT$/;
118951
120138
  function deviceAddressOf$1(channelAddress) {
118952
120139
  const colon = channelAddress.indexOf(":");
118953
120140
  return colon === -1 ? channelAddress : channelAddress.slice(0, colon);
@@ -118969,7 +120156,7 @@ function toGroup$1(group, names) {
118969
120156
  }
118970
120157
  function candidatesOf(devices) {
118971
120158
  const out = [];
118972
- for (const device of devices) for (const channel of device.channels) if (channel.type !== void 0 && HEATING_CHANNEL.test(channel.type)) out.push({
120159
+ for (const device of devices) for (const channel of device.channels) if (channel.type !== void 0 && HEATING_GROUP_MEMBER.test(channel.type)) out.push({
118973
120160
  address: channel.address,
118974
120161
  type: channel.type,
118975
120162
  deviceName: device.name ?? null
@@ -118990,6 +120177,7 @@ function buildCcuHeatingHandlers(deps) {
118990
120177
  return {
118991
120178
  listHeatingGroups: async (input) => {
118992
120179
  const facade = requireFacade(deps, input.integrationId);
120180
+ revalidateCcuNames(deps, input.integrationId, facade);
118993
120181
  const devices = facade.devices();
118994
120182
  const names = new Map(devices.map((device) => [device.address, device.name ?? null]));
118995
120183
  let groups = [];
@@ -141425,6 +142613,16 @@ var CentralUnit = class {
141425
142613
  }
141426
142614
  }
141427
142615
  /**
142616
+ * Re-read the WebUI names, rooms and functions and keep them for later
142617
+ * discoveries. Resolves `undefined` (and keeps the previous snapshot) when
142618
+ * there is no WebUI login or the read failed.
142619
+ */
142620
+ async refreshDetails() {
142621
+ const fresh = await this.fetchDetails();
142622
+ if (fresh !== void 0) this.details = fresh;
142623
+ return fresh;
142624
+ }
142625
+ /**
141428
142626
  * Incrementally (re-)discover a set of device addresses on an interface. Used
141429
142627
  * by `newDevices` / `replaceDevice` / `readdedDevice`. Re-runs the full
141430
142628
  * interface discovery (idempotent: the caches dedup) and re-emits the touched
@@ -141433,6 +142631,7 @@ var CentralUnit = class {
141433
142631
  async discoverAddresses(interfaceId2, addresses, publish) {
141434
142632
  const runtime = this.runtimes.get(interfaceId2);
141435
142633
  if (runtime === void 0) return;
142634
+ if (publish) await this.refreshDetails();
141436
142635
  const nodes = await discoverInterface({
141437
142636
  source: runtime.client,
141438
142637
  deviceCache: this.deviceCache,
@@ -143182,6 +144381,17 @@ var Homematic = class {
143182
144381
  devices() {
143183
144382
  return [...this.#devicesByAddress.values()].map((device) => toHmDevice(device, this.#roomsByDevice.get(device.address), this.#functionsByDevice.get(device.address), this.#renamedNames));
143184
144383
  }
144384
+ /**
144385
+ * Re-read device and channel names from the CCU WebUI, so a rename made on
144386
+ * the CCU (or a name given after pairing) shows in `devices()`. Keeps the
144387
+ * names it has when there are no WebUI credentials or the read fails.
144388
+ */
144389
+ async refreshNames() {
144390
+ const details = await this.#central.refreshDetails();
144391
+ if (details === void 0) return;
144392
+ this.#renamedNames.clear();
144393
+ for (const [address, name2] of details.nameByAddress) this.#renamedNames.set(address, name2);
144394
+ }
143185
144395
  /** Current value of a data point (resolving the ref). */
143186
144396
  getValue(ref) {
143187
144397
  return this.#resolveDataPoint(ref).value;
@@ -149120,6 +150330,7 @@ function buildHomematicInstances(records, deps) {
149120
150330
  },
149121
150331
  formSchema: () => buildConnectionFormSchema(),
149122
150332
  initialBody: (name) => ({ name }),
150333
+ addDevice: () => "children",
149123
150334
  configured: (body) => (body.host ?? "").trim().length > 0,
149124
150335
  onChanged: () => deps.onChanged(),
149125
150336
  test: async ({ id, values }) => {