@camstack/addon-provider-homematic 1.2.206 → 1.2.207

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 +6 -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-6DzqqZ3i.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-DR952fPS.mjs +26 -0
  5. package/dist/addon-provider-homematic.css +1 -1
  6. package/dist/addon.js +1092 -75
  7. package/dist/addon.mjs +1092 -75
  8. package/dist/{hostInit-DBO78Hu-.mjs → hostInit-CZgDBnHg.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-ZgMsVU2w.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-CtPGHIKn.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-7hqlX2gW.mjs +26 -0
  14. package/dist/widgets/{hostInit-DSjxilwJ.mjs → hostInit-Cy3RS8VW.mjs} +2 -2
  15. package/dist/widgets/remoteEntry.js +1 -1
  16. package/package.json +3 -3
  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-qX7BpOYT.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
  };
@@ -10857,6 +10887,10 @@ var CAP_VOCABULARY_BY_NAME = {
10857
10887
  it: "Commuta {device}"
10858
10888
  },
10859
10889
  icon: "toggle-right",
10890
+ sideEffects: [{
10891
+ field: "on",
10892
+ negate: true
10893
+ }],
10860
10894
  offeredWhen: {
10861
10895
  method: "getOptions",
10862
10896
  field: "supportsSetState"
@@ -11971,7 +12005,15 @@ var CAP_VOCABULARY_BY_NAME = {
11971
12005
  effect: {
11972
12006
  field: "state",
11973
12007
  value: "locked"
11974
- }
12008
+ },
12009
+ hold: { effects: [{
12010
+ field: "state",
12011
+ value: "locking",
12012
+ when: {
12013
+ field: "state",
12014
+ notIn: ["locked"]
12015
+ }
12016
+ }] }
11975
12017
  },
11976
12018
  {
11977
12019
  id: "lock.unlock",
@@ -12000,7 +12042,15 @@ var CAP_VOCABULARY_BY_NAME = {
12000
12042
  effect: {
12001
12043
  field: "state",
12002
12044
  value: "unlocked"
12003
- }
12045
+ },
12046
+ hold: { effects: [{
12047
+ field: "state",
12048
+ value: "unlocking",
12049
+ when: {
12050
+ field: "state",
12051
+ notIn: ["unlocked"]
12052
+ }
12053
+ }] }
12004
12054
  },
12005
12055
  {
12006
12056
  id: "lock.open",
@@ -12314,6 +12364,14 @@ var CAP_VOCABULARY_BY_NAME = {
12314
12364
  step: .5,
12315
12365
  unit: "°C"
12316
12366
  }
12367
+ }],
12368
+ effect: {
12369
+ field: "targetLow",
12370
+ fromArg: "targetLow"
12371
+ },
12372
+ sideEffects: [{
12373
+ field: "targetHigh",
12374
+ fromArg: "targetHigh"
12317
12375
  }]
12318
12376
  },
12319
12377
  {
@@ -12370,7 +12428,11 @@ var CAP_VOCABULARY_BY_NAME = {
12370
12428
  from: "status",
12371
12429
  field: "availableFanModes"
12372
12430
  }
12373
- }]
12431
+ }],
12432
+ effect: {
12433
+ field: "fanMode",
12434
+ fromArg: "fanMode"
12435
+ }
12374
12436
  },
12375
12437
  {
12376
12438
  id: "climate.preset",
@@ -12395,7 +12457,11 @@ var CAP_VOCABULARY_BY_NAME = {
12395
12457
  from: "status",
12396
12458
  field: "availablePresets"
12397
12459
  }
12398
- }]
12460
+ }],
12461
+ effect: {
12462
+ field: "preset",
12463
+ fromArg: "preset"
12464
+ }
12399
12465
  },
12400
12466
  {
12401
12467
  id: "climate.swingVerticalOn",
@@ -12628,7 +12694,15 @@ var CAP_VOCABULARY_BY_NAME = {
12628
12694
  effect: {
12629
12695
  field: "speed",
12630
12696
  value: 100
12631
- }
12697
+ },
12698
+ sideEffects: [{
12699
+ field: "preset",
12700
+ value: "",
12701
+ when: {
12702
+ field: "preset",
12703
+ notIn: [""]
12704
+ }
12705
+ }]
12632
12706
  },
12633
12707
  {
12634
12708
  id: "fan.speed",
@@ -12659,7 +12733,15 @@ var CAP_VOCABULARY_BY_NAME = {
12659
12733
  effect: {
12660
12734
  field: "speed",
12661
12735
  fromArg: "speed"
12662
- }
12736
+ },
12737
+ sideEffects: [{
12738
+ field: "preset",
12739
+ value: "",
12740
+ when: {
12741
+ field: "preset",
12742
+ notIn: [""]
12743
+ }
12744
+ }]
12663
12745
  },
12664
12746
  {
12665
12747
  id: "fan.preset",
@@ -12684,7 +12766,11 @@ var CAP_VOCABULARY_BY_NAME = {
12684
12766
  from: "status",
12685
12767
  field: "availablePresets"
12686
12768
  }
12687
- }]
12769
+ }],
12770
+ effect: {
12771
+ field: "preset",
12772
+ fromArg: "preset"
12773
+ }
12688
12774
  },
12689
12775
  {
12690
12776
  id: "fan.forward",
@@ -13229,7 +13315,15 @@ var CAP_VOCABULARY_BY_NAME = {
13229
13315
  effect: {
13230
13316
  field: "state",
13231
13317
  value: "disarmed"
13232
- }
13318
+ },
13319
+ hold: { effects: [{
13320
+ field: "state",
13321
+ value: "disarming",
13322
+ when: {
13323
+ field: "state",
13324
+ notIn: ["disarmed"]
13325
+ }
13326
+ }] }
13233
13327
  },
13234
13328
  {
13235
13329
  id: "alarm.arm.home",
@@ -13259,7 +13353,15 @@ var CAP_VOCABULARY_BY_NAME = {
13259
13353
  effect: {
13260
13354
  field: "state",
13261
13355
  value: "armed_home"
13262
- }
13356
+ },
13357
+ hold: { effects: [{
13358
+ field: "state",
13359
+ value: "arming",
13360
+ when: {
13361
+ field: "state",
13362
+ notIn: ["armed_home"]
13363
+ }
13364
+ }] }
13263
13365
  },
13264
13366
  {
13265
13367
  id: "alarm.arm.away",
@@ -13289,7 +13391,15 @@ var CAP_VOCABULARY_BY_NAME = {
13289
13391
  effect: {
13290
13392
  field: "state",
13291
13393
  value: "armed_away"
13292
- }
13394
+ },
13395
+ hold: { effects: [{
13396
+ field: "state",
13397
+ value: "arming",
13398
+ when: {
13399
+ field: "state",
13400
+ notIn: ["armed_away"]
13401
+ }
13402
+ }] }
13293
13403
  },
13294
13404
  {
13295
13405
  id: "alarm.arm.night",
@@ -13319,7 +13429,15 @@ var CAP_VOCABULARY_BY_NAME = {
13319
13429
  effect: {
13320
13430
  field: "state",
13321
13431
  value: "armed_night"
13322
- }
13432
+ },
13433
+ hold: { effects: [{
13434
+ field: "state",
13435
+ value: "arming",
13436
+ when: {
13437
+ field: "state",
13438
+ notIn: ["armed_night"]
13439
+ }
13440
+ }] }
13323
13441
  },
13324
13442
  {
13325
13443
  id: "alarm.arm.vacation",
@@ -13349,7 +13467,15 @@ var CAP_VOCABULARY_BY_NAME = {
13349
13467
  effect: {
13350
13468
  field: "state",
13351
13469
  value: "armed_vacation"
13352
- }
13470
+ },
13471
+ hold: { effects: [{
13472
+ field: "state",
13473
+ value: "arming",
13474
+ when: {
13475
+ field: "state",
13476
+ notIn: ["armed_vacation"]
13477
+ }
13478
+ }] }
13353
13479
  },
13354
13480
  {
13355
13481
  id: "alarm.arm.custom_bypass",
@@ -13379,7 +13505,15 @@ var CAP_VOCABULARY_BY_NAME = {
13379
13505
  effect: {
13380
13506
  field: "state",
13381
13507
  value: "armed_custom_bypass"
13382
- }
13508
+ },
13509
+ hold: { effects: [{
13510
+ field: "state",
13511
+ value: "arming",
13512
+ when: {
13513
+ field: "state",
13514
+ notIn: ["armed_custom_bypass"]
13515
+ }
13516
+ }] }
13383
13517
  }
13384
13518
  ],
13385
13519
  state: [{
@@ -14521,7 +14655,14 @@ var CAP_VOCABULARY_BY_NAME = {
14521
14655
  quantity: "mass"
14522
14656
  },
14523
14657
  optional: true
14524
- }]
14658
+ }],
14659
+ hold: {
14660
+ effects: [{
14661
+ field: "feeding",
14662
+ value: true
14663
+ }],
14664
+ holdMs: 1e4
14665
+ }
14525
14666
  },
14526
14667
  {
14527
14668
  id: "petFeeder.feedHoppers",
@@ -14565,7 +14706,14 @@ var CAP_VOCABULARY_BY_NAME = {
14565
14706
  quantity: "mass"
14566
14707
  },
14567
14708
  optional: true
14568
- }]
14709
+ }],
14710
+ hold: {
14711
+ effects: [{
14712
+ field: "feeding",
14713
+ value: true
14714
+ }],
14715
+ holdMs: 1e4
14716
+ }
14569
14717
  },
14570
14718
  {
14571
14719
  id: "petFeeder.cancelFeed",
@@ -14656,7 +14804,11 @@ var CAP_VOCABULARY_BY_NAME = {
14656
14804
  it: "Attiva il blocco bambini di {device}"
14657
14805
  },
14658
14806
  icon: "lock",
14659
- args: { on: true }
14807
+ args: { on: true },
14808
+ effect: {
14809
+ field: "childLock",
14810
+ value: true
14811
+ }
14660
14812
  },
14661
14813
  {
14662
14814
  id: "petFeeder.childLockOff",
@@ -14670,7 +14822,11 @@ var CAP_VOCABULARY_BY_NAME = {
14670
14822
  it: "Disattiva il blocco bambini di {device}"
14671
14823
  },
14672
14824
  icon: "lock-open",
14673
- args: { on: false }
14825
+ args: { on: false },
14826
+ effect: {
14827
+ field: "childLock",
14828
+ value: false
14829
+ }
14674
14830
  },
14675
14831
  {
14676
14832
  id: "petFeeder.lightOn",
@@ -14684,7 +14840,11 @@ var CAP_VOCABULARY_BY_NAME = {
14684
14840
  it: "Accendi la spia di {device}"
14685
14841
  },
14686
14842
  icon: "lightbulb",
14687
- args: { on: true }
14843
+ args: { on: true },
14844
+ effect: {
14845
+ field: "indicatorLight",
14846
+ value: true
14847
+ }
14688
14848
  },
14689
14849
  {
14690
14850
  id: "petFeeder.lightOff",
@@ -14698,7 +14858,11 @@ var CAP_VOCABULARY_BY_NAME = {
14698
14858
  it: "Spegni la spia di {device}"
14699
14859
  },
14700
14860
  icon: "lightbulb-off",
14701
- args: { on: false }
14861
+ args: { on: false },
14862
+ effect: {
14863
+ field: "indicatorLight",
14864
+ value: false
14865
+ }
14702
14866
  },
14703
14867
  {
14704
14868
  id: "petFeeder.feedSoundOn",
@@ -14712,7 +14876,11 @@ var CAP_VOCABULARY_BY_NAME = {
14712
14876
  it: "Attiva il suono di erogazione di {device}"
14713
14877
  },
14714
14878
  icon: "volume-2",
14715
- args: { on: true }
14879
+ args: { on: true },
14880
+ effect: {
14881
+ field: "feedSound",
14882
+ value: true
14883
+ }
14716
14884
  },
14717
14885
  {
14718
14886
  id: "petFeeder.feedSoundOff",
@@ -14726,7 +14894,11 @@ var CAP_VOCABULARY_BY_NAME = {
14726
14894
  it: "Disattiva il suono di erogazione di {device}"
14727
14895
  },
14728
14896
  icon: "volume-x",
14729
- args: { on: false }
14897
+ args: { on: false },
14898
+ effect: {
14899
+ field: "feedSound",
14900
+ value: false
14901
+ }
14730
14902
  },
14731
14903
  {
14732
14904
  id: "petFeeder.volume",
@@ -14751,7 +14923,11 @@ var CAP_VOCABULARY_BY_NAME = {
14751
14923
  min: 0,
14752
14924
  step: 1
14753
14925
  }
14754
- }]
14926
+ }],
14927
+ effect: {
14928
+ field: "volume",
14929
+ fromArg: "level"
14930
+ }
14755
14931
  }
14756
14932
  ],
14757
14933
  state: [
@@ -14823,7 +14999,11 @@ var CAP_VOCABULARY_BY_NAME = {
14823
14999
  it: "Avvia la pompa di {device}"
14824
15000
  },
14825
15001
  icon: "play",
14826
- args: { on: true }
15002
+ args: { on: true },
15003
+ effect: {
15004
+ field: "pumpRunning",
15005
+ value: true
15006
+ }
14827
15007
  }, {
14828
15008
  id: "petFountain.pumpOff",
14829
15009
  method: "setPump",
@@ -14836,7 +15016,11 @@ var CAP_VOCABULARY_BY_NAME = {
14836
15016
  it: "Ferma la pompa di {device}"
14837
15017
  },
14838
15018
  icon: "square",
14839
- args: { on: false }
15019
+ args: { on: false },
15020
+ effect: {
15021
+ field: "pumpRunning",
15022
+ value: false
15023
+ }
14840
15024
  }],
14841
15025
  state: [{
14842
15026
  kind: "boolean",
@@ -14888,7 +15072,11 @@ var CAP_VOCABULARY_BY_NAME = {
14888
15072
  it: "Fai lavorare la pompa di {device} a ciclo acceso/spento"
14889
15073
  },
14890
15074
  icon: "timer",
14891
- args: { on: true }
15075
+ args: { on: true },
15076
+ effect: {
15077
+ field: "enabled",
15078
+ value: true
15079
+ }
14892
15080
  },
14893
15081
  {
14894
15082
  id: "pumpCycle.off",
@@ -14902,7 +15090,11 @@ var CAP_VOCABULARY_BY_NAME = {
14902
15090
  it: "Fai lavorare la pompa di {device} in continuo"
14903
15091
  },
14904
15092
  icon: "timer-off",
14905
- args: { on: false }
15093
+ args: { on: false },
15094
+ effect: {
15095
+ field: "enabled",
15096
+ value: false
15097
+ }
14906
15098
  },
14907
15099
  {
14908
15100
  id: "pumpCycle.onMinutes",
@@ -14928,7 +15120,12 @@ var CAP_VOCABULARY_BY_NAME = {
14928
15120
  step: 1,
14929
15121
  unit: "min"
14930
15122
  }
14931
- }]
15123
+ }],
15124
+ effect: {
15125
+ field: "onTime",
15126
+ fromArg: "minutes",
15127
+ scale: 60
15128
+ }
14932
15129
  },
14933
15130
  {
14934
15131
  id: "pumpCycle.offMinutes",
@@ -14954,7 +15151,12 @@ var CAP_VOCABULARY_BY_NAME = {
14954
15151
  step: 1,
14955
15152
  unit: "min"
14956
15153
  }
14957
- }]
15154
+ }],
15155
+ effect: {
15156
+ field: "offTime",
15157
+ fromArg: "minutes",
15158
+ scale: 60
15159
+ }
14958
15160
  }
14959
15161
  ],
14960
15162
  state: [{
@@ -15071,7 +15273,11 @@ var CAP_VOCABULARY_BY_NAME = {
15071
15273
  en: "Play on {device}",
15072
15274
  it: "Avvia la riproduzione su {device}"
15073
15275
  },
15074
- icon: "play"
15276
+ icon: "play",
15277
+ effect: {
15278
+ field: "state",
15279
+ value: "playing"
15280
+ }
15075
15281
  },
15076
15282
  {
15077
15283
  id: "media.pause",
@@ -15084,7 +15290,11 @@ var CAP_VOCABULARY_BY_NAME = {
15084
15290
  en: "Pause {device}",
15085
15291
  it: "Metti in pausa {device}"
15086
15292
  },
15087
- icon: "pause"
15293
+ icon: "pause",
15294
+ effect: {
15295
+ field: "state",
15296
+ value: "paused"
15297
+ }
15088
15298
  },
15089
15299
  {
15090
15300
  id: "media.stop",
@@ -15150,7 +15360,11 @@ var CAP_VOCABULARY_BY_NAME = {
15150
15360
  step: 1,
15151
15361
  unit: "%"
15152
15362
  }
15153
- }]
15363
+ }],
15364
+ effect: {
15365
+ field: "volumeLevel",
15366
+ fromArg: "volumeLevel"
15367
+ }
15154
15368
  },
15155
15369
  {
15156
15370
  id: "media.mute",
@@ -15164,7 +15378,11 @@ var CAP_VOCABULARY_BY_NAME = {
15164
15378
  it: "Silenzia {device}"
15165
15379
  },
15166
15380
  icon: "volume-x",
15167
- args: { muted: true }
15381
+ args: { muted: true },
15382
+ effect: {
15383
+ field: "isMuted",
15384
+ value: true
15385
+ }
15168
15386
  },
15169
15387
  {
15170
15388
  id: "media.unmute",
@@ -15178,7 +15396,11 @@ var CAP_VOCABULARY_BY_NAME = {
15178
15396
  it: "Riattiva l’audio di {device}"
15179
15397
  },
15180
15398
  icon: "volume-2",
15181
- args: { muted: false }
15399
+ args: { muted: false },
15400
+ effect: {
15401
+ field: "isMuted",
15402
+ value: false
15403
+ }
15182
15404
  },
15183
15405
  {
15184
15406
  id: "media.shuffleOn",
@@ -15192,7 +15414,11 @@ var CAP_VOCABULARY_BY_NAME = {
15192
15414
  it: "Attiva la riproduzione casuale su {device}"
15193
15415
  },
15194
15416
  icon: "shuffle",
15195
- args: { shuffle: true }
15417
+ args: { shuffle: true },
15418
+ effect: {
15419
+ field: "shuffle",
15420
+ value: true
15421
+ }
15196
15422
  },
15197
15423
  {
15198
15424
  id: "media.shuffleOff",
@@ -15206,7 +15432,11 @@ var CAP_VOCABULARY_BY_NAME = {
15206
15432
  it: "Disattiva la riproduzione casuale su {device}"
15207
15433
  },
15208
15434
  icon: "shuffle",
15209
- args: { shuffle: false }
15435
+ args: { shuffle: false },
15436
+ effect: {
15437
+ field: "shuffle",
15438
+ value: false
15439
+ }
15210
15440
  },
15211
15441
  {
15212
15442
  id: "media.repeat",
@@ -15252,7 +15482,11 @@ var CAP_VOCABULARY_BY_NAME = {
15252
15482
  }
15253
15483
  ]
15254
15484
  }
15255
- }]
15485
+ }],
15486
+ effect: {
15487
+ field: "repeat",
15488
+ fromArg: "repeat"
15489
+ }
15256
15490
  },
15257
15491
  {
15258
15492
  id: "media.source",
@@ -15277,7 +15511,11 @@ var CAP_VOCABULARY_BY_NAME = {
15277
15511
  from: "status",
15278
15512
  field: "availableSources"
15279
15513
  }
15280
- }]
15514
+ }],
15515
+ effect: {
15516
+ field: "source",
15517
+ fromArg: "source"
15518
+ }
15281
15519
  },
15282
15520
  {
15283
15521
  id: "media.seek",
@@ -15817,7 +16055,14 @@ var CAP_VOCABULARY_BY_NAME = {
15817
16055
  en: "Run {device}",
15818
16056
  it: "Esegui {device}"
15819
16057
  },
15820
- icon: "scroll-text"
16058
+ icon: "scroll-text",
16059
+ hold: {
16060
+ effects: [{
16061
+ field: "isRunning",
16062
+ value: true
16063
+ }],
16064
+ holdMs: 1e4
16065
+ }
15821
16066
  }, {
15822
16067
  id: "script.stop",
15823
16068
  method: "stop",
@@ -15829,7 +16074,11 @@ var CAP_VOCABULARY_BY_NAME = {
15829
16074
  en: "Stop {device}",
15830
16075
  it: "Ferma {device}"
15831
16076
  },
15832
- icon: "square"
16077
+ icon: "square",
16078
+ effect: {
16079
+ field: "isRunning",
16080
+ value: false
16081
+ }
15833
16082
  }],
15834
16083
  state: [{
15835
16084
  kind: "boolean",
@@ -15867,7 +16116,11 @@ var CAP_VOCABULARY_BY_NAME = {
15867
16116
  en: "Enable {device}",
15868
16117
  it: "Abilita {device}"
15869
16118
  },
15870
- icon: "toggle-right"
16119
+ icon: "toggle-right",
16120
+ effect: {
16121
+ field: "enabled",
16122
+ value: true
16123
+ }
15871
16124
  },
15872
16125
  {
15873
16126
  id: "haAutomation.disable",
@@ -15880,7 +16133,11 @@ var CAP_VOCABULARY_BY_NAME = {
15880
16133
  en: "Disable {device}",
15881
16134
  it: "Disabilita {device}"
15882
16135
  },
15883
- icon: "toggle-left"
16136
+ icon: "toggle-left",
16137
+ effect: {
16138
+ field: "enabled",
16139
+ value: false
16140
+ }
15884
16141
  },
15885
16142
  {
15886
16143
  id: "haAutomation.trigger",
@@ -17482,6 +17739,17 @@ var CAP_VOCABULARY_BY_NAME = {
17482
17739
  },
17483
17740
  notOperatorFacing: { resync: "device adoption — re-aligning a device with its source is an onboarding step, not an automation action" }
17484
17741
  },
17742
+ "device-state-refresh": {
17743
+ scope: "device",
17744
+ noun: {
17745
+ en: "State refresh",
17746
+ it: "Aggiornamento dello stato"
17747
+ },
17748
+ notOperatorFacing: {
17749
+ refresh: "the core schedules state refreshes itself; an operator never asks for one",
17750
+ resubscribe: "the core schedules state refreshes itself; an operator never asks for one"
17751
+ }
17752
+ },
17485
17753
  "recording": {
17486
17754
  scope: "device",
17487
17755
  noun: {
@@ -20476,6 +20744,7 @@ var CAP_NAMES = Object.freeze([
20476
20744
  "device-removal-hook",
20477
20745
  "device-runs",
20478
20746
  "device-state",
20747
+ "device-state-refresh",
20479
20748
  "device-status",
20480
20749
  "device-transitions",
20481
20750
  "dishwasher",
@@ -22116,6 +22385,10 @@ Object.freeze({
22116
22385
  "path": "power",
22117
22386
  "valueType": "number"
22118
22387
  },
22388
+ {
22389
+ "path": "deliveredPower",
22390
+ "valueType": "number"
22391
+ },
22119
22392
  {
22120
22393
  "path": "energy",
22121
22394
  "valueType": "number"
@@ -22934,7 +23207,7 @@ Object.freeze({
22934
23207
  }
22935
23208
  });
22936
23209
  //#endregion
22937
- //#region ../types/dist/implemented-methods-k3KProJd.mjs
23210
+ //#region ../types/dist/implemented-methods-wFScvZ40.mjs
22938
23211
  /**
22939
23212
  * The ffmpeg build every CamStack node downloads, per platform and arch.
22940
23213
  *
@@ -24094,6 +24367,8 @@ var CompositionItemEntrySchema = object({
24094
24367
  */
24095
24368
  reset: CompositionForwardCommandSchema.optional()
24096
24369
  });
24370
+ /** Which identity link added a feature (D1063). */
24371
+ var CompositionContributedBySchema = object({ linkId: string().min(1) });
24097
24372
  var CompositionFeatureSchema = discriminatedUnion("kind", [object({
24098
24373
  kind: literal("fields"),
24099
24374
  cap: string().min(1),
@@ -24105,7 +24380,14 @@ var CompositionFeatureSchema = discriminatedUnion("kind", [object({
24105
24380
  */
24106
24381
  items: record$1(string().regex(COMPOSITION_ITEM_KEY_RE), CompositionItemEntrySchema).refine((items) => Object.keys(items).length <= 16, { message: `at most 16 items` }).optional(),
24107
24382
  /** Method name → what serves it. Only a BUILT capability takes commands (D967). */
24108
- commands: record$1(string().min(1), CompositionCommandTargetSchema).optional()
24383
+ commands: record$1(string().min(1), CompositionCommandTargetSchema).optional(),
24384
+ /**
24385
+ * Provenance only (D1063): the identity link that added this feature. The
24386
+ * source ref stays in `fields`; `enabled` stays the operator's switch. An
24387
+ * operator edit of the source drops the stamp and the feature becomes the
24388
+ * operator's; a lost link removes only stamped features.
24389
+ */
24390
+ contributedBy: CompositionContributedBySchema.optional()
24109
24391
  }), object({
24110
24392
  kind: literal("passthrough"),
24111
24393
  cap: string().min(1),
@@ -53378,6 +53660,14 @@ var alarmPanelCapability = {
53378
53660
  field: "state",
53379
53661
  value: "disarmed"
53380
53662
  },
53663
+ hold: { effects: [{
53664
+ field: "state",
53665
+ value: "disarming",
53666
+ when: {
53667
+ field: "state",
53668
+ notIn: ["disarmed"]
53669
+ }
53670
+ }] },
53381
53671
  openArgs: [{
53382
53672
  key: "code",
53383
53673
  label: t("PIN code", "Codice PIN"),
@@ -53408,6 +53698,14 @@ var alarmPanelCapability = {
53408
53698
  field: "state",
53409
53699
  value: "armed_home"
53410
53700
  },
53701
+ hold: { effects: [{
53702
+ field: "state",
53703
+ value: "arming",
53704
+ when: {
53705
+ field: "state",
53706
+ notIn: ["armed_home"]
53707
+ }
53708
+ }] },
53411
53709
  args: { mode: "home" },
53412
53710
  openArgs: [{
53413
53711
  key: "code",
@@ -53428,6 +53726,14 @@ var alarmPanelCapability = {
53428
53726
  field: "state",
53429
53727
  value: "armed_away"
53430
53728
  },
53729
+ hold: { effects: [{
53730
+ field: "state",
53731
+ value: "arming",
53732
+ when: {
53733
+ field: "state",
53734
+ notIn: ["armed_away"]
53735
+ }
53736
+ }] },
53431
53737
  args: { mode: "away" },
53432
53738
  openArgs: [{
53433
53739
  key: "code",
@@ -53448,6 +53754,14 @@ var alarmPanelCapability = {
53448
53754
  field: "state",
53449
53755
  value: "armed_night"
53450
53756
  },
53757
+ hold: { effects: [{
53758
+ field: "state",
53759
+ value: "arming",
53760
+ when: {
53761
+ field: "state",
53762
+ notIn: ["armed_night"]
53763
+ }
53764
+ }] },
53451
53765
  args: { mode: "night" },
53452
53766
  openArgs: [{
53453
53767
  key: "code",
@@ -53468,6 +53782,14 @@ var alarmPanelCapability = {
53468
53782
  field: "state",
53469
53783
  value: "armed_vacation"
53470
53784
  },
53785
+ hold: { effects: [{
53786
+ field: "state",
53787
+ value: "arming",
53788
+ when: {
53789
+ field: "state",
53790
+ notIn: ["armed_vacation"]
53791
+ }
53792
+ }] },
53471
53793
  args: { mode: "vacation" },
53472
53794
  openArgs: [{
53473
53795
  key: "code",
@@ -53488,6 +53810,14 @@ var alarmPanelCapability = {
53488
53810
  field: "state",
53489
53811
  value: "armed_custom_bypass"
53490
53812
  },
53813
+ hold: { effects: [{
53814
+ field: "state",
53815
+ value: "arming",
53816
+ when: {
53817
+ field: "state",
53818
+ notIn: ["armed_custom_bypass"]
53819
+ }
53820
+ }] },
53491
53821
  args: { mode: "custom_bypass" },
53492
53822
  openArgs: [{
53493
53823
  key: "code",
@@ -54171,6 +54501,10 @@ var automationControlCapability = {
54171
54501
  auth: "admin",
54172
54502
  actions: [{
54173
54503
  id: "haAutomation.enable",
54504
+ effect: {
54505
+ field: "enabled",
54506
+ value: true
54507
+ },
54174
54508
  label: t("Enable automation", "Abilita l’automazione"),
54175
54509
  phrase: t("Enable {device}", "Abilita {device}"),
54176
54510
  icon: "toggle-right"
@@ -54181,6 +54515,10 @@ var automationControlCapability = {
54181
54515
  auth: "admin",
54182
54516
  actions: [{
54183
54517
  id: "haAutomation.disable",
54518
+ effect: {
54519
+ field: "enabled",
54520
+ value: false
54521
+ },
54184
54522
  label: t("Disable automation", "Disabilita l’automazione"),
54185
54523
  phrase: t("Disable {device}", "Disabilita {device}"),
54186
54524
  icon: "toggle-left"
@@ -56991,6 +57329,14 @@ var climateControlCapability = {
56991
57329
  label: t("Set temperature range", "Imposta l’intervallo di temperatura"),
56992
57330
  phrase: t("Keep {device} between {targetLow} and {targetHigh}", "Mantieni {device} tra {targetLow} e {targetHigh}"),
56993
57331
  icon: "thermometer",
57332
+ effect: {
57333
+ field: "targetLow",
57334
+ fromArg: "targetLow"
57335
+ },
57336
+ sideEffects: [{
57337
+ field: "targetHigh",
57338
+ fromArg: "targetHigh"
57339
+ }],
56994
57340
  openArgs: [{
56995
57341
  key: "targetLow",
56996
57342
  label: t("Lowest", "Minima"),
@@ -57049,6 +57395,10 @@ var climateControlCapability = {
57049
57395
  label: t("Set fan mode", "Imposta la ventilazione"),
57050
57396
  phrase: t("Set the fan of {device} to {fanMode}", "Imposta la ventilazione di {device} su {fanMode}"),
57051
57397
  icon: "fan",
57398
+ effect: {
57399
+ field: "fanMode",
57400
+ fromArg: "fanMode"
57401
+ },
57052
57402
  openArgs: [{
57053
57403
  key: "fanMode",
57054
57404
  label: t("Fan mode", "Ventilazione"),
@@ -57071,6 +57421,10 @@ var climateControlCapability = {
57071
57421
  label: t("Set preset", "Imposta il preset"),
57072
57422
  phrase: t("Set {device} to preset {preset}", "Imposta {device} sul preset {preset}"),
57073
57423
  icon: "list",
57424
+ effect: {
57425
+ field: "preset",
57426
+ fromArg: "preset"
57427
+ },
57074
57428
  openArgs: [{
57075
57429
  key: "preset",
57076
57430
  label: t("Preset", "Preset"),
@@ -57658,7 +58012,8 @@ var CompositionProblemSchema = object({
57658
58012
  "command-source-unknown",
57659
58013
  "command-input-unknown",
57660
58014
  "command-input-missing",
57661
- "power-source-is-actuator"
58015
+ "power-source-is-actuator",
58016
+ "link-contribution-removed"
57662
58017
  ]),
57663
58018
  path: string(),
57664
58019
  message: string()
@@ -59085,6 +59440,10 @@ var mediaPlayerCapability = {
59085
59440
  auth: "protected",
59086
59441
  actions: [{
59087
59442
  id: "media.play",
59443
+ effect: {
59444
+ field: "state",
59445
+ value: "playing"
59446
+ },
59088
59447
  label: t("Play", "Riproduci"),
59089
59448
  phrase: t("Play on {device}", "Avvia la riproduzione su {device}"),
59090
59449
  icon: "play"
@@ -59095,6 +59454,10 @@ var mediaPlayerCapability = {
59095
59454
  auth: "protected",
59096
59455
  actions: [{
59097
59456
  id: "media.pause",
59457
+ effect: {
59458
+ field: "state",
59459
+ value: "paused"
59460
+ },
59098
59461
  label: t("Pause media", "Metti in pausa"),
59099
59462
  phrase: t("Pause {device}", "Metti in pausa {device}"),
59100
59463
  icon: "pause"
@@ -59138,6 +59501,10 @@ var mediaPlayerCapability = {
59138
59501
  auth: "protected",
59139
59502
  actions: [{
59140
59503
  id: "media.volume",
59504
+ effect: {
59505
+ field: "volumeLevel",
59506
+ fromArg: "volumeLevel"
59507
+ },
59141
59508
  label: t("Set volume", "Imposta il volume"),
59142
59509
  phrase: t("Set the volume of {device} to {volumeLevel}", "Imposta il volume di {device} al {volumeLevel}"),
59143
59510
  icon: "volume-2",
@@ -59162,12 +59529,20 @@ var mediaPlayerCapability = {
59162
59529
  auth: "protected",
59163
59530
  actions: [{
59164
59531
  id: "media.mute",
59532
+ effect: {
59533
+ field: "isMuted",
59534
+ value: true
59535
+ },
59165
59536
  label: t("Mute", "Silenzia"),
59166
59537
  phrase: t("Mute {device}", "Silenzia {device}"),
59167
59538
  icon: "volume-x",
59168
59539
  args: { muted: true }
59169
59540
  }, {
59170
59541
  id: "media.unmute",
59542
+ effect: {
59543
+ field: "isMuted",
59544
+ value: false
59545
+ },
59171
59546
  label: t("Unmute", "Riattiva l’audio"),
59172
59547
  phrase: t("Unmute {device}", "Riattiva l’audio di {device}"),
59173
59548
  icon: "volume-2",
@@ -59182,12 +59557,20 @@ var mediaPlayerCapability = {
59182
59557
  auth: "protected",
59183
59558
  actions: [{
59184
59559
  id: "media.shuffleOn",
59560
+ effect: {
59561
+ field: "shuffle",
59562
+ value: true
59563
+ },
59185
59564
  label: t("Shuffle on", "Riproduzione casuale attiva"),
59186
59565
  phrase: t("Turn on shuffle on {device}", "Attiva la riproduzione casuale su {device}"),
59187
59566
  icon: "shuffle",
59188
59567
  args: { shuffle: true }
59189
59568
  }, {
59190
59569
  id: "media.shuffleOff",
59570
+ effect: {
59571
+ field: "shuffle",
59572
+ value: false
59573
+ },
59191
59574
  label: t("Shuffle off", "Riproduzione casuale spenta"),
59192
59575
  phrase: t("Turn off shuffle on {device}", "Disattiva la riproduzione casuale su {device}"),
59193
59576
  icon: "shuffle",
@@ -59202,6 +59585,10 @@ var mediaPlayerCapability = {
59202
59585
  auth: "protected",
59203
59586
  actions: [{
59204
59587
  id: "media.repeat",
59588
+ effect: {
59589
+ field: "repeat",
59590
+ fromArg: "repeat"
59591
+ },
59205
59592
  label: t("Set repeat", "Imposta la ripetizione"),
59206
59593
  phrase: t("Set repeat on {device} to {repeat}", "Imposta la ripetizione di {device} su {repeat}"),
59207
59594
  icon: "repeat",
@@ -59236,6 +59623,10 @@ var mediaPlayerCapability = {
59236
59623
  auth: "protected",
59237
59624
  actions: [{
59238
59625
  id: "media.source",
59626
+ effect: {
59627
+ field: "source",
59628
+ fromArg: "source"
59629
+ },
59239
59630
  label: t("Select source", "Scegli la sorgente"),
59240
59631
  phrase: t("Switch {device} to {source}", "Passa {device} alla sorgente {source}"),
59241
59632
  icon: "cast",
@@ -59404,7 +59795,7 @@ var mediaPlayerCapability = {
59404
59795
  ]
59405
59796
  }
59406
59797
  };
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;
59798
+ 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
59799
  var NUMBER = {
59409
59800
  kind: "fixed",
59410
59801
  result: ["number"]
@@ -59896,7 +60287,9 @@ var PowerSourceRefusalReasonSchema = _enum([
59896
60287
  "switch-call-failed",
59897
60288
  "switch-options-unreadable",
59898
60289
  "not-settable",
59899
- "switch-is-actuator"
60290
+ "switch-is-actuator",
60291
+ "link-lost",
60292
+ "link-unknown"
59900
60293
  ]);
59901
60294
  var PowerSourceActionResultSchema = discriminatedUnion("accepted", [object({ accepted: literal(true) }), object({
59902
60295
  accepted: literal(false),
@@ -61983,6 +62376,79 @@ var IdentityCandidatesSchema = discriminatedUnion("status", [object({
61983
62376
  pairs: array(IdentityCandidatePairSchema).readonly(),
61984
62377
  undeclaredDeviceIds: array(number$1().int()).readonly()
61985
62378
  })]);
62379
+ var IdentityLinkKindSchema = _enum(["same-device", "poe-power"]);
62380
+ /**
62381
+ * - `proposed` — one strong key matched: waits for the operator;
62382
+ * - `linked` — confirmed by the operator, or auto-linked on strong evidence;
62383
+ * - `dismissed` — the operator said no (or unlinked): sticky, never re-proposed.
62384
+ */
62385
+ var IdentityLinkStateSchema = _enum([
62386
+ "proposed",
62387
+ "linked",
62388
+ "dismissed"
62389
+ ]);
62390
+ /** Who decided the current state: the matcher (`auto`) or the operator. */
62391
+ var IdentityLinkOriginSchema = _enum(["auto", "operator"]);
62392
+ /** One side: the device ref that survives re-registration, plus its current numeric id. */
62393
+ var IdentityLinkSideSchema = object({
62394
+ addonId: string().min(1),
62395
+ stableId: string().min(1),
62396
+ deviceId: number$1().int()
62397
+ });
62398
+ var IdentityLinkSchema = object({
62399
+ kind: IdentityLinkKindSchema,
62400
+ a: IdentityLinkSideSchema,
62401
+ b: IdentityLinkSideSchema,
62402
+ state: IdentityLinkStateSchema,
62403
+ origin: IdentityLinkOriginSchema,
62404
+ /** The identifiers that matched when the link was last evaluated, ordered by key then value. */
62405
+ evidence: array(IdentityMatchedKeySchema).readonly(),
62406
+ /** An operator-confirmed link whose evidence no longer matches: kept, flagged. */
62407
+ evidenceGone: literal(true).optional(),
62408
+ createdAt: number$1().int().nonnegative(),
62409
+ decidedAt: number$1().int().nonnegative().optional()
62410
+ }).extend({ id: string().min(1) });
62411
+ DeviceRole.PoePort;
62412
+ /**
62413
+ * The answer of `device-manager.listIdentityLinks`. `not-loaded` until the
62414
+ * links have been read — never an empty list (D315).
62415
+ */
62416
+ var IdentityLinksReadSchema = discriminatedUnion("status", [object({
62417
+ status: literal("not-loaded"),
62418
+ reason: string()
62419
+ }), object({
62420
+ status: literal("answered"),
62421
+ links: array(IdentityLinkSchema).readonly()
62422
+ })]);
62423
+ /** Why an operator decision on a link was refused. */
62424
+ var IdentityLinkDecisionRefusalSchema = _enum([
62425
+ "not-loaded",
62426
+ "unknown-link",
62427
+ "wrong-state"
62428
+ ]);
62429
+ /** The answer of `confirmIdentityLink` / `dismissIdentityLink` / `unlinkIdentity`. */
62430
+ var IdentityLinkDecisionSchema = discriminatedUnion("ok", [object({
62431
+ ok: literal(true),
62432
+ link: IdentityLinkSchema
62433
+ }), object({
62434
+ ok: literal(false),
62435
+ reason: IdentityLinkDecisionRefusalSchema,
62436
+ message: string()
62437
+ })]);
62438
+ /** Why a link was lost. */
62439
+ var IdentityLinkLostReasonSchema = _enum([
62440
+ "evidence-gone",
62441
+ "device-removed",
62442
+ "operator-unlinked"
62443
+ ]);
62444
+ object({
62445
+ linkId: string(),
62446
+ kind: IdentityLinkKindSchema,
62447
+ aDeviceId: number$1().int(),
62448
+ bDeviceId: number$1().int(),
62449
+ origin: IdentityLinkOriginSchema,
62450
+ reason: IdentityLinkLostReasonSchema.optional()
62451
+ });
61986
62452
  var DeviceSearchRequiresSchema = object({
61987
62453
  /** Capability names the field wants a value of. Absent when the field wants actions only. */
61988
62454
  caps: array(string()).readonly().optional(),
@@ -62549,6 +63015,11 @@ var DeviceInfoSchema = object({
62549
63015
  * the owning provider via `setIdentifiers`; read-only for the operator.
62550
63016
  * Absent ⇒ the provider declared none. */
62551
63017
  identifiers: DeviceIdentifiersSchema.optional(),
63018
+ /** The identity of the device at the far end of this device's physical
63019
+ * link (D1059 amended by D1063) — a PoE port's wired client. Written only by
63020
+ * the owning provider via `setAttachedIdentifiers`; it never makes the two
63021
+ * devices the same device. Absent ⇒ none declared. */
63022
+ attachedIdentifiers: DeviceIdentifiersSchema.optional(),
62552
63023
  /** Optional upstream-system identity + rendering envelope. See
62553
63024
  * `SourceInfo` in `packages/types/src/device/source-info.ts`. */
62554
63025
  sourceInfo: SourceInfoSchema.optional(),
@@ -62702,6 +63173,8 @@ var DeviceMetaSchema = object({
62702
63173
  metadata: record$1(string(), unknown()).nullable().optional(),
62703
63174
  /** Provider-declared identifiers (D1059). See `DeviceMeta.identifiers`. */
62704
63175
  identifiers: DeviceIdentifiersSchema.optional(),
63176
+ /** The far end of the device's physical link (D1063). See `DeviceMeta.attachedIdentifiers`. */
63177
+ attachedIdentifiers: DeviceIdentifiersSchema.optional(),
62705
63178
  /** Optional upstream-system identity + rendering envelope. See
62706
63179
  * `SourceInfo`. Present when the device has been persisted with a
62707
63180
  * non-synthetic source identifier (HA entities, vendor MAC, …);
@@ -63026,6 +63499,26 @@ method(object({
63026
63499
  }), method(object({}), IdentityCandidatesSchema, {
63027
63500
  kind: "query",
63028
63501
  auth: "admin"
63502
+ }), method(object({
63503
+ deviceId: number$1(),
63504
+ identifiers: DeviceIdentifiersSchema.nullable(),
63505
+ /** Kinds the provider tried to read and could not: their stored value is kept. */
63506
+ unread: array(DeviceIdentifierKeySchema).optional()
63507
+ }), _void(), {
63508
+ kind: "mutation",
63509
+ auth: "admin"
63510
+ }), method(object({ deviceId: number$1().int().optional() }), IdentityLinksReadSchema, {
63511
+ kind: "query",
63512
+ auth: "admin"
63513
+ }), method(object({ linkId: string().min(1) }), IdentityLinkDecisionSchema, {
63514
+ kind: "mutation",
63515
+ auth: "admin"
63516
+ }), method(object({ linkId: string().min(1) }), IdentityLinkDecisionSchema, {
63517
+ kind: "mutation",
63518
+ auth: "admin"
63519
+ }), method(object({ linkId: string().min(1) }), IdentityLinkDecisionSchema, {
63520
+ kind: "mutation",
63521
+ auth: "admin"
63029
63522
  }), method(_void(), array(string())), method(object({ name: string() }), _void(), {
63030
63523
  kind: "mutation",
63031
63524
  auth: "admin"
@@ -63976,8 +64469,12 @@ var ClaimsListingSchema = discriminatedUnion("state", [object({
63976
64469
  })]);
63977
64470
  method(object({ deviceId: number$1() }), record$1(string(), record$1(string(), unknown()))), method(object({
63978
64471
  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({
64472
+ capName: string(),
64473
+ /** The slice the device CONFIRMED, without a held command (D1061) — history and automations. */
64474
+ confirmed: boolean().optional()
64475
+ }), record$1(string(), unknown()).nullable()), method(object({
64476
+ /** The slices the devices CONFIRMED, without held commands (D1061). */
64477
+ confirmed: boolean().optional() }), record$1(string(), record$1(string(), record$1(string(), unknown())))), method(object({
63981
64478
  deviceId: number$1(),
63982
64479
  capName: string(),
63983
64480
  slice: record$1(string(), unknown())
@@ -64015,6 +64512,88 @@ method(object({ deviceId: number$1() }), record$1(string(), record$1(string(), u
64015
64512
  slice: record$1(string(), unknown())
64016
64513
  }));
64017
64514
  /**
64515
+ * Server-driven device state refresh (D1062): the core decides WHEN a device is
64516
+ * re-read, the integration only knows HOW.
64517
+ *
64518
+ * A provider states its policy where it registers the device's
64519
+ * `device-state-refresh` cap (`ctx.registerNativeCap(cap, provider, {
64520
+ * stateRefresh })`). It reaches the hub by the road the command-hold options
64521
+ * take (D1061): written directly in-process, carried on a forked child's cap
64522
+ * descriptors otherwise. Plain data, wire-safe.
64523
+ */
64524
+ /** Why the core asks for a refresh. */
64525
+ var StateRefreshReasonSchema = _enum([
64526
+ "schedule",
64527
+ "command",
64528
+ "burst"
64529
+ ]);
64530
+ /**
64531
+ * What arrives without asking: `none` (everything is read), `partial` (some
64532
+ * fields arrive by push, the rest is read on the schedule), `full` (everything
64533
+ * arrives by push — never read on a schedule).
64534
+ */
64535
+ var StateRefreshPushSchema = _enum([
64536
+ "none",
64537
+ "partial",
64538
+ "full"
64539
+ ]);
64540
+ object({
64541
+ /**
64542
+ * The integration instance the device belongs to. Devices of one instance
64543
+ * share one schedule group: a batching provider is asked once for all of
64544
+ * them, and the heartbeat is judged across them.
64545
+ */
64546
+ integrationId: string().min(1),
64547
+ /** The fastest interval the integration can afford for its devices. The core polls at it by default. */
64548
+ minIntervalMs: number$1().int().min(1e3),
64549
+ /**
64550
+ * The operator's per-integration setting, when there is one. It can only SLOW
64551
+ * the cadence: the core polls at `max(minIntervalMs, intervalMs)`.
64552
+ */
64553
+ intervalMs: number$1().int().positive().optional(),
64554
+ /** One `refresh` call can read every device of the integration at once. */
64555
+ batch: boolean(),
64556
+ push: StateRefreshPushSchema,
64557
+ /** Longest silence a push integration may keep before the core re-reads it and asks it to resubscribe. */
64558
+ heartbeatMs: number$1().int().positive().optional(),
64559
+ /**
64560
+ * Bumped by the provider each time its push subscription reconnected on its
64561
+ * own. A change makes the core re-read every device of the integration
64562
+ * (pushes lost while it was down; events may be dropped, D8).
64563
+ */
64564
+ connectionEpoch: number$1().int().nonnegative().optional()
64565
+ });
64566
+ /**
64567
+ * device-state-refresh — the HOW of a device's state refresh, called by the
64568
+ * core, which owns the WHEN (D1062).
64569
+ *
64570
+ * The provider registers it per device with its policy
64571
+ * (`registerNativeCap(cap, provider, { stateRefresh })`). The hub's scheduler
64572
+ * calls `refresh` on the schedule, after a command and in the burst that
64573
+ * follows it, and `resubscribe` when a push integration fell silent. The
64574
+ * provider re-reads and writes the slices it already writes; nothing is
64575
+ * returned but completion.
64576
+ */
64577
+ var DeviceStateRefreshInputSchema = object({
64578
+ /** The device the call is routed by (one of `deviceIds`). */
64579
+ deviceId: number$1().int().nonnegative(),
64580
+ /** Every device to re-read: one, or the integration's whole set when the provider batches. */
64581
+ deviceIds: array(number$1().int().nonnegative()).min(1),
64582
+ reason: StateRefreshReasonSchema
64583
+ });
64584
+ var DeviceStateResubscribeInputSchema = object({ deviceId: number$1().int().nonnegative() });
64585
+ var DeviceStateRefreshResultSchema = object({ ok: literal(true) });
64586
+ var NOT_OPERATOR_FACING = "the core schedules state refreshes itself; an operator never asks for one";
64587
+ method(DeviceStateRefreshInputSchema, DeviceStateRefreshResultSchema, {
64588
+ kind: "mutation",
64589
+ auth: "admin",
64590
+ notOperatorFacing: NOT_OPERATOR_FACING
64591
+ }), method(DeviceStateResubscribeInputSchema, DeviceStateRefreshResultSchema, {
64592
+ kind: "mutation",
64593
+ auth: "admin",
64594
+ notOperatorFacing: NOT_OPERATOR_FACING
64595
+ });
64596
+ /**
64018
64597
  * Generic device-level status snapshot. Auto-registered by `BaseDevice`
64019
64598
  * for every device, regardless of provider — the kernel needs a uniform
64020
64599
  * cap-keyed slice for the basic device flags every consumer expects to
@@ -66424,7 +67003,15 @@ var fanControlCapability = {
66424
67003
  field: "speed",
66425
67004
  value: 100
66426
67005
  },
66427
- args: { speed: 100 }
67006
+ args: { speed: 100 },
67007
+ sideEffects: [{
67008
+ field: "preset",
67009
+ value: "",
67010
+ when: {
67011
+ field: "preset",
67012
+ notIn: [""]
67013
+ }
67014
+ }]
66428
67015
  },
66429
67016
  {
66430
67017
  id: "fan.speed",
@@ -66435,6 +67022,14 @@ var fanControlCapability = {
66435
67022
  field: "speed",
66436
67023
  fromArg: "speed"
66437
67024
  },
67025
+ sideEffects: [{
67026
+ field: "preset",
67027
+ value: "",
67028
+ when: {
67029
+ field: "preset",
67030
+ notIn: [""]
67031
+ }
67032
+ }],
66438
67033
  openArgs: [{
66439
67034
  key: "speed",
66440
67035
  label: t("Speed", "Velocità"),
@@ -66460,6 +67055,10 @@ var fanControlCapability = {
66460
67055
  label: t("Set preset", "Imposta il preset"),
66461
67056
  phrase: t("Set {device} to preset {preset}", "Imposta {device} sul preset {preset}"),
66462
67057
  icon: "list",
67058
+ effect: {
67059
+ field: "preset",
67060
+ fromArg: "preset"
67061
+ },
66463
67062
  openArgs: [{
66464
67063
  key: "preset",
66465
67064
  label: t("Preset", "Preset"),
@@ -68190,7 +68789,7 @@ var HeroSceneSchema = object({
68190
68789
  level: number$1().min(0).max(1).nullable()
68191
68790
  });
68192
68791
  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;
68792
+ 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
68793
  var HeroRowIdSchema = _enum([
68195
68794
  "progress",
68196
68795
  "run-for",
@@ -69462,6 +70061,16 @@ var IntegrationInstanceStatusSchema = object({
69462
70061
  /** A short human word for the state ("Signed in", "Token expired"); shown instead of `state`. */
69463
70062
  label: string().optional()
69464
70063
  });
70064
+ /**
70065
+ * What "Add device" inside ONE instance offers, decided per instance by its provider. `scan`: the
70066
+ * LAN scan finds devices this instance holds; `children`: only the instance's own children, via
70067
+ * adoption (a scan would offer other hosts, which are new integrations); `none`: manual add only.
70068
+ */
70069
+ var IntegrationInstanceAddDeviceSchema = _enum([
70070
+ "scan",
70071
+ "children",
70072
+ "none"
70073
+ ]);
69465
70074
  var IntegrationInstanceSchema = object({
69466
70075
  id: IntegrationInstanceIdSchema,
69467
70076
  name: string(),
@@ -69479,7 +70088,9 @@ var IntegrationInstanceSchema = object({
69479
70088
  formValues: record$1(string(), unknown()),
69480
70089
  status: IntegrationInstanceStatusSchema.optional(),
69481
70090
  /** Epoch ms of the last probe of the remote that produced `status`; absent when never checked. */
69482
- lastCheckedAt: number$1().optional()
70091
+ lastCheckedAt: number$1().optional(),
70092
+ /** 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). */
70093
+ addDevice: IntegrationInstanceAddDeviceSchema.optional()
69483
70094
  });
69484
70095
  var IntegrationInstancePatchSchema = object({
69485
70096
  id: IntegrationInstanceIdSchema,
@@ -71630,6 +72241,14 @@ var lockControlCapability = {
71630
72241
  field: "state",
71631
72242
  value: "locked"
71632
72243
  },
72244
+ hold: { effects: [{
72245
+ field: "state",
72246
+ value: "locking",
72247
+ when: {
72248
+ field: "state",
72249
+ notIn: ["locked"]
72250
+ }
72251
+ }] },
71633
72252
  openArgs: [{
71634
72253
  key: "code",
71635
72254
  label: t("PIN code", "Codice PIN"),
@@ -71663,6 +72282,14 @@ var lockControlCapability = {
71663
72282
  field: "state",
71664
72283
  value: "unlocked"
71665
72284
  },
72285
+ hold: { effects: [{
72286
+ field: "state",
72287
+ value: "unlocking",
72288
+ when: {
72289
+ field: "state",
72290
+ notIn: ["unlocked"]
72291
+ }
72292
+ }] },
71666
72293
  openArgs: [{
71667
72294
  key: "code",
71668
72295
  label: t("PIN code", "Codice PIN"),
@@ -76052,6 +76679,16 @@ DeviceType.Camera, method(object({ deviceId: number$1() }), array(TrackSchema).r
76052
76679
  timestamp: number$1()
76053
76680
  }), EventCategory.PipelineAnalyticsDetectionEvent, EventCategory.PipelineAnalyticsPackageDelivered, EventCategory.PipelineAnalyticsPackagePickedUp;
76054
76681
  /**
76682
+ * A rectangle as a fraction of a frame, `[0, 1]` on both axes — the wire shape
76683
+ * of `NormalizedRect` (which is derived from it).
76684
+ */
76685
+ var NormalizedRectSchema = object({
76686
+ x: number$1(),
76687
+ y: number$1(),
76688
+ w: number$1(),
76689
+ h: number$1()
76690
+ });
76691
+ /**
76055
76692
  * A root model's boxes standing in for one crop-kind step's own inference
76056
76693
  * (D730) — see `runPipeline.suppliedRoot`.
76057
76694
  */
@@ -76444,7 +77081,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
76444
77081
  * reader) run on them through their own crop policy. Boxes are in the
76445
77082
  * PIXELS of the image this call carries. Absent ⇒ the root step runs.
76446
77083
  */
76447
- suppliedRoot: SuppliedRootOutputSchema.optional()
77084
+ suppliedRoot: SuppliedRootOutputSchema.optional(),
77085
+ /**
77086
+ * The motion analyzer's merged subjects (D394) for this camera, fresh,
77087
+ * normalised to the frame (0..1). Feeds the motion-guided root crop
77088
+ * (D1060): the executor picks per frame whether the object-detection
77089
+ * root runs on the full frame or on a crop around them. Honoured only
77090
+ * on the live `frame` plane with a `frameRef`. Absent or empty ⇒ no
77091
+ * motion known ⇒ full frame.
77092
+ */
77093
+ motionRegions: array(NormalizedRectSchema).optional()
76448
77094
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
76449
77095
  steps: array(PipelineStepInputSchema).min(1),
76450
77096
  frames: array(FrameInputSchema).min(1).max(255),
@@ -77536,7 +78182,15 @@ var RunnerInferenceDeviceSchema = object({
77536
78182
  * Absent field ⇒ an orchestrator that predates D650: the jumped step keeps
77537
78183
  * the elected device's provisioning, as before.
77538
78184
  */
77539
- steps: record$1(string(), RunnerJumpStepProvisioningSchema).optional()
78185
+ steps: record$1(string(), RunnerJumpStepProvisioningSchema).optional(),
78186
+ /**
78187
+ * Steps switched OFF on this device (D1065, `inferenceDevices[key].steps[s]
78188
+ * .enabled === false`). The runner never runs a subtree containing one of
78189
+ * them here: it auto-jumps it to an allowed device, and when none can take
78190
+ * it the subtree is skipped (`disabled-on-device`), never run here anyway.
78191
+ * Absent ⇒ none (an orchestrator that predates D1065).
78192
+ */
78193
+ disabledSteps: array(string()).readonly().optional()
77540
78194
  });
77541
78195
  /**
77542
78196
  * Camera assignment payload sent by `addon-pipeline-orchestrator` to a
@@ -83180,6 +83834,14 @@ method(object({ deviceId: number$1().int() }), object({
83180
83834
  auth: "admin"
83181
83835
  }), NOT_A_DEVICE.PIPELINE;
83182
83836
  /**
83837
+ * Hold limits a cap's vocabulary may declare on an action (D1061).
83838
+ *
83839
+ * A one-shot command (feed, run a script) has no lasting state to confirm; it
83840
+ * holds its in-progress flag just long enough that a second tap, before the
83841
+ * device reports, is seen as "already running" and refused.
83842
+ */
83843
+ var ONE_SHOT_HOLD_MS = 1e4;
83844
+ /**
83183
83845
  * Feeder connectivity / power status — mirrors the HA petkit device-status
83184
83846
  * enum: `normal` (online, mains), `offline` (not reaching PetKit cloud),
83185
83847
  * `on_batteries` (running on battery backup). `null` until first reported.
@@ -83297,6 +83959,13 @@ var petFeederCapability = {
83297
83959
  label: t("Feed", "Dai da mangiare"),
83298
83960
  phrase: t("Dispense {grams} from {device}", "Eroga {grams} da {device}"),
83299
83961
  icon: "paw-print",
83962
+ hold: {
83963
+ effects: [{
83964
+ field: "feeding",
83965
+ value: true
83966
+ }],
83967
+ holdMs: ONE_SHOT_HOLD_MS
83968
+ },
83300
83969
  openArgs: [{
83301
83970
  key: "grams",
83302
83971
  label: t("Grams", "Grammi"),
@@ -83315,6 +83984,13 @@ var petFeederCapability = {
83315
83984
  label: t("Feed from both hoppers", "Eroga da entrambi i serbatoi"),
83316
83985
  phrase: t("Dispense {hopper1} and {hopper2} from {device}", "Eroga {hopper1} e {hopper2} da {device}"),
83317
83986
  icon: "paw-print",
83987
+ hold: {
83988
+ effects: [{
83989
+ field: "feeding",
83990
+ value: true
83991
+ }],
83992
+ holdMs: ONE_SHOT_HOLD_MS
83993
+ },
83318
83994
  openArgs: [{
83319
83995
  key: "hopper1",
83320
83996
  label: t("Hopper 1", "Serbatoio 1"),
@@ -83420,12 +84096,20 @@ var petFeederCapability = {
83420
84096
  auth: "protected",
83421
84097
  actions: [{
83422
84098
  id: "petFeeder.childLockOn",
84099
+ effect: {
84100
+ field: "childLock",
84101
+ value: true
84102
+ },
83423
84103
  label: t("Child lock on", "Blocco bambini attivo"),
83424
84104
  phrase: t("Turn on the child lock of {device}", "Attiva il blocco bambini di {device}"),
83425
84105
  icon: "lock",
83426
84106
  args: { on: true }
83427
84107
  }, {
83428
84108
  id: "petFeeder.childLockOff",
84109
+ effect: {
84110
+ field: "childLock",
84111
+ value: false
84112
+ },
83429
84113
  label: t("Child lock off", "Blocco bambini spento"),
83430
84114
  phrase: t("Turn off the child lock of {device}", "Disattiva il blocco bambini di {device}"),
83431
84115
  icon: "lock-open",
@@ -83441,12 +84125,20 @@ var petFeederCapability = {
83441
84125
  auth: "protected",
83442
84126
  actions: [{
83443
84127
  id: "petFeeder.lightOn",
84128
+ effect: {
84129
+ field: "indicatorLight",
84130
+ value: true
84131
+ },
83444
84132
  label: t("Indicator light on", "Spia accesa"),
83445
84133
  phrase: t("Turn on the indicator light of {device}", "Accendi la spia di {device}"),
83446
84134
  icon: "lightbulb",
83447
84135
  args: { on: true }
83448
84136
  }, {
83449
84137
  id: "petFeeder.lightOff",
84138
+ effect: {
84139
+ field: "indicatorLight",
84140
+ value: false
84141
+ },
83450
84142
  label: t("Indicator light off", "Spia spenta"),
83451
84143
  phrase: t("Turn off the indicator light of {device}", "Spegni la spia di {device}"),
83452
84144
  icon: "lightbulb-off",
@@ -83462,12 +84154,20 @@ var petFeederCapability = {
83462
84154
  auth: "protected",
83463
84155
  actions: [{
83464
84156
  id: "petFeeder.feedSoundOn",
84157
+ effect: {
84158
+ field: "feedSound",
84159
+ value: true
84160
+ },
83465
84161
  label: t("Feeding sound on", "Suono di erogazione attivo"),
83466
84162
  phrase: t("Turn on the feeding sound of {device}", "Attiva il suono di erogazione di {device}"),
83467
84163
  icon: "volume-2",
83468
84164
  args: { on: true }
83469
84165
  }, {
83470
84166
  id: "petFeeder.feedSoundOff",
84167
+ effect: {
84168
+ field: "feedSound",
84169
+ value: false
84170
+ },
83471
84171
  label: t("Feeding sound off", "Suono di erogazione spento"),
83472
84172
  phrase: t("Turn off the feeding sound of {device}", "Disattiva il suono di erogazione di {device}"),
83473
84173
  icon: "volume-x",
@@ -83483,6 +84183,10 @@ var petFeederCapability = {
83483
84183
  auth: "protected",
83484
84184
  actions: [{
83485
84185
  id: "petFeeder.volume",
84186
+ effect: {
84187
+ field: "volume",
84188
+ fromArg: "level"
84189
+ },
83486
84190
  label: t("Set volume", "Imposta il volume"),
83487
84191
  phrase: t("Set the volume of {device} to {level}", "Imposta il volume di {device} a {level}"),
83488
84192
  icon: "volume-2",
@@ -83628,12 +84332,20 @@ setPump: method(object({
83628
84332
  auth: "protected",
83629
84333
  actions: [{
83630
84334
  id: "petFountain.pumpOn",
84335
+ effect: {
84336
+ field: "pumpRunning",
84337
+ value: true
84338
+ },
83631
84339
  label: t("Pump on", "Pompa accesa"),
83632
84340
  phrase: t("Start the pump of {device}", "Avvia la pompa di {device}"),
83633
84341
  icon: "play",
83634
84342
  args: { on: true }
83635
84343
  }, {
83636
84344
  id: "petFountain.pumpOff",
84345
+ effect: {
84346
+ field: "pumpRunning",
84347
+ value: false
84348
+ },
83637
84349
  label: t("Pump off", "Pompa spenta"),
83638
84350
  phrase: t("Stop the pump of {device}", "Ferma la pompa di {device}"),
83639
84351
  icon: "square",
@@ -84180,7 +84892,15 @@ var DeviceStepConfigSchema = object({
84180
84892
  * at a disabled/absent device on that node at save time. Absent ⇒ the runner
84181
84893
  * auto-jumps only when the effective device's format cannot run the step.
84182
84894
  */
84183
- jumpDeviceKey: string().optional()
84895
+ jumpDeviceKey: string().optional(),
84896
+ /**
84897
+ * DEVICE switch for this step (D1065). `false` = the step is never
84898
+ * provisioned on this accelerator: a detail step jumps to another enabled
84899
+ * device of the node where it is allowed, else it is skipped with reason
84900
+ * `disabled-on-device`; a root is skipped. Absent = inherit (on). Written by
84901
+ * `setDeviceStepEnabled`.
84902
+ */
84903
+ enabled: boolean().optional()
84184
84904
  });
84185
84905
  var AgentPipelineSettingsSchema = object({
84186
84906
  maxCameras: number$1().int().nonnegative().nullable().default(null),
@@ -84224,6 +84944,12 @@ var AgentPipelineSettingsSchema = object({
84224
84944
  */
84225
84945
  stepSettings: record$1(string(), record$1(string(), unknown()).readonly()).optional(),
84226
84946
  /**
84947
+ * NODE switch per step (D1065): `stepId → enabled`. `false` = the step never
84948
+ * runs on a camera whose pipeline runs on this node (skip reason
84949
+ * `disabled-on-node`). Absent = inherit. Written by `setNodeStepEnabled`.
84950
+ */
84951
+ stepEnabled: record$1(string(), boolean()).optional(),
84952
+ /**
84227
84953
  * Multi-device inference opt-in (Phase 4). Per-node map deviceKey → {enabled,
84228
84954
  * weight, steps}. Absent / all-disabled ⇒ the node's single default
84229
84955
  * accelerator (safe default); two+ enabled ⇒ the dispatcher balances
@@ -84545,7 +85271,8 @@ var InferenceDeviceExclusionReasonSchema = _enum([
84545
85271
  "disabled",
84546
85272
  "unavailable",
84547
85273
  "cannot-host-camera-root",
84548
- "accelerator-preferred"
85274
+ "accelerator-preferred",
85275
+ "root-switched-off"
84549
85276
  ]);
84550
85277
  var NodeInferenceDeviceSchema = object({
84551
85278
  /** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
@@ -84631,6 +85358,75 @@ var NodeInferenceDevicesSchema = object({
84631
85358
  devices: array(NodeInferenceDeviceSchema).readonly()
84632
85359
  });
84633
85360
  /**
85361
+ * The CLUSTER switch of one pipeline step (D1065):
85362
+ * - `off` — hard off: no camera, node or device can turn it on;
85363
+ * - `on` — on by default; a camera may turn it off (`stepToggles`);
85364
+ * - `opt-in` — off by default; a camera turns it on (`stepToggles`).
85365
+ * Absent = the catalog's `enabledByDefault` (`true` → `on`, `false` → `opt-in`).
85366
+ */
85367
+ var StepClusterModeSchema = _enum([
85368
+ "off",
85369
+ "on",
85370
+ "opt-in"
85371
+ ]);
85372
+ /**
85373
+ * What one step does on one (node, device) — computed by the orchestrator with
85374
+ * the SAME placement function the attach path runs (`pipeline-resolver.ts`),
85375
+ * so a client never re-derives it. Precedence: cluster off > camera toggle
85376
+ * (else the cluster default) > node off > device off / jump.
85377
+ */
85378
+ var StepSwitchCellSchema = discriminatedUnion("kind", [
85379
+ object({ kind: literal("on") }),
85380
+ object({ kind: literal("off-cluster") }),
85381
+ object({ kind: literal("off-node") }),
85382
+ object({ kind: literal("off-device") }),
85383
+ object({
85384
+ kind: literal("jump"),
85385
+ toDeviceKey: string()
85386
+ }),
85387
+ object({
85388
+ kind: literal("skip"),
85389
+ reason: _enum(["no-compatible-model", "root-not-runnable-on-elected-device"])
85390
+ }),
85391
+ object({ kind: literal("zone-driven") }),
85392
+ object({
85393
+ kind: literal("supplied-by-root"),
85394
+ rootModelId: string()
85395
+ }),
85396
+ object({ kind: literal("opt-in-unused") })
85397
+ ]);
85398
+ var StepSwitchDeviceSchema = object({
85399
+ deviceKey: string(),
85400
+ format: _enum(MODEL_FORMATS),
85401
+ /** The device switch as stored (`inferenceDevices[key].steps[step].enabled`); `null` = inherit. */
85402
+ stepEnabled: boolean().nullable(),
85403
+ /** Whether the device is in the node's dispatch roster (enabled, available, not excluded). */
85404
+ eligible: boolean(),
85405
+ cell: StepSwitchCellSchema
85406
+ });
85407
+ var StepSwitchNodeSchema = object({
85408
+ nodeId: string(),
85409
+ /** False when the node's catalog or device probe did not answer — no cells are claimed. */
85410
+ reachable: boolean(),
85411
+ /** The node switch as stored (`stepEnabled[step]`); `null` = inherit. */
85412
+ stepEnabled: boolean().nullable(),
85413
+ devices: array(StepSwitchDeviceSchema).readonly()
85414
+ });
85415
+ var StepSwitchMatrixSchema = object({ steps: array(object({
85416
+ stepId: string(),
85417
+ name: string(),
85418
+ slot: string(),
85419
+ /** The stored cluster mode; `null` = the catalog default applies. */
85420
+ clusterMode: StepClusterModeSchema.nullable(),
85421
+ /** The mode in force (stored, else derived from `enabledByDefault`). */
85422
+ effectiveMode: StepClusterModeSchema,
85423
+ /** Cameras whose `stepToggles[step]` is `true`. */
85424
+ camerasEnabling: number$1().int().nonnegative(),
85425
+ /** Cameras whose `stepToggles[step]` is `false`. */
85426
+ camerasDisabling: number$1().int().nonnegative(),
85427
+ nodes: array(StepSwitchNodeSchema).readonly()
85428
+ })).readonly() });
85429
+ /**
84634
85430
  * Pipeline Orchestrator capability — global load balancer + camera dispatcher.
84635
85431
  *
84636
85432
  * Lives on the hub. Tracks the camera-to-agent assignment map, listens to
@@ -84801,7 +85597,28 @@ method(object({
84801
85597
  }), object({ success: literal(true) }), {
84802
85598
  kind: "mutation",
84803
85599
  auth: "admin"
84804
- }), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({
85600
+ }), method(object({
85601
+ stepId: string(),
85602
+ mode: StepClusterModeSchema.nullable()
85603
+ }), object({ success: literal(true) }), {
85604
+ kind: "mutation",
85605
+ auth: "admin"
85606
+ }), method(object({
85607
+ agentNodeId: string(),
85608
+ stepId: string(),
85609
+ enabled: boolean().nullable()
85610
+ }), object({ success: literal(true) }), {
85611
+ kind: "mutation",
85612
+ auth: "admin"
85613
+ }), method(object({
85614
+ agentNodeId: string(),
85615
+ deviceKey: string(),
85616
+ stepId: string(),
85617
+ enabled: boolean().nullable()
85618
+ }), object({ success: literal(true) }), {
85619
+ kind: "mutation",
85620
+ auth: "admin"
85621
+ }), method(_void(), StepSwitchMatrixSchema), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({
84805
85622
  agentNodeId: string(),
84806
85623
  deviceKey: string()
84807
85624
  }), object({ success: literal(true) }), {
@@ -85216,6 +86033,16 @@ var CoralInfoSchema = object({
85216
86033
  reason: _enum(["driver-missing", "device-not-accessible"])
85217
86034
  })).readonly().optional()
85218
86035
  });
86036
+ var NvidiaInfoBaseSchema = object({
86037
+ type: literal("nvidia"),
86038
+ name: string(),
86039
+ memoryMB: number$1().optional()
86040
+ });
86041
+ /** An NVIDIA GPU: usable ⇔ the CUDA execution provider exists; otherwise the reason. */
86042
+ var NvidiaInfoSchema = discriminatedUnion("usable", [NvidiaInfoBaseSchema.extend({ usable: literal(true) }), NvidiaInfoBaseSchema.extend({
86043
+ usable: literal(false),
86044
+ reason: _enum(["no-cuda-execution-provider"])
86045
+ })]);
85219
86046
  var HardwareInfoSchema = object({
85220
86047
  platform: HardwarePlatformSchema,
85221
86048
  arch: HardwareArchSchema,
@@ -85226,6 +86053,7 @@ var HardwareInfoSchema = object({
85226
86053
  gpu: GpuInfoSchema.nullable(),
85227
86054
  npu: NpuInfoSchema.nullable(),
85228
86055
  coral: CoralInfoSchema.nullable().optional(),
86056
+ nvidia: NvidiaInfoSchema.nullable().optional(),
85229
86057
  /**
85230
86058
  * Per-accelerator compute (D930). Omitted by a node that has not probed it.
85231
86059
  * `null` fields inside an entry are a failed query, never a zero.
@@ -85313,8 +86141,14 @@ method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema)
85313
86141
  * in real-world devices.
85314
86142
  */
85315
86143
  var PowerMeterStatusSchema = object({
85316
- /** Instantaneous power draw (watts). */
86144
+ /** Instantaneous TOTAL power draw of the device (watts), when known. */
85317
86145
  power: number$1().optional().meta(readingMeta("power", { label: "Power" })),
86146
+ /**
86147
+ * Power the device passes on to downstream loads (watts), e.g. the PoE a switch delivers to
86148
+ * its ports. When `power` is known it already includes this (the own draw is `netPowerOf`);
86149
+ * a device that reports no total (a UniFi switch) carries this field alone.
86150
+ */
86151
+ deliveredPower: number$1().optional().meta(readingMeta("power", { label: "Delivered" })),
85318
86152
  /** Cumulative energy in kilowatt-hours since the meter was reset. */
85319
86153
  energy: number$1().optional().meta(readingMeta("energy", { label: "Energy" })),
85320
86154
  /** Voltage (volts). */
@@ -85349,7 +86183,8 @@ var POWER_METER_DEVICE_TYPES = [
85349
86183
  DeviceType.Dishwasher,
85350
86184
  DeviceType.Vacuum,
85351
86185
  DeviceType.LawnMower,
85352
- DeviceType.PetFeeder
86186
+ DeviceType.PetFeeder,
86187
+ DeviceType.Workload
85353
86188
  ];
85354
86189
  /** Everything but a bare `Sensor`: a sensor that takes its reading from another sensor adds nothing. */
85355
86190
  var POWER_METER_CUSTOMIZE_DEVICE_TYPES = POWER_METER_DEVICE_TYPES.filter((type) => type !== DeviceType.Sensor);
@@ -86404,12 +87239,20 @@ var pumpCycleCapability = {
86404
87239
  auth: "protected",
86405
87240
  actions: [{
86406
87241
  id: "pumpCycle.on",
87242
+ effect: {
87243
+ field: "enabled",
87244
+ value: true
87245
+ },
86407
87246
  label: t("Pump cycle on", "Ciclo pompa attivo"),
86408
87247
  phrase: t("Run the pump of {device} on its on/off cycle", "Fai lavorare la pompa di {device} a ciclo acceso/spento"),
86409
87248
  icon: "timer",
86410
87249
  args: { on: true }
86411
87250
  }, {
86412
87251
  id: "pumpCycle.off",
87252
+ effect: {
87253
+ field: "enabled",
87254
+ value: false
87255
+ },
86413
87256
  label: t("Pump cycle off", "Ciclo pompa spento"),
86414
87257
  phrase: t("Run the pump of {device} continuously", "Fai lavorare la pompa di {device} in continuo"),
86415
87258
  icon: "timer-off",
@@ -86428,6 +87271,11 @@ var pumpCycleCapability = {
86428
87271
  label: t("Set pump run time", "Imposta il tempo di lavoro della pompa"),
86429
87272
  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
87273
  icon: "timer",
87274
+ effect: {
87275
+ field: "onTime",
87276
+ fromArg: "minutes",
87277
+ scale: 60
87278
+ },
86431
87279
  openArgs: [{
86432
87280
  key: "minutes",
86433
87281
  label: t("Minutes", "Minuti"),
@@ -86452,6 +87300,11 @@ var pumpCycleCapability = {
86452
87300
  label: t("Set pump rest time", "Imposta il tempo di riposo della pompa"),
86453
87301
  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
87302
  icon: "timer-off",
87303
+ effect: {
87304
+ field: "offTime",
87305
+ fromArg: "minutes",
87306
+ scale: 60
87307
+ },
86455
87308
  openArgs: [{
86456
87309
  key: "minutes",
86457
87310
  label: t("Minutes", "Minuti"),
@@ -89981,7 +90834,14 @@ var scriptRunnerCapability = {
89981
90834
  id: "script.run",
89982
90835
  label: t("Run script", "Esegui lo script"),
89983
90836
  phrase: t("Run {device}", "Esegui {device}"),
89984
- icon: "scroll-text"
90837
+ icon: "scroll-text",
90838
+ hold: {
90839
+ effects: [{
90840
+ field: "isRunning",
90841
+ value: true
90842
+ }],
90843
+ holdMs: ONE_SHOT_HOLD_MS
90844
+ }
89985
90845
  }]
89986
90846
  }),
89987
90847
  /** Cancel a running script. Provider rejects when the script
@@ -89991,6 +90851,10 @@ var scriptRunnerCapability = {
89991
90851
  auth: "admin",
89992
90852
  actions: [{
89993
90853
  id: "script.stop",
90854
+ effect: {
90855
+ field: "isRunning",
90856
+ value: false
90857
+ },
89994
90858
  label: t("Stop script", "Ferma lo script"),
89995
90859
  phrase: t("Stop {device}", "Ferma {device}"),
89996
90860
  icon: "square"
@@ -91849,6 +92713,10 @@ var switchCapability = {
91849
92713
  auth: "protected",
91850
92714
  actions: [{
91851
92715
  id: "switch.toggle",
92716
+ sideEffects: [{
92717
+ field: "on",
92718
+ negate: true
92719
+ }],
91852
92720
  label: t("Toggle", "Commuta"),
91853
92721
  phrase: t("Toggle {device}", "Commuta {device}"),
91854
92722
  icon: "toggle-right",
@@ -98033,6 +98901,20 @@ var BaseDevice = class {
98033
98901
  }, raw, options);
98034
98902
  }
98035
98903
  /**
98904
+ * Declare the identity of the device at the FAR END of this device's physical
98905
+ * link (D1063): a PoE port's wired client. Same normalisation, `unread`
98906
+ * rule and owner check as {@link declareIdentifiers}, written through
98907
+ * `device-manager.setAttachedIdentifiers`. It never makes the two devices the
98908
+ * same device. Best-effort: never throws.
98909
+ */
98910
+ async declareAttachedIdentifiers(raw, options) {
98911
+ return declareDeviceIdentifiers({
98912
+ deviceId: this.id,
98913
+ logger: this.ctx.logger,
98914
+ writer: this.ctx.api.deviceManager?.setAttachedIdentifiers
98915
+ }, raw, options);
98916
+ }
98917
+ /**
98036
98918
  * Re-publish the device's current `features` array to the persisted
98037
98919
  * meta blob. Drivers call this after a probe finishes when the live
98038
98920
  * `features` getter has gained new flags (e.g. `hasIntercom` flips
@@ -99763,23 +100645,56 @@ var fountainContribution = contribution("pet-fountain", PetFountainStatusSchema,
99763
100645
  };
99764
100646
  });
99765
100647
  var minutesOf = (seconds) => Math.max(0, Math.round(seconds / 60));
100648
+ var pumpCycleContribution = contribution("pump-cycle", PumpCycleStatusSchema, (slice) => {
100649
+ const enabled = slice?.enabled ?? null;
100650
+ 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;
100651
+ return { rows: [row$1("pump-cycle", "timer", enabled === null ? unknownText : enabled ? joinText([t("Cycling", "A cicli"), cycle]) : t("Runs continuously", "Sempre attiva"), [{
100652
+ kind: "toggle",
100653
+ id: "pump-cycle.enabled",
100654
+ label: t("Pump cycle", "Ciclo pompa"),
100655
+ on: enabled,
100656
+ turnOn: action("pump-cycle.on", t("Cycle the pump", "Attiva il ciclo"), "timer", "pump-cycle", "setEnabled", { on: true }),
100657
+ turnOff: action("pump-cycle.off", t("Run continuously", "Sempre attiva"), "timer-off", "pump-cycle", "setEnabled", { on: false })
100658
+ }])] };
100659
+ });
100660
+ var WORKLOAD_WORDS = {
100661
+ running: {
100662
+ state: "on",
100663
+ title: t("Running", "In esecuzione")
100664
+ },
100665
+ paused: {
100666
+ state: "standby",
100667
+ title: t("Paused", "In pausa")
100668
+ },
100669
+ stopped: {
100670
+ state: "off",
100671
+ title: t("Stopped", "Fermo")
100672
+ },
100673
+ starting: {
100674
+ state: "running",
100675
+ title: t("Starting", "In avvio")
100676
+ },
100677
+ stopping: {
100678
+ state: "running",
100679
+ title: t("Stopping", "In arresto")
100680
+ },
100681
+ crashed: {
100682
+ state: "alert",
100683
+ title: t("Crashed", "Andato in errore")
100684
+ }
100685
+ };
99766
100686
  var DEVICES_FAMILY_CONTRIBUTIONS = {
99767
100687
  "fan-control": fanContribution,
99768
100688
  "vacuum-control": vacuumContribution,
99769
100689
  "lawn-mower-control": mowerContribution,
99770
100690
  "pet-feeder": feederContribution,
99771
100691
  "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
- }])] };
100692
+ "pump-cycle": pumpCycleContribution,
100693
+ workload: contribution("workload", WorkloadStatusSchema, (slice) => {
100694
+ const state = slice?.state ?? null;
100695
+ if (state === null) return { reading: reading$1("workload", "unknown") };
100696
+ const words = WORKLOAD_WORDS[state];
100697
+ return { reading: reading$1("workload", words.state, false, words.title) };
99783
100698
  })
99784
100699
  };
99785
100700
  /**
@@ -101794,7 +102709,7 @@ lookOf({
101794
102709
  });
101795
102710
  DeviceType.Climate;
101796
102711
  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;
102712
+ 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
102713
  Object.freeze({
101799
102714
  "accessories.getStatus": {
101800
102715
  capName: "accessories",
@@ -103994,6 +104909,13 @@ Object.freeze({
103994
104909
  access: "create",
103995
104910
  role: "admin"
103996
104911
  },
104912
+ "deviceManager.confirmIdentityLink": {
104913
+ capName: "device-manager",
104914
+ capScope: "system",
104915
+ addonId: null,
104916
+ access: "create",
104917
+ role: "admin"
104918
+ },
103997
104919
  "deviceManager.createDevice": {
103998
104920
  capName: "device-manager",
103999
104921
  capScope: "system",
@@ -104043,6 +104965,13 @@ Object.freeze({
104043
104965
  access: "create",
104044
104966
  role: "admin"
104045
104967
  },
104968
+ "deviceManager.dismissIdentityLink": {
104969
+ capName: "device-manager",
104970
+ capScope: "system",
104971
+ addonId: null,
104972
+ access: "create",
104973
+ role: "admin"
104974
+ },
104046
104975
  "deviceManager.enable": {
104047
104976
  capName: "device-manager",
104048
104977
  capScope: "system",
@@ -104239,6 +105168,13 @@ Object.freeze({
104239
105168
  access: "view",
104240
105169
  role: "admin"
104241
105170
  },
105171
+ "deviceManager.listIdentityLinks": {
105172
+ capName: "device-manager",
105173
+ capScope: "system",
105174
+ addonId: null,
105175
+ access: "view",
105176
+ role: "admin"
105177
+ },
104242
105178
  "deviceManager.listLocationDescriptions": {
104243
105179
  capName: "device-manager",
104244
105180
  capScope: "system",
@@ -104435,6 +105371,13 @@ Object.freeze({
104435
105371
  access: "create",
104436
105372
  role: "admin"
104437
105373
  },
105374
+ "deviceManager.setAttachedIdentifiers": {
105375
+ capName: "device-manager",
105376
+ capScope: "system",
105377
+ addonId: null,
105378
+ access: "create",
105379
+ role: "admin"
105380
+ },
104438
105381
  "deviceManager.setChildLayout": {
104439
105382
  capName: "device-manager",
104440
105383
  capScope: "system",
@@ -104596,6 +105539,13 @@ Object.freeze({
104596
105539
  access: "create",
104597
105540
  role: "admin"
104598
105541
  },
105542
+ "deviceManager.unlinkIdentity": {
105543
+ capName: "device-manager",
105544
+ capScope: "system",
105545
+ addonId: null,
105546
+ access: "delete",
105547
+ role: "admin"
105548
+ },
104599
105549
  "deviceManager.updateConfig": {
104600
105550
  capName: "device-manager",
104601
105551
  capScope: "system",
@@ -104876,6 +105826,20 @@ Object.freeze({
104876
105826
  access: "create",
104877
105827
  role: "admin"
104878
105828
  },
105829
+ "deviceStateRefresh.refresh": {
105830
+ capName: "device-state-refresh",
105831
+ capScope: "device",
105832
+ addonId: null,
105833
+ access: "create",
105834
+ role: "admin"
105835
+ },
105836
+ "deviceStateRefresh.resubscribe": {
105837
+ capName: "device-state-refresh",
105838
+ capScope: "device",
105839
+ addonId: null,
105840
+ access: "create",
105841
+ role: "admin"
105842
+ },
104879
105843
  "deviceStatus.getStatus": {
104880
105844
  capName: "device-status",
104881
105845
  capScope: "device",
@@ -108747,6 +109711,13 @@ Object.freeze({
108747
109711
  access: "view",
108748
109712
  role: "admin"
108749
109713
  },
109714
+ "pipelineOrchestrator.getStepSwitches": {
109715
+ capName: "pipeline-orchestrator",
109716
+ capScope: "system",
109717
+ addonId: null,
109718
+ access: "view",
109719
+ role: "admin"
109720
+ },
108750
109721
  "pipelineOrchestrator.listAgentSettings": {
108751
109722
  capName: "pipeline-orchestrator",
108752
109723
  capScope: "system",
@@ -108901,6 +109872,20 @@ Object.freeze({
108901
109872
  access: "create",
108902
109873
  role: "admin"
108903
109874
  },
109875
+ "pipelineOrchestrator.setClusterStepMode": {
109876
+ capName: "pipeline-orchestrator",
109877
+ capScope: "system",
109878
+ addonId: null,
109879
+ access: "create",
109880
+ role: "admin"
109881
+ },
109882
+ "pipelineOrchestrator.setDeviceStepEnabled": {
109883
+ capName: "pipeline-orchestrator",
109884
+ capScope: "system",
109885
+ addonId: null,
109886
+ access: "create",
109887
+ role: "admin"
109888
+ },
108904
109889
  "pipelineOrchestrator.setLoadBalancingShares": {
108905
109890
  capName: "pipeline-orchestrator",
108906
109891
  capScope: "system",
@@ -108908,6 +109893,13 @@ Object.freeze({
108908
109893
  access: "create",
108909
109894
  role: "admin"
108910
109895
  },
109896
+ "pipelineOrchestrator.setNodeStepEnabled": {
109897
+ capName: "pipeline-orchestrator",
109898
+ capScope: "system",
109899
+ addonId: null,
109900
+ access: "create",
109901
+ role: "admin"
109902
+ },
108911
109903
  "pipelineOrchestrator.setNodeStepSettings": {
108912
109904
  capName: "pipeline-orchestrator",
108913
109905
  capScope: "system",
@@ -112510,7 +113502,7 @@ function offered(received) {
112510
113502
  }
112511
113503
  offered(HA_AS), withheld(HOMEKIT_REASON), withheld(ALEXA_REASON), withheld(GOOGLE_REASON), withheld(MATTER_REASON);
112512
113504
  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;
113505
+ 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
113506
  new Set(Object.values(DeviceType));
112515
113507
  new Set(Object.values(DeviceRole));
112516
113508
  var PowerSwitchRefusedError = class extends Error {
@@ -113285,6 +114277,11 @@ Object.freeze({
113285
114277
  form: "array",
113286
114278
  optional: true
113287
114279
  }],
114280
+ "deviceManager.listIdentityLinks": [{
114281
+ name: "deviceId",
114282
+ form: "single",
114283
+ optional: true
114284
+ }],
113288
114285
  "deviceManager.loadConfig": [{
113289
114286
  name: "deviceId",
113290
114287
  form: "single",
@@ -113335,6 +114332,11 @@ Object.freeze({
113335
114332
  form: "single",
113336
114333
  optional: false
113337
114334
  }],
114335
+ "deviceManager.setAttachedIdentifiers": [{
114336
+ name: "deviceId",
114337
+ form: "single",
114338
+ optional: false
114339
+ }],
113338
114340
  "deviceManager.setChildLayout": [{
113339
114341
  name: "deviceId",
113340
114342
  form: "single",
@@ -113529,6 +114531,20 @@ Object.freeze({
113529
114531
  form: "single",
113530
114532
  optional: false
113531
114533
  }],
114534
+ "deviceStateRefresh.refresh": [{
114535
+ name: "deviceId",
114536
+ form: "single",
114537
+ optional: false
114538
+ }, {
114539
+ name: "deviceIds",
114540
+ form: "array",
114541
+ optional: false
114542
+ }],
114543
+ "deviceStateRefresh.resubscribe": [{
114544
+ name: "deviceId",
114545
+ form: "single",
114546
+ optional: false
114547
+ }],
113532
114548
  "deviceStatus.getStatus": [{
113533
114549
  name: "deviceId",
113534
114550
  form: "single",
@@ -149120,6 +150136,7 @@ function buildHomematicInstances(records, deps) {
149120
150136
  },
149121
150137
  formSchema: () => buildConnectionFormSchema(),
149122
150138
  initialBody: (name) => ({ name }),
150139
+ addDevice: () => "children",
149123
150140
  configured: (body) => (body.host ?? "").trim().length > 0,
149124
150141
  onChanged: () => deps.onChanged(),
149125
150142
  test: async ({ id, values }) => {